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 DD335C64EC4 for ; Tue, 21 Feb 2023 19:46:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229741AbjBUTqR (ORCPT ); Tue, 21 Feb 2023 14:46:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjBUTqQ (ORCPT ); Tue, 21 Feb 2023 14:46:16 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE800303CC; Tue, 21 Feb 2023 11:46:14 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9FB291FB; Tue, 21 Feb 2023 11:46:57 -0800 (PST) Received: from [10.57.13.181] (unknown [10.57.13.181]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0276D3F587; Tue, 21 Feb 2023 11:46:12 -0800 (PST) Message-ID: Date: Tue, 21 Feb 2023 19:46:08 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH 0/7] MIPS DMA coherence fixes Content-Language: en-GB To: Jiaxun Yang , Christoph Hellwig Cc: "linux-mips@vger.kernel.org" , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Thomas Bogendoerfer , mpe@ellerman.id.au, paul.walmsley@sifive.com, palmer@dabbelt.com, Rob Herring , m.szyprowski@samsung.com References: <20230221124613.2859-1-jiaxun.yang@flygoat.com> <20230221175423.GA15247@lst.de> From: Robin Murphy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-02-21 18:15, Jiaxun Yang wrote: > > >> 2023年2月21日 17:54,Christoph Hellwig 写道: >> >> Can you explain the motivation here? Also why riscv patches are at >> the end of a mips fіxes series? > > Ah sorry for any confusion. > > So the main purpose of this patch is to fix MIPS’s broken per-device coherency. > To be more precise, we want to be able to control the default coherency for all devices probed from > devicetree in early boot code. Including the patch which actually does that would be helpful. As it is, patches 4-7 here just appear to be moving an option around for no practical effect. Robin. > To achieve that I decided to reuse dma_default_coherent to set default coherency for devicetree. > And all later patches are severing for this purpose. > > Thanks > - Jiaxun