From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 4444944D68A for ; Thu, 8 Jan 2026 12:27:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767875248; cv=none; b=JIaljTXRWzntYQiCz2nzPKtJ/BUs9t88wtHGRd9JPUh3yEjh2oXGgam/JchavIZER8+z8wHA9qsY5GZQoWLDaAa4ShNaymW6onu2+E8+RsnFRPT3ZbkHdKDCB5uFT7bEGNUbxrYrBgWLWM6pwnvVIcJnP+u7od8GaNI2wRWB1Mg= 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.177 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-f177.google.com with SMTP id d2e1a72fcca58-7ba55660769so1855381b3a.1 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=CtdqYAr0NbWdxHGtleqdvAZk8e0TnKDLQOvmHPTraYSUnBEQwpB+iZodzaOWzP2J10 FBrkO6IoenT/QaqbjlI5J1OT4N7oKysqGAZYshgsSfOj3yKVCiFbGCdhcBBp+WkPolLA vvU/D1HghKdCVEyvPDcmywbsKLjcpS5ctFd0+C397VPJx0Gh5Itr58XXkOkbBXVrqVDH VrVjp403rl38MMY2QaHvgfh5ZdIpDtXu/oZawtddNlBdLwL6CGY16KsL4ut5oihPVVYK SJ7kWyQ3q61nwkxpidanGZfskucP/+wtEh/uA3X7XMtmJCb+Hpr0rN+y65iv8JMi0mCq fAWg== X-Forwarded-Encrypted: i=1; AJvYcCU3tP1aPSsZJs9Nb1YLPqAnc5fCLVxZDDO4LtBccqStLMK8mhCuG1AanSnNYMVBHN36gPjKSvvX2bkMZ1c=@vger.kernel.org X-Gm-Message-State: AOJu0YzYFeYo5+gaGfy56Ukv87fMgfUHkseqakZJ2yi8sWXjbS73md+O GlIM1EConVLsBXcdKB3zb09igunDeEoZKgt+/9dHEvO2U+M2/MXamvOEFfFI8/uUtZw= X-Gm-Gg: AY/fxX7PK7CLHh6Yc1MB5iWwInFr6TVyNj8LmE9GIcxJRTA8Zgj3e3c+/AM2mKhwyj7 riNy1h9oa1CXUKyR/DDoPYA0NygcyjAvhGfyMhCnhZz1/94b2lNpg+i0XeGuFgobDtYnpl1chKh vQfwm2VzrVHN4/DF3TKT2WwzdXcN1m2KPlMWuJVl6XHG797enhbxU7s8BMK4qAlaPWjL10FGQM8 QC98qjbpGuNKKzek9CuO/cRV5Jw5OJbWvi4VoosMX8lhMm8v7+7lVfaInlYAuF613aGxhe0W5qp FzxeM2FozuVL/jOvoI/3qN1coG6KKfUnYYv9NOSfSqE3Rfw9R0/zgASy5vACdQiclKtaFymlXgD HFj8B+ougnl/3U+UPLmiWLWe1+bWDdao2TtxHBwyDoVvQPaBXZvFNoF3ZfYRfvS8yI9ZykChITy FAEPQGiGu2WKQ8Yyr8D/DO+VTIpTkt/mIg79ICYK1/Mg== 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-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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" = 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/Documentation/devicetree/bindings/riscv/extensions.yaml index e026b366c8f5dbe7d6988d3ed374183c165de35a..ee2cdd3856b91a5bbf486e8a2da0986269e82a2b 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. + - const: za64rs + description: + The standard Za64rs extension for reservation set size of at most + 64 bytes, as ratified in RISC-V Profiles Version 1.0, with commit + 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. + - 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 and + coherence) must support misaligned loads and stores, as ratified + in RISC-V Profiles Version 1.0, with commit b1d806605f87 ("Updated + 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: -- 2.43.0