Skip to content

Commit 21ff3cc

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amd/pm: Add mem_busy_percent for GCv9.4.3 apu
Expose sysfs entry mem_busy_percent for GC version 9.4.3 APU system Signed-off-by: Asad Kamal <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 202260f commit 21ff3cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2128,7 +2128,9 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
21282128
if (amdgpu_dpm_is_overdrive_supported(adev))
21292129
*states = ATTR_STATE_SUPPORTED;
21302130
} else if (DEVICE_ATTR_IS(mem_busy_percent)) {
2131-
if (adev->flags & AMD_IS_APU || gc_ver == IP_VERSION(9, 0, 1))
2131+
if ((adev->flags & AMD_IS_APU &&
2132+
gc_ver != IP_VERSION(9, 4, 3)) ||
2133+
gc_ver == IP_VERSION(9, 0, 1))
21322134
*states = ATTR_STATE_UNSUPPORTED;
21332135
} else if (DEVICE_ATTR_IS(pcie_bw)) {
21342136
/* PCIe Perf counters won't work on APU nodes */

0 commit comments

Comments
 (0)