diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2022-08-03 14:45:45 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-08-25 13:35:17 -0400 |
commit | 16f0013157bf8c95d10b9360491e3c920f85641e (patch) | |
tree | 2c5adc35d23e5b7a8fea8c9fffb139d008b058d6 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |
parent | 8243df477845cdcf558226bbd24321ee85f82c73 (diff) |
drm/amdkfd: Allocate doorbells only when needed
Only allocate doorbells when the first queue is created on a GPU or the
doorbells need to be mapped into CPU or GPU virtual address space. This
avoids allocating doorbells unnecessarily and can allow more processes
to use KFD on multi-GPU systems.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Kent Russell <kent.Russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
0 files changed, 0 insertions, 0 deletions