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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B1AD4C7EE29 for ; Fri, 2 Jun 2023 11:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:CC:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kYacGfPqtqbYMNcmiw82ztZ3NwrRSWs6VPFLUQZiHwE=; b=rc7S6cCr+xhxa3 PFWJEqTwa8rcm+9nn+IcBOmsj4GgfIDB2L4QekXcvAd7c1LEY20wcjr2KeWpIywoBUuEzwvoNSfgj zN7n4FUOEGilqAk/AVp3CEHyvkllWBraSPomqjbJxc8I2qembuBqx5BsxkpSD5Q//sXdhgFsS9xMv VuJd6hU10Y31JBn/tfERQABCnQ0KXNbggPEw6MDGCQ4iHikFT8U2ZIgFGLc+L+l/J/5sEbXayoXiZ /DjI8GFpjxKhpGnPmD9atL8a5ZVR1Mi5OUMsIkgmGCdDSuSTZWnMRbUoDGgs7IvsimOO8plctGO9X Il+qR/e4ycqvpIlBryDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q52p4-006kvm-01; Fri, 02 Jun 2023 11:19:58 +0000 Received: from frasgout.his.huawei.com ([185.176.79.56]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q52oz-006ktq-1N for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2023 11:19:55 +0000 Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QXgWX33svz6J6qG; Fri, 2 Jun 2023 19:19:36 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 2 Jun 2023 12:19:40 +0100 Date: Fri, 2 Jun 2023 12:19:39 +0100 From: Jonathan Cameron To: Catalin Marinas CC: Linus Torvalds , Christoph Hellwig , Robin Murphy , Arnd Bergmann , Greg Kroah-Hartman , "Will Deacon" , Marc Zyngier , Andrew Morton , Herbert Xu , "Ard Biesheuvel" , Isaac Manjarres , Saravana Kannan , Alasdair Kergon , Daniel Vetter , "Joerg Roedel" , Mark Brown , Mike Snitzer , "Rafael J. Wysocki" , "Jonathan Cameron" , , , , Lars-Peter Clausen Subject: Re: [PATCH v6 10/17] iio: core: Use ARCH_DMA_MINALIGN instead of ARCH_KMALLOC_MINALIGN Message-ID: <20230602121939.00000e20@Huawei.com> In-Reply-To: <20230531154836.1366225-11-catalin.marinas@arm.com> References: <20230531154836.1366225-1-catalin.marinas@arm.com> <20230531154836.1366225-11-catalin.marinas@arm.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml500006.china.huawei.com (7.191.161.198) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230602_041953_627469_2CF66C11 X-CRM114-Status: GOOD ( 15.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 31 May 2023 16:48:29 +0100 Catalin Marinas wrote: > 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 > Cc: Jonathan Cameron > Cc: Lars-Peter Clausen Acked-by: Jonathan Cameron Thanks. Jonathan > --- > include/linux/iio/iio.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h > index 81413cd3a3e7..d28a5e8097e4 100644 > --- a/include/linux/iio/iio.h > +++ b/include/linux/iio/iio.h > @@ -722,7 +722,7 @@ static inline void *iio_device_get_drvdata(const struct iio_dev *indio_dev) > * must not share cachelines with the rest of the structure, thus making > * them safe for use with non-coherent DMA. > */ > -#define IIO_DMA_MINALIGN ARCH_KMALLOC_MINALIGN > +#define IIO_DMA_MINALIGN ARCH_DMA_MINALIGN > struct iio_dev *iio_device_alloc(struct device *parent, int sizeof_priv); > > /* The information at the returned address is guaranteed to be cacheline aligned */ > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel