From patchwork Fri Jan 31 16:13:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jeff.mcgee@intel.com X-Patchwork-Id: 3563491 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 076BD9F381 for ; Fri, 31 Jan 2014 20:06:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3149E2024F for ; Fri, 31 Jan 2014 20:06:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 5BF9F2022F for ; Fri, 31 Jan 2014 20:06:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BF16010712E; Fri, 31 Jan 2014 12:06:47 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id A402FF9EEA for ; Fri, 31 Jan 2014 08:06:43 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 31 Jan 2014 08:06:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.95,758,1384329600"; d="scan'208";a="473914370" Received: from jeffdesk.fso.intel.com ([10.5.53.1]) by fmsmga002.fm.intel.com with ESMTP; 31 Jan 2014 08:06:33 -0800 From: jeff.mcgee@intel.com To: intel-gfx@lists.freedesktop.org Date: Fri, 31 Jan 2014 10:13:51 -0600 Message-Id: <1391184833-10973-3-git-send-email-jeff.mcgee@intel.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1391184833-10973-1-git-send-email-jeff.mcgee@intel.com> References: <1391184833-10973-1-git-send-email-jeff.mcgee@intel.com> Subject: [Intel-gfx] [PATCH 2/4] pm_rps: Load helper should stall for last write 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.8 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: Jeff McGee This ensures that gpu is quiescent when load helper exits. Signed-off-by: Jeff McGee --- tests/pm_rps.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/pm_rps.c b/tests/pm_rps.c index a6807d2..9277196 100644 --- a/tests/pm_rps.c +++ b/tests/pm_rps.c @@ -207,6 +207,10 @@ static void load_helper_run(void) val++; } + /* Map buffer to stall for write completion */ + drm_intel_bo_map(lh.target_buffer, 0); + drm_intel_bo_unmap(lh.target_buffer); + log("load helper sent %u dword writes\n", val); } }