From patchwork Thu Apr 16 13:24:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 227756 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DE45C2BB55 for ; Thu, 16 Apr 2020 14:44:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D2F8F21D82 for ; Thu, 16 Apr 2020 14:44:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587048250; bh=/MZG7D6frHE0UnnT/D1f/ogB9Ko41bQzTQea43xIACI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=NHiFccM00sWl6qp24M4Yzu/4DtyybPGvGEEI5MRYDy4YGCnbl6PMiBSVNK3oqf1/M eL+96A/QMTzrCexcaUaha2RLWgK6o5kWDCWUOfSoHRWWkyxHTaPAdTjvU5U3tGlP5E EOddQahrNsnF7IQQ9R+J8slOI64vdlozQncob66M= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391957AbgDPOoJ (ORCPT ); Thu, 16 Apr 2020 10:44:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:47254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409416AbgDPOAL (ORCPT ); Thu, 16 Apr 2020 10:00:11 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5C6FD2078B; Thu, 16 Apr 2020 14:00:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587045610; bh=/MZG7D6frHE0UnnT/D1f/ogB9Ko41bQzTQea43xIACI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=abNdN6vxI/RhsEm32aQC3PYs9LFjVkr1lwJwGmvDenIzvZHt2zRqsOTGOpCwbarJj ap9wbEWvcSad7R4aUFHLFej5XUTYrDITDI/t+4TI4Q61WzXsMtFtfWjbhksaJcHEFe iKkggeljxCDSzKzVHF5Wjnwkgl9VDBz5D2027b9M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Prike Liang , Huang Rui , Alex Deucher Subject: [PATCH 5.6 205/254] drm/amd/powerplay: implement the is_dpm_running() Date: Thu, 16 Apr 2020 15:24:54 +0200 Message-Id: <20200416131351.692090182@linuxfoundation.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200416131325.804095985@linuxfoundation.org> References: <20200416131325.804095985@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Prike Liang commit 4ee2bb22ddb53a2eafc675690d0d67452029ca37 upstream. As the pmfw hasn't exported the interface of SMU feature mask to APU SKU so just force on all the features to driver inquired interface at early initial stage. Signed-off-by: Prike Liang Reviewed-by: Huang Rui Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/drivers/gpu/drm/amd/powerplay/renoir_ppt.c +++ b/drivers/gpu/drm/amd/powerplay/renoir_ppt.c @@ -887,6 +887,17 @@ static int renoir_read_sensor(struct smu return ret; } +static bool renoir_is_dpm_running(struct smu_context *smu) +{ + /* + * Util now, the pmfw hasn't exported the interface of SMU + * feature mask to APU SKU so just force on all the feature + * at early initial stage. + */ + return true; + +} + static const struct pptable_funcs renoir_ppt_funcs = { .get_smu_msg_index = renoir_get_smu_msg_index, .get_smu_clk_index = renoir_get_smu_clk_index, @@ -928,6 +939,7 @@ static const struct pptable_funcs renoir .mode2_reset = smu_v12_0_mode2_reset, .set_soft_freq_limited_range = smu_v12_0_set_soft_freq_limited_range, .set_driver_table_location = smu_v12_0_set_driver_table_location, + .is_dpm_running = renoir_is_dpm_running, }; void renoir_set_ppt_funcs(struct smu_context *smu)