drm/amd/amdgpu: fix SDMA IRQ client ID <-> req mapping.
authorGavin Wan <Gavin.Wan@amd.com>
Mon, 8 Jul 2024 17:07:04 +0000 (17:07 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Jul 2024 14:12:19 +0000 (10:12 -0400)
commit5d64af40e3a99c3bbe7a66c3cfe23295f8e97130
treeee1107fc02e2f870785842ac8f428186ef26af73
parent89d568ab9037e77964281cb5e916e8aa219802cf
drm/amd/amdgpu: fix SDMA IRQ client ID <-> req mapping.

sdma has 2 instances in SRIOV cpx mode. Odd numbered VFs have
sdma0/sdma1 instances. Even numbered vfs have sdma2/sdma3. For
Even numbered vfs, the sdma2 & sdma3 (irq srouce id
CLIENTID_SDMA2 and CLIENTID_SDMA3) should map to irq seq 0 & 1.

Signed-off-by: Gavin Wan <Gavin.Wan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c