[PATCH] drm/amdgpu/gmc6: fix DMA mask

Alex Deucher alexdeucher at gmail.com
Wed Oct 27 18:23:56 UTC 2021


On Wed, Oct 27, 2021 at 2:22 PM Alex Deucher <alexander.deucher at amd.com> wrote:
>
> The DMA mask on SI parts is 40 bits not 44.  Looks like a copy
> paste typo.
>

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1762

Fixed locally.

Alex

> Signed-off-by: Alex Deucher <alexander.deucher at 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
>


More information about the amd-gfx mailing list