Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1965328rwe; Fri, 2 Sep 2022 06:42:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR6cPbz18ldSFOn3aR+TLP70bm6y+OFk7S0ZsMOkjFpJZLNtoD5tGdqOQwd/ZDtwjp0fQglh X-Received: by 2002:a05:6a00:a1d:b0:536:90d3:1930 with SMTP id p29-20020a056a000a1d00b0053690d31930mr35986240pfh.25.1662126156860; Fri, 02 Sep 2022 06:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662126156; cv=none; d=google.com; s=arc-20160816; b=fBPsQnMjaBZV5FDv33THpfKQaU9LhxMA//PaHfkaKvLgH4NwMb9gZgQTfuW95zAfV0 +4SS9WRRyO6aaxwlGaDHE/1+kCub1+Vsx1pfvw/pYgKQrkWFCirBqq7uOaVUaB8Nxamw k4BnxV7tXvGnXib7/GhdauozYntPip2fQH2d2KdcYh1UteUObm0qJGv6rJKLoF7fbdcX +QEzTyKdHaDo+T1+0PSwcfK1Edr/DnkVRvKJ+S5j2Wz7Juik3uxVbEnt/kgtggdoEOaV tOB6iybqrfb53y4eAyihI9swr42q8/dUlLUGkhDrho68wo3wDl3irvNvwWTDjBr61rZj ociw== 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=pcmlcwIZR0dFHih5vsZVbUSlS2bKQ/A1c8bLTjHLOxw=; b=vxYuQ83NtpGd90rud8fu+b/fBQQnBWFyCaekZIRcAIGrM1CtN5G9ProVVigx+clKIi d2tpi3kb76Rj+99RellwYFGB5NxrOmejiE1G+siWJnOA7sIc6UAIUyZQUnBKgif2MvD1 E+Dn2O9X5sl2G8coN/r1FzQjZpMtEFV8SvzN9Gel1VF9RGvJdnxItC1ETxtQEJeE9eM0 hNwqJPdqp7mnZUGdr4gbP6ssLgsSGiqAu+ckkoTKBXOuded7cWYvNharc4YOc3xh2FfT iYXU3NooMHf9ZuIGl9hl7v/Wa/Q29sL27mbp+AAl9hrQHlPbqE+/Bc4dw7U0GiTMvPxM wrnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=O7PS2vrA; 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 p19-20020a056a000a1300b0052bceb2fe4esi2261594pfh.221.2022.09.02.06.42.25; Fri, 02 Sep 2022 06:42:36 -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=O7PS2vrA; 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 S237943AbiIBMyg (ORCPT + 99 others); Fri, 2 Sep 2022 08:54:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237847AbiIBMxR (ORCPT ); Fri, 2 Sep 2022 08:53:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E224F8FE4; Fri, 2 Sep 2022 05:37:44 -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 866BAB82A91; Fri, 2 Sep 2022 12:36:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D06FBC433C1; Fri, 2 Sep 2022 12:36:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662122198; bh=RtY/8ZtIdexA5KplFfjBrgI2nAZ6OSMG37qt/NcJDC4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O7PS2vrAme0yGFNLgUW/oY33g1rSgNWv+h1KkfLF3V4orxb634szyCotEKmAcbJH9 QnmXx7DMFa6oBZT4zi3uXuPkFWcAQeQtlUB5im9JE0LogS9GhRUQbfOkz7+yOwBG74 XByFydVBhAC5L5Te1t7VJ1YA8F8IWW7divnza7+Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kenneth Feng , Feifei Xu , Alex Deucher , Sasha Levin Subject: [PATCH 5.19 43/72] drm/amd/pm: skip pptable override for smu_v13_0_7 Date: Fri, 2 Sep 2022 14:19:19 +0200 Message-Id: <20220902121406.185535938@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220902121404.772492078@linuxfoundation.org> References: <20220902121404.772492078@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.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: Kenneth Feng [ Upstream commit 4e64b529c5b04e7944b41de554ee686ecab00744 ] skip pptable override for smu_v13_0_7 secure boards only. Signed-off-by: Kenneth Feng Reviewed-by: Feifei Xu Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c index 5aa08c031f721..1d8a9e5b3cc08 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c @@ -203,6 +203,9 @@ int smu_v13_0_init_pptable_microcode(struct smu_context *smu) if (!adev->scpm_enabled) return 0; + if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 7)) + return 0; + /* override pptable_id from driver parameter */ if (amdgpu_smu_pptable_id >= 0) { pptable_id = amdgpu_smu_pptable_id; @@ -210,13 +213,6 @@ int smu_v13_0_init_pptable_microcode(struct smu_context *smu) } else { pptable_id = smu->smu_table.boot_values.pp_table_id; - if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 7) && - pptable_id == 3667) - pptable_id = 36671; - - if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 7) && - pptable_id == 3688) - pptable_id = 36881; /* * Temporary solution for SMU V13.0.0 with SCPM enabled: * - use 36831 signed pptable when pp_table_id is 3683 -- 2.35.1