AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu/gmc6: fix DMA mask
@ 2021-10-27 18:22 Alex Deucher
  2021-10-27 18:23 ` Alex Deucher
  2021-10-28  7:07 ` Christian König
  0 siblings, 2 replies; 7+ messages in thread
From: Alex Deucher @ 2021-10-27 18:22 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher

The DMA mask on SI parts is 40 bits not 44.  Looks like a copy
paste typo.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
index 0e81e03e9b49..a9354cb2d639 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
@@ -841,7 +841,7 @@ static int gmc_v6_0_sw_init(void *handle)
 
 	adev->gmc.mc_mask = 0xffffffffffULL;
 
-	r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(44));
+	r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(40));
 	if (r) {
 		dev_warn(adev->dev, "No suitable DMA available.\n");
 		return r;
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-28 14:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-27 18:22 [PATCH] drm/amdgpu/gmc6: fix DMA mask Alex Deucher
2021-10-27 18:23 ` Alex Deucher
2021-10-27 22:19   ` Paul Menzel
2021-10-28  8:32     ` Paul Menzel
2021-10-28 10:06       ` Paul Menzel
2021-10-28 14:14       ` Alex Deucher
2021-10-28  7:07 ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox