drm/amdgpu: fix queue reset issue by mmio
authorJesse Zhang <jesse.zhang@amd.com>
Wed, 4 Sep 2024 09:47:06 +0000 (17:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Sep 2024 21:54:54 +0000 (17:54 -0400)
Initialize the queue type before resetting the queue using mmio.

Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c

index f7d5d4f08a534a749dd2cf0c1f37cbdd3f477103..10b61ff63802cad56b7fca1b3e4c9d56183dcbee 100644 (file)
@@ -832,6 +832,7 @@ int amdgpu_mes_reset_hw_queue_mmio(struct amdgpu_device *adev, int queue_type,
        struct mes_reset_queue_input queue_input;
        int r;
 
+       queue_input.queue_type = queue_type;
        queue_input.use_mmio = true;
        queue_input.me_id = me_id;
        queue_input.pipe_id = pipe_id;