Re: [PATCH 17/20] powerpc/dma-swiotlb: use generic swiotlb_dma_ops
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH 17/20] powerpc/dma-swiotlb: use generic swiotlb_dma_ops
- From: Christoph Hellwig <hch@xxxxxx>
- Date: Wed, 22 Aug 2018 09:04:07 +0200
- Cc: Christoph Hellwig <hch@xxxxxx>, Paul Mackerras <paulus@xxxxxxxxx>, Michael Ellerman <mpe@xxxxxxxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, Robin Murphy <robin.murphy@xxxxxxx>, linuxppc-dev@xxxxxxxxxxxxxxxx, iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx
- In-reply-to: <777010cd04645b55aa4197eddcc880f010f0ef6d.camel@kernel.crashing.org>
- References: <20180730163824.10064-1-hch@lst.de> <20180730163824.10064-18-hch@lst.de> <556a4302d13b1caafb223112c4de43d959146215.camel@kernel.crashing.org> <777010cd04645b55aa4197eddcc880f010f0ef6d.camel@kernel.crashing.org>
- User-agent: Mutt/1.5.17 (2007-11-01)
On Thu, Aug 09, 2018 at 11:57:53AM +1000, Benjamin Herrenschmidt wrote:
> Note: We will still need to implement some custom variant of this
> for our secure VMs ...
>
> Basically we'll need to use the existing bounce bufferring as-is but
> the condition will be different, it won't be whether the address is
> below a certain limit, it will be *always*.
The conditions are in the dma_capable() helper that the architecture
can override (and which powerpc already does override).
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]