Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp790229pxb; Fri, 22 Apr 2022 11:11:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVlJnjHBlgAZQpR+3NvUJHzWrJJ+SAa3FYxuTMxUZbpBIQZy1Mp7Gg/EZDquIQnLEo/9mu X-Received: by 2002:a17:902:7d81:b0:14f:e18b:2b9e with SMTP id a1-20020a1709027d8100b0014fe18b2b9emr5567813plm.160.1650651087990; Fri, 22 Apr 2022 11:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650651087; cv=none; d=google.com; s=arc-20160816; b=GgaD3RJXEIgofoVpD6pqj2xEAUYwylBE9gRqytAtlMVsenAxNyJYl5lbUt3zqG4Q5m iC2jjOAu0EyPmW6unQEz7rfp2NgAOu0ak4IfrNb+RgCLPoUzd3nHQ/gu1iDkWHQtJbqA N6SFjK4YrFOhzeHSmvfOgQ1gwTh7Qp7ado/DipewEFYZjHGZ5IzXRlQKV/jRAvweHxH5 lRjrPsDvMTMgAnJjV9JLCdBsTtUnkIADch24I+mS4vtZVEIEkTw0UkEguVZtx2ZAfNSk wYsw5VamVBmZG6dQksZ1byhgTHpXhmtROh9AHtKvhqORX6HnewJgdWtznXr3Jjubpbk8 kwiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=bGLPnwqtwaMXucju2wth+tXMofxCzZLSxs/psQlv75I=; b=e3ihE/pP+5SJiDBYjkQoBZCyWoIT5EcDc0jkD8OlUK1FKhp9J4hfq9s57bku9QaUkx AxQxDICXu81htcWmVLP3567gT2J0WqFpvto5VykhdKgy4uXDqkhDl+HxucT1+6MsfQUk 64LognRl0UiNW3OIZKsVBppAT5SsvqjHaS9oNmKl6sSZRSRlsZvpkKZ4LmnEgA8NKu8K mjL1ttLOovE/UJxb9kl1F7jruUXXrc/oc6/2Ikw9shOllxv5jHxbjly3o7VvbyxRMUQP 94yA0i2aT5hFPfNpFKMSfJXCcSQnT4OQmMMQ+fT5EfwT2EAb6QWuzPZZh852tV/EgmyP j52A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g7-20020a6544c7000000b00399621efa3csi8788900pgs.317.2022.04.22.11.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:11:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E3421299D0; Fri, 22 Apr 2022 10:47:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385965AbiDUHlC (ORCPT + 99 others); Thu, 21 Apr 2022 03:41:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385966AbiDUHkr (ORCPT ); Thu, 21 Apr 2022 03:40:47 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 907B91B7AD for ; Thu, 21 Apr 2022 00:37:04 -0700 (PDT) Received: from mail-wm1-f53.google.com ([209.85.128.53]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MLiPA-1nPuWM2jZY-00Hda4 for ; Thu, 21 Apr 2022 09:37:02 +0200 Received: by mail-wm1-f53.google.com with SMTP id l62-20020a1c2541000000b0038e4570af2fso2771692wml.5 for ; Thu, 21 Apr 2022 00:37:02 -0700 (PDT) X-Gm-Message-State: AOAM532NMEu6Zd2deFTMOYOLvZNfVornnIyqk+TBUpUV2o6n+daIv0W4 ayIqs1DFCBM9XGLEFfzA2OZKB94Uv37r4lrWkjA= X-Received: by 2002:a05:600c:4e4a:b0:392:88e1:74a7 with SMTP id e10-20020a05600c4e4a00b0039288e174a7mr7297619wmq.174.1650526622334; Thu, 21 Apr 2022 00:37:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Thu, 21 Apr 2022 09:36:46 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 07/10] crypto: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN To: Christoph Hellwig Cc: Arnd Bergmann , 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" Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:d6W7v/3igwX/zZm34omNjccVPDecVuaklHaUXH1wdujkgAdcT/2 ABiDP1z+AtMpoG3Zl2MTVgp4bCjp8JQ3ASv9XaNTmT5m2Fexs3P0HO9xVWoTC8gLQCtyAyU m5tv7Llu6VWx0Ebyp75DxjaAj9O1DkeHh7dEN6RoDswdX6nfha/fmtuIcAgMYMs6nEJe3U0 pa1tG/WUB2eWQGoQ2UVOA== X-UI-Out-Filterresults: notjunk:1;V03:K0:QkUimz+hco0=:KyCd3bMtxlvq7krKCVuLFZ ubpPcegUrKMnuIOCYZtifZVmNB6dqsQoNa33M6Q221q0vvszH+XRFJCskrv6RnHyVQ142HiLX Glq3k7+XNtYoWFZO+16gGQrPsoA/c+P7Li3AqsZcY7BXQ8j0V2us89V7vy2AKUS3SNjL01CZV ksCg5zRExXnZgpcczkWYXgKIQiuM0rtf+Hu38m9M/bE07GuSwPJvQMA5bf/WQVSVK5mL7WwU8 H8phCtUN2iJYHuWgPOIO6X5NBMyY1Wc7ZMGRd/JfIOTWzwXgvx791YXXdeBns5VQlX4YwwlGa RwPBFbjqJW+ZmNTL4LNt5rGMp80RtL7jCcOOnIOr74xsrxDiy7i3RyEyOETVnurM2RCthtA0s 937hvvBuQ8yJ9ukc5Gt7yOV+7HyB4/vYL2ZqUqPjqDNsb+8lHT1NhI01AeDjTl/Jt49nuAkQu HJkxi6gKX+GvkrfaQ+rCTBJdUrbsoSmrzc3FeO9JQeKqINdqLc6m91ZG7sr1qtAJzDJAJTgDK TEs2zam5iPyZQELZ7LAv2PJCzIzEbJb1R5eFP9leZ3lZlvHEcyl6hleKmhHg/5y1xD2mnpM9c H0IONps0a8WVTr9F4OuvvH4FBBvctifLGObNUdkiH9U5X88S6qRP5BbTPPItZeQkFsVOYx+Py +dDjOUSdwXbqsGQyoLVbIRD0VHZ8QRGxT204WjIvZXIX2XMaW4p/5oiA4aN24OdpuF/FfIC/b UjFXnrjI2zTwNnvxwTU7G3tiktkDvKYe700I8oofu/QRmUtjatrPHiABj05kYEUCxswxs2fvb NB1DERlQuyIKdtsOp4rcEkWOFWtaoFWDB0yMOXY2vdBjSSXjuc= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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 9:20 AM Christoph Hellwig wrote: > > 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. I like the idea because these days we already rely on bounce buffering for sub-page buffers in many iommu based cases for strict isolation purposes, as well as most 64-bit machines that lack an iommu. 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. Arnd