Re: [PATCH/RFC 01/02] iommu/ipmmu-vmsa: Use 64-bit masks

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

 



Hi Magnus,

Thank you for the patch.

On Monday 18 January 2016 14:48:26 Magnus Damm wrote:
> From: Magnus Damm <damm+renesas@xxxxxxxxxxxxx>
> 
> The IPMMU hardware is able to use page tables from anywhere
> in the memory, so set masks to 64-bits. Required to be able
> to use the IPMMU driver with 4 GiB of memory. Without this
> patch with 4 GiB enabled the following error message is spit
> out on the console during boot:
> 
> ipmmu-vmsa e67b0000.mmu: Cannot accommodate DMA translation
>                          for IOMMU page tables
> 
> Signed-off-by: Magnus Damm <damm+renesas@xxxxxxxxxxxxx>
> ---ù
> 
>  drivers/iommu/ipmmu-vmsa.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> --- 0001/drivers/iommu/ipmmu-vmsa.c
> +++ work/drivers/iommu/ipmmu-vmsa.c	2016-01-18 14:22:22.730513000 +0900
> @@ -1043,6 +1043,8 @@ static int ipmmu_probe(struct platform_d
>  		return -ENOMEM;
>  	}
> 
> +	dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));

Shouldn't you use dma_coerce_mask_and_coherent() instead ? Or is dev->dma_mask 
set somewhere ?

> +
>  	mmu->dev = &pdev->dev;
>  	mmu->num_utlbs = 32;
>  	bitmap_zero(mmu->ctx, IPMMU_CTX_MAX);

-- 
Regards,

Laurent Pinchart




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux