Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp442933pxb; Thu, 21 Apr 2022 03:12:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYMdOPoO/k/tL+FNgB48KoM5uvo3IaTlYUFPJZOT47DtGe7QUp/3xaz7jnT3wQnGEODtHd X-Received: by 2002:a17:907:c0e:b0:6ef:ebfb:1c87 with SMTP id ga14-20020a1709070c0e00b006efebfb1c87mr10179672ejc.266.1650535929867; Thu, 21 Apr 2022 03:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650535929; cv=none; d=google.com; s=arc-20160816; b=J2pH8BS+Ww5bYtQs483brJLwXmCk2/TGQ//qTu/pBPeLfxRDAQtQHY9cl10MShGaaH kXU7yua+Fie3cQmsgo/ZNbqDS4xcAGJFFvPUGrH9A2vQZsZoGxGK+u+Mw96d4ISeB3mg RsLV4uCUKwNDROVVYI6iAPz/K38P/iJxAQnSoJTzCEFSx/tfTXoE92qZHLe9K0hjnvjQ Ap1BA0s4Br5d6XQvve4Z+SBuqXcMIFbxBhY1sdiQ/qv+6sro0negDypVhmezBsmdTCbv 1Bj5edeM1Uu9wJDq3W0g4QzNWwIFOOG0vlLjFjIoRvIx6UHK0ZMcBNi8f8r+pwp394Qv BlQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mpSnoa0Ptdj3sZDv+oxGPnwE6ZAfL1X74Yg2ESPwiQc=; b=RcOEMmquLtQvACou/KKhaJ2EBTtWDmjmhdQKFd5HKogNOhw3sTjdz2uBiGuPjF71fI WSIsM0NSdvkZ/mcW8LQp6IoJn67yQn6WwjBj7Sq54VG+OV+4yHKXfxF+3gGkVfFCZ4p8 fi1woYJYhzIBLz31lFsw3fkU3+gQK+4kh4xZPd6E2ctJ1rpQrZXKxmlvQDEyav+m6kgb eNeFmarvLabtb0bLjnYJTDIVIiCQR7tZ62l6YPVQg8NbexDg1turPtIId1VG5E/k2ODR w0J3mWNlp6X1voug5XY6Ur+8q6ujxo1L3DItlGrGWwUb97n9dfPheRodkQ4B/+Bedq2G KcLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="Dn5qcoG/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020aa7c58b000000b0041d7de91764si3002486edq.385.2022.04.21.03.11.45; Thu, 21 Apr 2022 03:12:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="Dn5qcoG/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379913AbiDUHsz (ORCPT + 99 others); Thu, 21 Apr 2022 03:48:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386464AbiDUHsR (ORCPT ); Thu, 21 Apr 2022 03:48:17 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C8261CB29 for ; Thu, 21 Apr 2022 00:44:25 -0700 (PDT) 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-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.