mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 07:08:21 -04:00
drm/amdgpu: Add mask for SDMA instances
Add a mask of SDMA instances available for use. On certain ASIC configs, not all SDMA instances are available for software use. v2: Change sdma mask type to uint32_t (Le) Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Le Ma <Le.Ma@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -37,7 +37,7 @@ void aqua_vanjaram_doorbell_index_init(struct amdgpu_device *adev)
|
||||
adev->doorbell_index.userqueue_end = AMDGPU_DOORBELL_LAYOUT1_USERQUEUE_END;
|
||||
|
||||
adev->doorbell_index.sdma_doorbell_range = 20;
|
||||
for (i = 0; i < adev->num_aid * adev->sdma.num_inst_per_aid; i++)
|
||||
for (i = 0; i < adev->sdma.num_instances; i++)
|
||||
adev->doorbell_index.sdma_engine[i] =
|
||||
AMDGPU_DOORBELL_LAYOUT1_sDMA_ENGINE_START +
|
||||
i * (adev->doorbell_index.sdma_doorbell_range >> 1);
|
||||
|
||||
Reference in New Issue
Block a user