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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A133CDB46E for ; Thu, 12 Oct 2023 14:00:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379004AbjJLOAu (ORCPT ); Thu, 12 Oct 2023 10:00:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378591AbjJLOAt (ORCPT ); Thu, 12 Oct 2023 10:00:49 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 205DABB for ; Thu, 12 Oct 2023 07:00:45 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 9AB8E67373; Thu, 12 Oct 2023 16:00:39 +0200 (CEST) Date: Thu, 12 Oct 2023 16:00:38 +0200 From: Christoph Hellwig To: Greg Ungerer Cc: Michael Schmitz , Christoph Hellwig , Robin Murphy , iommu@lists.linux.dev, Marek Szyprowski , Geert Uytterhoeven , Wei Fang , Shenwei Wang , Clark Wang , NXP Linux Team , linux-m68k@lists.linux-m68k.org, netdev@vger.kernel.org, Jim Quinlan Subject: Re: [PATCH 5/6] net: fec: use dma_alloc_noncoherent for m532x Message-ID: <20231012140038.GA8513@lst.de> References: <20231009074121.219686-1-hch@lst.de> <20231009074121.219686-6-hch@lst.de> <0299895c-24a5-4bd4-b7a4-dc50cc21e3d8@linux-m68k.org> <20231011055213.GA1131@lst.de> <12c7b0db-938c-9ca4-7861-dd703a83389a@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-m68k@vger.kernel.org On Thu, Oct 12, 2023 at 11:25:00PM +1000, Greg Ungerer wrote: > Not sure I follow. This is the opposite of the case above. The noncoherent alloc > and cache flush should be performed if ColdFire and any of CONFIG_HAVE_CACHE_CB, > CONFIG_CACHE_D or CONFIG_CACHE_BOTH are set - since that means there is data > caching involved. FYI, this is what I ended up with this morning: http://git.infradead.org/users/hch/misc.git/commitdiff/ea7c8c5ca3f158f88594f4f1c9a52735115f9aca Whole branch: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dma-coherent-deps