Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1059045pxb; Wed, 6 Apr 2022 07:47:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/7+4LCcO5zVpmVamhZC99oRKQXCYBVYkN+3mdgo8HHbLF1piPevLFLC4ddBip/ptQ9AlI X-Received: by 2002:a63:3605:0:b0:398:6e02:8578 with SMTP id d5-20020a633605000000b003986e028578mr7366434pga.368.1649256435963; Wed, 06 Apr 2022 07:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649256435; cv=none; d=google.com; s=arc-20160816; b=TvsLyh0GSuUfyvivT/h1Ieb/C4+ZWgRfi+sK/6vYMEyMdIOw5Fhsy3fhEXmadrBuWN xPak59B2HwQM4nLbvTsH8NyCPJlj9EcfCi0lCkE/gNQD7bmX7X/8ubTTHz0fH2EC2i1w glXf6lPD/iMDwl/Donhnzv2to080/11rVqNazbPrloc2++oLspl/hDQOflN2sk/26Hbe JkAUHi71tcB2SuPThM9zbeBrHQPH6b2Z+LpHmofKAmes8ddW2ChN6lm7FKVpJ68S1cj9 WxzmbGDiooWeoYntxX/3kRRxVTtzXidsDO67v7pV/EpnhcB70SuVRxwfOGUNsLCC4UAA WmJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lN130mSV55VQNGKvvYGSJT3psq3JVjCy0tQCfzRs6cA=; b=BQUFM+Mxnw9zcIf9B/bb5kF3m5Hyn84dI4G0VMcA5yK3j6KV9HMELPG1jOQVDRa3qd lgeIttflLw+paC3n1tzQRcahoeRhDGQO/DpDOhF+ZwK51CLMmLzw1aRw8IvTuSQRwYAu 5AAw+8fPdeYr/8vS66UdgE/ZDzfVdr0iQesjVLnboW2WhYnbqu7slup6UFGQjuu0+osK fbhjr5Xpl/2Ropu+o/PoJvUuOIdiYGEw3KvCd6wTOvLImXeJMplXXBSq/EnblSZw+MgK NvRuk65KMToBBkfklrbzYfh4P4tfQCvZH3M1M/3fHknAZxRZwJi5hKAc/4ADZSdSY0VV bQ7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=krdnuWD7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u12-20020a63790c000000b003822873c27dsi16901682pgc.572.2022.04.06.07.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 07:47:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=krdnuWD7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 234FE67B9F2; Wed, 6 Apr 2022 05:37:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1587523AbiDFAJf (ORCPT + 99 others); Tue, 5 Apr 2022 20:09:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353857AbiDEKJi (ORCPT ); Tue, 5 Apr 2022 06:09:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DA19C3363; Tue, 5 Apr 2022 02:55:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 06757B818F6; Tue, 5 Apr 2022 09:55:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C497C385A2; Tue, 5 Apr 2022 09:55:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152536; bh=v0e+GbbN1cfqPskZ/ICNmADN7c4vz8YjGJCkhl99+Wk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=krdnuWD7CZAhG/LIvPrdlEvv4R0U7KMMgKC8hUc3PAEMoTy+JnDk051U460ywjylL 7s4Qs/TfnoirvsJtdLRbM/8ABvJLt53LE383Z7JPl2H2swkMBLrDKSNdfG72A34LaN jZRjIY2QBEdrS3+csCbhrsLzx3SDAyZPjsML5KWk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stanislav Lisovskiy , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Tvrtko Ursulin Subject: [PATCH 5.15 785/913] drm/i915: Fix PSF GV point mask when SAGV is not possible Date: Tue, 5 Apr 2022 09:30:47 +0200 Message-Id: <20220405070403.364989962@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ville Syrjälä commit 3ef8b5e19ead5a79600ea55f9549658281415893 upstream. Don't just mask off all the PSF GV points when SAGV gets disabled. This should in fact cause the Pcode to reject the request since at least one PSF point must remain enabled at all times. Cc: stable@vger.kernel.org Cc: Stanislav Lisovskiy Fixes: 192fbfb76744 ("drm/i915: Implement PSF GV point support") Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20220309164948.10671-7-ville.syrjala@linux.intel.com Reviewed-by: Stanislav Lisovskiy (cherry picked from commit 0fed4ddd18f064d2359b430c6e83ee60dd1f49b1) Signed-off-by: Tvrtko Ursulin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/display/intel_bw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/i915/display/intel_bw.c +++ b/drivers/gpu/drm/i915/display/intel_bw.c @@ -819,7 +819,8 @@ int intel_bw_atomic_check(struct intel_a * cause. */ if (!intel_can_enable_sagv(dev_priv, new_bw_state)) { - allowed_points = BIT(max_bw_point); + allowed_points &= ADLS_PSF_PT_MASK; + allowed_points |= BIT(max_bw_point); drm_dbg_kms(&dev_priv->drm, "No SAGV, using single QGV point %d\n", max_bw_point); }