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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A01D4C433F5 for ; Thu, 21 Apr 2022 07:20:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385689AbiDUHXW (ORCPT ); Thu, 21 Apr 2022 03:23:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbiDUHXT (ORCPT ); Thu, 21 Apr 2022 03:23:19 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F7741704D for ; Thu, 21 Apr 2022 00:20:31 -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=/mufPbfAEtzUYo8UQOy8hexQf7LldlE9QXVFf6oUjPA=; b=HTNLBs6dkv2NvylAHe4Bh0YUqm uXFaWw4zqDK7jQM7qe0Ct22VA2CWJzxg6tTsQrB1kPkjCsz1rPoiYIuNLEGnymCibZD+DEEe/IYMc ILrrbXwnVBGBWfIck1L57DSQBbkHbXRlhEc0diL/aBdV5pRJepYHJD8qb0lyt6Uug3DKHCbrSSFaV DiQq4Rd+x31FtAOBQZ/Z43Il9+mEErkUsWxwbrqMZ99jKlZDJhldeXZQjNBhzBYPX+c/o/kgmfp3q vyDlw8f72OErfibwPtCp0ttb0FQC+qcPmdZq29oYem4Qz6+/JCcPv4FhXJjqmOHE5Y5D28gqrgBAr 5OUyWYKw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhR70-00Bzjm-64; Thu, 21 Apr 2022 07:20:22 +0000 Date: Thu, 21 Apr 2022 00:20:22 -0700 From: Christoph Hellwig To: Arnd Bergmann Cc: 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Btw, there is another option: Most real systems already require having swiotlb to bounce buffer in some cases. We could simply force bounce buffering in the dma mapping code for too small or not properly aligned transfers and just decrease the dma alignment.