Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5182019rwb; Mon, 31 Jul 2023 20:34:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlFiRgyWebq/bh701m0YrBbpmvSQ1HOQYZIuS9dbk2jT8hCPg7xYxVydiRxOpEGBgdXGMWWr X-Received: by 2002:a17:906:3110:b0:993:f12a:39ce with SMTP id 16-20020a170906311000b00993f12a39cemr1222742ejx.15.1690860841804; Mon, 31 Jul 2023 20:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690860841; cv=none; d=google.com; s=arc-20160816; b=gSCrR0wwfqxd9akhqfAxEfryvYEjEQE1GSPcm00BhKrdA23+Jyy/x4NXqcLXz3Lm4J 23NrNYYunl+wq3Y5HkOdoKcjxeG51KwpXrWkuWIHPCHyaFZ6X/mqqqSuye7NvZsT/CGD lAfAMIDaPBz9C5JYa4IPEl9xHAPUOWlcojco2pFl6aHWJ34uRQzJ6stMx/rfIZdMedNU o4jlJWrgRga3C0yLlV+/OKx7Lo8WOd6vMIr7L3SiAA+aqj64ZP4esV/E57+RXNPqlUb0 W5lF+KDArW/8m7SgRJ3/kxZyOJ6Xgb78zXS+60PljTofrHgbhusVy/IVTNBQRm7FcL/C psfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=/FdIuw73FZC1fD2RV3FKNZHhrrWA6qcJxlD+7TE/eHc=; fh=uzQ2njGvRnNicAzoECU0n2pvDAEB0craVlwUtEtLFVc=; b=Rtw/A3Bc3NHbhSQSbU6SYJFFVdlHxU8uSSK4TXRbXXr5pji1S0OMwInJJPX++TIlWN ne/9GweB4ndgpdvPPRNPxafhAhwzRFaFQ5fuUv4LAtMmGN0FEIxz21hhUpCGNYQL7NeJ ScLIuoRAfczlfIjoRWO+Co3gplzflpAha5dcBMPbfNnLmQIJj8bYPe6vBX5a2z1w48u8 kzwtSmSH3WRhCK/wszlpNS3mPPoorOOoUIMMi25luWKS2L0V6oJUwysWnVpaXYQJakpL GTOS96kqaaJ+aFj59oAOGSHN3C+2OoV3W1yxXNz+9aMbNQvaehSL4k+PdbHDAj4xyVAF uabw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a17090686cd00b0099bd4f6106esi7632587ejy.105.2023.07.31.20.33.36; Mon, 31 Jul 2023 20:34:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230447AbjHAC5S (ORCPT + 99 others); Mon, 31 Jul 2023 22:57:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbjHAC5Q (ORCPT ); Mon, 31 Jul 2023 22:57:16 -0400 Received: from out28-197.mail.aliyun.com (out28-197.mail.aliyun.com [115.124.28.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26A6A114 for ; Mon, 31 Jul 2023 19:57:13 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.09616855|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.0129007-0.000684149-0.986415;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047202;MF=sunran001@208suo.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.U5ISByU_1690858625; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5ISByU_1690858625) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 10:57:07 +0800 From: Ran Sun To: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amd/pm: Clean up errors in vega12_hwmgr.c Date: Tue, 1 Aug 2023 02:57:03 +0000 Message-Id: <20230801025703.4979-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Fix the following errors reported by checkpatch: ERROR: need consistent spacing around '/' (ctx:WxV) ERROR: code indent should use tabs where possible Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c index 1937be1cf5b4..4bd573d815ff 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c @@ -1623,13 +1623,13 @@ static int vega12_notify_smc_display_config_after_ps_adjustment( if (data->smu_features[GNLD_DPM_DCEFCLK].supported) { clock_req.clock_type = amd_pp_dcef_clock; - clock_req.clock_freq_in_khz = min_clocks.dcefClock/10; + clock_req.clock_freq_in_khz = min_clocks.dcefClock / 10; if (!vega12_display_clock_voltage_request(hwmgr, &clock_req)) { if (data->smu_features[GNLD_DS_DCEFCLK].supported) PP_ASSERT_WITH_CODE( !smum_send_msg_to_smc_with_parameter( hwmgr, PPSMC_MSG_SetMinDeepSleepDcefclk, - min_clocks.dcefClockInSR /100, + min_clocks.dcefClockInSR / 100, NULL), "Attempt to set divider for DCEFCLK Failed!", return -1); @@ -2354,8 +2354,8 @@ static int vega12_apply_clocks_adjust_rules(struct pp_hwmgr *hwmgr) uint32_t i, latency; disable_mclk_switching = ((1 < hwmgr->display_config->num_display) && - !hwmgr->display_config->multi_monitor_in_sync) || - vblank_too_short; + !hwmgr->display_config->multi_monitor_in_sync) || + vblank_too_short; latency = hwmgr->display_config->dce_tolerable_mclk_in_active_latency; /* gfxclk */ @@ -2522,7 +2522,7 @@ static int vega12_set_uclk_to_highest_dpm_level(struct pp_hwmgr *hwmgr, dpm_table->dpm_state.hard_min_level = dpm_table->dpm_levels[dpm_table->count - 1].value; PP_ASSERT_WITH_CODE(!(ret = smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_SetHardMinByFreq, - (PPCLK_UCLK << 16 ) | dpm_table->dpm_state.hard_min_level, + (PPCLK_UCLK << 16) | dpm_table->dpm_state.hard_min_level, NULL)), "[SetUclkToHightestDpmLevel] Set hard min uclk failed!", return ret); -- 2.17.1