Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp900952rwb; Mon, 26 Sep 2022 07:16:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ieUFBAEhhKHD7wYkZPBT2t7L9SjWseI9FmBEUkMyR/5Q23+4MCTnN2tm4s8UIF19mNBTF X-Received: by 2002:a17:907:842:b0:731:3310:4187 with SMTP id ww2-20020a170907084200b0073133104187mr17381440ejb.578.1664201789823; Mon, 26 Sep 2022 07:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664201789; cv=none; d=google.com; s=arc-20160816; b=mG971j//VuAwdCa4BUq1znrOoIs4nboQ3kAkucHU/SCvz++RlKGjZ41vbj27OljTfL 4FmOfJstHq71wGhzVR0XYxEBGMnx5zXfdzv8O1go7m2XdUw20W1bB8FbLo+SgDW9kCOf UCfDaOJNn45PK5ck0f7u58mEIXCiOAOb2mePpMtC+fKDihUoYV4ZWDYGDqxSnl+Dbbww syrIzi62u0yHMXJe5gJbf6iNBi1V87XDv2DoOucRL2RGT75tCLyiQVxyVwbQ97oxj//B NX+0Cryfhhgp+6EmjjC2J2vlcaLZaR/X4ZzZ75VaOTo09nyPyPBOr8xbtFpOqIyL6ezg wInw== 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=X65YTmQg6ObX0CEzV5uPRNVhlUAxNnMR3DMM4jZveFE=; b=QVim1oGRiTc4GSbBSR9uTWBK9eG1T8cMH9XNgegCzdMsYIJdWg9a0Y9s2rPQuZzyIp ViTdMx4hmOQLKEMpLjy7kOEeBKH3X528Zn1MJ1v861NoyjfFOhW08y/VgRyw1G0bpzEe 54ZpJudDVPxM//9bPCjRN1nt6EOw4EhVp2fg2eqUWuTOpaf9jMFeO0X3qzzEdY8lEjEy HvPX/XiPzOxoYU7IZ7Li+9fT7lGqFKZ6bLVoPKXCl0jnQcGAoNXgyJRUrQUXsuHpHJWL nIeAIuoBw/jiY+dEPM37LtkY6WvuyJjumK1/WhrdynXWaWxIKwLIJxJrS8KxpwIcEG53 qdLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=idMkFBqx; 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 dd14-20020a1709069b8e00b007315a1c65b8si2520ejc.329.2022.09.26.07.15.58; Mon, 26 Sep 2022 07:16:29 -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=idMkFBqx; 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 S238975AbiIZL5F (ORCPT + 99 others); Mon, 26 Sep 2022 07:57:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239076AbiIZLya (ORCPT ); Mon, 26 Sep 2022 07:54:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C991876944; Mon, 26 Sep 2022 03:50:12 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 8642560AF5; Mon, 26 Sep 2022 10:50:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F157C433D6; Mon, 26 Sep 2022 10:50:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664189402; bh=HQt0Dir2v/OKPiuSGmulQLZyU2gBxDWR9oKGbTv2oXI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=idMkFBqxSeeU6DA+wRMLR6Ca0w8ch7l5TpAIRnJ0q3iWunp9U/0yAPEy/Evy1YEMA FFeBzAjTvm5swPnJnsIBA7qZ+NFR+cgKgnDMknP12LobPeMxZhH1AZcpiKBcwo/y6O wdg9jygwCycsVdngLTcE73maR+Iry3LpfgXGfLOs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guchun Chen , Lijo Lazar , Alex Deucher , Sasha Levin Subject: [PATCH 5.19 176/207] drm/amd/pm: disable BACO entry/exit completely on several sienna cichlid cards Date: Mon, 26 Sep 2022 12:12:45 +0200 Message-Id: <20220926100814.516349402@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100806.522017616@linuxfoundation.org> References: <20220926100806.522017616@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 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 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: Guchun Chen [ Upstream commit 7c6fb61a400bf3218c6504cb2d48858f98822c9d ] To avoid hardware intermittent failures. Signed-off-by: Guchun Chen Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c index 32bb6b1d9526..d13e455c8827 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c @@ -368,6 +368,17 @@ static void sienna_cichlid_check_bxco_support(struct smu_context *smu) smu_baco->platform_support = (val & RCC_BIF_STRAP0__STRAP_PX_CAPABLE_MASK) ? true : false; + + /* + * Disable BACO entry/exit completely on below SKUs to + * avoid hardware intermittent failures. + */ + if (((adev->pdev->device == 0x73A1) && + (adev->pdev->revision == 0x00)) || + ((adev->pdev->device == 0x73BF) && + (adev->pdev->revision == 0xCF))) + smu_baco->platform_support = false; + } } -- 2.35.1