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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA745C352A1 for ; Tue, 6 Dec 2022 04:14:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CD7E68E0002; Mon, 5 Dec 2022 23:14:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C61E88E0001; Mon, 5 Dec 2022 23:14:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B01648E0002; Mon, 5 Dec 2022 23:14:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 9CC8A8E0001 for ; Mon, 5 Dec 2022 23:14:21 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 647A316040D for ; Tue, 6 Dec 2022 04:14:21 +0000 (UTC) X-FDA: 80210564322.08.448F20B Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by imf18.hostedemail.com (Postfix) with ESMTP id 32D1F1C0009 for ; Tue, 6 Dec 2022 04:14:19 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=none; spf=pass (imf18.hostedemail.com: domain of herbert@gondor.apana.org.au designates 216.24.177.18 as permitted sender) smtp.mailfrom=herbert@gondor.apana.org.au; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1670300061; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qnAfb6eMKlxzEj9qRIknXnZl5OYhlhtSF5uM8C2NjO4=; b=c41n62+KKg0T/3EtjmuMtnZh+GnMQZUHaNmCaEB5VqZShNYPlHq4DOwFz3gGn9DMu745OT p3YPS0koYuuOpw3jyHehpNyXojmZaCVE2Hg1+yx11P8vH5Co5h0YBq8Ov8fC3cqbCdwG5x GTdmIQmARJswtvqKiqC0L6YdsAZr9eo= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=none; spf=pass (imf18.hostedemail.com: domain of herbert@gondor.apana.org.au designates 216.24.177.18 as permitted sender) smtp.mailfrom=herbert@gondor.apana.org.au; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1670300061; a=rsa-sha256; cv=none; b=I5zF96hZV6q5wyKlGJfB5GkxkqStR3mJm+12rRud5NaXvsaMP2+imIHTO+JmiD9/7eiJp1 20unseaLVujxSsFzzicHtDee/n6Z+RtDRNn22OPXrf3RHBagIm+Zg8/DaYxIlh2zVAh5xE AVFfJ7JsujHoiEvtfroGbPifHnGDUE4= 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 1p2PL6-004LDG-Jw; Tue, 06 Dec 2022 12:13:53 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Tue, 06 Dec 2022 12:13:52 +0800 Date: Tue, 6 Dec 2022 12:13:52 +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-Stat-Signature: 95iwgsht3no34tgzhz6p4b85xahhth4a X-Rspam-User: X-Spamd-Result: default: False [-2.37 / 9.00]; BAYES_HAM(-2.17)[88.06%]; R_SPF_ALLOW(-0.20)[+mx]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWELVE(0.00)[15]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; ARC_SIGNED(0.00)[hostedemail.com:s=arc-20220608:i=1]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[apana.org.au]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 32D1F1C0009 X-Rspamd-Server: rspam06 X-HE-Tag: 1670300059-962355 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sun, Dec 04, 2022 at 01:32:08AM -0800, Christoph Hellwig wrote: > On Fri, Dec 02, 2022 at 05:19:43PM +0800, Herbert Xu wrote: > > These are the rest of the driver conversions in order for arm64 > > to safely lower the kmalloc alignment below that required for DMA. > > Btw, drivers/crypto/ has a lot of weird and most likely uses of > GFP_DMA. Can someone look into those while we're doing DMA audits > of the cryto drivers? 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. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt