Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp933664rwl; Fri, 31 Mar 2023 04:40:27 -0700 (PDT) X-Google-Smtp-Source: AKy350Y2gsYjuvQ8cViyKHZk9gQ0JmN1hf7ggYSxsjm3DYZU1aBw9PPP09Tvv9t9jBcqrSLnDIM/ X-Received: by 2002:a17:90a:d58b:b0:23b:4d09:c166 with SMTP id v11-20020a17090ad58b00b0023b4d09c166mr22530406pju.4.1680262826753; Fri, 31 Mar 2023 04:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680262826; cv=none; d=google.com; s=arc-20160816; b=XNvzaSRKxvVR/pQvD8CtSRAB0L2nHawgTA+0GKjqW5CZn5oByQLniPMZ4ETvCBL64m pJidYOfLHJQaL/gsDYujHfQjTsBIKUJKwbjqFVzBnkAKU/KNilg8I1VEE4GTg2DrDzsS 74IE6AVChmvDQaOghIXCHblVZ2+H5wYbsFt6bc07jtkgvamS1yjq0QGAdqakBys7As1H pKaPtuYeUoGcnkeSUnCPQe7xoEw+0Kxa9rI3NJW/VyOfKKgVROFWqFjHpf3ArJLA96Bt h84rdrVuQ+qvxV8O5CBN/HK4Jj/GxRj+y6npULxNs2tHz0NCF1QkatjYMtbKlgLHLBT6 wS6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=lATVIt48Hpo+q3JJzTeR8jiPkek4/jt/yPq+C0ofGOc=; b=lhv/LoV3+hbmibgfJ2NyK+6DPrQYUFyPdu7lwC/d0pLDF+5LpqEh9BZ/7d6dOUlANi sYrfmTK1rcqCDeEgZLCdJHQHyM6I13vlBCMRA3d64tb7jf8YnZF4evL38B0qL2xIxlg/ Xa3utkqx02yl+B43iYNjd8mJInvoe+HHtOy+B0OKt5E17JFEJ/nCbRzk5NFcOhA46t50 LmIBHIus1RKmhz8hqj+y7aVxoy4ejcVbZLcm+548TyZkUvaw/6XrcIZw3yTIxfMNag0r 9hl/Ai5B0vRegUkX91IqrXcvgivPI6Vp6aYVp7BZTskLB9AGF7kcMCzHhLNp8VtfsRTh UKeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=qwOPUeI5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=lC0u06xI; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds16-20020a17090b08d000b0023361862115si6279197pjb.129.2023.03.31.04.40.06; Fri, 31 Mar 2023 04:40:26 -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=@arndb.de header.s=fm1 header.b=qwOPUeI5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=lC0u06xI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231195AbjCaLgf (ORCPT + 99 others); Fri, 31 Mar 2023 07:36:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjCaLge (ORCPT ); Fri, 31 Mar 2023 07:36:34 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90C74E7; Fri, 31 Mar 2023 04:36:33 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id E6DF75C0101; Fri, 31 Mar 2023 07:36:32 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 31 Mar 2023 07:36:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc: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=fm1; t=1680262592; x=1680348992; bh=lA TVIt48Hpo+q3JJzTeR8jiPkek4/jt/yPq+C0ofGOc=; b=qwOPUeI5fevhA8XQSD cyLK+sTtkxX23M69wn8jJd1j5bycqOJ3N68bTC1+LUzAb9nPYwglJFWJs3CRp/B4 wG3zDOMBp0yYsmnNz3z1aAXWTzMqvMteifmzgNpSaj8cbYgKoeLkOdIay6carwKM 1hTE7Ai0L7938hAZGaGKHKimFUTQQ7M1Ci6bmSiF99A+SrUgkKO8zhyDI1BKBWDA j1plG8fdUB33NdxDeSRaYM8+ntmYOFzX0Aie+06a6MmQFTn7Xl0bNUGbs+IV+t6v kHbreO/5AmGeAPaqA/D/wSQIIEsgUBnJ/hPR7BLQBZxW1CA6/9lTXONsFlkXKkJu ZfjA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=1680262592; x=1680348992; bh=lATVIt48Hpo+q 3JJzTeR8jiPkek4/jt/yPq+C0ofGOc=; b=lC0u06xIA9SXGzlgtSXgNq9N7A9R6 ZLflqDYtON3uJPnuT/DmXFmjCniwajtkC+CIL0pscI1A0D2aaxh1UgJzQ+P5E0pg s+jEiDJyKp3lP1ea21OTCmkGboZr+JHsX6UF6JDayIDy4aeORr0ju+q7xeEbF0OH KIBho75TyesT3bEzI608oyD4ksM5DfuUH17++cMGq/OcdibNWyAMEpzGPZlItVtA 7RAt5rdaUi21P5aCCN6aeWSQLXPef89hcZg5QxV5l7kSfybHDd1lz7EgrGeDKAAZ ponC0W30tfTnao/RlPzqBpwpB2mYO35Sl1+igfOrN/QPqqQE7+I5NsgzA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeiuddgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4667FB6008D; Fri, 31 Mar 2023 07:36:32 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-238-g746678b8b6-fm-20230329.001-g746678b8 Mime-Version: 1.0 Message-Id: <08eace10-3eee-481a-b1b4-de58e94cd828@app.fastmail.com> In-Reply-To: <50e932df-cb20-4679-b911-fd9d7f0f2c1d@spud> References: <20230330204217.47666-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20230330204217.47666-2-prabhakar.mahadev-lad.rj@bp.renesas.com> <6ca5941a-8803-477d-8b40-17292decc5af@app.fastmail.com> <50e932df-cb20-4679-b911-fd9d7f0f2c1d@spud> Date: Fri, 31 Mar 2023 13:36:11 +0200 From: "Arnd Bergmann" To: "Conor.Dooley" , Prabhakar Cc: "Geert Uytterhoeven" , =?UTF-8?Q?Heiko_St=C3=BCbner?= , guoren , "Andrew Jones" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Samuel Holland" , linux-riscv@lists.infradead.org, "Rob Herring" , "Krzysztof Kozlowski" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Linux-Renesas , "Biju Das" , "Lad, Prabhakar" Subject: Re: [PATCH v7 1/6] riscv: mm: dma-noncoherent: Switch using function pointers for cache management Content-Type: text/plain 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 On Fri, Mar 31, 2023, at 12:55, Conor Dooley wrote: > On Fri, Mar 31, 2023 at 11:37:30AM +0100, Lad, Prabhakar wrote: >> > > Does that actually work? I don't think it does. > If you try to enable RISCV_ISA_ZICBOM then you won't get > RISC_DMA_NONCOHERENT turned on. Run menuconfig and disable support for > Renesas, SiFive and T-Head SoCs & you can replicate. Right, the circular dependency has to be broken in some form. > I think one of RISCV_ISA_ZICBOM and RISCV_DMA_NONCOHERENT should just be > dropped, although I don't know which one to pick! > Making RISCV_DMA_NONCOHERENT user selectable probably makes the most > sense. That sounds good to me. Arnd