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 5A666C61DA4 for ; Wed, 22 Feb 2023 13:05:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231740AbjBVNFG (ORCPT ); Wed, 22 Feb 2023 08:05:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231149AbjBVNFE (ORCPT ); Wed, 22 Feb 2023 08:05:04 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D3B9367CB; Wed, 22 Feb 2023 05:05:03 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 81EDD5C007A; Wed, 22 Feb 2023 08:05:01 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 22 Feb 2023 08:05:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1677071101; x= 1677157501; bh=zTBhSHg2Z1fhQW2zMWScuLvC8roK+JvNcm0QshCfxFI=; b=s 6pXHfROnOELLc+Cn5s7R2d0Nrk8bJ25Klu/V07fr30hYpaie61vExlYSQ0G7zgfN OMUzIiFHAf2PzVWgmnCnGaHgxNUBlvJzTt/k2TJ+ThmhLNhNCghqt/C9WEMlzdTI ji3cgkZYTMebvOEvim3ODU0qKu8DRPzGG+qsR7cJMLL5Fclbs1RiMr8dkfaGzn9Z t/sC66teOmxX0KnAEPYg/jjsStKHKcW0SkVEwc8eRptpVfYBmOncXay/kaz6hVK2 mumMkRYzc2BpdkweCLZ1HMo9d1E4RV40N2HJweayMAupo4w1R5j9be8ISI3I4/Bc ykQp0uk/soMnRzkKOCB7w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1677071101; x= 1677157501; bh=zTBhSHg2Z1fhQW2zMWScuLvC8roK+JvNcm0QshCfxFI=; b=C UUs1Zuoz5XkoMOm4gnwKBSRt3KrYWEX4vIDIx6LibNfmjODvs4M8QKVlRQpJCRgY xGwWZvtZS7MDrWjJtx31I7n3pFOjbaECr/6aWcgxK28zyzppWUxC2diDCQwOqt1q UQlviLT3yyKXlVGVIrxkCj4JlZGG3fk0yWnqbLxeqqrkWHELEKWsBxDeTTr07P7x XCD3jgq9SyFt4h61XIydzgEVDKmfG5nNwHYuMq+rEedrrQg3Ibz8OJsX/vMor3vR Nyqzwoq4Rq5+6fLyqO3wiJm1sSGzFiL4skYcVr5WEgM/oLg6EJcj4PRJaRnnuH/L NhZxxvybMJ4WinSrceEzw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejledggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptggguffhjgffvefgkfhfvffosehtqhhmtdhhtdejnecuhfhrohhmpeflihgr gihunhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqne cuggftrfgrthhtvghrnhepuddtjeffteetfeekjeeiheefueeigeeutdevieejveeihfff ledvgfduiefhvddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Feb 2023 08:04:58 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: [PATCH 0/7] MIPS DMA coherence fixes From: Jiaxun Yang In-Reply-To: Date: Wed, 22 Feb 2023 13:04:47 +0000 Cc: Christoph Hellwig , "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 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20230221124613.2859-1-jiaxun.yang@flygoat.com> <20230221175423.GA15247@lst.de> <34578218-DC7A-4C8B-A01A-AD64831CCB43@flygoat.com> To: Robin Murphy X-Mailer: Apple Mail (2.3731.300.101.1.3) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 2023=E5=B9=B42=E6=9C=8822=E6=97=A5 12:55=EF=BC=8CRobin Murphy = =E5=86=99=E9=81=93=EF=BC=9A >=20 > On 2023-02-21 19:55, Jiaxun Yang wrote: >>> 2023=E5=B9=B42=E6=9C=8821=E6=97=A5 19:46=EF=BC=8CRobin Murphy = =E5=86=99=E9=81=93=EF=BC=9A >>>=20 >>> On 2023-02-21 18:15, Jiaxun Yang wrote: >>>>> 2023=E5=B9=B42=E6=9C=8821=E6=97=A5 17:54=EF=BC=8CChristoph Hellwig = =E5=86=99=E9=81=93=EF=BC=9A >>>>>=20 >>>>> Can you explain the motivation here? Also why riscv patches are = at >>>>> the end of a mips f=D1=96xes series? >>>> Ah sorry for any confusion. >>>> So the main purpose of this patch is to fix MIPS=E2=80=99s 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. >>>=20 >>> 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. >> Well the affect is default coherency of devicetree probed devices are = now following dma_default_coherent >> instead of a static Kconfig option. For MIPS platform, = dma_default_coherent will be determined by boot code. >=20 > "Will be" is the issue I'm getting at. We can't review some future = promise of a patch, we can only review actual patches. And it's hard to = meaningfully review preparatory patches for some change without the full = context of that change. Actually this already present in current MIPS platform code. arch/mips/mti-malta is setting dma_default_coherent on boot, and it=E2=80=99= s devicetree does not explicitly specify coherency. Thanks - Jiaxun >=20 > Thanks, > Robin.