Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp701359pxb; Tue, 5 Apr 2022 19:24:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWydVIfRKhfeAEjO+y2Kp7mExJtpLWo/Zq5MQ87cEj52qiu6ck/cjr+O9kk2pTTe+HUSgo X-Received: by 2002:a17:90a:634b:b0:1ca:6c7e:7952 with SMTP id v11-20020a17090a634b00b001ca6c7e7952mr7322619pjs.54.1649211839855; Tue, 05 Apr 2022 19:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649211839; cv=none; d=google.com; s=arc-20160816; b=KRAfu6jcmXI1QZvU2yPBVK7wb4/8tvFF5/9SAHNzBiGPdWxRR46OdccKAZakJ3JELM cb0TrULA/lOKVwkXoppXcuiIomWUQNL+R8h/5/oFJeN0qWFO+IFxzpopn4pwov3IOI/h SxT8SC9znHIKsc+kAveUpRfGm72Ih1yD4DcwvdXLn7YtVzjHnoDu0CQG+hQr0eMpRW85 SkK5iEC7npZOajlUKDSrkhy2Ife8GBMvMYAe797Tifwa9reilMY4jqReps+v9+iL5HDe 0ExHkohTdnsmUjmWmWLfME2S1xdTWI3ET2wDx8FTEESOLZoIoJ6El/f5u7zs5Lo+SAi5 Kwpg== 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=h8FQVqbni6FZFrJAHbMFBvTP6NCPqiJnhnX/KAOJwbmWKhj7/7Q1RrrUQnxP/KQbA+ MwRzLL+TVdeVyrUZgHJU6mKQ/T3MnQKbrovs39ReE/e/EH1AWl7EwvKt8WG6rIgnwp2u erAp2uJ+tt/AwI0feg1ufYg8e5qRdT+R0cjj9djc998TU63e96HSNx8TGW3dA6lV/g1Y eOGE6c+f0v261VIX6sGNvAV/Ja7mrOcQMWmuFpWP1aA4w9w0k6wOkBAj0akw013I5CpV Dzy/KN/KijlaDbsK5qPIsUZ/ktz4iH641yH9KoiKeUXRLS5QZOw1v7mzou2JnchOVdHh G1BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TTngsG5f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oo10-20020a17090b1c8a00b001c72b71a7e4si3977323pjb.27.2022.04.05.19.23.41; Tue, 05 Apr 2022 19:23:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TTngsG5f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390638AbiDENmq (ORCPT + 99 others); Tue, 5 Apr 2022 09:42:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345585AbiDEJWv (ORCPT ); Tue, 5 Apr 2022 05:22:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 448AA4EA24; Tue, 5 Apr 2022 02:11:21 -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 BB0D7B80DA1; Tue, 5 Apr 2022 09:11:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D16BC385A0; Tue, 5 Apr 2022 09:11:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149879; bh=v0e+GbbN1cfqPskZ/ICNmADN7c4vz8YjGJCkhl99+Wk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TTngsG5fufdald9LSJSmJroP4Wc+utoZ8MsCgl5/UDDAeuMMAMGDle7pHILGcVkFU yRVtwKObzlYQU4oVLtQ69twfIfwORlfMGEonYX6lQiF5/RDSVEBL5aKwZfRBDW0Wkz xVUbcKKKmFk7UpZMMiZGVPFq4e9ES779SrIVqJa4= 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.16 0873/1017] drm/i915: Fix PSF GV point mask when SAGV is not possible Date: Tue, 5 Apr 2022 09:29:46 +0200 Message-Id: <20220405070420.149613416@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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); }