Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2805546rdh; Wed, 27 Sep 2023 13:17:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBZCQgeqGyZfDC5neJGpzqDL3QD1dNCpoqAir8Wb2qxm4j+Aj6VRd0dxItTDI70wFmGZpW X-Received: by 2002:a17:902:ea01:b0:1c1:fc5c:b31b with SMTP id s1-20020a170902ea0100b001c1fc5cb31bmr5399881plg.9.1695845847462; Wed, 27 Sep 2023 13:17:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695845847; cv=none; d=google.com; s=arc-20160816; b=GQ+ZQzt0QIvmUFFN45wQAY96cGMKq5fTTGrS/9dJfL6DGzeHyryuCp8+O1W+gJ3t/p dUNuRoxvsmWdQlsTrb9eqHDc5BgTtT62qoMxCXXzlGPGP22VHjQocdGRIDTZmWltOOHm xYGeuqG4oSwaFd7cTPTwa3AYPz7UvpDuizTV4cwdrYryndsJyQVO6HCL1gUj4XBM7vxf IwmiTCKQ1QsKKLEv2XSFZv/ZKTRjmshdL/pitIh62m+qqHbNCYTltw3Y0RK1bNw5fh6L kwZ3eSY72lIierwifveKK+2p635C5pVPMgrzCzuf6Xfdsg77oPmA0Psc5SrbWvdOPzR9 lZsQ== 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:dkim-signature; bh=6+uiTOmGSxLchBRjvKV/vrfTnBZdrMZ5XZFVPvVP6Hk=; fh=sEUlvGIDfte9MjduEB3+Ek6G+a7jUJ1R3PGDL3FM+6c=; b=K/l12YLxdDD9vkIOuo7pupUfm9G2kzrv+cHgtG6MBkGOVL5/5E1t5u1YyAuI7zsHx+ DizEGiS4qpjD0e/nmzX7kqP/2cMkNUrrCviAYqz+25fsTOH++iXS+kRffkRFxQcl8Tw5 Cbi2Tu/n0Nq8OW0hjiWAyGirshyU4SBsphfpCrGmFLK0ETF9nYwHWmkQ3hPHLwXlFLDB yT5ahmPQmx4V6xCLAKDPc4qHTGzqcB18fb6MojCdLbp51hisKowiKnmKPFiCYN4Jc9hj 4BbbDYPLL12o0FdbGU37cBs/ckOfQD65SJPCDzQcfKhlm7wxofTIOXGI3TCigr5nUFTI 9L4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jrtc27.com header.s=gmail.jrtc27.user header.b=gfPEnuM7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id kb14-20020a170903338e00b001c5fa46f0e6si11797867plb.190.2023.09.27.13.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 13:17:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@jrtc27.com header.s=gmail.jrtc27.user header.b=gfPEnuM7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id F288983337EA; Wed, 27 Sep 2023 11:45:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229500AbjI0Sov (ORCPT + 99 others); Wed, 27 Sep 2023 14:44:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjI0Sou (ORCPT ); Wed, 27 Sep 2023 14:44:50 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75B98F4 for ; Wed, 27 Sep 2023 11:44:45 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-405417465aaso109786075e9.1 for ; Wed, 27 Sep 2023 11:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jrtc27.com; s=gmail.jrtc27.user; t=1695840284; x=1696445084; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6+uiTOmGSxLchBRjvKV/vrfTnBZdrMZ5XZFVPvVP6Hk=; b=gfPEnuM7z2HQ1mbyHVUH9LOwsDZGJ33N0xaqKAiSCh88zEJoeUiaBDMca4oTFyY84I i2h5wh5F0enWHrnrkuHa/YmwdTFEVwC0jaxcpkEBiGlRBM8klwuskt/wrIVLgB3ZhoJj qoBT8AzOG5Ka1REmRL8DqZuUVXDsVdOo00RJe5JSsfbMH/A8PoIXaulcUkK4dVpC9zB2 VyqL4b7oE9ZnfGhjw4frzNVELIfFop8ZEelLbowYnwvfQFUQ/WKJg4VWN0GcKfGEvJuW B92G59butgvrrRRsDYLmp0BisL6xOi0PT17NPeLs7HpvGT8GEO6vzfMJi99TFgiHUjUr byuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695840284; x=1696445084; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6+uiTOmGSxLchBRjvKV/vrfTnBZdrMZ5XZFVPvVP6Hk=; b=drJMNKStvpQsnuYpc+yA0skXM75pV6eGCWbEyq0xIgZHIXsFzB0cI/KJ0OQHggtewp rIB2JyBJXGo59VJO6rhNR8Vj0dVLLpef77O/+qlfoymHo8zISTCPqbRnCI95YTRbmZWi qJXGUMV6b73w0La6wZG9dtBIDWJECZpiTcegyMmHvecVLI/KcrWM1uggMmZ5N24DRkFu 0abeHC9CdKq+6Gq+igxBX5XZmiBAORh+ydrDGJ2hmpDhsV/GhbKZubSRz3qouhl4G3Wb iIaQtodTYd2rzufN9C+CR9oIEyU5zzbC79NfBgeR01JSXv+YnQPWAmWpn0pV404+o2XC U90A== X-Gm-Message-State: AOJu0Yz7mc8Up9Wl8IZjARse4vv+TVbJANJk/0iKsMk231clfsMBBymX DkMJQwW/fhVjNjzXs4SL3ntgoDjh+/4rL69ilneq9A== X-Received: by 2002:a5d:444e:0:b0:320:7272:8fbe with SMTP id x14-20020a5d444e000000b0032072728fbemr2883194wrr.17.1695840283728; Wed, 27 Sep 2023 11:44:43 -0700 (PDT) Received: from smtpclient.apple ([131.111.5.246]) by smtp.gmail.com with ESMTPSA id d5-20020a056000186500b00323384e04e8sm4735329wri.111.2023.09.27.11.44.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2023 11:44:43 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: [PATCH v2 2/3] dt-bindings: riscv: Add Svadu Entry From: Jessica Clarke In-Reply-To: Date: Wed, 27 Sep 2023 19:44:32 +0100 Cc: Yong-Xuan Wang , linux-riscv , kvm-riscv@lists.infradead.org, Greentime Hu , Vincent Chen , Jinyu Tang , Alexandre Ghiti , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Stefan O'Rear Content-Transfer-Encoding: quoted-printable Message-Id: <55289FD5-55F7-4EE6-BBCC-933B32770A95@jrtc27.com> References: <20230922085701.3164-1-yongxuan.wang@sifive.com> <20230922085701.3164-3-yongxuan.wang@sifive.com> To: LKML X-Mailer: Apple Mail (2.3731.600.7) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 27 Sep 2023 11:45:08 -0700 (PDT) On 27 Sep 2023, at 18:24, Stefan O'Rear wrote: >=20 > On Fri, Sep 22, 2023, at 4:56 AM, Yong-Xuan Wang wrote: >> Add an entry for the Svadu extension to the riscv,isa-extensions = property. >>=20 >> Signed-off-by: Yong-Xuan Wang >> --- >> Documentation/devicetree/bindings/riscv/extensions.yaml | 6 ++++++ >> 1 file changed, 6 insertions(+) >>=20 >> diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml=20= >> b/Documentation/devicetree/bindings/riscv/extensions.yaml >> index cc1f546fdbdc..b5a0aed0165b 100644 >> --- a/Documentation/devicetree/bindings/riscv/extensions.yaml >> +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml >> @@ -147,6 +147,12 @@ properties: >> ratified at commit 3f9ed34 ("Add ability to manually=20 >> trigger >> workflow. (#2)") of riscv-time-compare. >>=20 >> + - const: svadu >> + description: | >> + The standard Svadu supervisor-level extension for = hardware updating >> + of PTE A/D bits as frozen at commit b65e07c ("move to = Frozen >> + state") of riscv-svadu. >> + >=20 > This is incomplete without a specification of the behavior of the HADE = bit implied > by svadu being present. >=20 > The ratified RVA20 requires page table accesses with A/D =3D 0 to = trap, in other > words HADE =3D 0 for RVA20 conformance. If we are serious about = compatibility, > I think that we need platforms to be able to conform to both RVA20 and = RVA23, > which requires HADE =3D 0 at kernel entry with a SBI call to set HADE = =3D 1. For > the same reason KVM should probably default to HADE =3D 0 so that the = default > configuration remains conformant to RVA20. I=E2=80=99ve filed https://github.com/riscv/riscv-svadu/issues/21 to = track this broken ISA design, as discussed on IRC. As a FreeBSD RISC-V developer, and sometime reviewer of Linux RISC-V patches, this is a NAK from me for this ISA design. Which does beg the question of how much sense the current RISC-V processes make, given for freezing a spec you just need to send out the relevant RFC patches, they don=E2=80=99t actually need to have any review from the project in question that says it=E2=80=99s a sensible design, instead treating that = as part of the public review period, where it=E2=80=99s much harder to fundamentally change the spec, despite being the first time most people see it or take it seriously as a thing to look at. In my opinion there is a serious need for knowledgeable people on the software side to review the ISA extension and its interaction with software *before* it can be frozen so that these things can be fixed. And of course, if they do get fixed during/after public review, what good is the frozen state anyway, because a spec that changes is not very frozen. But I=E2=80=99m probably preaching to the choir here about RISC-V = processes being unfit for purpose. Jess >> - const: svinval >> description: >> The standard Svinval supervisor-level extension for = fine-grained >> --=20 >> 2.17.1 >>=20 >>=20 >> _______________________________________________ >> linux-riscv mailing list >> linux-riscv@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-riscv >=20 > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv