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 22:25:58 +0000 (18:25 -0400)
commite356d321d0240663a09b139fa3658ddbca163e27
tree3ecfdb30a8991e5da602036110365d9faf23c218
parentf0d576f840153392d04b2d52cf3adab8f62e8cb6
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