]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Use logical instance ID for SDMA v4_4_2 queue operations
authorJesse Zhang <jesse.zhang@amd.com>
Wed, 11 Jun 2025 07:07:11 +0000 (15:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 17:11:15 +0000 (13:11 -0400)
commitcaade9d69f2e2b76d2e2d47089736a99135b8772
tree6f83eb51b41315ce7ca09095834af6e52addc476
parent09b585592fa481384597c81388733aed4a04dd05
drm/amdgpu: Use logical instance ID for SDMA v4_4_2 queue operations

Simplify SDMA v4_4_2 queue reset and stop operations by:
1. Removing GET_INST(SDMA0) conversion for ring->me
2. Using the logical instance ID (ring->me) directly
3. Maintaining consistent behavior with other SDMA queue operations

This change aligns with the existing queue handling logic where
ring->me already represents the correct instance identifier.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
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>
(cherry picked from commit 3bab282dfe25dff7a55add432f56898505a6cc6c)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c