From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 7A5F939C621 for ; Thu, 11 Jun 2026 20:14:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781208853; cv=none; b=oYeep3jX2+1cPF8GXMQI5/w1p+vKI5xNOH24qnacPRfwxI5jpi1V1snJppx6+3/Zcl73Ur+i0dodJmAHbliUivujC/Qr8uFOgl/eKw85A6KODKSSByvPhzIgTcC3OAG5Xq6wYIECwh0g3a30fO4U4JpFzL9+KNKuFhkn3pW2piw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781208853; c=relaxed/simple; bh=vzqxvIv/Z820msoDS14+zD5u3OuYC3MRZkySViyquOA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UDbWfy2T05r+1e6qPyYDWbUXLCW073wUvucT5yJCFrr2g3uI0J+S6YZp0S9YWxSmcE5M3+sFzfd9ogiJ3dZRaiWDihefb7gIFzkCl1xNS7jk+vZL5K5/E9zWtdKurRyLH4QxlYd/7gmtC2TNgTwEAms4htag4cK3oB5IpxhC55Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mx0PxvyB; arc=none smtp.client-ip=209.85.215.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mx0PxvyB" Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-c857fba35cfso115076a12.1 for ; Thu, 11 Jun 2026 13:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781208852; x=1781813652; 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=+UogjurmnadVGaEybH3I8GCYhGRY5wKTkofTPfwNbdk=; b=mx0PxvyByqbsUbMbFuwjACk0mTEQSjhhIFFfIE5yP315DV1ZjiJINg3vWjJdp/Qo9u lV75tzv1n9n9FuZAwfqE1j2YtoeNXJH2Dkar/9ngGbFSGvTZOkxbyLyzm4CUBlD1tZnb AzwFG3QB99qYt0YhL9TH6MsWGG+3clDP7HRHmaVnBciC/hVHvE6MTaur9Fnx73lJKu1r +LFhiVtOHao1Cqxyhgq7dEvqtBDLjs2ivB60y2Ox6ce7cUb+++AekURqrF4O5bbhXrYS X04by9bAt/D/1G8VISHu5ehvkMXH0DrhCATm9pZ7KeNFFxBTNJW1P5DROimBovKKndx+ U3mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781208852; x=1781813652; 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=+UogjurmnadVGaEybH3I8GCYhGRY5wKTkofTPfwNbdk=; b=jPl1Uixu+Ld5/x5So0hRLvRUUOppERO3NG1t5eQlRa25PSgv9eeW+nOvU7el3VieZa 7J7/W2Q72BBlkRcNykb+QwgZETF8YtBuFmNg+o4O0vmKSLn9IjuLFGs9K+wRGG1M8VQC dyvyay2jQSRJh6/Ccp8QzWLQzVBjtZqApQrrCHF/InY+GM9Pv05EMwnRDARXf3XNZtg9 2ZC4i8iDughNGUyNFn7b9hFrAM8gfLgcAPKcMRmGmN1iNbrXqW2iEPsltTigK9IMpvfy Wo9qOqfldXLjps4h6LVrOnpkKN2npmKD8rYLAk/6RHLqbNYYd6vResDbTMLL6EPuF1rW YSWA== X-Forwarded-Encrypted: i=1; AFNElJ9Na3VhqtUopXreUmVHuTN587cFNHUFGGdQBb+GJQ0lKq1UADqJR7aZkBjxX7r74tFmpYPOZq/tiLxvwO8=@vger.kernel.org X-Gm-Message-State: AOJu0Yz69qYeGSUOkbxbXAp4DXmkfwZoRg6eS/knatj40pnZXqRK7fJ8 +pzoTCXFOvO7XD9YJxY3M37fSoVAsrklJl4HjVum+o75n3fCJX/gc9Qs X-Gm-Gg: Acq92OF9PcdE/0t8YLk6Kb4KR6Lj0oTV39CP5VPZa9A90/Ka4x049hRK2LNoFDRMkSF cZuCcblURf56UjIUlbO/cDU/AJZ2kc+Hyd0njZKsh/L0zjvjOALkyjDgnApq3ExdvD4xKUNmlP/ A5rk+1kzZG8d/RqZ0OWPwgPVbHrQ4XUscObz/dnqCaOmix7oHrxpgsk8VtJXl/K+lJxrBgRR9X6 2Wxt1RR0sjwr6xh0Ti1oSIVHhbfwLO2r7GtPBrhCMESXElSTRYaE7ICly2vCLY7B79XFsvbWQ+I FP5o6CJyk90FxUbiE6EUSj0MrMdkzjaBTHR63a5qPTOlpsQUyEGSgy+3WGhyqzhVTNeSTswM0Hv oJrwfqrh0M6f0i7RXfHvfMSeK7200gRln00zFtfkqcFeFbU8SwiSWFvNO3dONyOnEBt7yOs3Myg == X-Received: by 2002:a17:902:c407:b0:2c0:c625:4010 with SMTP id d9443c01a7336-2c2f2d5b823mr49982165ad.32.1781208851778; Thu, 11 Jun 2026 13:14:11 -0700 (PDT) Received: from [127.0.1.1] ([2a12:a305:4::302d]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c164f875casm288730475ad.22.2026.06.11.13.14.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2026 13:14:11 -0700 (PDT) From: Guodong Xu Date: Thu, 11 Jun 2026 16:12:45 -0400 Subject: [PATCH v4 08/16] dt-bindings: riscv: Add Zic64b extension description 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: 7bit Message-Id: <20260611-rva23u64-hwprobe-v2-v4-8-3f01a2449488@gmail.com> References: <20260611-rva23u64-hwprobe-v2-v4-0-3f01a2449488@gmail.com> In-Reply-To: <20260611-rva23u64-hwprobe-v2-v4-0-3f01a2449488@gmail.com> To: Jonathan Corbet , Shuah Khan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Zong Li , Deepak Gupta , Anup Patel , Atish Patra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Chen Wang , Inochi Amaoto Cc: linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, Paul Walmsley , Conor Dooley , devicetree@vger.kernel.org, spacemit@lists.linux.dev, sophgo@lists.linux.dev, linux-kselftest@vger.kernel.org, Palmer Dabbelt , Guodong Xu X-Mailer: b4 0.15.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2173; i=docular.xu@gmail.com; h=from:subject:message-id; bh=vzqxvIv/Z820msoDS14+zD5u3OuYC3MRZkySViyquOA=; b=kA0DAAoWgrIluVNoGREByyZiAGorFsGj1LKmqSZuxM3ds1D1JnMhsEQYTedSZCio+Vjz0G5Wp 4h1BAAWCgAdFiEEw8WEa7XqTFtN5wn4grIluVNoGREFAmorFsEACgkQgrIluVNoGRFeTgEAlm4q TS0RrfZZaJySqif9VGXq49FSo90l1aGtPT74WfsA/0Z6QPZvvgDRClq2yD8QKSJAIMfvQbF+DxU A/TYM7CQF X-Developer-Key: i=docular.xu@gmail.com; a=openpgp; fpr=90B1DC3DF0BD10FD1227BD6344F254AF42F143EE Zic64b mandates that cache blocks are 64 bytes in size and naturally aligned in the address space. It is a mandatory extension of both the RVA22 (U64/S64) and RVA23 (U64/S64) profiles, ratified with RISC-V Profiles Version 1.0. Document it so it can be described in the riscv,isa-extensions property, alongside the related Zicbom/Zicbop/Zicboz cache-block extensions. Since Zic64b fixes the cache block size at 64 bytes, also add a schema check requiring any present cbom/cbop/cboz block size to be 64. Signed-off-by: Guodong Xu --- v4: Insert zic64b at its sorted position (before zicbom). Update the commit message. v3: New patch. --- .../devicetree/bindings/riscv/extensions.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml index 5ffc40d599c02..1c24999beb59e 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -494,6 +494,12 @@ properties: in commit 64074bc ("Update version numbers for Zfh/Zfinx") of riscv-isa-manual. + - const: zic64b + description: + The standard Zic64b extension for 64-byte naturally aligned cache + blocks, as ratified in RISC-V Profiles Version 1.0, with commit + b1d806605f87 ("Updated to ratified state.") + - const: zicbom description: The standard Zicbom extension for base cache management operations as @@ -1142,6 +1148,20 @@ allOf: not: contains: const: zilsd + # Zic64b mandates 64-byte naturally aligned cache blocks + - if: + properties: + riscv,isa-extensions: + contains: + const: zic64b + then: + properties: + riscv,cbom-block-size: + const: 64 + riscv,cbop-block-size: + const: 64 + riscv,cboz-block-size: + const: 64 additionalProperties: true ... -- 2.43.0