Message ID | 20230321110813.26808-1-jiaxun.yang@flygoat.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1713201wrt; Tue, 21 Mar 2023 04:15:17 -0700 (PDT) X-Google-Smtp-Source: AK7set8PgvbZGNgrfBESdCrgUPyLr8Szk8fEx7GBe8VZuECrkP7iIntiD9PbU6rkRiqWhcoIXW8V X-Received: by 2002:a17:90a:1982:b0:23d:50c6:2d17 with SMTP id 2-20020a17090a198200b0023d50c62d17mr2298815pji.10.1679397317033; Tue, 21 Mar 2023 04:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679397317; cv=none; d=google.com; s=arc-20160816; b=Z0o0ACbW+ieig68jfPs/NzLvMZ5WDNFb3N+Up3Nje6W2Kii5bK54lgjE7Ba5tEY+Bi AMCGCAH9bvvQB3mfNOalsSetgb0xilUU+/6XAVRslefEtX/dMmwuKyJmBwK26uJf02I1 APKMjCcgyXtwAntOABUCiDyrd2wgQk6il3j79P8VYSo+lFum9aEz846NdGYpFzHxIuHm C1S7HJQ89+miJKapT2LjApAVtlLSUxKLQlNgLmaaCNxACg5sKDLBBHs69tqV2h4/ILH0 F5up0FB/AfRBmkLFdo3o3rmbvQh3PcVwiAAvifyshYeHaSv4KiPkDQd6Da7Lt9i6h3Jw woRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=ucFVl0jvwBlsXTpy6dY8aDYX2Et9XXdL45q62ViNUpY=; b=TnTIS4P4l1VUIAEjiEO5RQG+0LDE+1Zhcdhb/IXavw7Zy560wttghHJb8C93ZgF5pq 4oLmcjFzKjlSLUrZ3V++HRIh5WRQLTA/xYFTUfWW5810mk8zcXV/3iJnCF+o93DOcFX2 Xai7RA+YEHBCnDpMEa1p8ZR+UuVlo7qGp3OF1h+7qZfchECdlUZ4OVuYDk/c2hADTGAs ywvOv0CSpLI3KU+oQlbpJ9v784CK3SZElOcDDXPRKpuVuN6qwb+MpZdeqnJ8jIl3HhY6 o/2PPqD1iMegc4HVn6IvW/Kk3KrYZFhWFhUruXq2okyFrPe8SXMH6okyJjtc65s10p3z hHXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm3 header.b="MP2/yNnJ"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ed3m8O4t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hi24-20020a17090b30d800b0023d4d532a70si18415743pjb.113.2023.03.21.04.15.04; Tue, 21 Mar 2023 04:15:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm3 header.b="MP2/yNnJ"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ed3m8O4t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230337AbjCULI2 (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Tue, 21 Mar 2023 07:08:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjCULI0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Mar 2023 07:08:26 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F704E1A1; Tue, 21 Mar 2023 04:08:24 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C02795C00F7; Tue, 21 Mar 2023 07:08:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 21 Mar 2023 07:08:23 -0400 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:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1679396903; x=1679483303; bh=ucFVl0jvwB lsXTpy6dY8aDYX2Et9XXdL45q62ViNUpY=; b=MP2/yNnJwKFYsmKk1GbdT7UVeY MnhDuCdn1Kh4b2i30s1NhE/BYCYizfM05wY6thE+2qaGzGZBKp15ThJ7yNCLgSrP 4iMF/POris7Y8iJS1wWEtFf4qUcMiZ2Pg3FEE4kwDGiKBiDTk639tIFa8UWnfwl9 nLUl8fExahyFqIHl5kdewXHTpmhqRLhtBRcFa7LGSr1ODNoGYXJlMg38rwPGOxoE nKsOfFecPQkdCbULJ72em/Omlw3vHwC6FJIFXpVE2VVLWkhSLpNppCUizeDb/ng3 RI8kyQuPpCEiHW8r3E+aJrWMWSA461FlDmp8J3aIfh0u/8wyLyVztkNNqa+Q== 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:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1679396903; x=1679483303; bh=ucFVl0jvwBlsX Tpy6dY8aDYX2Et9XXdL45q62ViNUpY=; b=ed3m8O4t8pDFP9uG31nTqH5E2Fsy6 /MavdnRrUBaf2UNs1gaPi5dNuwxHhUpgYeRAinYx3J0Nb2FDGfjQqk84WKvGHSJ/ 80zUxHQPox/V9110zRXfbe/xDXS7RjIRikXMliPJnEnFkfNJjV2j49UzUt4wwoKI zPbqMw/Z8NT6kb7Epm8CkH0Y4cLyuG4S4LMGBre9rGQMd2Uf1NQicJewK3gCCj4i WU0o8/XH0hhrTudrNetEoeEs70Kllwmeb3h6sdxDZXFzHhw043SIMN20RMvgdsR7 zQm0fePwbqF+Y7NWK8zE4bt2xrQ7xj74+sofkRTjVCIE+gngSi+lBIvbQ== X-ME-Sender: <xms:J5AZZK03El-5nGoBsBpePoSmLiN92j4n6qoNUt6xz5wSYB-45y2eDw> <xme:J5AZZNE-OXpdylxmJ6nKWlW69GpksBi3vUejOPBHcMkBIeuA5Wj4dvD9QKw59KvUH xM64MqqfRmsX0NKnuI> X-ME-Received: <xmr:J5AZZC7d25YEi7AA12sY20Bb0Mw7pJ3yhE-2w-0-doGTkMmIUahSCW4sWzxAxuThxpXrb0EzHUg> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdegtddgvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghnghes fhhlhihgohgrthdrtghomheqnecuggftrfgrthhtvghrnhephfetuddtudevieeljeejte ffheeujeduhefgffejudfhueelleduffefgfffveeknecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgoh grthdrtghomh X-ME-Proxy: <xmx:J5AZZL3sn9PE5Xr9gRZ2P-Ak79OVg5NFOyIKOyFrtx5erx2k47N70w> <xmx:J5AZZNFeSSpL6Q8C-W13zwenlKv9eRCqZEavZqss0oeSjyk9wCm2aA> <xmx:J5AZZE_B_xO-_xStaW5k6Qoz_bgBs6pOie5pW3kVP2tqRLAiizs9iw> <xmx:J5AZZM_F1InuLsw4qyd4uwdWQLTQt4smF3QZ2OKiZ0Wt05OjtA87Rg> Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 Mar 2023 07:08:20 -0400 (EDT) From: Jiaxun Yang <jiaxun.yang@flygoat.com> To: linux-mips@vger.kernel.org Cc: 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, linux-riscv@lists.infradead.org, Jiaxun Yang <jiaxun.yang@flygoat.com> Subject: [PATCH v3 0/4] Use dma_default_coherent for devicetree default coherency Date: Tue, 21 Mar 2023 11:08:09 +0000 Message-Id: <20230321110813.26808-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760975720776049022?= X-GMAIL-MSGID: =?utf-8?q?1760975720776049022?= |
Series |
Use dma_default_coherent for devicetree default coherency
|
|
Message
Jiaxun Yang
March 21, 2023, 11:08 a.m. UTC
Hi all, This series split out second half of my previous series "[PATCH 0/4] MIPS DMA coherence fixes". It intends to use dma_default_coherent to determine the default coherency of devicetree probed devices instead of hardcoding it with Kconfig options. For some MIPS systems, dma_default_coherent is determined with either bootloader or hardware registers in platform initilization code, and devicetree does not explicility specify the coherency of the device, so we need the ability to change the default coherency of devicetree probed devices. For other platforms that supports noncoherent, dma_default_coherent is a fixed value set by arch code. It's defaulted to false for most archs except RISC-V. Thanks - Jiaxun --- v2: - Add PATCH 1 to help with backporting - Use Kconfig option to set dma_default_coherent v3: - Style fixes - Squash setting ARCH_DMA_DEFAULT_COHERENT into PATCH 4 - Setting ARCH_DMA_DEFAULT_COHERENT for PowerPC Jiaxun Yang (4): of: address: Fix default coherency for MIPS dma-mapping: Provide a fallback dma_default_coherent dma-mapping: Provide CONFIG_ARCH_DMA_DEFAULT_COHERENT of: address: Always use dma_default_coherent for default coherency arch/powerpc/Kconfig | 2 +- arch/riscv/Kconfig | 2 +- drivers/of/Kconfig | 4 ---- drivers/of/address.c | 2 +- include/linux/dma-map-ops.h | 2 ++ kernel/dma/Kconfig | 7 +++++++ kernel/dma/mapping.c | 6 +++++- 7 files changed, 17 insertions(+), 8 deletions(-)
Comments
The series looks fine to me. How should we merge it?
> 2023年3月23日 07:29,Christoph Hellwig <hch@lst.de> 写道: > > The series looks fine to me. How should we merge it? Perhaps go through dma-mapping tree? Thanks - Jiaxun
On Thu, Mar 23, 2023 at 09:07:31PM +0000, Jiaxun Yang wrote: > > > > 2023年3月23日 07:29,Christoph Hellwig <hch@lst.de> 写道: > > > > The series looks fine to me. How should we merge it? > > Perhaps go through dma-mapping tree? Is patch a 6.3 candidate or should all of it go into 6.4?
> 2023年3月23日 21:39,Christoph Hellwig <hch@lst.de> 写道: > > On Thu, Mar 23, 2023 at 09:07:31PM +0000, Jiaxun Yang wrote: >> >> >>> 2023年3月23日 07:29,Christoph Hellwig <hch@lst.de> 写道: >>> >>> The series looks fine to me. How should we merge it? >> >> Perhaps go through dma-mapping tree? > > Is patch a 6.3 candidate or should all of it go into 6.4? Please leave it for 6.4, as corresponding MIPS arch part will be a part of 6.4. Thanks Jiaxun
On Fri, Mar 24, 2023 at 09:17:38AM +0000, Jiaxun Yang wrote: > > > > Is patch a 6.3 candidate or should all of it go into 6.4? > > Please leave it for 6.4, as corresponding MIPS arch part will be a part of 6.4. Ok. I'll really need review from the MIPS and drivers/of/ maintainers, through.
On Tue, Mar 28, 2023 at 03:18:12AM +0200, Christoph Hellwig wrote: > On Fri, Mar 24, 2023 at 09:17:38AM +0000, Jiaxun Yang wrote: > > > > > > Is patch a 6.3 candidate or should all of it go into 6.4? > > > > Please leave it for 6.4, as corresponding MIPS arch part will be a part of 6.4. > > Ok. I'll really need review from the MIPS and drivers/of/ maintainers, > through. I don't see any MIPS changes in the series besides the ifdef CONFIG_MIPS part in patch 1, which gets removed again in patch 4 (chance to drop that completely ?). I've merged the corresponding MIPS patches into mips-next last week. Thomas.
> 2023年3月28日 08:45,Thomas Bogendoerfer <tsbogend@alpha.franken.de> 写道: > > On Tue, Mar 28, 2023 at 03:18:12AM +0200, Christoph Hellwig wrote: >> On Fri, Mar 24, 2023 at 09:17:38AM +0000, Jiaxun Yang wrote: >>>> >>>> Is patch a 6.3 candidate or should all of it go into 6.4? >>> >>> Please leave it for 6.4, as corresponding MIPS arch part will be a part of 6.4. >> >> Ok. I'll really need review from the MIPS and drivers/of/ maintainers, >> through. +cc devicetree foks. > > I don't see any MIPS changes in the series besides the ifdef CONFIG_MIPS > part in patch 1, which gets removed again in patch 4 (chance to drop > that completely ?). It was suggested by DMA folks to have that patch. > I've merged the corresponding MIPS patches into mips-next last week. Thanks - Jiaxun > > Thomas. > > -- > Crap can work. Given enough thrust pigs will fly, but it's not necessarily a > good idea. [ RFC1925, 2.3 ]