[PATCH] drm/amdgpu: enable swiotlb for gmc 10.0
Deucher, Alexander
Alexander.Deucher at amd.com
Fri Jul 22 13:27:23 UTC 2022
[Public]
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
Looks like gmc11 is missing this too. Care to send a patch for that as well?
Alex
________________________________
From: Liu, Aaron <Aaron.Liu at amd.com>
Sent: Thursday, July 21, 2022 10:22 PM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Huang, Ray <Ray.Huang at amd.com>; Liu, Aaron <Aaron.Liu at amd.com>
Subject: [PATCH] drm/amdgpu: enable swiotlb for gmc 10.0
Enable swiotlb for gmc 10.0.
Signed-off-by: Aaron Liu <aaron.liu at amd.com>
---
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
index 6470290aaf7d..a1a98c7fe8e1 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
@@ -967,6 +967,8 @@ static int gmc_v10_0_sw_init(void *handle)
return r;
}
+ adev->need_swiotlb = drm_need_swiotlb(44);
+
r = gmc_v10_0_mc_init(adev);
if (r)
return r;
--
2.37.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20220722/2cdcb31a/attachment-0001.htm>
More information about the amd-gfx
mailing list