All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/amd/pm: fix hwmon node of power1_label create issue
@ 2022-02-08  7:08 Yang Wang
  2022-02-08 14:44 ` Alex Deucher
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Wang @ 2022-02-08  7:08 UTC (permalink / raw)
  To: amd-gfx; +Cc: xiaomeng.hou, lijo.lazar, Kenneth.feng, Yang Wang

it will cause hwmon node of power1_label is not created.

v2:
the hwmon node of "power1_lable" is always needed for all ASICs.
and the patch will remove ASIC type check for "power1_label".

Fixes: ae07970a06 ("drm/amd/pm: add support for hwmon control of slow and fast PPT limit on vangogh")

Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
---
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
index d68e7132da2c..d6c01c59f32e 100644
--- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
+++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
@@ -3288,7 +3288,7 @@ static umode_t hwmon_attributes_visible(struct kobject *kobj,
 		 attr == &sensor_dev_attr_power2_cap.dev_attr.attr ||
 		 attr == &sensor_dev_attr_power2_cap_default.dev_attr.attr ||
 		 attr == &sensor_dev_attr_power2_label.dev_attr.attr ||
-		 attr == &sensor_dev_attr_power1_label.dev_attr.attr))
+		 attr == &sensor_dev_attr_power2_label.dev_attr.attr))
 		return 0;
 
 	return effective_mode;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] drm/amd/pm: fix hwmon node of power1_label create issue
  2022-02-08  7:08 [PATCH v2] drm/amd/pm: fix hwmon node of power1_label create issue Yang Wang
@ 2022-02-08 14:44 ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2022-02-08 14:44 UTC (permalink / raw)
  To: Yang Wang
  Cc: Lazar, Lijo, Hou, Xiaomeng (Matthew), Kenneth Feng, amd-gfx list

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

On Tue, Feb 8, 2022 at 2:09 AM Yang Wang <KevinYang.Wang@amd.com> wrote:
>
> it will cause hwmon node of power1_label is not created.
>
> v2:
> the hwmon node of "power1_lable" is always needed for all ASICs.
> and the patch will remove ASIC type check for "power1_label".
>
> Fixes: ae07970a06 ("drm/amd/pm: add support for hwmon control of slow and fast PPT limit on vangogh")
>
> Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
> ---
>  drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> index d68e7132da2c..d6c01c59f32e 100644
> --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> @@ -3288,7 +3288,7 @@ static umode_t hwmon_attributes_visible(struct kobject *kobj,
>                  attr == &sensor_dev_attr_power2_cap.dev_attr.attr ||
>                  attr == &sensor_dev_attr_power2_cap_default.dev_attr.attr ||
>                  attr == &sensor_dev_attr_power2_label.dev_attr.attr ||
> -                attr == &sensor_dev_attr_power1_label.dev_attr.attr))
> +                attr == &sensor_dev_attr_power2_label.dev_attr.attr))
>                 return 0;
>
>         return effective_mode;
> --
> 2.25.1
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-08 14:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-08  7:08 [PATCH v2] drm/amd/pm: fix hwmon node of power1_label create issue Yang Wang
2022-02-08 14:44 ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.