From nobody Sun Feb 8 16:31:05 2026 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 1B11544D680 for ; Thu, 8 Jan 2026 12:27:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767875248; cv=none; b=nWKTYR+QSWytZR0+0/x98jJkhqihAAjYC0LjnwDwHvibim34bXkYxAPPJKhf0xkQV+PazNrymzEBlkBob8ZORjjTJ3DsEvUejALbDoWr3+KCLo37/kzRsmqxNMN00Md0wlpMd+BMnEwTrv5uHEjXuyy3YYjqhhyk3ot1OIxEZnQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767875248; c=relaxed/simple; bh=b3TbBB/uGCPBAgc/CZlMEVAVW/g+2p73yz3LsGsKSkY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GnEiFjB3lB3GxmSD7k6MOfQpttA1ogrzI88hw3tVIS7U+/yn0/uWAagGBGZl6BYStLL9OVidGGOXG+etBcK+CI9gME77EMKT+g+dadEr+vDtF0D0qYlqnQjz0WzrHlS0UTpGlqdLvh/bkWx56CWU4FyxV/yxdsForDAwyr1aZUc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=TUvoujhn; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="TUvoujhn" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-81345800791so1786546b3a.0 for ; Thu, 08 Jan 2026 04:27:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1767875246; x=1768480046; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=mwaC+shKtPHF9hxjazt9bdYtYDRjr/r6esw6vyxkzGA=; b=TUvoujhnlkMtGmNTOP3kcbLm1pREmIfmQp/DRS/7OVyeKG3Lsu9ASlDiwj3iolTHg2 vcXV8+NCPzRdZgI4d3iiSspf8Y+Ir158msuYqvPOwgqx+DBbhAToKYSNUe/uMg9QK0Kp V2tUQzGNcJPzJPTuEVZtR5cvtjEc1iLEQhNlxSydw2btmZw5MjpDV/igLwrsLvk1lJ0U Dlncw5BQ0Bbgymgec/bevPwPV8q2RkGXwWndsozYOLoIn5zkc922Nefh6mRwpMM9x3UH fqKbgPNpkpEGddFdbOrVqzHPnC6v5Bv+bPtOiHg2gBci4AMPd02/u6aTXa5TkjxNSk58 fg0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767875246; x=1768480046; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=mwaC+shKtPHF9hxjazt9bdYtYDRjr/r6esw6vyxkzGA=; b=i7LfGL8UONNs8FosejeW96JAAWkDAOBFktHvvxLc+40TKGxAktVl7j5fMtFRfPlK5p qaUBzAR4DpWm59vKEvpOEwAfP3B1YTQxlJfvvI8SL1EyHSEtGOejM7Hk40zQXNDGicg0 Gss7rUWs4wyMaFLj9KEVuUr9hiJ3LvRI5273vy6tYsi9KZeuYJSeolss1FvEAIW3cA82 KNVBY/bDEvDcf58aB5GoW5lrX9XZGFeGQdeFD6TmyhyAkm4ALMR79anMjcKgKpR+NaCa sa8+JZ1TrMSPrOb1tTJW8gI+4gGaIXmFG/k3C73vHf2DgugGeTli1bYJ+ox3DdVVp7pP zoTA== X-Forwarded-Encrypted: i=1; AJvYcCXGVw7jbDY/RwAN2kcc2+i8X4LAZigYlf3RO6Zpvh9Wtrijpd3STmROHaAX9jBALH3+deGEIpIpJNa1xc4=@vger.kernel.org X-Gm-Message-State: AOJu0YwifEyjL++OnRkmzo/j9oxfDJJOICUGB2cHPI9zNADGx7Wviszj Hhqgc0gHQHGNMsiBWcUelrq8K70CwtKhMW8fxte41SugI2/+z2JMhDFWPN7DVPBIS2o= X-Gm-Gg: AY/fxX4ITKMzlYxP9Zn+nrJvFYMB1gy2ThtKrl/0p5zv5zWH65Xz16qTcQPJUzKb97b GkLHqPbjm1JZ/3YrOFLQABXYDauAbVJFIedKTAZSqeinF4Ft53PfYekkOLcGMnjLoMDnyOtS1op 52PBwrWiGmh7NMmdjJxugN293PMQD8dzzaJbcq5j4PJnOXfE8qMe8enmIlqzx8G5kj6VCcVPCQH SQgM3P7U6Ingcsn3PDzPLeBuTNd0cXAhEDTi/PjzTimNQUQUsumnYrBkPv+MlCfY5rAQ/G3Oo09 fQ3j2Egmn0FVsPJgWr3SGVKr7EKY3b0AfJ8KOYPMXFjd08BlTROtpW/mstH2nWl6btAv4rcgWjI wmFoafPLVUe7KXWcs4en+7qQ0QpkBk35Pjrd9yzgFUnBgh+udoQyikYVaACq/EyuieRJkntkV1e bpqv6Po72wbCw1EJ8sLambWH3yytmgP0dTqIUDx8mg9A== X-Google-Smtp-Source: AGHT+IGhCCDZv7bjh6IErkPehfJ2jVcvReECzkxUQUoLDLwfeIJZYdhcoUvkJgdrBLVOE06Ipe/4/g== X-Received: by 2002:a05:6a00:1bc8:b0:7aa:ac12:2c2e with SMTP id d2e1a72fcca58-81b7d8563a8mr5548416b3a.25.1767875246380; Thu, 08 Jan 2026 04:27:26 -0800 (PST) Received: from [127.0.1.1] ([2a12:a305:4::40df]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-819bafe991dsm7656401b3a.16.2026.01.08.04.27.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 04:27:26 -0800 (PST) From: Guodong Xu Date: Thu, 08 Jan 2026 20:25:58 +0800 Subject: [PATCH v3 07/11] dt-bindings: riscv: Add descriptions for Za64rs, Ziccamoa, Ziccif, and Zicclsm Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260108-k3-basic-dt-v3-7-ed99eb4c3ad3@riscstar.com> References: <20260108-k3-basic-dt-v3-0-ed99eb4c3ad3@riscstar.com> In-Reply-To: <20260108-k3-basic-dt-v3-0-ed99eb4c3ad3@riscstar.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel , Yangyu Chen Cc: Paul Walmsley , Conor Dooley , Heinrich Schuchardt , Kevin Meng Zhang , Anup Patel , Andrew Jones , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, spacemit@lists.linux.dev, linux-serial@vger.kernel.org, Guodong Xu X-Mailer: b4 0.14.2 Add descriptions for four extensions: Za64rs, Ziccamoa, Ziccif, and Zicclsm. These extensions are ratified in RISC-V Profiles Version 1.0 (commit b1d806605f87 "Updated to ratified state."). They are introduced as new extension names for existing features and regulate implementation details for RISC-V Profile compliance. According to RISC-V Profiles Version 1.0 and RVA23 Profiles Version 1.0, they are mandatory for the following profiles: - za64rs: Mandatory in RVA22U64, RVA23U64 - ziccamoa: Mandatory in RVA20U64, RVA22U64, RVA23U64 - ziccif: Mandatory in RVA20U64, RVA22U64, RVA23U64 - zicclsm: Mandatory in RVA20U64, RVA22U64, RVA23U64 Ziccrse specifies the main memory must support "RsrvEventual", which is one (totally there are four) of the support level for Load-Reserved/ Store-Conditional (LR/SC) atomic instructions. Thus it depends on Zalrsc. Ziccamoa specifies the main memory must support AMOArithmetic, among the four levels of PMA support defined for AMOs in the A extension. Thus it depends on Zaamo. Za64rs defines reservation sets are contiguous, naturally aligned, and a maximum of 64 bytes. Za64rs is consumed by two extensions: Zalrsc and Zawrs. Zawrs itself depends on Zalrsc too. Based on the relationship that "A" =3D Zaamo + Zalrsc, add the following dependencies checks: Za64rs -> Zalrsc or A Ziccrse -> Zalrsc or A Ziccamoa -> Zaamo or A Signed-off-by: Guodong Xu --- v3: Update the commit message to explain the relationship of Za64rs, Ziccrse, Ziccamoa, Zalrsc and A. Add dependency checks. v2: New patch. --- .../devicetree/bindings/riscv/extensions.yaml | 49 ++++++++++++++++++= ++++ 1 file changed, 49 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Docu= mentation/devicetree/bindings/riscv/extensions.yaml index e026b366c8f5dbe7d6988d3ed374183c165de35a..ee2cdd3856b91a5bbf486e8a2da= 0986269e82a2b 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -237,6 +237,12 @@ properties: as ratified at commit 4a69197e5617 ("Update to ratified state"= ) of riscv-svvptc. =20 + - const: za64rs + description: + The standard Za64rs extension for reservation set size of at m= ost + 64 bytes, as ratified in RISC-V Profiles Version 1.0, with com= mit + b1d806605f87 ("Updated to ratified state.") + - const: zaamo description: | The standard Zaamo extension for atomic memory operations as @@ -378,6 +384,27 @@ properties: in commit 64074bc ("Update version numbers for Zfh/Zfinx") of riscv-isa-manual. =20 + - const: ziccamoa + description: + The standard Ziccamoa extension for main memory (cacheability = and + coherence) must support all atomics in A, as ratified in RISC-V + Profiles Version 1.0, with commit b1d806605f87 ("Updated to + ratified state.") + + - const: ziccif + description: + The standard Ziccif extension for main memory (cacheability and + coherence) instruction fetch atomicity, as ratified in RISC-V + Profiles Version 1.0, with commit b1d806605f87 ("Updated to + ratified state.") + + - const: zicclsm + description: + The standard Zicclsm extension for main memory (cacheability a= nd + coherence) must support misaligned loads and stores, as ratifi= ed + in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Upd= ated + to ratified state.") + - const: ziccrse description: The standard Ziccrse extension which provides forward progress @@ -780,6 +807,18 @@ properties: then: contains: const: b + # Za64rs and Ziccrse depend on Zalrsc or A + - if: + contains: + anyOf: + - const: za64rs + - const: ziccrse + then: + oneOf: + - contains: + const: zalrsc + - contains: + const: a # Zcb depends on Zca - if: contains: @@ -821,6 +860,16 @@ properties: then: contains: const: f + # Ziccamoa depends on Zaamo or A + - if: + contains: + const: ziccamoa + then: + oneOf: + - contains: + const: zaamo + - contains: + const: a # Zvfbfmin depends on V or Zve32f - if: contains: --=20 2.43.0