linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: PCI: host-generic-pci: Allow IOMMU and MSI properties
@ 2022-07-28 17:51 Rob Herring
  2022-08-01 19:58 ` Bjorn Helgaas
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Rob Herring @ 2022-07-28 17:51 UTC (permalink / raw)
  To: Will Deacon, Bjorn Helgaas, Krzysztof Kozlowski
  Cc: linux-pci, linux-arm-kernel, devicetree, linux-kernel

Allow 'iommu-map', 'iommu-map-mask', and 'msi-parent' properties for
generic host. This fixes unevaluated property warnings on Arm Juno, AMD
Seattle, and FSL LS1028a.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/pci/host-generic-pci.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
index 6bcaa8f2c3cf..d25423aa7167 100644
--- a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
+++ b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
@@ -106,6 +106,9 @@ properties:
     maxItems: 3
 
   dma-coherent: true
+  iommu-map: true
+  iommu-map-mask: true
+  msi-parent: true
 
 required:
   - compatible
-- 
2.34.1


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

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

* Re: [PATCH] dt-bindings: PCI: host-generic-pci: Allow IOMMU and MSI properties
  2022-07-28 17:51 [PATCH] dt-bindings: PCI: host-generic-pci: Allow IOMMU and MSI properties Rob Herring
@ 2022-08-01 19:58 ` Bjorn Helgaas
  2022-08-01 20:51 ` Rob Herring
  2022-08-02  9:25 ` Robin Murphy
  2 siblings, 0 replies; 6+ messages in thread
From: Bjorn Helgaas @ 2022-08-01 19:58 UTC (permalink / raw)
  To: Rob Herring
  Cc: Will Deacon, Bjorn Helgaas, Krzysztof Kozlowski, linux-pci,
	linux-arm-kernel, devicetree, linux-kernel

On Thu, Jul 28, 2022 at 11:51:37AM -0600, Rob Herring wrote:
> Allow 'iommu-map', 'iommu-map-mask', and 'msi-parent' properties for
> generic host. This fixes unevaluated property warnings on Arm Juno, AMD
> Seattle, and FSL LS1028a.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>

I assume you'll merge this, Rob?  Let me know if you want me to.

> ---
>  Documentation/devicetree/bindings/pci/host-generic-pci.yaml | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
> index 6bcaa8f2c3cf..d25423aa7167 100644
> --- a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
> +++ b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
> @@ -106,6 +106,9 @@ properties:
>      maxItems: 3
>  
>    dma-coherent: true
> +  iommu-map: true
> +  iommu-map-mask: true
> +  msi-parent: true
>  
>  required:
>    - compatible
> -- 
> 2.34.1
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

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

* Re: [PATCH] dt-bindings: PCI: host-generic-pci: Allow IOMMU and MSI properties
  2022-07-28 17:51 [PATCH] dt-bindings: PCI: host-generic-pci: Allow IOMMU and MSI properties Rob Herring
  2022-08-01 19:58 ` Bjorn Helgaas
@ 2022-08-01 20:51 ` Rob Herring
  2022-08-02  9:25 ` Robin Murphy
  2 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2022-08-01 20:51 UTC (permalink / raw)
  To: Rob Herring
  Cc: linux-arm-kernel, Will Deacon, Bjorn Helgaas,
	Krzysztof Kozlowski, linux-kernel, devicetree, linux-pci

On Thu, 28 Jul 2022 11:51:37 -0600, Rob Herring wrote:
> Allow 'iommu-map', 'iommu-map-mask', and 'msi-parent' properties for
> generic host. This fixes unevaluated property warnings on Arm Juno, AMD
> Seattle, and FSL LS1028a.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  Documentation/devicetree/bindings/pci/host-generic-pci.yaml | 3 +++
>  1 file changed, 3 insertions(+)
> 

Applied, thanks!

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

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

* Re: [PATCH] dt-bindings: PCI: host-generic-pci: Allow IOMMU and MSI properties
  2022-07-28 17:51 [PATCH] dt-bindings: PCI: host-generic-pci: Allow IOMMU and MSI properties Rob Herring
  2022-08-01 19:58 ` Bjorn Helgaas
  2022-08-01 20:51 ` Rob Herring
@ 2022-08-02  9:25 ` Robin Murphy
  2022-08-02 22:21   ` Rob Herring
  2 siblings, 1 reply; 6+ messages in thread
From: Robin Murphy @ 2022-08-02  9:25 UTC (permalink / raw)
  To: Rob Herring, Will Deacon, Bjorn Helgaas, Krzysztof Kozlowski
  Cc: linux-pci, linux-arm-kernel, devicetree, linux-kernel

On 2022-07-28 18:51, Rob Herring wrote:
> Allow 'iommu-map', 'iommu-map-mask', and 'msi-parent' properties for
> generic host. This fixes unevaluated property warnings on Arm Juno, AMD
> Seattle, and FSL LS1028a.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>   Documentation/devicetree/bindings/pci/host-generic-pci.yaml | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
> index 6bcaa8f2c3cf..d25423aa7167 100644
> --- a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
> +++ b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
> @@ -106,6 +106,9 @@ properties:
>       maxItems: 3
>   
>     dma-coherent: true
> +  iommu-map: true
> +  iommu-map-mask: true
> +  msi-parent: true

Hmm, in general this set looks suspiciously incomplete without msi-map 
and msi-map-mask too. Am I right in thinking that the ideal thing to do 
here would be to convert pci-msi.txt and pci-iommu.txt to schema and 
$ref them?

Robin.

>   
>   required:
>     - compatible

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

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

* Re: [PATCH] dt-bindings: PCI: host-generic-pci: Allow IOMMU and MSI properties
  2022-08-02  9:25 ` Robin Murphy
@ 2022-08-02 22:21   ` Rob Herring
  2022-08-03 10:30     ` Robin Murphy
  0 siblings, 1 reply; 6+ messages in thread
From: Rob Herring @ 2022-08-02 22:21 UTC (permalink / raw)
  To: Robin Murphy
  Cc: Will Deacon, Bjorn Helgaas, Krzysztof Kozlowski, PCI,
	linux-arm-kernel, devicetree, linux-kernel

On Tue, Aug 2, 2022 at 3:26 AM Robin Murphy <robin.murphy@arm.com> wrote:
>
> On 2022-07-28 18:51, Rob Herring wrote:
> > Allow 'iommu-map', 'iommu-map-mask', and 'msi-parent' properties for
> > generic host. This fixes unevaluated property warnings on Arm Juno, AMD
> > Seattle, and FSL LS1028a.
> >
> > Signed-off-by: Rob Herring <robh@kernel.org>
> > ---
> >   Documentation/devicetree/bindings/pci/host-generic-pci.yaml | 3 +++
> >   1 file changed, 3 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
> > index 6bcaa8f2c3cf..d25423aa7167 100644
> > --- a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
> > +++ b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
> > @@ -106,6 +106,9 @@ properties:
> >       maxItems: 3
> >
> >     dma-coherent: true
> > +  iommu-map: true
> > +  iommu-map-mask: true
> > +  msi-parent: true
>
> Hmm, in general this set looks suspiciously incomplete without msi-map
> and msi-map-mask too. Am I right in thinking that the ideal thing to do
> here would be to convert pci-msi.txt and pci-iommu.txt to schema and
> $ref them?

I already added msi-map/msi-map-mask to pci-bus.yaml[1] as well as
schemas for iommu-map/iommu-map-mask[2] and msi-parent[3]. Since
msi-map is already in the referenced schema, it is allowed here.
msi-parent is separate because it is used elsewhere. iommu-map is
separate largely to make copying pci-iommu.txt as-is easier.

And yes, pci-iommu.txt can now be removed. pci-msi.txt is more
complicated as all of it hasn't been moved into schemas.

Rob

[1] https://github.com/devicetree-org/dt-schema/commit/109bde712466281e8c96a4fadb0f68e7a90a6eca
[2] https://github.com/devicetree-org/dt-schema/commit/3d44bf2b46a9ac638550ca3916d7d7f70823bb58
[3] https://github.com/devicetree-org/dt-schema/commit/59f2e3103b6e776afe4f42e45897f7eabae06fa4

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

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

* Re: [PATCH] dt-bindings: PCI: host-generic-pci: Allow IOMMU and MSI properties
  2022-08-02 22:21   ` Rob Herring
@ 2022-08-03 10:30     ` Robin Murphy
  0 siblings, 0 replies; 6+ messages in thread
From: Robin Murphy @ 2022-08-03 10:30 UTC (permalink / raw)
  To: Rob Herring
  Cc: Will Deacon, Bjorn Helgaas, Krzysztof Kozlowski, PCI,
	linux-arm-kernel, devicetree, linux-kernel

On 2022-08-02 23:21, Rob Herring wrote:
> On Tue, Aug 2, 2022 at 3:26 AM Robin Murphy <robin.murphy@arm.com> wrote:
>>
>> On 2022-07-28 18:51, Rob Herring wrote:
>>> Allow 'iommu-map', 'iommu-map-mask', and 'msi-parent' properties for
>>> generic host. This fixes unevaluated property warnings on Arm Juno, AMD
>>> Seattle, and FSL LS1028a.
>>>
>>> Signed-off-by: Rob Herring <robh@kernel.org>
>>> ---
>>>    Documentation/devicetree/bindings/pci/host-generic-pci.yaml | 3 +++
>>>    1 file changed, 3 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
>>> index 6bcaa8f2c3cf..d25423aa7167 100644
>>> --- a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
>>> +++ b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml
>>> @@ -106,6 +106,9 @@ properties:
>>>        maxItems: 3
>>>
>>>      dma-coherent: true
>>> +  iommu-map: true
>>> +  iommu-map-mask: true
>>> +  msi-parent: true
>>
>> Hmm, in general this set looks suspiciously incomplete without msi-map
>> and msi-map-mask too. Am I right in thinking that the ideal thing to do
>> here would be to convert pci-msi.txt and pci-iommu.txt to schema and
>> $ref them?
> 
> I already added msi-map/msi-map-mask to pci-bus.yaml[1] as well as
> schemas for iommu-map/iommu-map-mask[2] and msi-parent[3]. Since
> msi-map is already in the referenced schema, it is allowed here.
> msi-parent is separate because it is used elsewhere. iommu-map is
> separate largely to make copying pci-iommu.txt as-is easier.
> 
> And yes, pci-iommu.txt can now be removed. pci-msi.txt is more
> complicated as all of it hasn't been moved into schemas.

Ah, great! One general comment, though - iommu-map/msi-map have pretty 
much grown into common IOMMU/MSI consumer properties by now, so IMO 
they'd be better off living alongside their respective iommus/msi-parent 
counterparts, so that other consumers like fsl-mc and host1x can 
reference a common definition rather than duplicating their own. The 
only aspect that should still belong to the PCI binding is the detail of 
how PCI B:D:F forms the input ID for the mappings (and equivalently for 
other bus bindings).

Thanks,
Robin.

> 
> Rob
> 
> [1] https://github.com/devicetree-org/dt-schema/commit/109bde712466281e8c96a4fadb0f68e7a90a6eca
> [2] https://github.com/devicetree-org/dt-schema/commit/3d44bf2b46a9ac638550ca3916d7d7f70823bb58
> [3] https://github.com/devicetree-org/dt-schema/commit/59f2e3103b6e776afe4f42e45897f7eabae06fa4

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

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

end of thread, other threads:[~2022-08-03 10:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 17:51 [PATCH] dt-bindings: PCI: host-generic-pci: Allow IOMMU and MSI properties Rob Herring
2022-08-01 19:58 ` Bjorn Helgaas
2022-08-01 20:51 ` Rob Herring
2022-08-02  9:25 ` Robin Murphy
2022-08-02 22:21   ` Rob Herring
2022-08-03 10:30     ` Robin Murphy

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).