From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (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 23E3A371067 for ; Fri, 19 Jun 2026 10:51:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781866273; cv=none; b=IvTOlP+gpLG6iQRAen01Ym1q16f90P927OXHkFIcb3W+EpJx69VO0lEsUm3rS2treiDXpZlOr5VUollGPQdszps6DYAcZ+1Jx13vUq7ha6RHy6U7a/BC/A7zObe0DcIXea4VLRFDUPw2AbWiryOnbkv0W2hyb0KhJUYfN/HMXrY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781866273; c=relaxed/simple; bh=UCDEAN1JZM06ojaDCJMZGh2N+kGi3rW2nTPUSS22OXY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ey+cTwyRIbzSzv3/LxLO5033j9uIZuVeg0RVpBoysH0RmsMihsEh/iyxHuvfexoUB2mOBrNOtfPZzKJuzjDoChPBQhvUCaKmIiKbXn4sEjbjg+jA8fS2iuTC4uw+opUaZMDD/V1c4tB9CoWWIEzLDFvdt8bDWhnx9Cc6ApS4HRY= 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=jQ2fJS4b; arc=none smtp.client-ip=209.85.215.181 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="jQ2fJS4b" Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-c8857a27041so921135a12.1 for ; Fri, 19 Jun 2026 03:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1781866271; x=1782471071; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+AnvJHsC+E9gxmigHUGfqcWt/5+4STIPC8FnrseYIVY=; b=jQ2fJS4bIorMEkttdcHyeuTo7u/T++X9rYv9pVUtm89QiuIG2CIFV5Fq0P4uD1nTeO Ulg8pRtcxs0Ud6KISpMhZI1UQe/F5ypmKVQaeG04p4C95rEjhDzxj4mATfSusVx4tlzk J2choRDtwFKu7Nym6y5ki1Cj5dAXiqK4XmDwWqc9vvsh0NSrs+knHNcuj79NdIs6OlUl HPowEprONmWFbmYOmaXM96D+GQqoCUJ81VM1NqDoHPklfqHJI8DbhhFh7ftP9OqcmtM8 II+yMXZAzY8vxPIHeTJWtsV3LLKkJvVJub6S7wjCM10N/88FZuiRN71raLb9aD56f80f IZqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781866271; x=1782471071; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=+AnvJHsC+E9gxmigHUGfqcWt/5+4STIPC8FnrseYIVY=; b=BCVB6u5FqKNsl/bIl3myID8U6LsjZDQvWz6K/EevnXGgKPl9qrzT6hddDKe53OATk9 U6/2T2uLjuFNBev4FyzuUfSinbV+8Y8VyBsy+D8rVoX5MKrTmNEVVb0TBa6/7yNAkta9 AGEd+pA1Y0h4OWY0m1qASqmAijJMIB0tqTcgKYQNGAu7nEax+rRcuYbX0g+5zfENGJTd JPpVltMeuozrtKaOIXkkoarVtMo3uKzM4h4yvKff1dT614+E1gYZTHUA0YJcptjNSdUX 4bTWHKXbhdZwg3MtZZuT6ijrdq9i+sR5a1hqr5aPpzRc6SNtLFqKzNpe0XG9XKgPUfsH az+w== X-Forwarded-Encrypted: i=1; AFNElJ87Ok+gnsVcY93Iy1YLcfF6DjmBGgNOs4GVu8exdd4xx2bCZx8Zyj3PHf0rpB151hFyOWbePCPX0ZRUy2E=@vger.kernel.org X-Gm-Message-State: AOJu0YwWzffRkRQmhx6T4XCfsIx7fPxAtmldj/OLhJPNT41tgcsgvzzX mi72faBA22A7YG/xdUSHxUB89CN+vDr4+jxcYkkjDx0ZKN4jGhCmC4AgRljO+EDR0lk= X-Gm-Gg: AfdE7cnzw7RA5wV60YtsOVRDk/y6tA6wKpOBpLjzQfkl4IFEV65cruZj+0a8ZoH5FMd tfWvUcnOPQ2+X5VYgiB33g0dTk2AqVQFrpyoYaZEbZAurOrFcUOOUFjjU6nOUt4+XTFYD4n/M94 Jb4xqWK0J6TpaQq7zrgldJuhajbBcw+CaEJP07aU/N7CHKn6vbkCdqyMxQs6QGRQ3fg4AgINP0M VQB3+sWgYVI1ODNRUxzCZiIOjPAE8qumWudFZ2KDtOLZL1uzXdpt+3BV0pqqsm8yZlcjlzgpNhT a8e0mqhxDBG9LdYXmHBPVgSVqlVGia8ec54wgo1r3mbtC8uJI6K1BhPnjPBvCv0f05oxZUb+B79 CDrVVkh8Zxomhb5bgkXrnSVtwb2v4mqiGs/IJ17S+/BEnGklGfy6BZmZaUFKOm34qjc2iP6E5ws dYKdwjIv3n1JlqqDyFvFvvYJZiHZ5qT//Rwccq X-Received: by 2002:a05:6a20:2d14:b0:3b4:7b2a:6a0a with SMTP id adf61e73a8af0-3bb35b6e1d3mr3626858637.35.1781866271432; Fri, 19 Jun 2026 03:51:11 -0700 (PDT) Received: from hsinchu16.internal.sifive.com ([210.176.154.34]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c8a84c6eb1bsm1993583a12.2.2026.06.19.03.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2026 03:51:10 -0700 (PDT) From: Yu-Chien Peter Lin To: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, samuel.holland@sifive.com, dlan@kernel.org, guodong@riscstar.com, dfustini@oss.tenstorrent.com, michal.simek@amd.com, junhui.liu@pigmoral.tech, darshan.prajapati@einfochips.com, akpm@linux-foundation.org, zhangchunyan@iscas.ac.cn, luxu.kernel@bytedance.com, pincheng.plct@isrc.iscas.ac.cn, nick.hu@sifive.com, jim.shu@sifive.com, zong.li@sifive.com, greentime.hu@sifive.com, robin.randhawa@sifive.com, scott@riscstar.com, dave.patel@riscstar.com, raymond.mao@riscstar.com, Yu-Chien Peter Lin Subject: [RFC PATCH 1/3] dt-bindings: riscv: Add Worlds ISA extensions Date: Fri, 19 Jun 2026 18:58:32 +0800 Message-ID: <20260619105834.1277302-2-peter.lin@sifive.com> X-Mailer: git-send-email 2.48.0 In-Reply-To: <20260619105834.1277302-1-peter.lin@sifive.com> References: <20260619105834.1277302-1-peter.lin@sifive.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add DT bindings for RISC-V Worlds ISA extensions to tag transactions with World IDs that hardware uses to enforce world-based isolation across execution contexts. Signed-off-by: Yu-Chien Peter Lin --- .../devicetree/bindings/riscv/extensions.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml index 2b0a8a93bb21..1bc8b1aa67c0 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -193,12 +193,35 @@ properties: ratified at commit d70011dde6c2 ("Update to ratified state") of riscv-j-extension. + - const: smlwid + description: | + The standard Smlwid extension for M-mode control of lower + privilege World ID via the mlwid CSR as ratified at commit + TBD ("TBD") of riscv-worlds. + + - const: smlwidlist + description: | + The standard Smlwidlist extension for M-mode control of lower + privilege World IDs via the mlwidlist CSR as ratified at commit + TBD ("TBD") of riscv-worlds. + - const: smstateen description: | The standard Smstateen extension for controlling access to CSRs added by other RISC-V extensions in H/S/VS/U/VU modes and as ratified at commit a28bfae (Ratified (#7)) of riscv-state-enable. + - const: smwdeleg + description: | + The standard Smwdeleg extension for M-mode delegation of lower + privilege World ID control to S-mode via the mwiddeleg CSR, as + ratified at commit TBD ("TBD") of riscv-worlds. + + - const: smwid + description: | + The standard Smwid extension for M-mode World ID control via the + mwid CSR as ratified at commit TBD ("TBD") of riscv-worlds. + - const: ssaia description: | The standard Ssaia supervisor-level extension for the advanced @@ -262,6 +285,12 @@ properties: ratified in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated to ratified state.") + - const: sswid + description: | + The standard Sswid extension for S-mode control of lower + privilege World IDs via the slwid CSR as ratified at commit + TBD ("TBD") of riscv-worlds. + - const: supm description: | The standard Supm extension for pointer masking support in user -- 2.43.7