[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191211190735.GA5609@ubuntu-m2-xlarge-x86>
Date: Wed, 11 Dec 2019 12:07:35 -0700
From: Nathan Chancellor <natechancellor@...il.com>
To: Robin Murphy <robin.murphy@....com>
Cc: joro@...tes.org, hch@....de, iommu@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org, stephan@...hold.net,
nsaenzjulienne@...e.de, arnd@...db.de
Subject: Re: [PATCH v2] iommu/dma: Rationalise types for DMA masks
On Wed, Dec 11, 2019 at 06:33:26PM +0000, Robin Murphy wrote:
> Since iommu_dma_alloc_iova() combines incoming masks with the u64 bus
> limit, it makes more sense to pass them around in their native u64
> rather than converting to dma_addr_t early. Do that, and resolve the
> remaining type discrepancy against the domain geometry with a cheeky
> cast to keep things simple.
>
> Signed-off-by: Robin Murphy <robin.murphy@....com>
Tested-by: Nathan Chancellor <natechancellor@...il.com> # build
Powered by blists - more mailing lists