Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3079553rwb; Mon, 15 Aug 2022 17:37:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR4DM0UTVFTdIpYRflas3tGp9DhOJVXtPEn2QS0LgdHLbiOoCVlE6sg57s3a4JHBA3O2RRQ/ X-Received: by 2002:a17:903:11c7:b0:170:a74e:3803 with SMTP id q7-20020a17090311c700b00170a74e3803mr19182909plh.156.1660610236779; Mon, 15 Aug 2022 17:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610236; cv=none; d=google.com; s=arc-20160816; b=g3hpIUkrXp2tehs8g16tnbWPBakktFMHn5imQg/y3aq5E56zRUhbdvAFx7fG7O8ZAI o/EPjK7kGxNkBI/RpklUXTnwc2r2aW0NIwWF6QWZQlYJ9KlJYJfkztZGonzy2l5wbgYs IVHr343vvbOO8PN4awsZ8tLBLNwbtonAUr3ooZQtJ7+jFRFiAUznrxEQ4W3rQsJesn50 EMmcseREYno/VlxEpQMXH3RVZLFj9g5ZcCUxFhrstTZmx+gylXaekFI6hfdePHHKKUTm ZQJ9QOI9ada94JwXIFyt+YfgiLAL+hjvi+3E9cpOTp259nkse6dgR18f3AEEQ1DZXJED Qpkg== 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=wXJrwzT5BCZLt7TZyJ8FlZzcGXmuipcUxgW9yOOtG0c=; b=eDuBt5t2bN9w3/xD/M3lL0AP4qOwuXbvOD120PQSBA19Ei+52VoPeMtcMCh6TB9yxq vV7oOLba5qU6rXRGdYOAYcsNfMRl43/CjYzj7zpFaCpROH4kSfczmO9aQMrZJbjDKqci zs8KJYcx5+7JrxCBcLHoBFuiIHsrg4C5zy/L+c5OJ9d6JN737Nhe2wHl5ZpgkvujTy9B YvDSbngTdXpc33FYDicGdQjU6zWAf7u2skVTUymbi5/TidWQ1UdBrH2Iy5vNrHaEv30V lyZqYK8dAlza6tpglgqSJcPkkgLt0gjchrFGAXXIE5DzRblcyfPXjcWE8fPdpa61gJE2 qpvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B064PjaZ; 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 mu14-20020a17090b388e00b001f7353b22b7si20986014pjb.135.2022.08.15.17.37.06; Mon, 15 Aug 2022 17:37:16 -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=B064PjaZ; 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 S1353714AbiHOXkG (ORCPT + 99 others); Mon, 15 Aug 2022 19:40:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353684AbiHOXf4 (ORCPT ); Mon, 15 Aug 2022 19:35:56 -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 9BCF515175B; Mon, 15 Aug 2022 13:09:11 -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 DAC7EB810C5; Mon, 15 Aug 2022 20:09:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4341CC433D6; Mon, 15 Aug 2022 20:09:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594148; bh=Wv64WLePaMTiYT8GLdGRrBr0tGS1ZDL3nXXoLhy+o/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B064PjaZTQrG0HszkWjEF4LMgSQ+/SkHPZIN9ycaR1jR0qJio/wGS3owFxrd1HjYT KEVQPxFfXiKjxrdpw2pHsEPqkRwKDesLyyJgAtdpMG4A3MKYGm+UpE0WKH2PXjgVBA YtNBZ+hwLoz1dH756pbn3Mt4+GQ7+BdCjy7L5dwg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mario Limonciello , Evan Quan , Alex Deucher , Sasha Levin Subject: [PATCH 5.19 0386/1157] drm/amd: Dont show warning on reading vbios values for SMU13 3.1 Date: Mon, 15 Aug 2022 19:55:42 +0200 Message-Id: <20220815180455.144048569@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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: Mario Limonciello [ Upstream commit 1320d6c7b0deb7219701a55397e93e6c73d00366 ] Some APUs with SMU13 are showing the following message: `amdgpu 0000:63:00.0: amdgpu: Unexpected and unhandled version: 3.1` This warning isn't relevant for smu info 3.1, as no bootup information is present in the table. Fixes: 593a54f18031 ("drm/amd/pm: correct the way for retrieving bootup clocks") Signed-off-by: Mario Limonciello Reviewed-by: Evan Quan Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 2 ++ 1 file changed, 2 insertions(+) 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 ef9b56de143b..5aa08c031f72 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 @@ -714,6 +714,8 @@ int smu_v13_0_get_vbios_bootup_values(struct smu_context *smu) smu->smu_table.boot_values.vclk = smu_info_v3_6->bootup_vclk_10khz; smu->smu_table.boot_values.dclk = smu_info_v3_6->bootup_dclk_10khz; smu->smu_table.boot_values.fclk = smu_info_v3_6->bootup_fclk_10khz; + } else if ((frev == 3) && (crev == 1)) { + return 0; } else if ((frev == 4) && (crev == 0)) { smu_info_v4_0 = (struct atom_smu_info_v4_0 *)header; -- 2.35.1