Message ID | 20230524171904.3967031-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 30C44C77B7C for <linux-mm@archiver.kernel.org>; Wed, 24 May 2023 17:19:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C7A3E90000C; Wed, 24 May 2023 13:19:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C29CC900002; Wed, 24 May 2023 13:19:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B190290000C; Wed, 24 May 2023 13:19:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id A2DF9900002 for <linux-mm@kvack.org>; Wed, 24 May 2023 13:19:50 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 7952612093F for <linux-mm@kvack.org>; Wed, 24 May 2023 17:19:50 +0000 (UTC) X-FDA: 80825810940.17.BA29F49 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf25.hostedemail.com (Postfix) with ESMTP id 71A1CA000F for <linux-mm@kvack.org>; Wed, 24 May 2023 17:19:48 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf25.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=1684948788; a=rsa-sha256; cv=none; b=z4vN0P376TFBlJ3oJXoRfX8uu1wgT58NyXCcuv8dfdhilBqzq3ThMkhusH531y1qD178Rh gqvlBuBZBPjg6/1yijAnKTT+KSrmcr8s0oOTpFJABgRpXra8hJYQQdRaWcWcWkLYQjLDJa 4bw4L0e6//aX1JXLK+LZVS8ra7BDHI8= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none); spf=pass (imf25.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=1684948788; 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=BS+YdxQgyofOhX5TQ69UcxP51QVsNaw83woeOYBSdZQ9s+tnhuNSHwHmaQ7dDo2uvY0KaA +rXxLbzZImRYXqyc4fQ4iv/kbPKjwMv2D+ExtGhuJULqjlVhwuGZqgiHK6gAEyfjsmutdO MJD0LgO7/oeupkNq5/KJxeufNkigTuw= 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 8C70263F87; Wed, 24 May 2023 17:19:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 444B1C433A8; Wed, 24 May 2023 17:19:43 +0000 (UTC) From: Catalin Marinas <catalin.marinas@arm.com> To: Linus Torvalds <torvalds@linux-foundation.org>, Christoph Hellwig <hch@lst.de>, Robin Murphy <robin.murphy@arm.com> Cc: Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, 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>, linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 09/15] drivers/md: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Date: Wed, 24 May 2023 18:18:58 +0100 Message-Id: <20230524171904.3967031-10-catalin.marinas@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230524171904.3967031-1-catalin.marinas@arm.com> References: <20230524171904.3967031-1-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 71A1CA000F X-Stat-Signature: 7qn9u1jqabembnhm4uiebbdbrzeu65ip X-Rspam-User: X-HE-Tag: 1684948788-964966 X-HE-Meta: U2FsdGVkX1/s9udOW2nw02ipt8Ou2Xfnaa+osRrXgccmYsyBWYQJ+55O1xO4dWbBb5NQUs4/x01SKSd6YmSn0N9vX0aaAnBqw1XtYrIjy7lQhhzf/xAj9rJCpZ8spEHiU1ifRhg5UR3RSn2HDC/HxAwMR+HvQkgGMbL6yB9U+M2kTJpRDkK11l3qwH6lUTuJhV29dEG9eZCBNMMNmyp+udQEl30zh81TBkjFqcUooDv9hWtMqSJKQW6xz6k5WdRFV1X3HsvbyqwukDMBEvuD8Zy44WVhcdcug1g8CFiiu1basZ/5xiU/zKt3eVJPns7RznUVOc8SR7SYx4MoGDpCdO1Bi7dqIGp8rLN7L5seoC6xF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SnD8DTbNP04D3NVSb4zCu1o7L1FKNGMsEMuVjyUTdt19uDbY2hDIHMLWlSbZWQDBv6Re0Gj0DJWgVyZmT6rZlXc9BGTFuhoOL3A2Vzoy1bNlIrDF+idNmvIlT3GGIPSH05uOs9fJ77/q4/7t5Hw== 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
|
Nit: the subject might better read dm-crypt: ... as it's just touching that driver.
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(-)