From patchwork Thu Nov 6 08:02:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao, Yakui" X-Patchwork-Id: 5239871 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 95E599F8B3 for ; Thu, 6 Nov 2014 08:08:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CBEE120117 for ; Thu, 6 Nov 2014 08:08:31 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6A19E20122 for ; Thu, 6 Nov 2014 08:08:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 447A96E108; Thu, 6 Nov 2014 00:08:29 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTP id 0093C6E0AC for ; Thu, 6 Nov 2014 00:08:27 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 06 Nov 2014 00:02:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="412294499" Received: from genxdev-ykzhao.sh.intel.com (HELO localhost.sh.intel.com) ([10.239.37.26]) by FMSMGA003.fm.intel.com with ESMTP; 05 Nov 2014 23:59:53 -0800 From: Zhao Yakui To: intel-gfx@lists.freedesktop.org Date: Thu, 6 Nov 2014 16:02:31 +0800 Message-Id: <1415260951-27700-2-git-send-email-yakui.zhao@intel.com> X-Mailer: git-send-email 1.8.5.dirty In-Reply-To: <1415260951-27700-1-git-send-email-yakui.zhao@intel.com> References: <1415260951-27700-1-git-send-email-yakui.zhao@intel.com> Subject: [Intel-gfx] [PATCH I-g-t 2/2] Mediafill/skl: Remove redundant field to fix GPU hang X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" 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 After applying the commit(982f7eb238a0898c456e0574dee7c4507738d75f), the OUT_RELOC is updated on Broadwell and later, which is to handle the 64-bit field of gfx address internally. In such case some commands should be fixed, otherwise GPU hang will be triggered when running gem_media_fill. (It is already fixed on Broadwell) Signed-off-by: Zhao Yakui --- lib/media_fill_gen9.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/media_fill_gen9.c b/lib/media_fill_gen9.c index 6c6ba89..3fd2181 100644 --- a/lib/media_fill_gen9.c +++ b/lib/media_fill_gen9.c @@ -205,12 +205,10 @@ gen9_emit_state_base_address(struct intel_batchbuffer *batch) /* surface */ OUT_RELOC(batch->bo, I915_GEM_DOMAIN_SAMPLER, 0, BASE_ADDRESS_MODIFY); - OUT_BATCH(0); /* dynamic */ OUT_RELOC(batch->bo, I915_GEM_DOMAIN_RENDER | I915_GEM_DOMAIN_INSTRUCTION, 0, BASE_ADDRESS_MODIFY); - OUT_BATCH(0); /* indirect */ OUT_BATCH(0); @@ -218,7 +216,6 @@ gen9_emit_state_base_address(struct intel_batchbuffer *batch) /* instruction */ OUT_RELOC(batch->bo, I915_GEM_DOMAIN_INSTRUCTION, 0, BASE_ADDRESS_MODIFY); - OUT_BATCH(0); /* general state buffer size */ OUT_BATCH(0xfffff000 | 1);