提交 680e942e 编写于 作者: A Alex Deucher 提交者: Zheng Zengkai

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

stable inclusion
from stable-5.10.80
commit ae1f588ca1b0c9e2f82c14479e408759a786f701
bugzilla: 185821 https://gitee.com/openeuler/kernel/issues/I4L7CG

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ae1f588ca1b0c9e2f82c14479e408759a786f701

--------------------------------

[ Upstream commit 403475be ]

The DMA mask on SI parts is 40 bits not 44.  Copy
paste typo.

Fixes: 244511f3 ("drm/amdgpu: simplify and cleanup setting the dma mask")
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1762Acked-by: NChristian König <christian.koenig@amd.com>
Tested-by: NPaul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Reviewed-by: NWeilong Chen <chenweilong@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 33fa0ec7
...@@ -842,12 +842,12 @@ static int gmc_v6_0_sw_init(void *handle) ...@@ -842,12 +842,12 @@ static int gmc_v6_0_sw_init(void *handle)
adev->gmc.mc_mask = 0xffffffffffULL; 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) { if (r) {
dev_warn(adev->dev, "No suitable DMA available.\n"); dev_warn(adev->dev, "No suitable DMA available.\n");
return r; return r;
} }
adev->need_swiotlb = drm_need_swiotlb(44); adev->need_swiotlb = drm_need_swiotlb(40);
r = gmc_v6_0_init_microcode(adev); r = gmc_v6_0_init_microcode(adev);
if (r) { if (r) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册