Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1761566rwl; Thu, 6 Apr 2023 00:21:44 -0700 (PDT) X-Google-Smtp-Source: AKy350bsACbiH/ypEridR95oNQdJ/DDVduz7dQE9Xxfrm7gYbx9euRhDIJ74ydZfRIK9V/zFwDvF X-Received: by 2002:aa7:9793:0:b0:626:658:c998 with SMTP id o19-20020aa79793000000b006260658c998mr8620936pfp.10.1680765703813; Thu, 06 Apr 2023 00:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680765703; cv=none; d=google.com; s=arc-20160816; b=qEmlAB+sXBCQYlWW7vjnf7LAM52PnVWn1Du2LXMUfTnI9HaZQsmO4tExR6gnF7OhdN iyCx/fr5KCFSCjNaYahu96bR/2LkbEjE/yez0WZ6BK9mLPhQTKDLL+D0fiA1ukbDhhwY u3ifHdDeQHARtVeTojqtd9YBB2hjt/W9VZQ+dL8FguIf82KC/2Gh7Gf4K2PjYr5MnNHa snSOu3P0Wh6SJGwegr9zYZSD3sz5K9Il5mJ/mcj3d5i4ULj6txeiiNFtH6RnqOXcc0V7 eDxPhxYI+sXYQxIyitaaOsX2oaIArCZNQnhetT9dWETc7L+fmqeuIz0Ohqhq8BKlxZZJ +DPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:feedback-id:dkim-signature:dkim-signature; bh=IHLCbFaBZU/91yw5kszxiEKx+gZnH+tjq4YW7whSqlQ=; b=DnQ4hdKz+FyejE8XUbzuXfSvB+qoItIQC3bjITwhD/WUy/8ZjuvRuf37qunVbSrsd5 xH8wDydDLDQAXuKUFwgpHzhoGnkOSeOIkn930BFpI1xKXGKvs6zKSGAGCKA0GxmvJ5NP fGaykicFhbD7r+cF0vk9PUyqj5h8OU0PL5K6JchvgFsPBMbXtQ5KX4JZGVfMSLrnSCJO Jwx00xrBla+KXDgWL8J1NQtjs/USiVOL/lElnYoLaHCBDWxRLz6FLYgHEyiWn7AyjBg6 Iy8Am88u2HHseGob5lHGifzmBP9pHfi9kcCaeS/o5tpMZpVyCIXdUWHHdHGdY+ErVm1m NRCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm3 header.b=ifCm37L0; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=WrvZiGgV; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x185-20020a6363c2000000b004fbaaeac97asi653796pgb.326.2023.04.06.00.21.01; Thu, 06 Apr 2023 00:21:43 -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=ifCm37L0; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=WrvZiGgV; 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 S235422AbjDFHMV (ORCPT + 99 others); Thu, 6 Apr 2023 03:12:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235569AbjDFHMT (ORCPT ); Thu, 6 Apr 2023 03:12:19 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3252E55; Thu, 6 Apr 2023 00:12:17 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 91E2E5C0096; Thu, 6 Apr 2023 03:12:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 06 Apr 2023 03:12:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type: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=fm3; t= 1680765135; x=1680851535; bh=IHLCbFaBZU/91yw5kszxiEKx+gZnH+tjq4Y W7whSqlQ=; b=ifCm37L0/5FfP5o7BgNK08W2hQLkUugFk1CNrH3YB9Qa6L7/L4X g6pIx1Z9yAidTl69rRsEsNMy8d2/pEeFVMVCr3WghzwjNR/ClH6yfDTrru3E25DQ pRjr8B0AS0qDQrc+O7GDIzTTCkXSSwQP3cjoDYC77Tcjrgfas1Unib7YLmt0ILus iUu1lpBuvYe0EMezQVOxxFx/lBKpDavRJ4EL7Ypctsh68Ko3ylE8WbPc4n7xpVx9 0qcfat0eB9qEP9HQglrE+hybwzdai2BU2oOzykF4RuYggsR62gbOihMjNzF9p1vA 5kY9RcRS+LedvSCpG3VX/qFzJD9X3uWLWtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type: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=fm2; t= 1680765135; x=1680851535; bh=IHLCbFaBZU/91yw5kszxiEKx+gZnH+tjq4Y W7whSqlQ=; b=WrvZiGgVOFnTKDCWxuJFTBHt8N/AeSE5z3FRbhBIa7sN46gsa5N guiWdekavibjbMhYD1J3z4mqe8+OtvaLq0I4KiFPNzNuk/a/GJsyExdBCr4ETZyO h/76CjDCUtepGCA86Xfy7coofV1iqBTKal4UkoaeplXzLluztRmQC20KS4Ndeaus VNZUeaNeCV8VHZYMONsv9jNbUuSTG1oFHFHdfVTo1URiPJ8L8kkqiyp9pRQjDipH fAevElt/AGzYSiYS5lGiFPJBc+uR17hpVFYjujC499lc7XOoxhSHufXwWm7piVIy AV9iOfC8ebqMLfubzHlxUqo70Sh3qfreO7g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdejvddguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtjeenucfhrhhomheplfhi rgiguhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqe enucggtffrrghtthgvrhhnpedutdejffetteefkeejieehfeeuieeguedtveeijeeviefh ffelvdfgudeihfdvtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Apr 2023 03:12:12 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: [PATCH v4 0/3] Use dma_default_coherent for devicetree default coherency From: Jiaxun Yang In-Reply-To: <20230401091531.47412-1-jiaxun.yang@flygoat.com> Date: Thu, 6 Apr 2023 08:12:01 +0100 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, Robin Murphy , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, iommu@lists.linux.dev Content-Transfer-Encoding: quoted-printable Message-Id: References: <20230401091531.47412-1-jiaxun.yang@flygoat.com> To: Christoph Hellwig X-Mailer: Apple Mail (2.3731.500.231) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org > 2023=E5=B9=B44=E6=9C=881=E6=97=A5 10:15=EF=BC=8CJiaxun Yang = =E5=86=99=E9=81=93=EF=BC=9A >=20 > Hi all, >=20 > This series split out second half of my previous series > "[PATCH 0/4] MIPS DMA coherence fixes". >=20 > It intends to use dma_default_coherent to determine the default = coherency of > devicetree probed devices instead of hardcoding it with Kconfig = options. >=20 > 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. >=20 > 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 > and powerpc in some cases. Ping. Is there any issue remain in this series? Thanks Jiaxun >=20 > Thanks > - Jiaxun > --- > v2: > - Add PATCH 1 to help with backporting > - Use Kconfig option to set dma_default_coherent=20 >=20 > v3: > - Style fixes > - Squash setting ARCH_DMA_DEFAULT_COHERENT into PATCH 4 > - Setting ARCH_DMA_DEFAULT_COHERENT for PowerPC >=20 > v4: > - Drop first patch >=20 > Jiaxun Yang (3): > 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 >=20 > 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(-) >=20 > --=20 > 2.39.2 (Apple Git-143) >=20