Re: [PATCH v5 08/17] dt-bindings: riscv: Require block-size for Zicbom, Zicbop, and Zicboz
Conor Dooley <[email protected]> Wed, 1 Jul 2026 21:39:19 +0100
| Newsgroups | dev.linux.lists.sophgo,dev.linux.lists.spacemit,org.infradead.lists.kvm-riscv,org.infradead.lists.linux-riscv,org.kernel.vger.kvm,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest |
|---|---|
| Message-ID | <20260701-squiggle-aging-459cd99cb2dc@spud> |
--dKXZ0SKTAmT4FGH2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 01, 2026 at 08:52:21AM -0400, Guodong Xu wrote: > Zicbom, Zicbop, and Zicboz have no default cache block size, so a > devicetree that declares one must also provide the matching > riscv,cbom/cbop/cboz-block-size property. Make it required so a > missing block-size property can be caught by dtbs_check. >=20 > Suggested-by: Conor Dooley <[email protected]> > Signed-off-by: Guodong Xu <[email protected]> > --- > v5: New patch. > --- > .../devicetree/bindings/riscv/extensions.yaml | 26 ++++++++++++++++= ++++++ > 1 file changed, 26 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Do= cumentation/devicetree/bindings/riscv/extensions.yaml > index 5ffc40d599c02..f4dd34d446c02 100644 > --- a/Documentation/devicetree/bindings/riscv/extensions.yaml > +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml > @@ -1142,6 +1142,32 @@ allOf: > not: > contains: > const: zilsd > + # All three Zicbo* extensions require their block size property as the= re's no > + # default. > + - if: > + properties: > + riscv,isa-extensions: > + contains: > + const: zicbom I think the way to fix this is to add required: - riscv,isa-extensions to each of these if conditions (not got time to test it right now, sorry) > + then: > + required: > + - riscv,cbom-block-size > + - if: > + properties: > + riscv,isa-extensions: > + contains: > + const: zicbop > + then: > + required: > + - riscv,cbop-block-size > + - if: > + properties: > + riscv,isa-extensions: > + contains: > + const: zicboz > + then: > + required: > + - riscv,cboz-block-size > =20 > additionalProperties: true > ... >=20 > --=20 > 2.43.0 >=20 --dKXZ0SKTAmT4FGH2 Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCakV69wAKCRB4tDGHoIJi 0qZuAPsE7PpkS7Q9Q/QdOXMXVi0vMgDYbeEgMRtzf0lMlv6w6gEA1JDV5vGVvkwY e3dZ2Ec1Eq1CjjFHEnDtDfSSbocyhQw= =AQmB -----END PGP SIGNATURE----- --dKXZ0SKTAmT4FGH2--