Message ID | 20230612153201.554742-8-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 1C71EC88CB4 for <linux-mm@archiver.kernel.org>; Mon, 12 Jun 2023 15:32:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B29D4900002; Mon, 12 Jun 2023 11:32:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ADA338E0002; Mon, 12 Jun 2023 11:32:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9C8E8900002; Mon, 12 Jun 2023 11:32:42 -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 884028E0002 for <linux-mm@kvack.org>; Mon, 12 Jun 2023 11:32:42 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 681381202BA for <linux-mm@kvack.org>; Mon, 12 Jun 2023 15:32:42 +0000 (UTC) X-FDA: 80894488164.17.B50F2B7 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf17.hostedemail.com (Postfix) with ESMTP id 6824D4002A for <linux-mm@kvack.org>; Mon, 12 Jun 2023 15:32:39 +0000 (UTC) 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) ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686583960; a=rsa-sha256; cv=none; b=U3lGToSjxeHMuFZvNJ5QSXzbybytpTbqKWtNFQOe5qdrQl9/x+VM/6pqVe5NnrQUG0galk 9KNM/Su+D3EovkvRoQzx+7eNZLHFOW79e2xnxWjzFiUPzFMlY2t5btlymuFl1vW7V7XviF 5+4js4eNWZCHQ3YwGYnpHsNZh3qYj7g= 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=1686583960; 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=vZStyUc7LlYOT8NMiiLXCqHwidPc7KVMpmBSzGU4hdI=; b=WgZqm8UBcjDmgqLWU8WqXCTLOxHGwzQcrgDWpt0zw5BxKRfPtbTJBj/GRS05ENRwkDNAZW O4vb36ajjNJmBV8sSsT4EhnvuuN+zsES4sP48akMQWLl5QaS3e/iYN3gIojDy02udcq3bv r+fPF+77sEK9YYcA4cb6VyPkK++P1go= 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 3028862AE3; Mon, 12 Jun 2023 15:32:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A227AC433AE; Mon, 12 Jun 2023 15:32:34 +0000 (UTC) From: Catalin Marinas <catalin.marinas@arm.com> To: Andrew Morton <akpm@linux-foundation.org>, Linus Torvalds <torvalds@linux-foundation.org> Cc: Christoph Hellwig <hch@lst.de>, Robin Murphy <robin.murphy@arm.com>, Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Will Deacon <will@kernel.org>, Marc Zyngier <maz@kernel.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>, Jonathan Cameron <jic23@kernel.org>, Vlastimil Babka <vbabka@suse.cz>, linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 07/17] drivers/usb: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Date: Mon, 12 Jun 2023 16:31:51 +0100 Message-Id: <20230612153201.554742-8-catalin.marinas@arm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230612153201.554742-1-catalin.marinas@arm.com> References: <20230612153201.554742-1-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 6824D4002A X-Stat-Signature: zfk7tidhwt81rjsptwhm86dg7qdd4fws X-HE-Tag: 1686583959-206865 X-HE-Meta: U2FsdGVkX196fGvWY87i24k0aK7L1zQLeSBE+yRSQaZS/X0Hhv2C6447SlB3rEC4iFGVZ30PDO80vPSveDjgnihAsHwv4YCxXR2euhmNY09gKpR79ivayfIyalZKVktgl4nv5EB6gn6HCAKYbhB8ePD5EFhJHnEw6KLcOTDlLzSbfBAnpmQ8OTwU4MYsg0UXV+cccMlDYyN05AczHeTmZevJ75Pvuuk75Xd8Wyq2iz4a53URfNCkylmlPe/gdbb/DIanzBUTNZ9YlvVx+pez8Rz8uy39qmW0kIqEL/ZzxAxxj/83un/NTN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bR64cjxlts+K+KCcak3IN+Ds33bMk4qxYbQ53cv5suqvgkmW3FJ8JUyHuqEKn3Dwlh3H+7O8N6GW7uWLX+l9UljHcGFXpP3LoCgGvz2nQDSi7wgkIt9cC+n7aZWH9PK1M1lJx5QFVmZgkebrQbJm7BUt0GRlFO9Coc8dXNrX8rrE1GzR5xzmJOPH0QzjYkLRoXDI3a9Btg== 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/usb/core/buffer.c b/drivers/usb/core/buffer.c index fbb087b728dc..e21d8d106977 100644 --- a/drivers/usb/core/buffer.c +++ b/drivers/usb/core/buffer.c @@ -34,13 +34,13 @@ void __init usb_init_pool_max(void) { /* * The pool_max values must never be smaller than - * ARCH_KMALLOC_MINALIGN. + * ARCH_DMA_MINALIGN. */ - if (ARCH_KMALLOC_MINALIGN <= 32) + if (ARCH_DMA_MINALIGN <= 32) ; /* Original value is okay */ - else if (ARCH_KMALLOC_MINALIGN <= 64) + else if (ARCH_DMA_MINALIGN <= 64) pool_max[0] = 64; - else if (ARCH_KMALLOC_MINALIGN <= 128) + else if (ARCH_DMA_MINALIGN <= 128) pool_max[0] = 0; /* Don't use this pool */ else BUILD_BUG(); /* We don't allow this */