through amdgpu IOCTL AMDGPU_USERQ/AMDGPU_USERQ_OP_MODIFY.
Signed-off-by: James Zhu <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index b1a1b8a10a08..231404bb6799 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
@@ -4406,6 +4406,9 @@ static int gfx_v11_0_compute_mqd_init(struct
amdgpu_device *adev, void *m,
/* set CU mask */
gfx_v11_0_compute_mqd_set_cu_mask(adev, mqd, prop);
+ mqd->compute_perfcount_enable =
+ (prop->cu_flags == AMDGPU_UPDATE_FLAG_PERFCOUNT_ENABLE) ? 1 : 0;
+
return 0;
}
--
2.34.1