Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3315297rwb; Mon, 7 Aug 2023 11:23:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEgKHi5ZmmUQlt9SvhCeYBtSi+jp9hxnslAt0wQPvQW4isBxoeAEBnNvRmz9jgeXdNyq80n X-Received: by 2002:a17:903:11c6:b0:1bb:14e7:4fdf with SMTP id q6-20020a17090311c600b001bb14e74fdfmr12459529plh.22.1691432635544; Mon, 07 Aug 2023 11:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691432635; cv=none; d=google.com; s=arc-20160816; b=LgVLqyMTYzcNLWxhpCjoFWlcxgcSwMn3JbVOPswLWJ0GfA3ZGfyZimwMuMMyb3mvHp crCEjt28kUYT4XxThBKM03Fbkvdod6wjss+RugPQoGf37eH7xibUSamRd2LjXj8AU2Di 0EN2m2QR4+2zAC7DK3b+mLjL+w6+Xp+0aHKb/tYkHJ7f3p48+OjnVnslSS4oYvbmyPzf LBhYufqBsf0DY154ueu6TdgnSFFjUcSZmK24gha3EsP+HPkdmzDsye3whpcepcMTZZJm P7iDFf4n6XBjcjP9Cv/ImGgt8oBAFLZM9SEf42ysejzsklL8qq3MoWjVWwm9zlIDbqub WpZg== 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=Xl2DiaD0s9sQaa1SCOAndOp0tHDVWN37eY0r1ePst1o=; fh=t+hei0m6FWvWE3h8ROlSj5pw/xTY3yBXufxuldTsP1A=; b=b94e52r+uE2oIFhHaaaAU1HKnVg6SGNhN/TIKqVnc/mw4I6CWriEdVyaR2C0e4oRsq cFNcDP9xx/V3OeIbc/bzC8RB4Ic16Arp4raHrXq4DMoHTqKr5Wv17ZOXOYwTF0TglqF/ qv9aj2kWF3GLfq+az2rlu6aOFSnimOtDvBX5iv8bOxhkHvp3SVcshcVBe7720huKQz20 hUuGL5X1I1MV5N0pWn9tCTdn2oiKbpOk2wv5jDIMm1+YIWl9kNGakZScvAqc/AElwlD7 z6RpHaoLNPbIws5TaNGtr5Ut8eR2Hvs0I7Mge94hEjkdA0VG6nKJjojP0AJ1Ur9YeV17 Ez8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=njMVpHsY; 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 v7-20020a170902b7c700b001b8609ddd28si5897675plz.362.2023.08.07.11.23.43; Mon, 07 Aug 2023 11:23:55 -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=njMVpHsY; 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 S230088AbjHGQ1L (ORCPT + 99 others); Mon, 7 Aug 2023 12:27:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjHGQ1K (ORCPT ); Mon, 7 Aug 2023 12:27:10 -0400 Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79589E4E for ; Mon, 7 Aug 2023 09:27:09 -0700 (PDT) Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-56cd753b31cso2436082eaf.1 for ; Mon, 07 Aug 2023 09:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691425629; x=1692030429; 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=Xl2DiaD0s9sQaa1SCOAndOp0tHDVWN37eY0r1ePst1o=; b=njMVpHsYhL2VBL3zZH3RRrgun72OfQOP6X0/aLXBs7VpxEzzeikNKFDV/DhXnUZPNl MwGXg2CUpktyJhfFnHLruDoYJcUkhJtc6q1PWy6RoVTvpx7uMcGOT0D5IxClfxXHGTRw pZvRwx3fUB71Wmm07dOO9Fy+x3bKF3NOjkSZ/20uHbM9TixUA1CFQF22a/lHCQDFCvDa dhEKA1j309oMNL0AfuuhHPtjmkkgr4CVKr2xd2JVxS2aOp/p/Cc6S0LoYSCnAumbhhes TsRz60g/40cyiUrpeggAy/Y1oOBBbYZjyCQf7WPvEhlF1BZ0pgGLS+0zbuJiWKcWWBLa WytA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691425629; x=1692030429; 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=Xl2DiaD0s9sQaa1SCOAndOp0tHDVWN37eY0r1ePst1o=; b=IVBjoYY5wv1+HxFcfBWrNTgRJpZG12NxkmVL4Pdzzyd6R1FhSlTN0ocABQPN4M2DnD rIlqqqUUgQaIMq3M+vjTfZ8XosyoBGG2f0l6QCijFq/eKw3eK9sd37vyno5hzdTNQu/m Y8asfcNjatWt9UuIA3RsEKZJEMzNWfoQxQrkT+6vfMwMsLjcQXg90q8quzDotLwXv4eK BejSWH5DiC9XhBsSQxXkMzoilcBmMIow8hqsT5SaZx0gfi+o7a8rpQFDJv900+VJVq1v 9ZVre1VNaWjvJC11AmoGvTecEsVdpfVefBe8MdopfkIRER9SzrCls4z2LWX1s4nzzkyX vVcw== X-Gm-Message-State: AOJu0YxcEHTdg4VqVRnGuJLRVxS2Awj34bZEmt9CGMqBdyRYVuCH2h6C 5KJoGN51cC78lNjtLqT1zRxQK2Mh2NkFdI0ja0U= X-Received: by 2002:a05:6870:148f:b0:1bb:c946:b80e with SMTP id k15-20020a056870148f00b001bbc946b80emr9673552oab.28.1691425628716; Mon, 07 Aug 2023 09:27:08 -0700 (PDT) MIME-Version: 1.0 References: <20230801030851.5158-1-sunran001@208suo.com> In-Reply-To: <20230801030851.5158-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 12:26:57 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/pm: Clean up errors in smu10_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 Mon, Jul 31, 2023 at 11:09=E2=80=AFPM Ran Sun wro= te: > > Fix the following errors reported by checkpatch: > > ERROR: spaces required around that '=3D' (ctx:VxW) > ERROR: space required after that ',' (ctx:VxV) > > Signed-off-by: Ran Sun > --- > .../gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c b/drive= rs/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c > index 86d6e88c7386..02ba68d7c654 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c > +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c > @@ -430,37 +430,37 @@ static int smu10_apply_state_adjust_rules(struct pp= _hwmgr *hwmgr, > } > > /* temporary hardcoded clock voltage breakdown tables */ > -static const DpmClock_t VddDcfClk[]=3D { > +static const DpmClock_t VddDcfClk[] =3D { > { 300, 2600}, > { 600, 3200}, > { 600, 3600}, > }; > > -static const DpmClock_t VddSocClk[]=3D { > +static const DpmClock_t VddSocClk[] =3D { > { 478, 2600}, > { 722, 3200}, > { 722, 3600}, > }; > > -static const DpmClock_t VddFClk[]=3D { > +static const DpmClock_t VddFClk[] =3D { > { 400, 2600}, > {1200, 3200}, > {1200, 3600}, > }; > > -static const DpmClock_t VddDispClk[]=3D { > +static const DpmClock_t VddDispClk[] =3D { > { 435, 2600}, > { 661, 3200}, > {1086, 3600}, > }; > > -static const DpmClock_t VddDppClk[]=3D { > +static const DpmClock_t VddDppClk[] =3D { > { 435, 2600}, > { 661, 3200}, > { 661, 3600}, > }; > > -static const DpmClock_t VddPhyClk[]=3D { > +static const DpmClock_t VddPhyClk[] =3D { > { 540, 2600}, > { 810, 3200}, > { 810, 3600}, > @@ -1358,7 +1358,7 @@ static int smu10_set_watermarks_for_clocks_ranges(s= truct pp_hwmgr *hwmgr, > struct amdgpu_device *adev =3D hwmgr->adev; > int i; > > - smu_set_watermarks_for_clocks_ranges(table,wm_with_clock_ranges); > + smu_set_watermarks_for_clocks_ranges(table, wm_with_clock_ranges)= ; > > if (adev->apu_flags & AMD_APU_IS_RAVEN2) { > for (i =3D 0; i < NUM_WM_RANGES; i++) > @@ -1461,7 +1461,7 @@ static int smu10_get_power_profile_mode(struct pp_h= wmgr *hwmgr, char *buf) > > phm_get_sysfs_buf(&buf, &size); > > - size +=3D sysfs_emit_at(buf, size, "%s %16s %s %s %s %s\n",title[= 0], > + size +=3D sysfs_emit_at(buf, size, "%s %16s %s %s %s %s\n", title= [0], > title[1], title[2], title[3], title[4], title[5])= ; > > for (i =3D 0; i <=3D PP_SMC_POWER_PROFILE_COMPUTE; i++) > -- > 2.17.1 >