]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: enable paging queue doorbell support v4
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 19 Nov 2018 15:36:02 +0000 (10:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Nov 2018 19:04:58 +0000 (14:04 -0500)
commitff7a243bbd479f181146d109dd75af65c64e21e7
tree5f66df00410172850f5b46883013214c664f098d
parent1cec869ba0a3bbde6bf6fbd5ff1daf3df4ac3909
drm/amdgpu: enable paging queue doorbell support v4

Because increase SDMA_DOORBELL_RANGE to add new SDMA doorbell for paging queue will
break SRIOV, instead we can reserve and map two doorbell pages for amdgpu, paging
queues doorbell index use same index as SDMA gfx queues index but on second page.

For Vega20, after we change doorbell layout to increase SDMA doorbell for 8 SDMA RLC
queues later, we could use new doorbell index for paging queue.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c