From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robin Murphy Subject: Re: [PATCH 08/22] swiotlb: wire up ->dma_supported in swiotlb_dma_ops Date: Wed, 10 Jan 2018 12:16:15 +0000 Message-ID: <7a058876-08fc-7323-7cb3-fe85116e2ea8@arm.com> References: <20180110080932.14157-1-hch@lst.de> <20180110080932.14157-9-hch@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180110080932.14157-9-hch@lst.de> Content-Language: en-GB Sender: linux-ia64-owner@vger.kernel.org To: Christoph Hellwig , iommu@lists.linux-foundation.org Cc: linux-arch@vger.kernel.org, linux-mips@linux-mips.org, Michal Simek , linux-ia64@vger.kernel.org, =?UTF-8?Q?Christian_K=c3=b6nig?= , x86@kernel.org, linux-kernel@vger.kernel.org, Konrad Rzeszutek Wilk , Guan Xuetao , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org List-Id: linux-arch.vger.kernel.org On 10/01/18 08:09, Christoph Hellwig wrote: > To properly reject too small DMA masks based on the addressability of the > bounce buffer. I reckon this is self-evident enough that it should simply be squashed into the previous patch. Robin. > Signed-off-by: Christoph Hellwig > --- > lib/swiotlb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/swiotlb.c b/lib/swiotlb.c > index 0fae2f45c3c0..539fd1099ba9 100644 > --- a/lib/swiotlb.c > +++ b/lib/swiotlb.c > @@ -1128,5 +1128,6 @@ const struct dma_map_ops swiotlb_dma_ops = { > .unmap_sg = swiotlb_unmap_sg_attrs, > .map_page = swiotlb_map_page, > .unmap_page = swiotlb_unmap_page, > + .dma_supported = swiotlb_dma_supported, > }; > #endif /* CONFIG_DMA_DIRECT_OPS */ > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com ([217.140.101.70]:41192 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932329AbeAJMQT (ORCPT ); Wed, 10 Jan 2018 07:16:19 -0500 Subject: Re: [PATCH 08/22] swiotlb: wire up ->dma_supported in swiotlb_dma_ops References: <20180110080932.14157-1-hch@lst.de> <20180110080932.14157-9-hch@lst.de> From: Robin Murphy Message-ID: <7a058876-08fc-7323-7cb3-fe85116e2ea8@arm.com> Date: Wed, 10 Jan 2018 12:16:15 +0000 MIME-Version: 1.0 In-Reply-To: <20180110080932.14157-9-hch@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Christoph Hellwig , iommu@lists.linux-foundation.org Cc: linux-arch@vger.kernel.org, linux-mips@linux-mips.org, Michal Simek , linux-ia64@vger.kernel.org, =?UTF-8?Q?Christian_K=c3=b6nig?= , x86@kernel.org, linux-kernel@vger.kernel.org, Konrad Rzeszutek Wilk , Guan Xuetao , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Message-ID: <20180110121615.zakI0J8K_pyTpO6ZcmaNWhO_PiluYPkc_YVaB3okVlI@z> On 10/01/18 08:09, Christoph Hellwig wrote: > To properly reject too small DMA masks based on the addressability of the > bounce buffer. I reckon this is self-evident enough that it should simply be squashed into the previous patch. Robin. > Signed-off-by: Christoph Hellwig > --- > lib/swiotlb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/swiotlb.c b/lib/swiotlb.c > index 0fae2f45c3c0..539fd1099ba9 100644 > --- a/lib/swiotlb.c > +++ b/lib/swiotlb.c > @@ -1128,5 +1128,6 @@ const struct dma_map_ops swiotlb_dma_ops = { > .unmap_sg = swiotlb_unmap_sg_attrs, > .map_page = swiotlb_map_page, > .unmap_page = swiotlb_unmap_page, > + .dma_supported = swiotlb_dma_supported, > }; > #endif /* CONFIG_DMA_DIRECT_OPS */ >