Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7099530rwb; Tue, 6 Dec 2022 00:49:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf72Pcr9WmLCnTRtvTFyljazICni7CIlyg2EM6QBHZ12BoROd4VvX3FAMqimqINQDHwlBPzK X-Received: by 2002:a17:902:7604:b0:189:c380:7c8d with SMTP id k4-20020a170902760400b00189c3807c8dmr16553499pll.136.1670316576427; Tue, 06 Dec 2022 00:49:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670316576; cv=none; d=google.com; s=arc-20160816; b=X39q2OqABVZMehyp6mrrF0TtTDzDie1kp8WdjKE02woQ76qRtvHB6bE+cmsvkmDFce jPh5y73zUzqct3413EpFIFavEgJsBHty0RZg5WMJE/dbxe8KR+DYfy/Tw4ba0tVI0HQT iT+w6kcGhSZkeyRAS51+NQU3p+aS7gzyLW6C+8xd8jzky1MHuM+SFNcGs54N162aEdph s5d5WiLHGQ87AcVnnp7S07jmV7WxRYDG/AF8WD2u/p6ccQVIq3aZSbYQL1OiYabR0R8O 6tJqg23/mfIWAd9dC8BrSrex90iNoFNW81H5t92R6JVgPefFCqkrAqu/ijzg+4mF2miQ 13VQ== 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; bh=Ng8Gr7mlYvuYqk0A9+CRebcMJe6K6N3Ian7UooaXvGk=; b=YeNjfQEKiNBTSLyJUJ1dToc6z0DSEWXlzrFECB6PbkypOeJOMlLJ4I4FPCU6oXB+AC rItKHstaids5GREK/9+HiKFxa+jmj3oM4rSQsVFFW7xCsz05zhyhCMncYBvcwMPQPrX8 Fcx6LSnylD0mXqDBaP2CfozIjY4qPF/0dJIh8HWR8MhQxE+tnlEqnKEFKZm+SnaWfIws k4l1p9My4ZBb2PjpWnCd7l24mOOTJQ6wCLBVS8KAsYGKt1XyRlTM3NYS4SbHX7zpNA7y Xebd9QmY/CgeL6D11BM0wx/rWgtRZDbZPkAmAmT4oHYVTv97Zq36i2XQbjvIDn4tzmPK rU0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 n12-20020a170903110c00b00187073496b4si18646424plh.136.2022.12.06.00.49.19; Tue, 06 Dec 2022 00:49:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234245AbiLFIfP (ORCPT + 99 others); Tue, 6 Dec 2022 03:35:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233724AbiLFIex (ORCPT ); Tue, 6 Dec 2022 03:34:53 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1010D6448; Tue, 6 Dec 2022 00:34:37 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1p2TP1-004OOs-Rt; Tue, 06 Dec 2022 16:34:12 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Tue, 06 Dec 2022 16:34:11 +0800 Date: Tue, 6 Dec 2022 16:34:11 +0800 From: Herbert Xu To: Christoph Hellwig Cc: Catalin Marinas , Ard Biesheuvel , Will Deacon , Marc Zyngier , Arnd Bergmann , Greg Kroah-Hartman , Andrew Morton , Linus Torvalds , Linux Memory Management List , Linux ARM , LinuxKernelMailingList@gondor.apana.org.au, linux-kernel@vger.kernel.org, "David S. Miller" , Linux Crypto Mailing List Subject: Re: [PATCH 0/10] crypto: Driver conversions for DMA alignment Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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-crypto@vger.kernel.org On Mon, Dec 05, 2022 at 10:27:58PM -0800, Christoph Hellwig wrote: . > But GFP_DMA never did do anything at all about alignment. It picks > allocations from ZONE_DMA (which on x86 is the first 16MB only). Right. I'm not arguing that they are correct or anything. I'm just saying that they are currently working on arm64 because of the large minimum kmalloc alignment, and they will all be broken afterwards. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt