Message ID | 20221106220143.2129263-13-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 95347C4332F for <linux-mm@archiver.kernel.org>; Sun, 6 Nov 2022 22:02:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 387118E000E; Sun, 6 Nov 2022 17:02:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 336E18E0001; Sun, 6 Nov 2022 17:02:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 226C88E000E; Sun, 6 Nov 2022 17:02:42 -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 172A88E0001 for <linux-mm@kvack.org>; Sun, 6 Nov 2022 17:02:42 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id C0342A093B for <linux-mm@kvack.org>; Sun, 6 Nov 2022 22:02:40 +0000 (UTC) X-FDA: 80104392480.07.7CA2F8A Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf17.hostedemail.com (Postfix) with ESMTP id 6B85E40002 for <linux-mm@kvack.org>; Sun, 6 Nov 2022 22:02:40 +0000 (UTC) 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 A78D660DF0; Sun, 6 Nov 2022 22:02:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F14A5C43149; Sun, 6 Nov 2022 22:02:34 +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 v3 12/13] drivers/md: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Date: Sun, 6 Nov 2022 22:01:42 +0000 Message-Id: <20221106220143.2129263-13-catalin.marinas@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221106220143.2129263-1-catalin.marinas@arm.com> References: <20221106220143.2129263-1-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1667772160; a=rsa-sha256; cv=none; b=EGPgul39j7JrS0MVmSqC4N95YflLPkm3r5Ch6f7r9PpbELdKvTKqaWxuIq9B87jf8Ls0D3 WzOToF7HDNvgOEbLaZkTJt7cnVjcP0J4IEb3YdT4AYES4sCishiDrsWp4idY3o3p3Rz1P1 yCYG0OptAE57OQRFgemoNbJilXg3igs= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; spf=pass (imf17.hostedemail.com: domain of cmarinas@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cmarinas@kernel.org; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1667772160; 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=pDhz7XEXjwzYmuPQaO3jG7tdtt5Kxl4xIUNvSZj+Ak4=; b=K2KEDPHdXz9wEpM/1as60zSBOVCcdj5wVqBcpu11QHLoDnhPZUL/3Lsi+VYHq6Am1aQ054 XgiiFwcmpHbeJMm752EzTdBKYN/k6FzkHzCmmQaHeR87gTrDleKH5RYjkrAXRIJfgvm4b/ ZZp4dyHSQ8XZQFNrgITXdxlH8h9eyjU= X-Stat-Signature: 49h4hjfnr38fqu4ruo7sgsqyi8zfpp56 X-Rspamd-Queue-Id: 6B85E40002 Authentication-Results: imf17.hostedemail.com; dkim=none; spf=pass (imf17.hostedemail.com: domain of cmarinas@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=cmarinas@kernel.org; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=arm.com (policy=none) X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1667772160-669871 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 159c6806c19b..4f1bd5b348c3 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -3250,7 +3250,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> --- This is somewhat related to the previous crypto patch. The dm_crypt_io structure is supposed to be CRYPTO_MINALIGN-aligned. drivers/md/dm-crypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)