Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3322066rwb; Mon, 7 Aug 2023 11:31:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHypcT3SFBJFPzIDXu+ZkrA40niWEcHdOEgO7zJPL96Fr2Gi1Ikjr470RCOBgWKTnPJhGTg X-Received: by 2002:a17:90a:9eb:b0:268:c5c7:f7f1 with SMTP id 98-20020a17090a09eb00b00268c5c7f7f1mr8462529pjo.29.1691433093264; Mon, 07 Aug 2023 11:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691433093; cv=none; d=google.com; s=arc-20160816; b=bKBDb/ivvQ7e0kPLv+faVSFDEcqjBFoihH/i/LXdNUWe2/eU9pTWl3qNRDOGhD2vOo srYNHDxCOHGpkVJhCikZTd91C+0X7wqtyX1knFE7NcafziE0O8KeYyL969gnlH0jrAJ4 jAtwqtG3ORDa5gBjMc857TU4GMBzqtH8f7ft1V0KzS464evMoXBCbMIaNusWRuKc1ZUC X6Kryq4tOYm9c7slaSfp39L/qGp5FJLwu+d9YwibAGRcZFNUJ36tYIfHNge0MXzAjEOy 1IA3ucny7pUa3XwY9CuZ2OxPfQXOi6pj3PqoFwUh0mljQwT3OQZh9QIThSpdhJaGA3ZQ Doxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=CnJspdP6uFshcd/ClPJoHP/OplKyZfFGjP8C4TEvEX0=; fh=t+hei0m6FWvWE3h8ROlSj5pw/xTY3yBXufxuldTsP1A=; b=riw/mqPJCzAZkOv7Ym2mOIdVPQOHVi3GGYBdb5zA3UWT/1NE+8H3X6NRSUHFNz41U9 9MjUZ3GEiBCuLA/NDtmZ/Tl927G2lNImut+Z8vLaAl6vyY2i3s/BulIhDDLvbHfczMz8 HbuYIVHCc3F1ccvBUbwGQZKSdcc6rNOONjV89HtFv3Cl66NLTjPE2/1Gwr0ec0Hxwc66 ykhDGt1izzZ4TDBOTyEEOhzCknn5nnPuye6xqmzPs58xslo3pIPHLIDyzjoN3dBxH8LO OS0T5hQYre9gN/r0sIoL3HJb74/zuZNA2zEAW2Zu4PfNtubcRQsaKQ/xqK10g5VV7Mn4 kv1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=GP5Ajxym; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a170903121000b001b9da7af2c0si6219417plh.214.2023.08.07.11.31.19; Mon, 07 Aug 2023 11:31:33 -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=@gmail.com header.s=20221208 header.b=GP5Ajxym; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231785AbjHGQn1 (ORCPT + 99 others); Mon, 7 Aug 2023 12:43:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231574AbjHGQn0 (ORCPT ); Mon, 7 Aug 2023 12:43:26 -0400 Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F5379D for ; Mon, 7 Aug 2023 09:43:25 -0700 (PDT) Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-1a28de15c8aso3588451fac.2 for ; Mon, 07 Aug 2023 09:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691426604; x=1692031404; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CnJspdP6uFshcd/ClPJoHP/OplKyZfFGjP8C4TEvEX0=; b=GP5AjxymDdX6TPUAaEC8uc/2Xr8X4pwTOPjPy3RXD1RaNBARQFqTHQIVGcYspRpACx Ev8DfZTes/e3EcsFMn9HyCXFwUnC34bi+r9cq/nCavbhdzMZejL/gNFrVmPVPZqTnwU8 cbGg4y3Tes4iI/759ZSwunBiQ0fquE3mqckX0tr2EpsPEXbJ+vs/oSVqJVzn4brjWkO2 odhZMac7HXGvm1DOA3EfrcOria3ksRyz7ZkWdGKWLkqSSgdcOm1ThbzgHuZ81AU/uVcr q01/+M/Vne1T35C25Qfc5pdtMJCnwlZTNgbPO2tsMxKpVN++piqIR69Bo5wp8pzsAYeW zM0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691426604; x=1692031404; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CnJspdP6uFshcd/ClPJoHP/OplKyZfFGjP8C4TEvEX0=; b=PNnBytCB3OgOPwfyjPUzEvZM9e8F3D8uVTEYxrmtm9zAeAewRd9fXy6CeO8QoMP2wY aiGmSoLRs3E9rp1nba7Jjq/VTC+kOdzwbYc64WQgrs8pZUUD0F7k/3UnL7b/CEhIeZGY fYS68DbfMXpF3KrIgj9KVZ1A/V878kBdF/EmeGt2GI9z1jUMEsRFBwfwCI2pWH9EwHSp YB4ofQVHVgMZ3lebg8tqpmNd7NtXNkqxM6DJedQpE0Bwoj+jqmuiP49hnwP00vYMddwH R9fspdnDyGhC5zxyNKIcS9DwbGcFUtmQ9v+PnzesuiutJHYTwm2MHRpH4CHLDnTA11cA 878Q== X-Gm-Message-State: AOJu0YybqYhbxr9KHTC5+PHRhMWgMWLRSuQjoBX/Jg/SpoqMI0Mo8LdW b8yHyy6tYYRhWECrOrUeLloSIvJGTcg/fypimyM= X-Received: by 2002:a05:6871:821:b0:1bb:d808:da72 with SMTP id q33-20020a056871082100b001bbd808da72mr11632433oap.57.1691426604555; Mon, 07 Aug 2023 09:43:24 -0700 (PDT) MIME-Version: 1.0 References: <20230801092821.7495-1-sunran001@208suo.com> In-Reply-To: <20230801092821.7495-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 12:43:13 -0400 Message-ID: Subject: Re: [PATCH] drm/amdgpu/powerplay: Clean up errors in vega20_hwmgr.c To: Ran Sun Cc: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Applied. Thanks! On Tue, Aug 1, 2023 at 5:28=E2=80=AFAM Ran Sun wrote= : > > Fix the following errors reported by checkpatch: > > ERROR: code indent should use tabs where possible > ERROR: space required before the open parenthesis '(' > ERROR: space prohibited before that close parenthesis ')' > > Signed-off-by: Ran Sun > --- > .../gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c b/driv= ers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c > index 4e19ccbdb807..492ca33637d6 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c > +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c > @@ -1402,7 +1402,7 @@ static int vega20_od8_set_settings( > "Failed to export over drive table!", > return ret); > > - switch(index) { > + switch (index) { > case OD8_SETTING_GFXCLK_FMIN: > od_table.GfxclkFmin =3D (uint16_t)value; > break; > @@ -2360,7 +2360,7 @@ static int vega20_notify_smc_display_config_after_p= s_adjustment( > dpm_table->dpm_state.hard_min_level =3D min_clocks.memory= Clock / 100; > PP_ASSERT_WITH_CODE(!(ret =3D smum_send_msg_to_smc_with_p= arameter(hwmgr, > PPSMC_MSG_SetHardMinByFreq, > - (PPCLK_UCLK << 16 ) | dpm_table->dpm_stat= e.hard_min_level, > + (PPCLK_UCLK << 16) | dpm_table->dpm_state= .hard_min_level, > NULL)), > "[SetHardMinFreq] Set hard min uclk faile= d!", > return ret); > @@ -3579,7 +3579,7 @@ static int vega20_set_uclk_to_highest_dpm_level(str= uct pp_hwmgr *hwmgr, > dpm_table->dpm_state.hard_min_level =3D dpm_table->dpm_le= vels[dpm_table->count - 1].value; > PP_ASSERT_WITH_CODE(!(ret =3D smum_send_msg_to_smc_with_p= arameter(hwmgr, > PPSMC_MSG_SetHardMinByFreq, > - (PPCLK_UCLK << 16 ) | dpm_table->dpm_stat= e.hard_min_level, > + (PPCLK_UCLK << 16) | dpm_table->dpm_state= .hard_min_level, > NULL)), > "[SetUclkToHightestDpmLevel] Set hard min= uclk failed!", > return ret); > @@ -3605,7 +3605,7 @@ static int vega20_set_fclk_to_highest_dpm_level(str= uct pp_hwmgr *hwmgr) > dpm_table->dpm_state.soft_min_level =3D dpm_table->dpm_le= vels[dpm_table->count - 1].value; > PP_ASSERT_WITH_CODE(!(ret =3D smum_send_msg_to_smc_with_p= arameter(hwmgr, > PPSMC_MSG_SetSoftMinByFreq, > - (PPCLK_FCLK << 16 ) | dpm_table->dpm_stat= e.soft_min_level, > + (PPCLK_FCLK << 16) | dpm_table->dpm_state= .soft_min_level, > NULL)), > "[SetFclkToHightestDpmLevel] Set soft min= fclk failed!", > return ret); > @@ -3727,8 +3727,8 @@ static int vega20_apply_clocks_adjust_rules(struct = pp_hwmgr *hwmgr) > uint32_t i, latency; > > disable_mclk_switching =3D ((1 < hwmgr->display_config->num_displ= ay) && > - !hwmgr->display_config->multi_monitor_in_sync= ) || > - vblank_too_short; > + !hwmgr->display_config->multi_monitor_in_= sync) || > + vblank_too_short; > latency =3D hwmgr->display_config->dce_tolerable_mclk_in_active_l= atency; > > /* gfxclk */ > -- > 2.17.1 >