aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLe Ma <[email protected]>2022-02-25 15:47:20 +0800
committerAlex Deucher <[email protected]>2023-06-09 09:43:53 -0400
commit5de6bd6a13f1c717279c870eb8290e466c8f6a80 (patch)
tree40d7a48eb3dc328e8da37bb36fd1ee7ac4a5add0
parent0d81101c190d1835f1bfba85dc3d65b9f9cacd68 (diff)
drm/amdgpu: set mmhub bitmask for multiple AIDs
Like GFXHUB, set MMHUB0 bitmask for each AID. Signed-off-by: Le Ma <[email protected]> Acked-by: Felix Kuehling <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 681bc9d354fe..59be0c0293c4 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -1730,7 +1730,7 @@ static int gmc_v9_0_sw_init(void *handle)
break;
case IP_VERSION(9, 4, 3):
bitmap_set(adev->vmhubs_mask, AMDGPU_GFXHUB(0), adev->gfx.num_xcd);
- bitmap_set(adev->vmhubs_mask, AMDGPU_MMHUB0(0), 1);
+ bitmap_set(adev->vmhubs_mask, AMDGPU_MMHUB0(0), adev->num_aid);
amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48);
break;