drm/amdgpu: cleanup MES11 command submission
authorChristian König <christian.koenig@amd.com>
Fri, 31 May 2024 08:56:00 +0000 (10:56 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Jun 2024 16:48:25 +0000 (12:48 -0400)
commitde3246254156e7f32e5591ad0b3b740ffde8258e
treec363401f3ca02cd3d72e5f6197d647d1fca660d9
parent6a6eda569b055b67a2c5a9dd26a9d867e3c223cc
drm/amdgpu: cleanup MES11 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: eef016ba8986 ("drm/amdgpu/mes11: Use a separate fence per transaction")
Reviewed-by: Mukul Joshi <mukul.joshi@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c