From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD068C4332F for ; Thu, 21 Apr 2022 07:44:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3F53F6B0071; Thu, 21 Apr 2022 03:44:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3A4586B0073; Thu, 21 Apr 2022 03:44:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2449C6B0074; Thu, 21 Apr 2022 03:44:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id 1203F6B0071 for ; Thu, 21 Apr 2022 03:44:26 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id CF8A381773 for ; Thu, 21 Apr 2022 07:44:25 +0000 (UTC) X-FDA: 79380098490.05.33002DF Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf31.hostedemail.com (Postfix) with ESMTP id 62C3F20022 for ; Thu, 21 Apr 2022 07:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=mpSnoa0Ptdj3sZDv+oxGPnwE6ZAfL1X74Yg2ESPwiQc=; b=Dn5qcoG/ZzIAUgk6cTqYbqwdtX Avw7vRdFRJ0mTg0bUsK+CZs3rvNhZwzK05CPovfiRdjzT2IPY5F/xkMFvEi3TxxPzgA0PWndKRaro TDX4TxT49DdA19r1AiPNNaBG+ylWbZ/bp7X1uUVv/y594i53QRs01NtsHlJnbmL4dX0KIa4bSU2D0 J0gw74MLBPQgKovFmvso7KYxr5pAX05QzWEX05BK5JdXXDoudegJ0u7ZQMUKKBBprFGA5hej3Sx93 MG+lEODfk+CkU37d5R+LIHy5X5+weF1rDa4fkmX9IQY1YvT7hlZ2MVyYQQI24eDsxevyBfLsaOgbS ic50dxhA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhRUA-00C8dO-Ci; Thu, 21 Apr 2022 07:44:18 +0000 Date: Thu, 21 Apr 2022 00:44:18 -0700 From: Christoph Hellwig To: Arnd Bergmann Cc: Christoph Hellwig , Ard Biesheuvel , Catalin Marinas , Herbert Xu , Will Deacon , Marc Zyngier , Greg Kroah-Hartman , Andrew Morton , Linus Torvalds , Linux Memory Management List , Linux ARM , Linux Kernel Mailing List , "David S. Miller" Subject: Re: [PATCH 07/10] crypto: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 62C3F20022 X-Stat-Signature: c65bz6kja1iyigum39fdhicat8csdq3y Authentication-Results: imf31.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b="Dn5qcoG/"; spf=none (imf31.hostedemail.com: domain of BATV+75405b57bc5fe52e01f0+6815+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+75405b57bc5fe52e01f0+6815+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none X-Rspam-User: X-HE-Tag: 1650527062-305703 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Apr 21, 2022 at 09:36:46AM +0200, Arnd Bergmann wrote: > Does this work on all 32-bit architectures as well? I see that you added > swiotlb for ARM LPASE systems in 2019, but I don't know if that has any > additional requirements for the other 32-bit architectures that don't > select SWIOTLB today. We'll need to call swiotlb_init for all these cases, but there is no other fundamental requirement. We can probably do with a way smaller buffer if bouncing is only needed for misaligned allocations.