Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1123784ybe; Fri, 13 Sep 2019 11:23:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7LpJZ/TmoUyhVMhD4S40Peagjs5vfVLNwU0uyDH+VmDeE1067kAYj7gBV17JYrnvGL8TZ X-Received: by 2002:a17:906:e92:: with SMTP id p18mr4988446ejf.308.1568399026892; Fri, 13 Sep 2019 11:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568399026; cv=none; d=google.com; s=arc-20160816; b=EKz9OKYrtFZ50nyPPy9pF4IATfctmBZun57TrGAJS28lRLfK4RMg08mr+OEam5Z6xW CI1FESwrpvsByJvrINz8BRkBpVwjoNoq0rb5wrTqsF1Oi4+GHtV092hg+eXbJITvtwCl 2nu4TmUAU5N4wYHL+7/okJ5K5qsmG6+TD13GBZZ7tv4eTlC4AnRStpf5qOUoOUI5nWtM xqJOwkTB7GPZrhC2LKNXTm2Jd3XOwHDmR6SeW14sptv98McHn6mFKkpVCRoYyusvMd3D NNEvh+bJ0nmj1F516EVWNSiMLlrTc5rw0w+0Eoo8GnUIhROhLmGmnTmcbrvlyYUUGIkJ 89kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/R+gANrUnZh5R75t6beVz78s6QVCgIADl3ofSIqo7CY=; b=p4KHNMs/oTKh2V9Nfh0dCU7uY2h8zlyteN2beLH43nX+hgW8g1Nj+TWsXlKpPVvOva cV4ZU4PDSVe57fc3rLsuADXqsDaceg9YqML+lezYmvmaZhY/H6nVmrDp0z/m+8JqaTI1 aqNXhBWnFwuCC9fJMC9dq0tgrb0qQtSTlZ8OcaWdnpG3K6/yZ/qnMYDIkk/F3byaRMtv RA9lR/Iw+zF7lj+hl62yYa9ALOZPnw6/zeXUGFB1/DQE7TL9h85Hb15cmSPJGIS4KELT yF/PVXJdIfoJGeJObxs8bXavSsNc3TGLMSi6sNiR2zzsBqUXkOVoCXIJ8IVtcCioc0Fl ZmfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=goFsvmRm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i14si15355941ejb.271.2019.09.13.11.23.23; Fri, 13 Sep 2019 11:23:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=goFsvmRm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390911AbfIMNVv (ORCPT + 99 others); Fri, 13 Sep 2019 09:21:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:51654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390900AbfIMNVr (ORCPT ); Fri, 13 Sep 2019 09:21:47 -0400 Received: from localhost (unknown [104.132.45.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5E98D20717; Fri, 13 Sep 2019 13:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380906; bh=MI4WDWM+C2NHPKLPkdzsoUBHKRJhI8Jr7GHXBKGn/9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=goFsvmRmWhYp64bbmsMZzTlzhKh0hBDXGyoMgXs1pmaxpQk5kWHeFd72fyD4sKo9q 7e4pjjykcYOVFNrjXj2ZHEnVtov6NCNHbhEddKSeDis8tQV87NLE0WcSngHB+DyR5F 1IZN2NSHripteH2Vwi/QabazCx+oYvo/b8X9vtzU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, John Harrison , "Robert M. Fosha" , Tvrtko Ursulin , Chris Wilson , Sasha Levin Subject: [PATCH 5.2 33/37] drm/i915: Add whitelist workarounds for ICL Date: Fri, 13 Sep 2019 14:07:38 +0100 Message-Id: <20190913130521.753967325@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913130510.727515099@linuxfoundation.org> References: <20190913130510.727515099@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 7b3d406310983a89ed7a1ecdd115efbe12b0ded5 ] Updated whitelist table for ICL. v2: Reduce changes to just those required for media driver until the selftest can be updated to support the new features of the other entries. Signed-off-by: John Harrison Signed-off-by: Robert M. Fosha Cc: Tvrtko Ursulin Cc: Chris Wilson Reviewed-by: Tvrtko Ursulin Signed-off-by: Tvrtko Ursulin Link: https://patchwork.freedesktop.org/patch/msgid/20190618010108.27499-4-John.C.Harrison@Intel.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/i915/intel_workarounds.c | 38 +++++++++++++++++------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_workarounds.c b/drivers/gpu/drm/i915/intel_workarounds.c index be3688908f0ce..efea5a18fa6db 100644 --- a/drivers/gpu/drm/i915/intel_workarounds.c +++ b/drivers/gpu/drm/i915/intel_workarounds.c @@ -1097,17 +1097,33 @@ static void icl_whitelist_build(struct intel_engine_cs *engine) { struct i915_wa_list *w = &engine->whitelist; - if (engine->class != RENDER_CLASS) - return; - - /* WaAllowUMDToModifyHalfSliceChicken7:icl */ - whitelist_reg(w, GEN9_HALF_SLICE_CHICKEN7); - - /* WaAllowUMDToModifySamplerMode:icl */ - whitelist_reg(w, GEN10_SAMPLER_MODE); - - /* WaEnableStateCacheRedirectToCS:icl */ - whitelist_reg(w, GEN9_SLICE_COMMON_ECO_CHICKEN1); + switch (engine->class) { + case RENDER_CLASS: + /* WaAllowUMDToModifyHalfSliceChicken7:icl */ + whitelist_reg(w, GEN9_HALF_SLICE_CHICKEN7); + + /* WaAllowUMDToModifySamplerMode:icl */ + whitelist_reg(w, GEN10_SAMPLER_MODE); + + /* WaEnableStateCacheRedirectToCS:icl */ + whitelist_reg(w, GEN9_SLICE_COMMON_ECO_CHICKEN1); + break; + + case VIDEO_DECODE_CLASS: + /* hucStatusRegOffset */ + whitelist_reg_ext(w, _MMIO(0x2000 + engine->mmio_base), + RING_FORCE_TO_NONPRIV_RD); + /* hucUKernelHdrInfoRegOffset */ + whitelist_reg_ext(w, _MMIO(0x2014 + engine->mmio_base), + RING_FORCE_TO_NONPRIV_RD); + /* hucStatus2RegOffset */ + whitelist_reg_ext(w, _MMIO(0x23B0 + engine->mmio_base), + RING_FORCE_TO_NONPRIV_RD); + break; + + default: + break; + } } void intel_engine_init_whitelist(struct intel_engine_cs *engine) -- 2.20.1