Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp304762lqr; Wed, 5 Jun 2024 06:44:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLDsDojMqYhs83ANNlxLsuGihW9dCd/rQP9w7ia9Cal8fXE52Ub57QdADKYa5yBB9m19i54u9d1T/S9hzVIY45GfYbWXxxSrEz24ulAg== X-Google-Smtp-Source: AGHT+IHBiH8VwDHTpnDrzFCXrNJazX33Jlae7J/4fKQ+TC9+6mCvVvyZIM4TdCc0l/ZyEg+/yb6w X-Received: by 2002:a05:6e02:1fed:b0:374:9c23:a06a with SMTP id e9e14a558f8ab-374b1ee216fmr26687835ab.6.1717595077229; Wed, 05 Jun 2024 06:44:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717595077; cv=pass; d=google.com; s=arc-20160816; b=DS8D2jwaQv+/9rwGmY4LEInxogFiKlg5jecHZfhuO1pZAe00531m0tju9ILjuS2rKa ZdFnDv78phd/O/XlJUbOh6LLQFAGGUsWX5BnAB5TSDu6uWqoyVIb8aFkkNsQLcW1F/1S 5J95a9u5bzAfs9MHEjhfHfYRWjXBcFhx4ccJ+SVhRJxjJTDMddXiMN0BoIqoCLY0VtTL 2X+4DoLyxvXkcmvv/6cMEIhD7uttDkcEJ1A3ulKRN/994/qzb/X2pwS9iEL8WxJsxRDn D161tQQaTspP2qYt7YznFalmB429D4PPBE4p7Zo9efFv5Rgv9TDCnzQGX+iZ+4q72QuP Raog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=GpvzkiCxKozJEFTOhtS0qkQgzMcSqTc8pxD/W7VEhXs=; fh=PsNQqtohlHYtjDmjLpwhPYCDK6azYN+Wk/xWgi0zIVY=; b=It1enWyVBkUR/Vgwo4H8JmKg6ORkjVPfO2fjE7IhVZ13y7IP3vveOF0JKd04OU0K+Q RnqhgQa0gz73g+fsJSMiQ8YZA8/kY6AkOaqlszsYu24xkU1qfqYLAMjte9JP/WNODXM8 wFODzcNf83PLFhXkICcAUjw7WZ1eF0XiEK87ET1cXiSULJUOLpkIDHRLHcyoMtvPs6hi cQTehhi+3yixRpCGonVmzaoWRL7U9GgDA1t1BR26H6Im0hd8g0jmjqaGsC7PWPYQ6+0I XNCL+sNTIlaH7CV3dMZRRDGzVE6EGCzy3FfeqF5GoHWhTHf16xAHyqQ/K6wTIy5EEOVB Q0jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=iAZOCUTk; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-202569-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202569-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3542e3a49si4000033a12.57.2024.06.05.06.44.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:44:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202569-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=iAZOCUTk; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-202569-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202569-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C8729B25670 for ; Wed, 5 Jun 2024 13:01:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85FED1B1518; Wed, 5 Jun 2024 12:15:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="iAZOCUTk" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D9F41B1501 for ; Wed, 5 Jun 2024 12:15:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717589748; cv=none; b=uN9QF6lwmHdTx9r9i3fqssnGh0D1dM+F0RqQk9xyvAY8UnvGzxpzZiZSMQJeQ22FyXSP+OT2Ob/GDCv7zh+Hi0+TJlAw8kds7hI2LmTQaziGnE5cHIVKfQM6vWj2zvdFJIbysfCG6YXJSb18i5+b6yqa1/KTgOPW4nTWb4iXqo0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717589748; c=relaxed/simple; bh=7vv9BIxOlTAnkVcmOEbkz5pJ3DyqNEvdcN47CRhSbiU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=q02P3LOvo6XkoVPUAGbp8ukqDLA9nHy4Sd3Qe7dkpqOWzLtbwxj3GQBFfbtGSFdp90TkA+qAEyJu4L07J3NOP3Q8S/oCL7z44eNMSaiAvwDC+HWz54enHy6IkIWNpxqOP60EoRdwNPXUiP4T/9zsTnSasBfsCtAHqbTYJH32PP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=iAZOCUTk; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-7025b253f64so3097505b3a.3 for ; Wed, 05 Jun 2024 05:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1717589746; x=1718194546; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=GpvzkiCxKozJEFTOhtS0qkQgzMcSqTc8pxD/W7VEhXs=; b=iAZOCUTk8lI8+n+8mWwcJ0NmiEDHnk1vcO8fqJcwNa0tQM5nv5fkI+3Jy8YP29dF81 D8Ah6eBR6hqtGY6jF+B0ABj2UMKQ+19NoS/ElCSdkB/CF1so69yUqThKEprEROcAeorn jkikUg9Yk0U4yWWGRVYcRBiHwUWfUpXGYIAzH1Zk4zTT8JuPjvpieLXJ1WRZUDRwRtyy 9HAZUfiPtVB/BVhCMJ3gA+qIxKvHporUhrs9oAYtD2vWfvU2/JtUX+x6Hy5yWDddL9yu d0jjyMjXhHH8SZPRiBBooR5p5w47z3QLpyx4u54qsryesmJVdYyn5BfqYstzeKFJs/jZ SLiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717589746; x=1718194546; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GpvzkiCxKozJEFTOhtS0qkQgzMcSqTc8pxD/W7VEhXs=; b=HlsuY7eUp0iZb/B7A7m6QmdzR/DEhhK0mR+OywoNYD0LxtJIktifqBkRK4CwfxVjX/ maXYWP0iTJQc/IuQKC+ktRLWDFVvsruFNAKSQO5s3/+lRXIP4VGtjwZb3WjK+MWFhuyk 1ZwowopNg86ua06vbIDzgdROZ2ii+KUvh7CHwudSjpsuIWHP7102eNk7uVJzTv+92d1I weO7c4FLkgl181IGCJgaq011PzJJgJmW+Vwk6t9nEtBSM60/IUYIR0ANrSRr2A0CELxm Cnct7gWOgrxE4FW/QIVMAW+PAihbhBmvrqwyIte5ho2tO5H48QzUkVtopI0YOZFpcweo GzQQ== X-Gm-Message-State: AOJu0Yx/5COFnJMIuJFDLJrIox5YIKw9WRkJyb0ggOVbPYt4cVGlEHL1 VC/I2DXps/0r1wOfbo0tovVT8U6GVsn+zGjvnj8vt9YFu4rtvSp1/BZMNOCKmQnFiNIqSxv3RDb naF1kOdCkzmT6bfHzgehb/aPQmQ8dw8nnrAAg+7aAx0rQ1BFOTrttIKeo6SMRFocXzD2d3+i9eG vJjfcSIH7jCjeq0xP1HH2tQX3sz2FVPNBlH1+wjfBbUIwl53aY9kXtYw== X-Received: by 2002:a05:6a00:1991:b0:6ed:de6e:dd24 with SMTP id d2e1a72fcca58-703e597aa21mr2623604b3a.16.1717589744922; Wed, 05 Jun 2024 05:15:44 -0700 (PDT) Received: from hsinchu26.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-703ee672fb3sm885379b3a.216.2024.06.05.05.15.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:15:44 -0700 (PDT) From: Yong-Xuan Wang To: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kvm-riscv@lists.infradead.org, kvm@vger.kernel.org Cc: apatel@ventanamicro.com, alex@ghiti.fr, ajones@ventanamicro.com, greentime.hu@sifive.com, vincent.chen@sifive.com, Yong-Xuan Wang , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , devicetree@vger.kernel.org Subject: [PATCH v5 2/4] dt-bindings: riscv: Add Svade and Svadu Entries Date: Wed, 5 Jun 2024 20:15:08 +0800 Message-Id: <20240605121512.32083-3-yongxuan.wang@sifive.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240605121512.32083-1-yongxuan.wang@sifive.com> References: <20240605121512.32083-1-yongxuan.wang@sifive.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Add entries for the Svade and Svadu extensions to the riscv,isa-extensions property. Signed-off-by: Yong-Xuan Wang --- .../devicetree/bindings/riscv/extensions.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml index 468c646247aa..1e30988826b9 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -153,6 +153,36 @@ properties: ratified at commit 3f9ed34 ("Add ability to manually trigger workflow. (#2)") of riscv-time-compare. + - const: svade + description: | + The standard Svade supervisor-level extension for raising page-fault + exceptions when PTE A/D bits need be set as ratified in the 20240213 + version of the privileged ISA specification. + + Both Svade and Svadu extensions control the hardware behavior when + the PTE A/D bits need to be set. The default behavior for the four + possible combinations of these extensions in the device tree are: + 1. Neither svade nor svadu in DT: default to svade. + 2. Only svade in DT: use svade. + 3. Only svadu in DT: use svadu. + 4. Both svade and svadu in DT: default to svade (Linux can switch to + svadu once the SBI FWFT extension is available). + + - const: svadu + description: | + The standard Svadu supervisor-level extension for hardware updating + of PTE A/D bits as ratified at commit c1abccf ("Merge pull request + #25 from ved-rivos/ratified") of riscv-svadu. + + Both Svade and Svadu extensions control the hardware behavior when + the PTE A/D bits need to be set. The default behavior for the four + possible combinations of these extensions in the device tree are: + 1. Neither svade nor svadu in DT: default to svade. + 2. Only svade in DT: use svade. + 3. Only svadu in DT: use svadu. + 4. Both svade and svadu in DT: default to svade (Linux can switch to + svadu once the SBI FWFT extension is available). + - const: svinval description: The standard Svinval supervisor-level extension for fine-grained -- 2.17.1