Message ID | 20230518173403.1150549-10-catalin.marinas@arm.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 ACE55C7EE23 for <linux-mm@archiver.kernel.org>; Thu, 18 May 2023 17:34:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4F6D190000F; Thu, 18 May 2023 13:34:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4A6C0900003; Thu, 18 May 2023 13:34:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 36EC190000F; Thu, 18 May 2023 13:34:49 -0400 (EDT) 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 29D61900003 for <linux-mm@kvack.org>; Thu, 18 May 2023 13:34:49 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id E922B1608AB for <linux-mm@kvack.org>; Thu, 18 May 2023 17:34:48 +0000 (UTC) X-FDA: 80804075856.08.D183140 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf10.hostedemail.com (Postfix) with ESMTP id 57C74C0012 for <linux-mm@kvack.org>; Thu, 18 May 2023 17:34:47 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf10.hostedemail.com: domain of cmarinas@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cmarinas@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684431287; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P3GKCRqSal+FoaPUZC73tQFjQIUPiL6KpjJp1J/vlzY=; b=51AuFCaMasWNjQ3r/m3f4dZjZUvxVbHWG/kaeVfsLC4AF91RslAqy6p7rLPoXXFLg7RVT7 F1IkI4BZykwmpBTA2XwNcnX388V826NXxKG0QFrVmLrxsw5VDAxUvxMI2QvqgqVWYe3zKh WcS0vhFXaTBn1uH7bS1jPoYfZUrIErc= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf10.hostedemail.com: domain of cmarinas@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cmarinas@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684431287; a=rsa-sha256; cv=none; b=UOkn4SUUT052yrHfKzd6CXkT9kj7SQjgbiuPKVdvGIYThpPoWW33L3uGU+qroDSLUukFGn GPXc0pPcCJZbFC1QMvjP42PvPOv2zM0F+iR+vV9z0QfSgZETSfnXXyVjeT3CgL3HGVNdKP uZRv3pZ/rFDq+TuFpE8BIPI8Y7tkbHQ= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5524C65159; Thu, 18 May 2023 17:34:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CF81C4339C; Thu, 18 May 2023 17:34:41 +0000 (UTC) From: Catalin Marinas <catalin.marinas@arm.com> To: Linus Torvalds <torvalds@linux-foundation.org>, Arnd Bergmann <arnd@arndb.de>, Christoph Hellwig <hch@lst.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Will Deacon <will@kernel.org>, Marc Zyngier <maz@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Herbert Xu <herbert@gondor.apana.org.au>, Ard Biesheuvel <ardb@kernel.org>, Isaac Manjarres <isaacmanjarres@google.com>, Saravana Kannan <saravanak@google.com>, Alasdair Kergon <agk@redhat.com>, Daniel Vetter <daniel@ffwll.ch>, Joerg Roedel <joro@8bytes.org>, Mark Brown <broonie@kernel.org>, Mike Snitzer <snitzer@kernel.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Robin Murphy <robin.murphy@arm.com>, linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 09/15] drivers/md: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Date: Thu, 18 May 2023 18:33:57 +0100 Message-Id: <20230518173403.1150549-10-catalin.marinas@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230518173403.1150549-1-catalin.marinas@arm.com> References: <20230518173403.1150549-1-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 57C74C0012 X-Stat-Signature: 3p48ukdtdrio8qsnign8gsyf4mpewt9q X-Rspam-User: X-HE-Tag: 1684431287-6643 X-HE-Meta: U2FsdGVkX1/nVzQaxRFL9tVJH3jRf9WQlbpvuqgA/ytlsylspv4f1pz7Kv0lfLmknCq+9WOlJ9/fAgvel7iNOSeeoqed8gHj9l2FECJUIgPs9u5F9Fgok4NvYNb7Ji3Usu2jzjvRMj2RegRDOEy1mI32jdATysY7h57AOovuwrtP3WrHwfVANjngAl3M4/KTjXxenlkX45TOasZmzj9rU+E1MhS8KleHC3iymYgU4PdSK1v/uwQwNAxp7xiv/SLCsHP1M4LihSkInYy+DXOBSVU3WK8wnlnOqVvvcmmTjB4JmqbNIGhiMoJxKt3YipAjVhUSsp3iENL6lxgy83RLfBdjLlon1yk19NN0ua4ggWLGt3B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YNzNCIzucNzWITL1JPpqo+RCigCf3KUqrz/Ta0drEwuxEx/Rw5f8EGLAte/eis+f2JKIcGs1HvdyHbo8gAAo7zO2hBGzmQyo2wzez3eTSCXHQ1tfMPEzzZ9le4hzHpxCgbAuRZ+RblLQ== 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: <linux-mm.kvack.org> |
Series |
mm, dma, arm64: Reduce ARCH_KMALLOC_MINALIGN to 8
|
expand
|
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 8b47b913ee83..ebbd8f7db880 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -3256,7 +3256,7 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv) cc->per_bio_data_size = ti->per_io_data_size = ALIGN(sizeof(struct dm_crypt_io) + cc->dmreq_start + additional_req_size, - ARCH_KMALLOC_MINALIGN); + ARCH_DMA_MINALIGN); ret = mempool_init(&cc->page_pool, BIO_MAX_VECS, crypt_page_alloc, crypt_page_free, cc); if (ret) {
ARCH_DMA_MINALIGN represents the minimum (static) alignment for safe DMA operations while ARCH_KMALLOC_MINALIGN is the minimum kmalloc() objects alignment. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Cc: Alasdair Kergon <agk@redhat.com> Cc: Mike Snitzer <snitzer@kernel.org> --- drivers/md/dm-crypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)