From patchwork Tue Nov 5 14:15:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: oscar.mateo@intel.com X-Patchwork-Id: 3141901 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5F7549F407 for ; Tue, 5 Nov 2013 14:20:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AD3232058A for ; Tue, 5 Nov 2013 14:20:45 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id B929220588 for ; Tue, 5 Nov 2013 14:20:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C4DB101E00; Tue, 5 Nov 2013 06:20:37 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id B134BFB3B7 for ; Tue, 5 Nov 2013 06:20:18 -0800 (PST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by azsmga101.ch.intel.com with ESMTP; 05 Nov 2013 06:20:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,640,1378882800"; d="scan'208";a="422581746" Received: from omateolo-haswell.isw.intel.com ([10.102.226.164]) by fmsmga001.fm.intel.com with ESMTP; 05 Nov 2013 06:20:06 -0800 From: oscar.mateo@intel.com To: intel-gfx@lists.freedesktop.org Date: Tue, 5 Nov 2013 14:15:19 +0000 Message-Id: <1383660919-4186-1-git-send-email-oscar.mateo@intel.com> X-Mailer: git-send-email 1.7.9.5 Subject: [Intel-gfx] [PATCH] lib/drmtest: Retire requests via drop caches after gem_quiescent_gpu X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Oscar Mateo This helps make sure that the GPU is really quiescent by getting rid of any residual stuff. Signed-off-by: Oscar Mateo --- lib/drmtest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/drmtest.c b/lib/drmtest.c index e3fc166..d8fc60f 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -47,6 +47,7 @@ #include "i915_drm.h" #include "intel_chipset.h" #include "intel_gpu_tools.h" +#include "igt_debugfs.h" /* This file contains a bunch of wrapper functions to directly use gem ioctls. * Mostly useful to write kernel tests. */ @@ -163,6 +164,7 @@ void gem_quiescent_gpu(int fd) } gem_sync(fd, handle); + igt_drop_caches_set(DROP_RETIRE); } /**