From: "Nícolas F. R. A. Prado" <nfraprado@collabora.com>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: linux-mediatek@lists.infradead.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com,
tinghan.shen@mediatek.com, seiya.wang@mediatek.com,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, wenst@chromium.org
Subject: Re: [PATCH] arm64: dts: mediatek: mt8195: Add power domain to secondary XHCI
Date: Thu, 11 Jul 2024 11:00:23 -0400 [thread overview]
Message-ID: <4ac0e464-5ef6-445d-a784-fe367ea23a2d@notapiano> (raw)
In-Reply-To: <20240711093230.118534-1-angelogioacchino.delregno@collabora.com>
On Thu, Jul 11, 2024 at 11:32:30AM +0200, AngeloGioacchino Del Regno wrote:
> The secondary XHCI controller, using a PHY that is shared between
> it and the secondary PCI-Express controller, gets powered by the
> PCIE_MAC_P1 power domain.
>
> Add this power domain to the usb@11290000 node to fix probe.
>
> Fixes: 37f2582883be ("arm64: dts: Add mediatek SoC mt8195 and evaluation board")
> Reported-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> #KernelCI
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Hi Angelo,
thanks for the patch, but unfortunately it doesn't fix the issue:
[ 10.772128] mtk-pcie-gen3 112f8000.pcie: host bridge /soc/pcie@112f8000 ranges:
[ 10.788914] mtk-pcie-gen3 112f8000.pcie: IO 0x0024000000..0x00241fffff -> 0x0024000000
[ 10.802111] mtk-pcie-gen3 112f8000.pcie: MEM 0x0024200000..0x0027ffffff -> 0x0024200000
[ 10.941278] mtk-pcie-gen3 112f8000.pcie: PCI host bridge to bus 0000:00
[ 10.785937] xhci-mtk 11290000.usb: uwk - reg:0x400, version:104
[ 10.796352] xhci-mtk 11290000.usb: xHCI Host Controller
[ 10.810530] xhci-mtk 11290000.usb: new USB bus registered, assigned bus number 5
[ 10.844258] xhci-mtk 11290000.usb: clocks are not stable (0x1003d0f)
[ 10.844262] xhci-mtk 11290000.usb: can't setup: -110
[ 10.844266] xhci-mtk 11290000.usb: USB bus 5 deregistered
[ 10.861969] xhci-mtk 11290000.usb: probe with driver xhci-mtk failed with error -110
In fact it seems to have made the issue more frequent, as it happened every time
for the 5 boots I tried.
But that gives me idea to try booting with clk_ignore_unused and
pd_ignore_unused. I'll update the report with the results.
Thanks,
Nícolas
> ---
> arch/arm64/boot/dts/mediatek/mt8195.dtsi | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
> index 2ee45752583c..96ad1b14626e 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
> @@ -1445,6 +1445,7 @@ xhci1: usb@11290000 {
> reg-names = "mac", "ippc";
> interrupts = <GIC_SPI 530 IRQ_TYPE_LEVEL_HIGH 0>;
> phys = <&u2port1 PHY_TYPE_USB2>;
> + power-domains = <&spm MT8195_POWER_DOMAIN_PCIE_MAC_P1>;
> assigned-clocks = <&topckgen CLK_TOP_USB_TOP_1P>,
> <&topckgen CLK_TOP_SSUSB_XHCI_1P>;
> assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D5_D4>,
> --
> 2.45.2
>
next prev parent reply other threads:[~2024-07-11 15:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 9:32 AngeloGioacchino Del Regno
2024-07-11 15:00 ` Nícolas F. R. A. Prado [this message]
2024-07-11 15:47 ` AngeloGioacchino Del Regno
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=4ac0e464-5ef6-445d-a784-fe367ea23a2d@notapiano \
--to=nfraprado@collabora.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=robh@kernel.org \
--cc=seiya.wang@mediatek.com \
--cc=tinghan.shen@mediatek.com \
--cc=wenst@chromium.org \
/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
all inboxes | Powered by JetHome®