Skip to contentSkip to conversation

drm/amdgpu: Fix physical address mask

PATCH New Alex Deucher 1 participant 1 message Apr 30, 2024

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu: Fix physical address mask

From: David Belanger <[email protected]>

Mask should be 44-bit.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +1 -1
index 3e6676fdc1875..2b7b67916c1dd 100644
@@ -763,7 +763,7 @@ static int gmc_v12_0_sw_init(void *handle)
 	 */
 	adev->gmc.mc_mask = 0xffffffffffffULL; /* 48 bit MC */
 
-	r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(48));
+	r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(44));
 	if (r) {
 		printk(KERN_WARNING "amdgpu: No suitable DMA available.\n");
 		return r;
Signature · 1 line
2.44.0