Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9840084ybi; Wed, 24 Jul 2019 10:52:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxN14YQ5kWquE5RunHALAahn5A1n5JYe2NyZnp344721F7y1qdtE2I8aEymJiCNdwPPqpqe X-Received: by 2002:a17:902:684:: with SMTP id 4mr87223560plh.138.1563990723600; Wed, 24 Jul 2019 10:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563990723; cv=none; d=google.com; s=arc-20160816; b=Satnaa+NxroP7IOdeIV2/1JLFhGpPcfZhZgA5sepQyoiQj3Gq7T0dHbwrQdA+SIZ3Z sbgchhYmtkwiAApR0vBXhnzJgqU/t91h8RNHVczgb6s70uE1YydMwjCo15PNnXhIzpKo qslnq94GjUh+0hlD0hJQ3BnFDUzrLD4ta4ONpV7zkajM3fssF024s4J67/h8tzemLTJN Lx6BNKOIxw7xt2LePIXN4Z7IJeY/mHZUqOW4ekyEnUCxfpw71q4lSG6+3IOZhK3Uz4tS Je3KpNuGMsYhCVpkdtUg1Ae3gvaUrVNggrFuVM53+Rrt4hUNP4VXatWGwZl8Y068pQTU kGDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=O4N3yTh0F1b/tHcxtZmfluTWEpGThgVswvm8gYFfoM4=; b=jXE6SU7hXy7anwD7o61vhTzpZCSPeM7aCDiz6NCJPQHjkN40i9NMXBF+E71VTvu/T9 2aec7fsnKDVX+CxapwgKqpGZzjxKlqKhZcbHGfKsjqHXy7bTi8+zMt6bYyxkN6VC3t0S VGml2s5vOBoPrNB6a80NHmDeqjHAqyVuSH00kue5Fb5XgYpDvkv6WTeY4Uv93Z4LoFJN L9yysDZIPxt6faqGKlgh9qMLhOGzJUO9H+oKRH88pwSXTFiIU8HEGeM9Iy1Xc0B2ekGo 8vBCy2TmLLfeHPr6DLndJ2qr9hGIeZ0dJfvRm+PFhM3vzxFb0/xUQo6F0z3nbvf/QRFq nbzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x32si13496147pld.252.2019.07.24.10.51.48; Wed, 24 Jul 2019 10:52:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727554AbfGXRXz (ORCPT + 99 others); Wed, 24 Jul 2019 13:23:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:54190 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387421AbfGXRXy (ORCPT ); Wed, 24 Jul 2019 13:23:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1E42DAE2E; Wed, 24 Jul 2019 17:23:53 +0000 (UTC) Message-ID: Subject: Re: [PATCH 2/2] arm: use swiotlb for bounce buffer on LPAE configs From: Nicolas Saenz Julienne To: Christoph Hellwig , Russell King - ARM Linux admin Cc: Vignesh Raghavendra , Konrad Rzeszutek Wilk , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, Roger Quadros Date: Wed, 24 Jul 2019 19:23:50 +0200 In-Reply-To: <20190709142011.24984-3-hch@lst.de> References: <20190709142011.24984-1-hch@lst.de> <20190709142011.24984-3-hch@lst.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-whG6SPAwfjFfvDK3372+" User-Agent: Evolution 3.32.3 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-whG6SPAwfjFfvDK3372+ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2019-07-09 at 07:20 -0700, Christoph Hellwig wrote: > The DMA API requires that 32-bit DMA masks are always supported, but on > arm LPAE configs they do not currently work when memory is present > above 4GB. Wire up the swiotlb code like for all other architectures > to provide the bounce buffering in that case. >=20 > Fixes: 21e07dba9fb11 ("scsi: reduce use of block bounce buffers"). > Reported-by: Roger Quadros > Signed-off-by: Christoph Hellwig > --- Hi Chistoph, Out of curiosity, what is the reason stopping us from using dma-direct/swio= tlb instead of arm_dma_ops altogether? Regards, Nicolas --=-whG6SPAwfjFfvDK3372+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl04lCcACgkQlfZmHno8 x/5jKAgAszLIqjIi52NyfR8TyZ+bPsWKIAQKAn5HBQa6grZi+PtHDVbHAxKTikMQ PgjbRl5aI7uPsbYFuq8R6jr+2mQLXI7gvgHn2x22hh+3+cC+mYWJoORNg7v5VrI9 c2Q4FaZcHLxPLNjPNLsJJHyrM8wLiZ9bMbpKpQ8Fs0UoJmD9fefIDXRIHYQTakeZ ooLgoUnyEje4u1jCI8dbJrDXRxzVwF7CYlY6V5+PG+7GrdP6sqYeNDk1+PAtzUtf EIRenYS6MAHo3skOiC+Egr/DeYEsk72iZzIZpWKm7k0HGX9kSc6+eWXt6lPwyiqq 22EzPtQpZAz/Jim+FmDtgz/5II5T+g== =3iIi -----END PGP SIGNATURE----- --=-whG6SPAwfjFfvDK3372+--