Skip to content

Commit a8b1e86

Browse files
Yang Wangalexdeucher
authored andcommitted
drm/amd/pm: fix hwmon node of power1_label create issue
it will cause hwmon node of power1_label is not created. v2: the hwmon node of "power1_label" is always needed for all ASICs. and the patch will remove ASIC type check for "power1_label". Fixes: ae07970 ("drm/amd/pm: add support for hwmon control of slow and fast PPT limit on vangogh") Signed-off-by: Yang Wang <[email protected]> Reviewed-by: Kenneth Feng <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent ad78777 commit a8b1e86

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/amd/pm/amdgpu_pm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3462,8 +3462,7 @@ static umode_t hwmon_attributes_visible(struct kobject *kobj,
34623462
attr == &sensor_dev_attr_power2_cap_min.dev_attr.attr ||
34633463
attr == &sensor_dev_attr_power2_cap.dev_attr.attr ||
34643464
attr == &sensor_dev_attr_power2_cap_default.dev_attr.attr ||
3465-
attr == &sensor_dev_attr_power2_label.dev_attr.attr ||
3466-
attr == &sensor_dev_attr_power1_label.dev_attr.attr))
3465+
attr == &sensor_dev_attr_power2_label.dev_attr.attr))
34673466
return 0;
34683467

34693468
return effective_mode;

0 commit comments

Comments
 (0)