through amdgpu IOCTL AMDGPU_USERQ/AMDGPU_USERQ_OP_MODIFY.
Signed-off-by: James Zhu <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
index eb9725ae1607..faedaa3aa5f9 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
@@ -2240,6 +2240,9 @@ static int gfx_v12_1_compute_mqd_init(struct
amdgpu_device *adev, void *m,
mqd->cp_hqd_active = prop->hqd_active;
+ mqd->compute_perfcount_enable =
+ (prop->cu_flags == AMDGPU_UPDATE_FLAG_PERFCOUNT_ENABLE) ? 1 : 0;
+
return 0;
}
--
2.34.1