linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false
@ 2023-06-15 22:50 Conor Dooley
  2023-06-15 22:50 ` [PATCH v2 1/2] dt-bindings: riscv: cpus: add a ref the common cpu schema Conor Dooley
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Conor Dooley @ 2023-06-15 22:50 UTC (permalink / raw)
  To: palmer
  Cc: conor, Conor Dooley, Rob Herring, Krzysztof Kozlowski,
	Paul Walmsley, linux-riscv, devicetree, linux-kernel

From: Conor Dooley <conor.dooley@microchip.com>

Do the various bits needed to drop the additionalProperties: true that
we currently have in riscv/cpu.yaml, to permit actually enforcing what
people put in cpus nodes.

Changes in v2:
- drop patches 2 -> 5, they're now standard in dt-schema

CC: Rob Herring <robh+dt@kernel.org>
CC: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
CC: Paul Walmsley <paul.walmsley@sifive.com>
CC: Palmer Dabbelt <palmer@dabbelt.com>
CC: linux-riscv@lists.infradead.org
CC: devicetree@vger.kernel.org
CC: linux-kernel@vger.kernel.org

Conor Dooley (2):
  dt-bindings: riscv: cpus: add a ref the common cpu schema
  dt-bindings: riscv: cpus: switch to unevaluatedProperties: false

 Documentation/devicetree/bindings/riscv/cpus.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

-- 
2.39.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v2 1/2] dt-bindings: riscv: cpus: add a ref the common cpu schema
  2023-06-15 22:50 [PATCH v2 0/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false Conor Dooley
@ 2023-06-15 22:50 ` Conor Dooley
  2023-06-20 16:48   ` Rob Herring
  2023-06-15 22:50 ` [PATCH v2 2/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false Conor Dooley
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Conor Dooley @ 2023-06-15 22:50 UTC (permalink / raw)
  To: palmer
  Cc: conor, Conor Dooley, Rob Herring, Krzysztof Kozlowski,
	Paul Walmsley, linux-riscv, devicetree, linux-kernel

From: Conor Dooley <conor.dooley@microchip.com>

To permit validation of RISC-V cpu nodes, "additionalProperties: true"
needs to be swapped for "unevaluatedProperties: false". To facilitate
this in a way that passes dt_binding_check, a reference to the cpu
schema is required.

Disallow the generic cache-op-block-size property that that drags in,
since the RISC-V CBO extensions do not require a common size, and have
individual properties.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
 Documentation/devicetree/bindings/riscv/cpus.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml
index 3d2934b15e80..e89a10d9c06b 100644
--- a/Documentation/devicetree/bindings/riscv/cpus.yaml
+++ b/Documentation/devicetree/bindings/riscv/cpus.yaml
@@ -23,6 +23,9 @@ description: |
   two cores, each of which has two hyperthreads, could be described as
   having four harts.
 
+allOf:
+  - $ref: /schemas/cpu.yaml#
+
 properties:
   compatible:
     oneOf:
@@ -98,6 +101,9 @@ properties:
     $ref: "/schemas/types.yaml#/definitions/string"
     pattern: ^rv(?:64|32)imaf?d?q?c?b?k?j?p?v?h?(?:[hsxz](?:[a-z])+)?(?:_[hsxz](?:[a-z])+)*$
 
+  # RISC-V has multiple properties for cache op block sizes as the sizes
+  # differ between individual CBO extensions
+  cache-op-block-size: false
   # RISC-V requires 'timebase-frequency' in /cpus, so disallow it here
   timebase-frequency: false
 
-- 
2.39.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2 2/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false
  2023-06-15 22:50 [PATCH v2 0/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false Conor Dooley
  2023-06-15 22:50 ` [PATCH v2 1/2] dt-bindings: riscv: cpus: add a ref the common cpu schema Conor Dooley
@ 2023-06-15 22:50 ` Conor Dooley
  2023-06-20 16:48   ` Rob Herring
  2023-06-20 17:00 ` [PATCH v2 0/2] " Palmer Dabbelt
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Conor Dooley @ 2023-06-15 22:50 UTC (permalink / raw)
  To: palmer
  Cc: conor, Conor Dooley, Rob Herring, Krzysztof Kozlowski,
	Paul Walmsley, linux-riscv, devicetree, linux-kernel

From: Conor Dooley <conor.dooley@microchip.com>

To permit validation of cpu nodes, swap "additionalProperties: true"
out for "unevaluatedProperties: false".

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
 Documentation/devicetree/bindings/riscv/cpus.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml
index e89a10d9c06b..144da86718c1 100644
--- a/Documentation/devicetree/bindings/riscv/cpus.yaml
+++ b/Documentation/devicetree/bindings/riscv/cpus.yaml
@@ -143,7 +143,7 @@ required:
   - riscv,isa
   - interrupt-controller
 
-additionalProperties: true
+unevaluatedProperties: false
 
 examples:
   - |
-- 
2.39.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: riscv: cpus: add a ref the common cpu schema
  2023-06-15 22:50 ` [PATCH v2 1/2] dt-bindings: riscv: cpus: add a ref the common cpu schema Conor Dooley
@ 2023-06-20 16:48   ` Rob Herring
  0 siblings, 0 replies; 9+ messages in thread
From: Rob Herring @ 2023-06-20 16:48 UTC (permalink / raw)
  To: Conor Dooley
  Cc: linux-kernel, Paul Walmsley, linux-riscv, devicetree, palmer,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley


On Thu, 15 Jun 2023 23:50:14 +0100, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> To permit validation of RISC-V cpu nodes, "additionalProperties: true"
> needs to be swapped for "unevaluatedProperties: false". To facilitate
> this in a way that passes dt_binding_check, a reference to the cpu
> schema is required.
> 
> Disallow the generic cache-op-block-size property that that drags in,
> since the RISC-V CBO extensions do not require a common size, and have
> individual properties.
> 
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> ---
>  Documentation/devicetree/bindings/riscv/cpus.yaml | 6 ++++++
>  1 file changed, 6 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 2/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false
  2023-06-15 22:50 ` [PATCH v2 2/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false Conor Dooley
@ 2023-06-20 16:48   ` Rob Herring
  0 siblings, 0 replies; 9+ messages in thread
From: Rob Herring @ 2023-06-20 16:48 UTC (permalink / raw)
  To: Conor Dooley
  Cc: Rob Herring, Conor Dooley, devicetree, linux-riscv, Paul Walmsley,
	palmer, linux-kernel, Krzysztof Kozlowski


On Thu, 15 Jun 2023 23:50:15 +0100, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> To permit validation of cpu nodes, swap "additionalProperties: true"
> out for "unevaluatedProperties: false".
> 
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> ---
>  Documentation/devicetree/bindings/riscv/cpus.yaml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 0/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false
  2023-06-15 22:50 [PATCH v2 0/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false Conor Dooley
  2023-06-15 22:50 ` [PATCH v2 1/2] dt-bindings: riscv: cpus: add a ref the common cpu schema Conor Dooley
  2023-06-15 22:50 ` [PATCH v2 2/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false Conor Dooley
@ 2023-06-20 17:00 ` Palmer Dabbelt
  2023-06-20 18:14   ` Conor Dooley
  2023-06-25 23:17 ` Palmer Dabbelt
  2023-06-25 23:20 ` patchwork-bot+linux-riscv
  4 siblings, 1 reply; 9+ messages in thread
From: Palmer Dabbelt @ 2023-06-20 17:00 UTC (permalink / raw)
  To: Conor Dooley
  Cc: Conor Dooley, Conor Dooley, robh+dt, krzysztof.kozlowski+dt,
	Paul Walmsley, linux-riscv, devicetree, linux-kernel

On Thu, 15 Jun 2023 15:50:13 PDT (-0700), Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
>
> Do the various bits needed to drop the additionalProperties: true that
> we currently have in riscv/cpu.yaml, to permit actually enforcing what
> people put in cpus nodes.
>
> Changes in v2:
> - drop patches 2 -> 5, they're now standard in dt-schema
>
> CC: Rob Herring <robh+dt@kernel.org>
> CC: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> CC: Paul Walmsley <paul.walmsley@sifive.com>
> CC: Palmer Dabbelt <palmer@dabbelt.com>
> CC: linux-riscv@lists.infradead.org
> CC: devicetree@vger.kernel.org
> CC: linux-kernel@vger.kernel.org
>
> Conor Dooley (2):
>   dt-bindings: riscv: cpus: add a ref the common cpu schema
>   dt-bindings: riscv: cpus: switch to unevaluatedProperties: false
>
>  Documentation/devicetree/bindings/riscv/cpus.yaml | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)

Acked-by: Palmer Dabbelt <palmer@rivosinc.com>

LMK if you wanted me to pick these up?

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 0/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false
  2023-06-20 17:00 ` [PATCH v2 0/2] " Palmer Dabbelt
@ 2023-06-20 18:14   ` Conor Dooley
  0 siblings, 0 replies; 9+ messages in thread
From: Conor Dooley @ 2023-06-20 18:14 UTC (permalink / raw)
  To: Palmer Dabbelt
  Cc: Conor Dooley, robh+dt, krzysztof.kozlowski+dt, Paul Walmsley,
	linux-riscv, devicetree, linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 1226 bytes --]

On Tue, Jun 20, 2023 at 10:00:14AM -0700, Palmer Dabbelt wrote:
> On Thu, 15 Jun 2023 15:50:13 PDT (-0700), Conor Dooley wrote:
> > From: Conor Dooley <conor.dooley@microchip.com>
> > 
> > Do the various bits needed to drop the additionalProperties: true that
> > we currently have in riscv/cpu.yaml, to permit actually enforcing what
> > people put in cpus nodes.
> > 
> > Changes in v2:
> > - drop patches 2 -> 5, they're now standard in dt-schema
> > 
> > CC: Rob Herring <robh+dt@kernel.org>
> > CC: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> > CC: Paul Walmsley <paul.walmsley@sifive.com>
> > CC: Palmer Dabbelt <palmer@dabbelt.com>
> > CC: linux-riscv@lists.infradead.org
> > CC: devicetree@vger.kernel.org
> > CC: linux-kernel@vger.kernel.org
> > 
> > Conor Dooley (2):
> >   dt-bindings: riscv: cpus: add a ref the common cpu schema
> >   dt-bindings: riscv: cpus: switch to unevaluatedProperties: false
> > 
> >  Documentation/devicetree/bindings/riscv/cpus.yaml | 8 +++++++-
> >  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> Acked-by: Palmer Dabbelt <palmer@rivosinc.com>

> LMK if you wanted me to pick these up?

That was my hope, please do!

Cheers,
Conor.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 0/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false
  2023-06-15 22:50 [PATCH v2 0/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false Conor Dooley
                   ` (2 preceding siblings ...)
  2023-06-20 17:00 ` [PATCH v2 0/2] " Palmer Dabbelt
@ 2023-06-25 23:17 ` Palmer Dabbelt
  2023-06-25 23:20 ` patchwork-bot+linux-riscv
  4 siblings, 0 replies; 9+ messages in thread
From: Palmer Dabbelt @ 2023-06-25 23:17 UTC (permalink / raw)
  To: Palmer Dabbelt, Conor Dooley
  Cc: Conor Dooley, Rob Herring, Krzysztof Kozlowski, Paul Walmsley,
	linux-riscv, devicetree, linux-kernel


On Thu, 15 Jun 2023 23:50:13 +0100, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> Do the various bits needed to drop the additionalProperties: true that
> we currently have in riscv/cpu.yaml, to permit actually enforcing what
> people put in cpus nodes.
> 
> Changes in v2:
> - drop patches 2 -> 5, they're now standard in dt-schema
> 
> [...]

Applied, thanks!

[1/2] dt-bindings: riscv: cpus: add a ref the common cpu schema
      https://git.kernel.org/palmer/c/3c1b4758a954
[2/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false
      https://git.kernel.org/palmer/c/1ffe6ddc5c64

Best regards,
-- 
Palmer Dabbelt <palmer@rivosinc.com>


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 0/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false
  2023-06-15 22:50 [PATCH v2 0/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false Conor Dooley
                   ` (3 preceding siblings ...)
  2023-06-25 23:17 ` Palmer Dabbelt
@ 2023-06-25 23:20 ` patchwork-bot+linux-riscv
  4 siblings, 0 replies; 9+ messages in thread
From: patchwork-bot+linux-riscv @ 2023-06-25 23:20 UTC (permalink / raw)
  To: Conor Dooley
  Cc: linux-riscv, palmer, conor.dooley, robh+dt,
	krzysztof.kozlowski+dt, paul.walmsley, devicetree, linux-kernel

Hello:

This series was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@rivosinc.com>:

On Thu, 15 Jun 2023 23:50:13 +0100 you wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> Do the various bits needed to drop the additionalProperties: true that
> we currently have in riscv/cpu.yaml, to permit actually enforcing what
> people put in cpus nodes.
> 
> Changes in v2:
> - drop patches 2 -> 5, they're now standard in dt-schema
> 
> [...]

Here is the summary with links:
  - [v2,1/2] dt-bindings: riscv: cpus: add a ref the common cpu schema
    https://git.kernel.org/riscv/c/3c1b4758a954
  - [v2,2/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false
    https://git.kernel.org/riscv/c/1ffe6ddc5c64

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-06-25 23:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-15 22:50 [PATCH v2 0/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false Conor Dooley
2023-06-15 22:50 ` [PATCH v2 1/2] dt-bindings: riscv: cpus: add a ref the common cpu schema Conor Dooley
2023-06-20 16:48   ` Rob Herring
2023-06-15 22:50 ` [PATCH v2 2/2] dt-bindings: riscv: cpus: switch to unevaluatedProperties: false Conor Dooley
2023-06-20 16:48   ` Rob Herring
2023-06-20 17:00 ` [PATCH v2 0/2] " Palmer Dabbelt
2023-06-20 18:14   ` Conor Dooley
2023-06-25 23:17 ` Palmer Dabbelt
2023-06-25 23:20 ` patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).