Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6995534rwb; Mon, 5 Dec 2022 22:46:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf7hWcQO7bCgGX6ANmiv52T8kqY8V3eUjittzgJzTmMF5s/EpBEkY97B12Njn4ba3FL9vG41 X-Received: by 2002:a17:902:f651:b0:188:50c2:89fb with SMTP id m17-20020a170902f65100b0018850c289fbmr51830488plg.130.1670309181895; Mon, 05 Dec 2022 22:46:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670309181; cv=none; d=google.com; s=arc-20160816; b=CxpZePRJSXVBsyoJFztz5bMiNtmWLziqZXlZRa0Qn3vyoA9y2L+/NbvRbR5mcm0a3C FIIcvSxbo+TCdiqRzf/5wOTirvIuOVsb2P95eSzayWRkq4F1SrZ4y5J3z4239OhVFLuF e/qipkmRGDBmuOSaZ7V22kSTQufIwgPd4ufsAqC0RWkIQ0h0Kpxk4Ul4s2D4nhFgpcFk l/1B2UPrQbNL1R76udBk+GUXOtxOxfWZgsVlqmZEqo27iLiU0bqqI5pOn1T/FTMgCsrb 4JaBY9lfcN1DVp79xzcxzhw9R5Lj7DF1XTBHwKQSH2TZqLpO4mGXGJX9fek7Fu2qSBk6 Wo8Q== 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=zvJHRg8epOGP7B5mR8RnlBGi9TRfSPxBhBQXSLBakps=; b=c4n1+F1GZB8MorgnqKNEtXIkY6UWaJ3nSCesiqqH4ZmCAlGWdNzivNsYghOmr9R/pT LQF9XtTOEVHQA2Mp/7pGNFYqFrXBeG/lFNhhSwASss3wh2wNVIbJXAQUk8wBa2T7aaSM CLuqU+bKhETE5mthZeMmL2JdDYyE/ovgjMxc0tpK6E4nOn3r27mqihTLt3rVnNHq8d2W FdaOWoeV/krwHG3KdhKLby7L8X6sjLzIiRmVWRZeoot5JTAVywJYBoIg7Di+m4HM6QC2 RczxejxIlGD0W08XcDFeK8+EkyUOBafFjuOLFnt2abdXIFDYrT3HoyuRW/2Hvsk/bVah fM7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DOU8MPSo; 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 h11-20020a170902f54b00b00186c3afbd25si12449676plf.349.2022.12.05.22.45.57; Mon, 05 Dec 2022 22:46:21 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DOU8MPSo; 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 S233536AbiLFG2a (ORCPT + 99 others); Tue, 6 Dec 2022 01:28:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbiLFG21 (ORCPT ); Tue, 6 Dec 2022 01:28:27 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B84F92715C; Mon, 5 Dec 2022 22:28:21 -0800 (PST) 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=zvJHRg8epOGP7B5mR8RnlBGi9TRfSPxBhBQXSLBakps=; b=DOU8MPSo4/6Yazfa2uAn8wzXSS eFsmLNzVCEYxo5MoDVzwF2EepzbtjgG3Uj8csdjHne35+YBCYYXFH6WOnvTzHKZQNf25x06nyWsz5 Hy5306ZvwyeXOSQ8GjrtnL/G/5wvYtKutyu17uvfXmKTF5cOCKuv51k2F7qyYJ8CLHj1fWvaDTHkP LN9nyRPZCXa2+qv688B642E7P97BNxw7Jl+rktMfTWym9G8fOII5Y/FoR1mn474mGflPHSrPyKKEw XWsgUkFvndIeYNrKBxJ5bMGsIWXZJOWztZscwkmNzxDeIs+EMZebJsdRko/nTwfiNulIRVsaWOYjE b66gqmfg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2RQs-0026iT-33; Tue, 06 Dec 2022 06:27:58 +0000 Date: Mon, 5 Dec 2022 22:27:58 -0800 From: Christoph Hellwig To: Herbert Xu Cc: Christoph Hellwig , 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-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-crypto@vger.kernel.org On Tue, Dec 06, 2022 at 12:13:52PM +0800, Herbert Xu wrote: > Yes they're clearly bogus. Basically they are saying they want > memory that is aligned sufficiently for DMA. So if Catalin's > patch-set will break this assumption, then all the GFP_DMA allocations > in drivers/crypto will need to be enlarged to take this into > account. 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).