Patch "drm/amdgpu/gmc6: fix DMA mask from 44 to 40 bits" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/amdgpu/gmc6: fix DMA mask from 44 to 40 bits

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amdgpu-gmc6-fix-dma-mask-from-44-to-40-bits.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 791e93cd693af20809c4aa093dae9eb2a0a4bc94
Author: Alex Deucher <alexander.deucher@xxxxxxx>
Date:   Wed Oct 27 13:26:19 2021 -0400

    drm/amdgpu/gmc6: fix DMA mask from 44 to 40 bits
    
    [ Upstream commit 403475be6d8b122c3e6b8a47e075926d7299e5ef ]
    
    The DMA mask on SI parts is 40 bits not 44.  Copy
    paste typo.
    
    Fixes: 244511f386ccb9 ("drm/amdgpu: simplify and cleanup setting the dma mask")
    Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1762
    Acked-by: Christian König <christian.koenig@xxxxxxx>
    Tested-by: Paul Menzel <pmenzel@xxxxxxxxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
index 0e81e03e9b498..0fe714f54cca9 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
@@ -841,12 +841,12 @@ 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;
 	}
-	adev->need_swiotlb = drm_need_swiotlb(44);
+	adev->need_swiotlb = drm_need_swiotlb(40);
 
 	r = gmc_v6_0_init_microcode(adev);
 	if (r) {



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux