From: Marc Zyngier <maz@kernel.org>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Rob Herring <robh@kernel.org>,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
Heiko Stuebner <heiko@sntech.de>,
Shawn Lin <shawn.lin@rock-chips.com>,
Roh Herring <robh+dt@kernel.org>,
Bjorn Helgaas <bhelgaas@google.com>,
kernel-team@android.com
Subject: Re: [PATCH 1/2] PCI: rockchip: Work around missing device_type property in DT
Date: Sun, 16 Aug 2020 11:39:53 +0100 [thread overview]
Message-ID: <87pn7qnabq.wl-maz@kernel.org> (raw)
In-Reply-To: <20200815232228.GA1325245@bjorn-Precision-5520>
On Sun, 16 Aug 2020 00:22:28 +0100,
Bjorn Helgaas <helgaas@kernel.org> wrote:
>
> On Sat, Aug 15, 2020 at 01:51:11PM +0100, Marc Zyngier wrote:
> > Recent changes to the DT PCI bus parsing made it mandatory for
> > device tree nodes describing a PCI controller to have the
> > 'device_type = "pci"' property for the node to be matched.
> >
> > Although this follows the letter of the specification, it
> > breaks existing device-trees that have been working fine
> > for years. Rockchip rk3399-based systems are a prime example
> > of such collateral damage, and have stopped discovering their
> > PCI bus.
> >
> > In order to paper over the blunder, let's add a workaround
> > to the pcie-rockchip driver, adding the missing property when
> > none is found at boot time. A warning will hopefully nudge the
> > user into updating their DT to a fixed version if they can, but
> > the insentive is obviously pretty small.
>
> s/insentive/incentive/ (Lorenzo or I can fix this up)
>
> > Fixes: 2f96593ecc37 ("of_address: Add bus type match for pci ranges parser")
> > Suggested-by: Roh Herring <robh+dt@kernel.org>
>
> s/Roh/Rob/ (similarly)
Clearly not my day when it comes to proofreading commit messages.
Thanks for pointing this out, and in advance for fixing it up.
>
> > Signed-off-by: Marc Zyngier <maz@kernel.org>
>
> This looks like a candidate for v5.9, since 2f96593ecc37 was merged
> during the v5.9 merge window, right?
Absolutely.
> I wonder how many other DTs are similarly broken? Maybe Rob's DT
> checker has already looked?
I've just managed to run the checker, which comes up with all kinds of
goodies. Apart from the above, it also spots the following:
- arch/arm64/boot/dts/mediatek/mt7622.dtsi: Has a device_type property
in its main PCIe node, but not in the child nodes. It isn't obvious
to me whether that's a violation or not (the spec doesn't say
whether the property should be set on a per-port basis). Rob?
- arch/arm64/boot/dts/qcom/msm8996.dtsi: Only one out of the three
PCIe nodes has the device_type property, probably broken similarly
to rk3399.
I could move the workaround to drivers/pci/of.c, and have it called
from the individual drivers. I don't have the HW to test those though.
Thoughts?
M.
--
Without deviation from the norm, progress is not possible.
WARNING: multiple messages have this Message-ID
From: Marc Zyngier <maz@kernel.org>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Rob Herring <robh@kernel.org>,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
Heiko Stuebner <heiko@sntech.de>,
linux-pci@vger.kernel.org, Shawn Lin <shawn.lin@rock-chips.com>,
linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org,
Roh Herring <robh+dt@kernel.org>,
Bjorn Helgaas <bhelgaas@google.com>,
kernel-team@android.com, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/2] PCI: rockchip: Work around missing device_type property in DT
Date: Sun, 16 Aug 2020 11:39:53 +0100 [thread overview]
Message-ID: <87pn7qnabq.wl-maz@kernel.org> (raw)
In-Reply-To: <20200815232228.GA1325245@bjorn-Precision-5520>
On Sun, 16 Aug 2020 00:22:28 +0100,
Bjorn Helgaas <helgaas@kernel.org> wrote:
>
> On Sat, Aug 15, 2020 at 01:51:11PM +0100, Marc Zyngier wrote:
> > Recent changes to the DT PCI bus parsing made it mandatory for
> > device tree nodes describing a PCI controller to have the
> > 'device_type = "pci"' property for the node to be matched.
> >
> > Although this follows the letter of the specification, it
> > breaks existing device-trees that have been working fine
> > for years. Rockchip rk3399-based systems are a prime example
> > of such collateral damage, and have stopped discovering their
> > PCI bus.
> >
> > In order to paper over the blunder, let's add a workaround
> > to the pcie-rockchip driver, adding the missing property when
> > none is found at boot time. A warning will hopefully nudge the
> > user into updating their DT to a fixed version if they can, but
> > the insentive is obviously pretty small.
>
> s/insentive/incentive/ (Lorenzo or I can fix this up)
>
> > Fixes: 2f96593ecc37 ("of_address: Add bus type match for pci ranges parser")
> > Suggested-by: Roh Herring <robh+dt@kernel.org>
>
> s/Roh/Rob/ (similarly)
Clearly not my day when it comes to proofreading commit messages.
Thanks for pointing this out, and in advance for fixing it up.
>
> > Signed-off-by: Marc Zyngier <maz@kernel.org>
>
> This looks like a candidate for v5.9, since 2f96593ecc37 was merged
> during the v5.9 merge window, right?
Absolutely.
> I wonder how many other DTs are similarly broken? Maybe Rob's DT
> checker has already looked?
I've just managed to run the checker, which comes up with all kinds of
goodies. Apart from the above, it also spots the following:
- arch/arm64/boot/dts/mediatek/mt7622.dtsi: Has a device_type property
in its main PCIe node, but not in the child nodes. It isn't obvious
to me whether that's a violation or not (the spec doesn't say
whether the property should be set on a per-port basis). Rob?
- arch/arm64/boot/dts/qcom/msm8996.dtsi: Only one out of the three
PCIe nodes has the device_type property, probably broken similarly
to rk3399.
I could move the workaround to drivers/pci/of.c, and have it called
from the individual drivers. I don't have the HW to test those though.
Thoughts?
M.
--
Without deviation from the norm, progress is not possible.
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
WARNING: multiple messages have this Message-ID
From: Marc Zyngier <maz@kernel.org>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Rob Herring <robh@kernel.org>,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
Heiko Stuebner <heiko@sntech.de>,
linux-pci@vger.kernel.org, Shawn Lin <shawn.lin@rock-chips.com>,
linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org,
Roh Herring <robh+dt@kernel.org>,
Bjorn Helgaas <bhelgaas@google.com>,
kernel-team@android.com, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/2] PCI: rockchip: Work around missing device_type property in DT
Date: Sun, 16 Aug 2020 11:39:53 +0100 [thread overview]
Message-ID: <87pn7qnabq.wl-maz@kernel.org> (raw)
In-Reply-To: <20200815232228.GA1325245@bjorn-Precision-5520>
On Sun, 16 Aug 2020 00:22:28 +0100,
Bjorn Helgaas <helgaas@kernel.org> wrote:
>
> On Sat, Aug 15, 2020 at 01:51:11PM +0100, Marc Zyngier wrote:
> > Recent changes to the DT PCI bus parsing made it mandatory for
> > device tree nodes describing a PCI controller to have the
> > 'device_type = "pci"' property for the node to be matched.
> >
> > Although this follows the letter of the specification, it
> > breaks existing device-trees that have been working fine
> > for years. Rockchip rk3399-based systems are a prime example
> > of such collateral damage, and have stopped discovering their
> > PCI bus.
> >
> > In order to paper over the blunder, let's add a workaround
> > to the pcie-rockchip driver, adding the missing property when
> > none is found at boot time. A warning will hopefully nudge the
> > user into updating their DT to a fixed version if they can, but
> > the insentive is obviously pretty small.
>
> s/insentive/incentive/ (Lorenzo or I can fix this up)
>
> > Fixes: 2f96593ecc37 ("of_address: Add bus type match for pci ranges parser")
> > Suggested-by: Roh Herring <robh+dt@kernel.org>
>
> s/Roh/Rob/ (similarly)
Clearly not my day when it comes to proofreading commit messages.
Thanks for pointing this out, and in advance for fixing it up.
>
> > Signed-off-by: Marc Zyngier <maz@kernel.org>
>
> This looks like a candidate for v5.9, since 2f96593ecc37 was merged
> during the v5.9 merge window, right?
Absolutely.
> I wonder how many other DTs are similarly broken? Maybe Rob's DT
> checker has already looked?
I've just managed to run the checker, which comes up with all kinds of
goodies. Apart from the above, it also spots the following:
- arch/arm64/boot/dts/mediatek/mt7622.dtsi: Has a device_type property
in its main PCIe node, but not in the child nodes. It isn't obvious
to me whether that's a violation or not (the spec doesn't say
whether the property should be set on a per-port basis). Rob?
- arch/arm64/boot/dts/qcom/msm8996.dtsi: Only one out of the three
PCIe nodes has the device_type property, probably broken similarly
to rk3399.
I could move the workaround to drivers/pci/of.c, and have it called
from the individual drivers. I don't have the HW to test those though.
Thoughts?
M.
--
Without deviation from the norm, progress is not possible.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-08-16 10:41 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-15 12:51 [PATCH 0/2] PCI: rockchip: Fix PCIe probing in 5.9 Marc Zyngier
2020-08-15 12:51 ` Marc Zyngier
2020-08-15 12:51 ` Marc Zyngier
2020-08-15 12:51 ` [PATCH 1/2] PCI: rockchip: Work around missing device_type property in DT Marc Zyngier
2020-08-15 12:51 ` Marc Zyngier
2020-08-15 12:51 ` Marc Zyngier
2020-08-15 23:22 ` Bjorn Helgaas
2020-08-15 23:22 ` Bjorn Helgaas
2020-08-15 23:22 ` Bjorn Helgaas
2020-08-16 10:39 ` Marc Zyngier [this message]
2020-08-16 10:39 ` Marc Zyngier
2020-08-16 10:39 ` Marc Zyngier
2020-08-17 16:12 ` Rob Herring
2020-08-17 16:12 ` Rob Herring
2020-08-17 16:12 ` Rob Herring
2020-08-18 7:35 ` Marc Zyngier
2020-08-18 7:35 ` Marc Zyngier
2020-08-18 7:35 ` Marc Zyngier
2020-08-18 14:23 ` Rob Herring
2020-08-18 14:23 ` Rob Herring
2020-08-18 14:23 ` Rob Herring
2020-08-18 17:34 ` Marc Zyngier
2020-08-18 17:34 ` Marc Zyngier
2020-08-18 17:34 ` Marc Zyngier
2020-08-18 17:48 ` Saravana Kannan
2020-08-18 17:48 ` Saravana Kannan
2020-08-18 17:48 ` Saravana Kannan
2020-08-18 19:02 ` Marc Zyngier
2020-08-18 19:02 ` Marc Zyngier
2020-08-18 19:02 ` Marc Zyngier
2020-08-18 19:06 ` Rob Herring
2020-08-18 19:06 ` Rob Herring
2020-08-18 19:06 ` Rob Herring
2020-08-15 12:51 ` [PATCH 2/2] arm64: dts: rockchip: Fix PCIe DT properties Marc Zyngier
2020-08-15 12:51 ` Marc Zyngier
2020-08-15 12:51 ` Marc Zyngier
2021-01-09 15:39 ` (subset) [PATCH 0/2] PCI: rockchip: Fix PCIe probing in 5.9 Heiko Stuebner
2021-01-09 15:39 ` Heiko Stuebner
2021-01-09 15:39 ` Heiko Stuebner
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=87pn7qnabq.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=bhelgaas@google.com \
--cc=heiko@sntech.de \
--cc=helgaas@kernel.org \
--cc=kernel-team@android.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=robh+dt@kernel.org \
--cc=robh@kernel.org \
--cc=shawn.lin@rock-chips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.