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 998D6C77B7D for ; Sat, 20 May 2023 10:35:10 +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:In-Reply-To:MIME-Version:References: 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=08G2vBserxLhXwqXNtiicVrtzEPVde60lZrVQijhVYs=; b=f25VGbSh7kKDQX cw9TjoXh3dePW36p7cKS/eK1dbPzFJ4++klCnmACW+Sqv/bECOgo4lrtD6YXuDhIzkse28NuGwYBF Hzp4c6uu81UCC5SGGpnvvHespwTpNnPGefYicr9AwGadLT/AET7V3SWoqrLOGbqrjVZWjyZycUe14 VNxrU0CVVnxYQtdO9HYoN2BG5/co9XWKV9ncRFsU1QyrCdpdnjHWzNCEqpT6eacUcCOUJy8NsnxkG kE4z1foHR02WSaAo66MRSOA87Fh1XxcCQUwKu4k1RyNRF+qb1XfWz4HIwnUbORzVCt/VGoajgaazd pZQSrPdMVx45ccxh1kjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q0JvB-001Ga0-17; Sat, 20 May 2023 10:34:45 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q0Jv7-001GW5-0K for linux-arm-kernel@lists.infradead.org; Sat, 20 May 2023 10:34:42 +0000 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 50CAB60AE4; Sat, 20 May 2023 10:34:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58CCAC433EF; Sat, 20 May 2023 10:34:35 +0000 (UTC) Date: Sat, 20 May 2023 11:34:32 +0100 From: Catalin Marinas To: Christoph Hellwig Cc: Linus Torvalds , 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" , Robin Murphy , linux-mm@kvack.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 02/15] dma: Allow dma_get_cache_alignment() to return the smaller cache_line_size() Message-ID: References: <20230518173403.1150549-1-catalin.marinas@arm.com> <20230518173403.1150549-3-catalin.marinas@arm.com> <20230520054209.GA319@lst.de> <20230520061441.GA1100@lst.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230520061441.GA1100@lst.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230520_033441_207066_042069E7 X-CRM114-Status: GOOD ( 14.95 ) 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 Sat, May 20, 2023 at 08:14:41AM +0200, Christoph Hellwig wrote: > On Sat, May 20, 2023 at 07:42:09AM +0200, Christoph Hellwig wrote: > > yet another abstraction? That might also be able to repace > > ARCH_DMA_MINALIGN in follow on cleanup. > > Looking at the rest of the series, this part is obviously not going to > work.. ARCH_DMA_MINALIGN needs to remain a constant (taking over from the original ARCH_KMALLOC_MINALIGN). But the dma_get_cache_alignment() can indeed be overridden by the arch code, it's a good idea. -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel