Skip to content

Commit dc14eb1

Browse files
committed
drm/amdgpu: Add missing power attribute to APU check
Add missing power_average to visible check for power attributes for APUs. Was missed before. Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent f0e7ce1 commit dc14eb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,8 @@ static umode_t hwmon_attributes_visible(struct kobject *kobj,
16861686
effective_mode &= ~S_IWUSR;
16871687

16881688
if ((adev->flags & AMD_IS_APU) &&
1689-
(attr == &sensor_dev_attr_power1_cap_max.dev_attr.attr ||
1689+
(attr == &sensor_dev_attr_power1_average.dev_attr.attr ||
1690+
attr == &sensor_dev_attr_power1_cap_max.dev_attr.attr ||
16901691
attr == &sensor_dev_attr_power1_cap_min.dev_attr.attr||
16911692
attr == &sensor_dev_attr_power1_cap.dev_attr.attr))
16921693
return 0;

0 commit comments

Comments
 (0)