From: Rob Herring <robh@kernel.org>
To: Elad Nachman <enachman@marvell.com>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Miquel Raynal <miquel.raynal@bootlin.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [EXT] [PATCH net-next] net: marvell,prestera: Fix example PCI bus addressing
Date: Tue, 23 Jan 2024 16:43:24 -0600 [thread overview]
Message-ID: <20240123224324.GA2181680-robh@kernel.org> (raw)
In-Reply-To: <BN9PR18MB4251944C1AE34057DACD7556DB742@BN9PR18MB4251.namprd18.prod.outlook.com>
On Tue, Jan 23, 2024 at 09:59:46AM +0000, Elad Nachman wrote:
>
>
> > -----Original Message-----
> > From: Rob Herring <robh@kernel.org>
> > Sent: Monday, January 22, 2024 7:35 PM
> > To: David S. Miller <davem@davemloft.net>; Eric Dumazet
> > <edumazet@google.com>; Jakub Kicinski <kuba@kernel.org>; Paolo Abeni
> > <pabeni@redhat.com>; Krzysztof Kozlowski
> > <krzysztof.kozlowski+dt@linaro.org>; Conor Dooley <conor+dt@kernel.org>;
> > Miquel Raynal <miquel.raynal@bootlin.com>
> > Cc: netdev@vger.kernel.org; devicetree@vger.kernel.org; linux-
> > kernel@vger.kernel.org
> > Subject: [EXT] [PATCH net-next] net: marvell,prestera: Fix example PCI bus
> > addressing
> >
> > External Email
> >
> > ----------------------------------------------------------------------
> > The example for PCI devices has some addressing errors. 'reg' is written as if
> > the parent bus is PCI, but the default bus for examples is 1 address and size
> > cell. 'ranges' is defining config space with a size of 0. Generally, config space
> > should not be defined in 'ranges', only PCI memory and I/O spaces. Fix these
> > issues by updating the values with made-up, but valid values.
> >
> > This was uncovered with recent dtschema changes.
> >
> > Signed-off-by: Rob Herring <robh@kernel.org>
> > ---
> > Documentation/devicetree/bindings/net/marvell,prestera.yaml | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/net/marvell,prestera.yaml
> > b/Documentation/devicetree/bindings/net/marvell,prestera.yaml
> > index 5ea8b73663a5..16ff892f7bbd 100644
> > --- a/Documentation/devicetree/bindings/net/marvell,prestera.yaml
> > +++ b/Documentation/devicetree/bindings/net/marvell,prestera.yaml
> > @@ -78,8 +78,8 @@ examples:
> > pcie@0 {
> > #address-cells = <3>;
> > #size-cells = <2>;
> > - ranges = <0x0 0x0 0x0 0x0 0x0 0x0>;
> > - reg = <0x0 0x0 0x0 0x0 0x0 0x0>;
> > + ranges = <0x02000000 0x0 0x100000 0x10000000 0x0 0x0>;
> > + reg = <0x0 0x1000>;
> > device_type = "pci";
> >
> > switch@0,0 {
> > --
> > 2.43.0
> >
>
> This yaml has a mix-up of device P/N (belonging to AC3, BC2) and PCIe
> IDs (belonging to AC3X, Aldrin2)
> Looks like a part of the yaml was updated, and another part was not
>
> There is a reference here of actual usage of prestera switch device:
> https://github.com/dentproject/linux/blob/dent-linux-5.15.y/arch/arm64/boot/dts/marvell/accton-as4564-26p.dts
That doesn't match upstream at all...
>
> So actual ranges and reg could be used instead of made up ones.
>
> But the actual real life dts places the prestera at the top level of
> the dts, not under pci.
>
> I am not aware of any dts/dtsi using such kind of switch node under
> pcie node, similar to the example given in the yaml file, and did not
> manage to find any under latest linux-next for both arm and arm64 dts
> directories (please correct me here if I am wrong).
Don't know. It seems plausible.
>
> So the question here is if this pci example really necessary for the
> prestera device, or can be removed altogether (which is what I think is best to do).
Miquel's commit adding indicates such devices exist. Why would he add
them otherwise?
Anyways, I'm just fixing boilerplate to make the PCI bus properties
valid. Has nothing to do with this Marvell device really.
Rob
next prev parent reply other threads:[~2024-01-23 22:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-22 17:35 [PATCH net-next] net: marvell,prestera: Fix example PCI bus addressing Rob Herring
2024-01-23 9:59 ` [EXT] " Elad Nachman
2024-01-23 22:43 ` Rob Herring [this message]
2024-01-25 9:03 ` Miquel Raynal
2024-01-26 15:12 ` Rob Herring
2024-01-29 10:39 ` Miquel Raynal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240123224324.GA2181680-robh@kernel.org \
--to=robh@kernel.org \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=enachman@marvell.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miquel.raynal@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).