Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3763755ybz; Mon, 4 May 2020 09:17:33 -0700 (PDT) X-Google-Smtp-Source: APiQypJyFcrLNHPp8IHprm5wuQbYY1htGTJ2bEyA+xXOQLQwBq5OHLSTHOIGrWFEVxxg7BZVQMXI X-Received: by 2002:a17:906:4ecd:: with SMTP id i13mr15416662ejv.68.1588609053089; Mon, 04 May 2020 09:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588609053; cv=none; d=google.com; s=arc-20160816; b=swe+NOWtlMZAweIaH9W5k9Xm514OEnpY9NYbvK4MYJ81tOJQPewT+I6yCsbGmOQ94i 4ekb03d+6VcQ+y+twJEDTzK+sVDNrjF0ImZV3yytoOCkYuUtd281Y3869J6SEj+3dq9J 31yYYmu4+ODODBAuuVOR6DSaAL03fqHi0JDNeMB9K96N8Qwztexo84thTyUYnDFNWety wSzfPrLbK5zthNZjk3wi9ckmbMagEUelmWnM6oIOOSWpFgO/rVodCTWGastFmDj5FWR1 5Qzff59bdOccuOPh9ToL8P4RtmS8gmjnvyDjsqNvIxWmKtXSuhqEDmsNU2nnxMn3y/jd 69bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=0jVe9o1RBo1IOiGete00k9yUeH9pKhiyTU9lQc7c2IA=; b=OA37+rj/7JWovJImy3FZZaNUAle94PA2cbcOSYFNZlY1xt1qUCfs2tmW6LXfQZSl5l CwPsoMQjZBzq0U8SQlwHLnfJ+3X5VPgh1IEx/E5JyoL/ZqCqxoIj/UUAXb/y5GgEULpo NkRPysQBMunfHGsBJG+Uqa4oxzqWLCQ7TW/+NIn9uluoF3PyTscXHVWL5wT/4S1Wnv0m 7lg9tp+qCJ5eUCXBi4e51F/s4VF1YMWlTVjutkBiyYKXPY2Isrpi9jjMwMuuaSuG6+O2 nXvxEYZxepK4djQmL0P/aNi5bTZNyjK7oXZqhE9OFlRRow2AIMGRAiwx7PcDAhZ1FWbq 8shw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd4si6548491edb.607.2020.05.04.09.16.58; Mon, 04 May 2020 09:17:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729459AbgEDQMT (ORCPT + 99 others); Mon, 4 May 2020 12:12:19 -0400 Received: from mga04.intel.com ([192.55.52.120]:42892 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729207AbgEDQMS (ORCPT ); Mon, 4 May 2020 12:12:18 -0400 IronPort-SDR: GaO8djqiS2pGiJ4VEzK21OfRR+p9GR/H1OOoiF1LyDWwe8m9F4UWF+CgXZu/iEGTLYCSBEzCzW f95LkA7L/isQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2020 09:12:18 -0700 IronPort-SDR: NjIs5eVckiefVYzs1nbR8TZZP08x1SCNuBp/AYXeYKVd5KTbFssOqilwxELtBYPR4imLSjI+d2 TGTnF4ViDebw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,352,1583222400"; d="scan'208";a="262866242" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by orsmga006.jf.intel.com with SMTP; 04 May 2020 09:12:14 -0700 Received: by stinkbox (sSMTP sendmail emulation); Mon, 04 May 2020 19:12:13 +0300 Date: Mon, 4 May 2020 19:12:13 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Sultan Alsawaf Cc: stable@vger.kernel.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/i915: Don't enable WaIncreaseLatencyIPCEnabled when IPC is disabled Message-ID: <20200504161213.GD6112@intel.com> References: <20200430214654.51314-1-sultan@kerneltoast.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200430214654.51314-1-sultan@kerneltoast.com> X-Patchwork-Hint: comment User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 30, 2020 at 02:46:54PM -0700, Sultan Alsawaf wrote: > From: Sultan Alsawaf > > In commit 5a7d202b1574, a logical AND was erroneously changed to an OR, > causing WaIncreaseLatencyIPCEnabled to be enabled unconditionally for > kabylake and coffeelake, even when IPC is disabled. Fix the logic so > that WaIncreaseLatencyIPCEnabled is only used when IPC is enabled. > > Fixes: 5a7d202b1574 ("drm/i915: Drop WaIncreaseLatencyIPCEnabled/1140 for cnl") > Cc: stable@vger.kernel.org # 5.3.x+ > Signed-off-by: Sultan Alsawaf > --- > drivers/gpu/drm/i915/intel_pm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c > index 8375054ba27d..a52986a9e7a6 100644 > --- a/drivers/gpu/drm/i915/intel_pm.c > +++ b/drivers/gpu/drm/i915/intel_pm.c > @@ -4992,7 +4992,7 @@ static void skl_compute_plane_wm(const struct intel_crtc_state *crtc_state, > * WaIncreaseLatencyIPCEnabled: kbl,cfl > * Display WA #1141: kbl,cfl > */ > - if ((IS_KABYLAKE(dev_priv) || IS_COFFEELAKE(dev_priv)) || > + if ((IS_KABYLAKE(dev_priv) || IS_COFFEELAKE(dev_priv)) && Whoops. Thanks for the fix. Pushed. > dev_priv->ipc_enabled) > latency += 4; > > -- > 2.26.2 -- Ville Syrj?l? Intel