Re: [PATCH] drm/amdgpu: fix dma mask check in gmc_v6_0.c

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

 



On Wed, Feb 20, 2019 at 9:30 AM Deucher, Alexander
<Alexander.Deucher@xxxxxxx> wrote:
>
> Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx>
> ________________________________
> From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> on behalf of Christian König <ckoenig.leichtzumerken@xxxxxxxxx>
> Sent: Wednesday, February 20, 2019 7:47 AM
> To: michael.d.labriola@xxxxxxxxx; amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> Subject: [PATCH] drm/amdgpu: fix dma mask check in gmc_v6_0.c
>
> This got messed up by "drm: change func to better detect wether swiotlb
> is needed".

Shoot, I thought I hunted all those down!  Sorry about that.

-Mike

>
> Signed-off-by: Christian König <christian.koenig@xxxxxxx>
> ---
>  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 9fc3296592fe..98fd9208877f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
> @@ -886,7 +886,7 @@ static int gmc_v6_0_sw_init(void *handle)
>                  pci_set_consistent_dma_mask(adev->pdev, DMA_BIT_MASK(32));
>                  dev_warn(adev->dev, "amdgpu: No coherent DMA available.\n");
>          }
> -       adev->need_swiotlb = drm_get_max_iomem() > ((u64)1 << dma_bits);
> +       adev->need_swiotlb = drm_need_swiotlb(dma_bits);
>
>          r = gmc_v6_0_init_microcode(adev);
>          if (r) {
> --
> 2.17.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx

-- 
Michael D Labriola
21 Rip Van Winkle Cir
Warwick, RI 02886
401-316-9844 (cell)
401-848-8871 (work)
401-234-1306 (home)
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux