Commit 56fd1f88 authored by Jack Xiao's avatar Jack Xiao Committed by Alex Deucher

drm/amdgpu/mes11: fix kiq ring ready flag

kiq ring test has overwitten ready flag,
need disable after gfx hw init.
Signed-off-by: default avatarJack Xiao <Jack.Xiao@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 89773b85
...@@ -1326,7 +1326,7 @@ static int mes_v11_0_hw_init(void *handle) ...@@ -1326,7 +1326,7 @@ static int mes_v11_0_hw_init(void *handle)
struct amdgpu_device *adev = (struct amdgpu_device *)handle; struct amdgpu_device *adev = (struct amdgpu_device *)handle;
if (adev->mes.ring.sched.ready) if (adev->mes.ring.sched.ready)
return 0; goto out;
if (!adev->enable_mes_kiq) { if (!adev->enable_mes_kiq) {
if (adev->firmware.load_type == AMDGPU_FW_LOAD_DIRECT) { if (adev->firmware.load_type == AMDGPU_FW_LOAD_DIRECT) {
...@@ -1363,6 +1363,7 @@ static int mes_v11_0_hw_init(void *handle) ...@@ -1363,6 +1363,7 @@ static int mes_v11_0_hw_init(void *handle)
goto failure; goto failure;
} }
out:
/* /*
* Disable KIQ ring usage from the driver once MES is enabled. * Disable KIQ ring usage from the driver once MES is enabled.
* MES uses KIQ ring exclusively so driver cannot access KIQ ring * MES uses KIQ ring exclusively so driver cannot access KIQ ring
......
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