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 A5B14C64ED6 for ; Tue, 21 Feb 2023 17:57:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233019AbjBUR5U (ORCPT ); Tue, 21 Feb 2023 12:57:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233129AbjBUR5H (ORCPT ); Tue, 21 Feb 2023 12:57:07 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C6ED2FCFF; Tue, 21 Feb 2023 09:56:39 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 2263C68B05; Tue, 21 Feb 2023 18:56:29 +0100 (CET) Date: Tue, 21 Feb 2023 18:56:28 +0100 From: Christoph Hellwig To: Jiaxun Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, tsbogend@alpha.franken.de, mpe@ellerman.id.au, paul.walmsley@sifive.com, palmer@dabbelt.com, robh+dt@kernel.org, hch@lst.de, m.szyprowski@samsung.com, robin.murphy@arm.com Subject: Re: [PATCH 1/7] MIPS: Remove DMA_PERDEV_COHERENT Message-ID: <20230221175628.GB15247@lst.de> References: <20230221124613.2859-1-jiaxun.yang@flygoat.com> <20230221124613.2859-2-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230221124613.2859-2-jiaxun.yang@flygoat.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 21, 2023 at 12:46:07PM +0000, Jiaxun Yang wrote: > As now we are always managing DMA coherence on per dev bias, > there is no need to have such option. And it's not selected > by any platform. I think the real point here is that this is dead code, so it can obviously go away, but: > config MIPS_GENERIC_KERNEL > bool "Generic board-agnostic MIPS kernel" > - select ARCH_HAS_SETUP_DMA_OPS > select MIPS_GENERIC > select BOOT_RAW > select BUILTIN_DTB > @@ -1079,11 +1078,6 @@ config FW_CFE > config ARCH_SUPPORTS_UPROBES > bool > @@ -1097,6 +1091,7 @@ config DMA_NONCOHERENT > select ARCH_HAS_DMA_PREP_COHERENT > select ARCH_HAS_SYNC_DMA_FOR_DEVICE > select ARCH_HAS_DMA_SET_UNCACHED > + select ARCH_HAS_SETUP_DMA_OPS This is an unrelated und undocument change. If you want to do it, please do that as a separate patch with a commit log documenting the rationale.