Commit 745f46b6 authored by Jack Xiao's avatar Jack Xiao Committed by Alex Deucher

drm/amdgpu: enable mes v12 self test

1. fix available compute queue to use
2. enable mes v12 self test
Signed-off-by: default avatarJack Xiao <Jack.Xiao@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6628f776
...@@ -156,7 +156,7 @@ int amdgpu_mes_init(struct amdgpu_device *adev) ...@@ -156,7 +156,7 @@ int amdgpu_mes_init(struct amdgpu_device *adev)
for (i = 0; i < AMDGPU_MES_MAX_COMPUTE_PIPES; i++) { for (i = 0; i < AMDGPU_MES_MAX_COMPUTE_PIPES; i++) {
/* use only 1st MEC pipes */ /* use only 1st MEC pipes */
if (i >= 4) if (i >= adev->gfx.mec.num_pipe_per_mec)
continue; continue;
adev->mes.compute_hqd_mask[i] = 0xc; adev->mes.compute_hqd_mask[i] = 0xc;
} }
......
...@@ -1301,6 +1301,12 @@ static int mes_v12_0_early_init(void *handle) ...@@ -1301,6 +1301,12 @@ static int mes_v12_0_early_init(void *handle)
static int mes_v12_0_late_init(void *handle) static int mes_v12_0_late_init(void *handle)
{ {
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
/* it's only intended for use in mes_self_test case, not for s0ix and reset */
if (!amdgpu_in_reset(adev) && !adev->in_s0ix && !adev->in_suspend)
amdgpu_mes_self_test(adev);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment