Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3241209rwb; Mon, 7 Aug 2023 10:12:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/NlfZBuCkyJoegPFTbPCVY6z5Goe+gRM+CH89l6U4IRyJ3oIK6TkWUiXvj2cAKR61N33V X-Received: by 2002:a05:6a00:130f:b0:66d:514c:cb33 with SMTP id j15-20020a056a00130f00b0066d514ccb33mr9330701pfu.6.1691428354147; Mon, 07 Aug 2023 10:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691428354; cv=none; d=google.com; s=arc-20160816; b=GIclP+Wuq5s3DayyuVMgHcjLiPeNr+5lOFdpYpaYYInOnIWJ5jjB8e+vpYAmLCQclS wYNZ7uLpMoK4TmojfN0lI4/mdkmb+CoGPbGJi2h16rcHINsdVIC1wtnnrbPGURnWMxpB QyZuLGRA17EWM+vk5gpQJuU0z/bt2VKgqoL0LLf5G/vgpRYedWbaKj3/WvN0CwofmQjn 1pqZ/fWfq281InCZASbkR9uT+SiJIP3KH1Sq4wN0U1fCldPGqfIOXlntiSuiR/32xn2z 5A+skZIYk40njGE/HY5j4p/i31jXgdRImt3jPyzuWIZDfsJvWa1jPjKFsICg1MVex4Fy AXxg== 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=GS+s5QA+7fmn3p9NicYuopwCAnPqna71fQArihZ77Ho=; fh=t+hei0m6FWvWE3h8ROlSj5pw/xTY3yBXufxuldTsP1A=; b=L6HGdn74hIVEmTBnAT5WcIVX5tspnP066oeYKX/w/tWeFJhH+sHKb4I+CUUdOIMJC/ aTrhU4p2zSXoPVTn2bzkFpTK30eV9YBh2TpI6IBS3w4s6nQcxccGX0tDEsHVaU3Ubvmg teKBhjfMvGtqjcW+a5vTfc24H0HZwc/kfPdjbuHKZUPfg0ELDOBLrOH2900CK+HlJn9r 9beLzmqpE97w+5vB/k4UKkFtiCohlbuK88tD/7lHvhUEBc10AxBV7pgZIrd4sGpn/LAg J6FX/D+won3w3a+Fvp+AHa5T9TchZkm5+MrV5Mez+POByWbicOboX5Hf3Rm9rAWVrAWT tyRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IlOvTRmv; 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 o1-20020a056a0015c100b00661759efb4esi6087457pfu.229.2023.08.07.10.12.20; Mon, 07 Aug 2023 10:12:34 -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=IlOvTRmv; 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 S230168AbjHGQds (ORCPT + 99 others); Mon, 7 Aug 2023 12:33:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbjHGQdp (ORCPT ); Mon, 7 Aug 2023 12:33:45 -0400 Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 823A1172B for ; Mon, 7 Aug 2023 09:33:39 -0700 (PDT) Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-1bfafe8a425so2265942fac.3 for ; Mon, 07 Aug 2023 09:33:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691426019; x=1692030819; 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=GS+s5QA+7fmn3p9NicYuopwCAnPqna71fQArihZ77Ho=; b=IlOvTRmvh6IFmi2KYgc6P7/WQhjjiI803ANoTJS/TMU5RE0REjCmC26D5/ucnqh/KV VYFo9cfL4bdnTXtAjtg4sbtOJbHLzJnKv3e/bAIuNYhqqlHVrd8PUPpohDfB/3KbHtuO GsCYAUrwdAyii6Q4bUqufJZek12biEoQJj7KQyGE5YeK/d9bHyAkQOM7tmxjyGxUF41s sC4h2ProWpEMXieZv3bOOujlt+eKSiolxbSpg5tV708kBGRVfoYQiWwXszDn+6RsMaey ftMtRAAZ/VZaUNgOWmvWfDNHDZ4Na9j9y1RkNsgDcyGXlzQFGqhO9o7T/FFHn1f3gA5E eMqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691426019; x=1692030819; 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=GS+s5QA+7fmn3p9NicYuopwCAnPqna71fQArihZ77Ho=; b=ePECM0IH/kMQbfZXfiofTLoRSvbnLhWda1vVggeLbVu13BlSXEcYoup+UsmAfjPPzR IXoo03ixmc9cgfelM3SKzm0yeJu/ble829djxRLqoNFNV3uV2uiH3CpvSuPrQqcb/PVS bF6MFSnqU9jFuzEQ0t1N1KL90NbWoKFTPLx/ID4iaWyX4BzZu/ZzIhvtmQJVQ/dPTAds k7Wkw/KfmzlYHYjh6vzMMULpxFXiMECYRRiHDMU8wWQd/3fkuow36z4rkLE68NYuuH6J 64iPcTROrCNHjdq2IK1b6gv3qZHxKGfqhWqiBgzkrR53RWEygr1isc7msuS0ZnwKs+IK azgg== X-Gm-Message-State: AOJu0YyjB6cjCBqa86fhBeem+ArEw5QFZDntsjmhwgsVabEuHdbTOeP5 HYtJm+cOjAa2uwXdUHSvKnfPcmVPuLPL7L9Wecw= X-Received: by 2002:a05:6870:4153:b0:1bb:8162:dfcc with SMTP id r19-20020a056870415300b001bb8162dfccmr10564902oad.11.1691426017331; Mon, 07 Aug 2023 09:33:37 -0700 (PDT) MIME-Version: 1.0 References: <20230801060937.6178-1-sunran001@208suo.com> In-Reply-To: <20230801060937.6178-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 12:33:26 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/pm: Clean up errors in vega12_baco.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,UPPERCASE_50_75 autolearn=no 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 2:09=E2=80=AFAM Ran Sun wrote= : > > Fix the following errors reported by checkpatch: > > ERROR: that open brace { should be on the previous line > > Signed-off-by: Ran Sun > --- > drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_baco.c | 12 ++++-------- > 1 file changed, 4 insertions(+), 8 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_baco.c b/drive= rs/gpu/drm/amd/pm/powerplay/hwmgr/vega12_baco.c > index bc53cce4f32d..32cc8de296e4 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_baco.c > +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_baco.c > @@ -29,16 +29,14 @@ > #include "vega12_ppsmc.h" > #include "vega12_baco.h" > > -static const struct soc15_baco_cmd_entry pre_baco_tbl[] =3D > -{ > +static const struct soc15_baco_cmd_entry pre_baco_tbl[] =3D { > { CMD_READMODIFYWRITE, NBIF_HWID, 0, mmBIF_DOORBELL_CNTL_BASE_IDX= , mmBIF_DOORBELL_CNTL, BIF_DOORBELL_CNTL__DOORBELL_MONITOR_EN_MASK, BIF_DOO= RBELL_CNTL__DOORBELL_MONITOR_EN__SHIFT, 0, 0 }, > { CMD_WRITE, NBIF_HWID, 0, mmBIF_FB_EN_BASE_IDX, mmBIF_FB_EN, 0, = 0, 0, 0 }, > { CMD_READMODIFYWRITE, NBIF_HWID, 0, mmRCC_BACO_CNTL_MISC_BASE_ID= X, mmBACO_CNTL, BACO_CNTL__BACO_DSTATE_BYPASS_MASK, BACO_CNTL__BACO_DSTATE_= BYPASS__SHIFT, 0, 1 }, > { CMD_READMODIFYWRITE, NBIF_HWID, 0, mmRCC_BACO_CNTL_MISC_BASE_ID= X, mmBACO_CNTL, BACO_CNTL__BACO_RST_INTR_MASK_MASK, BACO_CNTL__BACO_RST_INT= R_MASK__SHIFT, 0, 1 } > }; > > -static const struct soc15_baco_cmd_entry enter_baco_tbl[] =3D > -{ > +static const struct soc15_baco_cmd_entry enter_baco_tbl[] =3D { > { CMD_WAITFOR, THM_HWID, 0, mmTHM_BACO_CNTL_BASE_IDX, mmTHM_BACO_= CNTL, THM_BACO_CNTL__SOC_DOMAIN_IDLE_MASK, THM_BACO_CNTL__SOC_DOMAIN_IDLE__= SHIFT, 0xffffffff, 0x80000000 }, > { CMD_READMODIFYWRITE, NBIF_HWID, 0, mmRCC_BACO_CNTL_MISC_BASE_ID= X, mmBACO_CNTL, BACO_CNTL__BACO_EN_MASK, BACO_CNTL__BACO_EN__SHIFT, 0, 1 }, > { CMD_READMODIFYWRITE, NBIF_HWID, 0, mmRCC_BACO_CNTL_MISC_BASE_ID= X, mmBACO_CNTL, BACO_CNTL__BACO_BIF_LCLK_SWITCH_MASK, BACO_CNTL__BACO_BIF_L= CLK_SWITCH__SHIFT, 0, 1 }, > @@ -56,8 +54,7 @@ static const struct soc15_baco_cmd_entry enter_baco_tbl= [] =3D > { CMD_WAITFOR, NBIF_HWID, 0, mmRCC_BACO_CNTL_MISC_BASE_IDX, mmBAC= O_CNTL, BACO_CNTL__BACO_MODE_MASK, BACO_CNTL__BACO_MODE__SHIFT, 0xffffffff,= 0x100 } > }; > > -static const struct soc15_baco_cmd_entry exit_baco_tbl[] =3D > -{ > +static const struct soc15_baco_cmd_entry exit_baco_tbl[] =3D { > { CMD_READMODIFYWRITE, NBIF_HWID, 0, mmRCC_BACO_CNTL_MISC_BASE_ID= X, mmBACO_CNTL, BACO_CNTL__BACO_POWER_OFF_MASK, BACO_CNTL__BACO_POWER_OFF__= SHIFT, 0, 0 }, > { CMD_DELAY_MS, 0, 0, 0, 0, 0, 0, 10, 0 }, > { CMD_READMODIFYWRITE, THM_HWID, 0, mmTHM_BACO_CNTL_BASE_IDX, mmT= HM_BACO_CNTL, THM_BACO_CNTL__BACO_SOC_REFCLK_OFF_MASK, THM_BACO_CNTL__BACO_= SOC_REFCLK_OFF__SHIFT, 0, 0 }, > @@ -77,8 +74,7 @@ static const struct soc15_baco_cmd_entry exit_baco_tbl[= ] =3D > { CMD_WAITFOR, NBIF_HWID, 0, mmRCC_BACO_CNTL_MISC_BASE_IDX, mmBAC= O_CNTL, BACO_CNTL__BACO_MODE_MASK, 0, 0xffffffff, 0 } > }; > > -static const struct soc15_baco_cmd_entry clean_baco_tbl[] =3D > -{ > +static const struct soc15_baco_cmd_entry clean_baco_tbl[] =3D { > { CMD_WRITE, NBIF_HWID, 0, mmBIOS_SCRATCH_6_BASE_IDX, mmBIOS_SCRA= TCH_6, 0, 0, 0, 0 }, > { CMD_WRITE, NBIF_HWID, 0, mmBIOS_SCRATCH_7_BASE_IDX, mmBIOS_SCRA= TCH_7, 0, 0, 0, 0 } > }; > -- > 2.17.1 >