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