This commit sets GFX12.1 mqd->compute_perfcount_enable from a given amdgpu_mqd_prop
Signed-off-by: Zhu Lingshan <[email protected]> Reviewed-by: Benjamin Welton <[email protected]> --- drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c index b19a4956c222..b1caf97f4166 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c @@ -2170,6 +2170,7 @@ static int gfx_v12_1_compute_mqd_init(struct amdgpu_device *adev, void *m, mqd->header = 0xC0310800; mqd->compute_pipelinestat_enable = 0x00000001; + mqd->compute_perfcount_enable = prop->perfcount_enable; mqd->compute_static_thread_mgmt_se0 = 0xffffffff; mqd->compute_static_thread_mgmt_se1 = 0xffffffff; mqd->compute_static_thread_mgmt_se2 = 0xffffffff; -- 2.53.0
