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 62535C5479D for ; Mon, 9 Jan 2023 07:38:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E124B8E0002; Mon, 9 Jan 2023 02:38:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DC1848E0001; Mon, 9 Jan 2023 02:38:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C89068E0002; Mon, 9 Jan 2023 02:38:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id B693A8E0001 for ; Mon, 9 Jan 2023 02:38:02 -0500 (EST) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 795E0120158 for ; Mon, 9 Jan 2023 07:38:02 +0000 (UTC) X-FDA: 80334456804.14.3808EDB Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by imf16.hostedemail.com (Postfix) with ESMTP id 1ACAF180005 for ; Mon, 9 Jan 2023 07:37:58 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf16.hostedemail.com: domain of herbert@gondor.apana.org.au designates 216.24.177.18 as permitted sender) smtp.mailfrom=herbert@gondor.apana.org.au ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673249879; 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=zxwScJRBUIHFDjZqphAZcLPdTwye6P2TqNVQXbMZbxw=; b=cwD6HC+6DSnOU+NJ1NcVYG1P7g1AEvwyHYUPxk1McgFWw2MY1vrGet+xY0PihK/o94F4vQ deWDCQbD/lzzit/6fzogxfHrhe7JQRBleF3OHLptTTYEEdFq97uAEayXGZel96DEXvg6hE YBGKRALJUEL7YMGUIxEcWYHU7XxOF9M= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf16.hostedemail.com: domain of herbert@gondor.apana.org.au designates 216.24.177.18 as permitted sender) smtp.mailfrom=herbert@gondor.apana.org.au ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673249879; a=rsa-sha256; cv=none; b=yS1LeJt2EOweEWGsADQyW8whgdZ97wruSexUCLEZIp8M6OQ9XXCLH9UXtNufPqMJBpDlt0 uS7u8qJGa0HGohM90lYNgYCh0hicQrhaY7Y2tdYWUIxx5bfz0Y1TqIAFk6Ph156r2nuMoa Ngf4g21Fr0f9FVuhBwqyEuJ9pWYRr0U= 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 1pEmir-00FVEa-N9; Mon, 09 Jan 2023 15:37:34 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Mon, 09 Jan 2023 15:37:33 +0800 Date: Mon, 9 Jan 2023 15:37:33 +0800 From: Herbert Xu To: Christophe Leroy 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 , Linux Kernel Mailing List , "David S. Miller" , Linux Crypto Mailing List Subject: Re: [PATCH] crypto: talitos - Remove GFP_DMA and add DMA alignment padding Message-ID: References: <07259416-84bb-c264-dd8a-5bb3706b8c49@csgroup.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <07259416-84bb-c264-dd8a-5bb3706b8c49@csgroup.eu> X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 1ACAF180005 X-Stat-Signature: 71noq986c3ttcexodrwxnanwrfij5brn X-Rspam-User: X-HE-Tag: 1673249878-970482 X-HE-Meta: U2FsdGVkX19hGHgUE3QBLhQ+8DsUFfaURUYeMPaUcuIKgsStdPOxqbXyqmbRYcgqmMCVjbivwIYt9Gpbqfz8urnNCJYW7sqR3D4KjRkY4h2MxlJBV3Ken0ygT40/zGHx++QmLxOYFUekyK8RGMmNTFzwGaZS7nSFUXaBU/fClNzsBpeM8t5PjxQEVer9qRDRK0jDT4DnF2fL8NpCWlBWXxKYTWE+9RCufFjQ+qMml+qOAAhVk9R3f6nLX1jZBU3PXqVuDuU3iHtlYvhQftZgWdlTWo716AxGUsdrfv8SWRNjdu8fjG0PTIfxbXr5pC2KoE+qlOM+oCCjDtC/X1ufRqfB0YN5RLs0NEt0IynZgJTLDpsSFFCm93uaJ5vxiBQDydgnW33hSyFvIyIm694PC8SPThOtFOYuA0Dg5bhCd+YYQ5y4iknRzoWSLHAFEqEd0trOi/4R3uMYccFeEuBb57B5cI1xwA/mQQvSafn07H/E/s/IEU9GfMsBxdsQZoIVRHagQql/9fc9Mbcc9AJWAYlgYxjtP7W5zkNfSLtb/Em5RWKJNJ/fN13g9Xc/EN9QBPMJZH+BbKBriFi1Bw0QvmyfBRbzHG+Hiny+X0y1/iiFS/dpA7ciKng7yR5luY9JjKE5Ay38xtFY9Pcy2l+I6DVu8F8iUL0PWGLXdVWhLqb+GDNSVEA+Gp0tRVsuN+RRObI1Uk9uIo+O7NLm3KwHuRg0Bx4y6ulqIdTiAUCsFLzJgERwVEXTmHZIdhRjIMTlLf40GlRZh1ELuWN/Jg9uGIF7hMsNN5ZuNb9T76a+f6Q= 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 Mon, Jan 09, 2023 at 07:18:27AM +0000, Christophe Leroy wrote: > > Doesn't GFP_DMA guarantees that the provided memory is addressable for > DMA ? Or do we assume that all memory returned by kmalloc can be used > for DMA ? No it does not. Please refer to the DMI API documentation. > kmalloc() already returns not DMA aligned memory, why does it becomes a > problem now ? As it stands kmalloc on arm64 returns DMA-aligned memory. This will soon no longer be the case. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt