From patchwork Wed Dec 21 07:26:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 1718154 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=oILqZcYv; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NcQ4g10x2z23dR for ; Wed, 21 Dec 2022 18:27:13 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1p7tVD-000799-9X; Wed, 21 Dec 2022 07:26:59 +0000 Received: from mail-pj1-f52.google.com ([209.85.216.52]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1p7tVA-00078V-D0 for kernel-team@lists.ubuntu.com; Wed, 21 Dec 2022 07:26:56 +0000 Received: by mail-pj1-f52.google.com with SMTP id n65-20020a17090a2cc700b0021bc5ef7a14so1291004pjd.0 for ; Tue, 20 Dec 2022 23:26:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=S6TgLcl/gniPoswhqwBj4NTgmMm7pf3z9a7HPVNj2Lc=; b=oILqZcYvkFjPelaPmhM6NjUAnirdAKzBznqLITruXupH/1ZK5Ef0tz1ncX8O8Hd8Sk +s/pI6VKRUzkhktvcUIi6wKNpOTGetFptC1nQa24HSBUgKE/Or2SblxwDKkQxWQCM7RR oYlxfH/LfWxetoxzZG+D2uIu8TPfe7q9xzzB3byUzLxXNEBhauUzJHEAwNa/fKwrBSEN LnHu6q08nvefJSCxxKLy8LVpZ9xKQBQAKVHIzp6+LOmIEYSqUrzVvNRcMTLG0kvXjwfU X0faYA9W+AHOKqYb8K9NcRo6VaTedU+/hKFp73dH37Sa1h+tHpGQ7zs/zD5bwlgMbabq SovQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=S6TgLcl/gniPoswhqwBj4NTgmMm7pf3z9a7HPVNj2Lc=; b=3hvpXTIQvrZhbL9G/biEignH72G0yxTbq9bYEu7ukeGq33wtPWepaT2gglXPY0UC1/ oDhBxvRZGxUq+0UDLBX0KfF+/61U7XB1JBbx3h7467qViPcWPD0AKZnFjlxqQ6cMl1ex OYPwTzSc8qLzVG3TS2pEo5oGdaaGXYe8tuQDwMPK9KsQ1up8MZb5qc0d8V6NFiNIWknf ezCxmiboatE7DsG8dLGnmH9w8tQasqNlQ/BB/q/D6ysUIkIyXK3Zi7GYU3Qng02a125K 2Cgh/Bkrlp5k3LXbJCPTFSUvwPpWmR483qu8w8GCVMGRBxTiBWyEvN1DuqSW0n+o843w Lrbg== X-Gm-Message-State: AFqh2kreqwcS88zZ0vGLkvHEFmx1htDcEkvKUIx4ZIlSx6kjsm9ZDIBp VlKxmEy17cYPOmDlY0WuCgtOzv4hE3U= X-Google-Smtp-Source: AMrXdXscyzxmgtcaUiX2Bf+G+jIpgQ+nfnxsW5rlfqkz/ei9HL/R1838z2WPbtfvchaiDwiBZOHnVA== X-Received: by 2002:a17:902:7488:b0:189:f708:9b67 with SMTP id h8-20020a170902748800b00189f7089b67mr1086252pll.46.1671607614415; Tue, 20 Dec 2022 23:26:54 -0800 (PST) Received: from localhost (118-163-61-247.hinet-ip.hinet.net. [118.163.61.247]) by smtp.gmail.com with ESMTPSA id p10-20020a170902e74a00b00189b2b8dbedsm10641151plf.228.2022.12.20.23.26.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 23:26:53 -0800 (PST) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 2/5][SRU][OEM-5.17] drm/amd/pm: disable BACO entry/exit completely on several sienna cichlid cards Date: Wed, 21 Dec 2022 15:26:44 +0800 Message-Id: <20221221072647.8981-3-acelan.kao@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221221072647.8981-1-acelan.kao@canonical.com> References: <20221221072647.8981-1-acelan.kao@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.52; envelope-from=acelan@gmail.com; helo=mail-pj1-f52.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Guchun Chen BugLink: https://launchpad.net/bugs/2000110 To avoid hardware intermittent failures. Signed-off-by: Guchun Chen Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher (cherry picked from commit 7bb91228291aa95bfee3b9d5710887673711c74c) Signed-off-by: Chia-Lin Kao (AceLan) --- .../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 c96d57ad47ea9..a32884282f589 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 @@ -361,6 +361,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; + } }