Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2815592rdh; Wed, 27 Sep 2023 13:40:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtcBDpqRv8ZVjp+2K6TGQYEuB7Sago3M5Uq/LfEVuReDV/Yb7VRMPzpDhWv7j901kKwbsf X-Received: by 2002:a05:6358:5913:b0:135:499a:382b with SMTP id g19-20020a056358591300b00135499a382bmr4622432rwf.7.1695847218710; Wed, 27 Sep 2023 13:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695847218; cv=none; d=google.com; s=arc-20160816; b=UBzvjCRkU6DmHPFVn496RKRTwRh+51WUZD6lj52f/y9P/uKxHW9ibUz7ESeOwatPFp 6njpgHK1G9jL4QQ0d+caDtRg9QuDgbMtYzSi1GIScYbnAyo9Zbo3hc4enWVDSxW7uq9t PnssufsNiVTue4udfsjjRI+CEXZsZa+gC5F6jFi12/oHq+yUY1icSS1zAbYjim7Im3Zk +IS/7Wkkybrc/jTt89NYRMZxI0h5Cw5wkTRlcRRtBvYIjnpcwmOfWhlGJxoaSbkTqUUX nJ1hId9x3bQ26WDQVU1XgCQjH+xJmT9HfUC7RrDDYu3DDDwHlnxr/Ca2ZIUxS7VYCxuo XWtA== 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=K/ewG/yXBbEUDAmhfynepdxPpgrjBJdtiyC79s1NooQ=; fh=u8XaEaL1/s3ZdHeVGxfFjoaneOkd81SGLQiGUqQmsq0=; b=dlYzn9fb+Ywm8ia0PDy6MJ1qzaP7eFVONhowNQJ9xDdXWxnOPwnnqjeKH2wJObzRAd PgzBHeH1e2ROYcPlRliOX6Jm9CiEDOe6023IEndJH6hGjXEqV5QdPthva9DXH/uc0aON 4zTAppKyo9ef8uic+mGVvrYWWMpnXynhSGqTIeMtlUxUmKNen/NkeUz3CQfHHGp2CZuR SIW899k3hqjfrxBeef7v6MhYMCCukP3v0FfpTKiNIUScJcMsIA3Q94hnH+ei/JAGmJ/p qvsla9FqCz7d97r5YgID+xzAQuP2kMuG6hBeWXPvLhdRwjl1NXsdkkFRANAzTELV5txq f8WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fastmail.com header.s=fm2 header.b=htGQQB0p; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=VnrJcJgi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id y5-20020a63ce05000000b00578e6358053si16407033pgf.269.2023.09.27.13.40.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 13:40:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@fastmail.com header.s=fm2 header.b=htGQQB0p; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=VnrJcJgi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4850C805060D; Wed, 27 Sep 2023 10:24:41 -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 S229552AbjI0RYa (ORCPT + 99 others); Wed, 27 Sep 2023 13:24:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjI0RY3 (ORCPT ); Wed, 27 Sep 2023 13:24:29 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E45FCB4; Wed, 27 Sep 2023 10:24:27 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 25B0932009AA; Wed, 27 Sep 2023 13:24:26 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Wed, 27 Sep 2023 13:24:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; 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=fm2; t=1695835465; x=1695921865; bh=K/ ewG/yXBbEUDAmhfynepdxPpgrjBJdtiyC79s1NooQ=; b=htGQQB0pMZC3x4/8hV bePIRfRov3FjMqZ4AZ6mHs3vfjq0NEpyNxtSsXVeC7B4LgGSNZcVdv0VXE1Jtcrz MyuGxpc3pQvIHFsyY1VeRmgKD6x/YcnAfeaeUdXEYG+KcBqIuzkIXJjGQfxzIunI 2x/JTkMuPiIgX2x8EXSDqCFQpBib/l2BEPabf+/nlpi0Zm4ozt11oXOfCiIv6782 zAa7OWNgT4UdJ9CC2jtwb3HPWAzv0DDeyr9uPdD0GkdYgLyS3KeSSFeLj5/iH0v6 F9MG2xdUKYGUYJ67SQ5+a+RAQFgoxQQduXtzpZv5Ag9PUoy9N0SwJsDyCmTPldJu GRZA== 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=1695835465; x=1695921865; bh=K/ewG/yXBbEUD AmhfynepdxPpgrjBJdtiyC79s1NooQ=; b=VnrJcJgityZNO22WpidDgzOvZINiB nCsOCaFfgzPioxY9MUnT8Sobdheq6DPNxd1VfcxjF/vD6q81WFiP8/LFntO0x8Xb NSn3q9otNdQ/Zz0TYRCacPSLhGRRdKspt9DK0lpZyPvqNRHU33iv03GoA1IfigGH NtYP2oP+Y/Gp1H+wFmJnmfEJ0yJKtEk6Qsx8RSWakwv9fYwfiMqpIxebMaFiJ/Fg nXC1ySr0xuuZIylqMlc9r3f2F+5zasextgBPKv3p1RztKdueBfDQyM37Pg/kl5wT wKuVLDTpWHe247lz20rTv6L8Jt9Fw7R6IGM+KKMJ+EvVFPIyjV4hpVNNg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvjedrtdeggdehtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdfuthgv fhgrnhcuqfdktfgvrghrfdcuoehsohhrvggrrhesfhgrshhtmhgrihhlrdgtohhmqeenuc ggtffrrghtthgvrhhnpeejueehgedtueetgefhheejjeeigffhieefjeehuddvueegtdfh heevgfeggfektdenucffohhmrghinhepihhnfhhrrgguvggrugdrohhrghenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsohhrvggrrhesfhgr shhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i84414492:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E9FB51700089; Wed, 27 Sep 2023 13:24:24 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-958-g1b1b911df8-fm-20230927.002-g1b1b911d MIME-Version: 1.0 Message-Id: In-Reply-To: <20230922085701.3164-3-yongxuan.wang@sifive.com> References: <20230922085701.3164-1-yongxuan.wang@sifive.com> <20230922085701.3164-3-yongxuan.wang@sifive.com> Date: Wed, 27 Sep 2023 13:24:03 -0400 From: "Stefan O'Rear" To: "Yong-Xuan Wang" , linux-riscv@lists.infradead.org, kvm-riscv@lists.infradead.org Cc: greentime.hu@sifive.com, vincent.chen@sifive.com, tjytimi@163.com, alex@ghiti.fr, "Conor Dooley" , "Rob Herring" , "Krzysztof Kozlowski" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/3] dt-bindings: riscv: Add Svadu Entry Content-Type: text/plain X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 10:24:41 -0700 (PDT) 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. > > Signed-off-by: Yong-Xuan Wang > --- > Documentation/devicetree/bindings/riscv/extensions.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml > 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 > trigger > workflow. (#2)") of riscv-time-compare. > > + - 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. > + This is incomplete without a specification of the behavior of the HADE bit implied by svadu being present. The ratified RVA20 requires page table accesses with A/D = 0 to trap, in other words HADE = 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 = 0 at kernel entry with a SBI call to set HADE = 1. For the same reason KVM should probably default to HADE = 0 so that the default configuration remains conformant to RVA20. -s > - const: svinval > description: > The standard Svinval supervisor-level extension for fine-grained > -- > 2.17.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv