drm/amdgpu: add check before free wb entry
authorJesse Zhang <jesse.zhang@amd.com>
Wed, 24 Apr 2024 04:59:22 +0000 (12:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Apr 2024 21:22:43 +0000 (17:22 -0400)
commit2d10c3dbde073ac005303b313d3e2cb99381eb6f
tree4ef7c4de318302cd8058c543f51d6a96ca7d15ef
parentcd48b97ce7787cf271f56ed4ea2037e1680cb29a
drm/amdgpu: add check before free wb entry

Check if ring is not a mes queue before freeing the wb entry,
because we only allocate a wb entry when it's not a mes queue.

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