From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Hogan via iommu Subject: Re: [PATCH 11/13] mips, unicore32: swiotlb doesn't need sg->dma_length Date: Wed, 2 May 2018 23:20:18 +0100 Message-ID: <20180502222017.GC20766@jamesdev> References: <20180425051539.1989-1-hch@lst.de> <20180425051539.1989-12-hch@lst.de> Reply-To: James Hogan Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3302778552088347097==" Return-path: In-Reply-To: <20180425051539.1989-12-hch-jcswGhMUV9g@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Christoph Hellwig Cc: linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org, sstabellini-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, Konrad Rzeszutek Wilk , linux-pci-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, sparclinux-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: iommu@lists.linux-foundation.org --===============3302778552088347097== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Izn7cH1Com+I3R9J" Content-Disposition: inline --Izn7cH1Com+I3R9J Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Wed, Apr 25, 2018 at 07:15:37AM +0200, Christoph Hellwig wrote: > Only mips and unicore32 select CONFIG_NEED_SG_DMA_LENGTH when building > swiotlb. swiotlb itself never merges segements and doesn't accesses the > dma_length field directly, so drop the dependency. Is that at odds with Documentation/DMA-API-HOWTO.txt, which seems to suggest arch ports should enable it for IOMMUs? Cheers James --Izn7cH1Com+I3R9J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQS7lRNBWUYtqfDOVL41zuSGKxAj8gUCWuo5nwAKCRA1zuSGKxAj 8toFAQDILXOi2KhP1yoO3zabIiof3I/tmRomgzUgGA3ESVm5lgEA4elhmn7zDXhX YG33reqJ7xyPenaOF8AX63cB5eqjOQ8= =UDV2 -----END PGP SIGNATURE----- --Izn7cH1Com+I3R9J-- --===============3302778552088347097== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3302778552088347097==--