Skip to content

Commit 18537fe

Browse files
committed
drm/amdgpu/pm: enable vcn busy sysfs for additional GC 11.x
Make it visible for the all GC 11.x chips that support it. Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 1b81674 commit 18537fe

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,12 +2315,18 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
23152315
*states = ATTR_STATE_UNSUPPORTED;
23162316
} else if (DEVICE_ATTR_IS(vcn_busy_percent)) {
23172317
if (!(gc_ver == IP_VERSION(10, 3, 1) ||
2318-
gc_ver == IP_VERSION(10, 3, 3) ||
2319-
gc_ver == IP_VERSION(10, 3, 6) ||
2320-
gc_ver == IP_VERSION(10, 3, 7) ||
2321-
gc_ver == IP_VERSION(11, 0, 1) ||
2322-
gc_ver == IP_VERSION(11, 0, 4) ||
2323-
gc_ver == IP_VERSION(11, 5, 0)))
2318+
gc_ver == IP_VERSION(10, 3, 3) ||
2319+
gc_ver == IP_VERSION(10, 3, 6) ||
2320+
gc_ver == IP_VERSION(10, 3, 7) ||
2321+
gc_ver == IP_VERSION(11, 0, 0) ||
2322+
gc_ver == IP_VERSION(11, 0, 1) ||
2323+
gc_ver == IP_VERSION(11, 0, 2) ||
2324+
gc_ver == IP_VERSION(11, 0, 3) ||
2325+
gc_ver == IP_VERSION(11, 0, 4) ||
2326+
gc_ver == IP_VERSION(11, 5, 0) ||
2327+
gc_ver == IP_VERSION(11, 5, 1) ||
2328+
gc_ver == IP_VERSION(11, 5, 2) ||
2329+
gc_ver == IP_VERSION(11, 5, 3)))
23242330
*states = ATTR_STATE_UNSUPPORTED;
23252331
} else if (DEVICE_ATTR_IS(pcie_bw)) {
23262332
/* PCIe Perf counters won't work on APU nodes */

0 commit comments

Comments
 (0)