drm/amdkfd: Optimize out sdma doorbell array in kgd2kfd_shared_resources
authorYong Zhao <Yong.Zhao@amd.com>
Thu, 10 Jan 2019 04:31:14 +0000 (23:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Feb 2019 23:00:50 +0000 (18:00 -0500)
commit234441dd49bcd917d0acd23290d1c49f332a816b
tree1db39283533efb180baa2013baccc7cc2a10690f
parent1f86805adc3432e92e7d87e1ff5da9826ef56eab
drm/amdkfd: Optimize out sdma doorbell array in kgd2kfd_shared_resources

We can directly calculate sdma doorbell indexes in the process doorbell
pages through the doorbell_index structure in amdgpu_device, so no need
to cache them in kgd2kfd_shared_resources any more. This alleviates the
adaptation needs when new SDMA configurations are introduced.

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
drivers/gpu/drm/amd/include/kgd_kfd_interface.h