Skip to contentSkip to conversation

drm/amdgpu: enable swiotlb for gmc 10.0

PATCH In review Aaron Liu 2 participants 2 messages Jul 22, 2022

Subsystems (2)
lore
Share & tools
lore

Aaron Liu

author
#0 lore raw

PATCH 1/1 drm/amdgpu: enable swiotlb for gmc 10.0

Enable swiotlb for gmc 10.0.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +2 -0
index 6470290aaf7d..a1a98c7fe8e1 100644
@@ -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;
Signature · 1 line
2.37.0
maintainer Reviewed-by on v1 1/1
#1 lore raw

[Public]

Looks like gmc11 is missing this too. Care to send a patch for that as well?

Alex

________________________________
From: Liu, Aaron <[email protected]>
Sent: Thursday, July 21, 2022 10:22 PM
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Liu, Aaron <[email protected]>
Subject: [PATCH] drm/amdgpu: enable swiotlb for gmc 10.0

Enable swiotlb for gmc 10.0.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +2 -0
index 6470290aaf7d..a1a98c7fe8e1 100644
@@ -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