drm/amdgpu: cleanup MES12 command submission
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 3 Jun 2024 20:54:18 +0000 (16:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Jun 2024 16:49:59 +0000 (12:49 -0400)
commitfffe347e14789c37d91aca47e9a25dca831b7e5a
tree2d78e41498b6b870d215c32f14122f8019b15093
parent3af2c80ae2f5152ac7a3d27f7c35c038ace9e644
drm/amdgpu: cleanup MES12 command submission

The approach of having a separate WB slot for each submission doesn't
really work well and for example breaks GPU reset.

Use a status query packet for the fence update instead since those
should always succeed we can use the fence of the original packet to
signal the state of the operation.

While at it cleanup the coding style.

Fixes: ade887c63394 ("drm/amdgpu/mes12: Use a separate fence per transaction")
Reviewed-by: Mukul Joshi <mukul.joshi@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c