From: Niklas Cassel <cassel@kernel.org>
To: James Le Cuirot <chewi@gentoo.org>
Cc: Wilfred Mallawa <wilfred.mallawa@wdc.com>,
Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>,
Bjorn Helgaas <bhelgaas@google.com>,
linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org,
Shawn Lin <shawn.lin@rock-chips.com>
Subject: Re: PCI: dw-rockchip: Unable to boot Quartz64 Model B from NVMe since reset changes
Date: Mon, 23 Nov 2026 13:16:56 +0100 [thread overview]
Message-ID: <awQuuC-4nRpHj3wK@ryzen> (raw)
In-Reply-To: <39bd808037e8eed09e40f7731a41e71e58d10070.camel@gentoo.org>
On Mon, Nov 23, 2026 at 10:47:03AM +0000, James Le Cuirot wrote:
> On Thu, 2026-11-19 at 11:55 +0100, Niklas Cassel wrote:
>
> > I guess we could also try to clear the interrupt just before unmasking it,
> > to see if this is a spurious interrupt, something like:
> >
> > --- a/drivers/pci/controller/dwc/pcie-dw-rockchip.c
> > +++ b/drivers/pci/controller/dwc/pcie-dw-rockchip.c
> > @@ -692,7 +692,7 @@ static int rockchip_pcie_configure_rc(struct platform_device *pdev,
> > struct device *dev = &pdev->dev;
> > struct dw_pcie_rp *pp;
> > int irq, ret;
> > - u32 val;
> > + u32 reg, val;
> >
> > if (!IS_ENABLED(CONFIG_PCIE_ROCKCHIP_DW_HOST))
> > return -ENODEV;
> > @@ -739,6 +739,9 @@ static int rockchip_pcie_configure_rc(struct platform_device *pdev,
> > return ret;
> > }
> >
> > + reg = rockchip_pcie_readl_apb(rockchip, PCIE_CLIENT_INTR_STATUS_MISC);
> > + rockchip_pcie_writel_apb(rockchip, reg, PCIE_CLIENT_INTR_STATUS_MISC);
> > +
> > /* unmask hot reset/link-down reset */
> > val = FIELD_PREP_WM16(PCIE_LINK_REQ_RST_NOT_INT, 0);
> > rockchip_pcie_writel_apb(rockchip, val, PCIE_CLIENT_INTR_MASK_MISC);
>
> The good news is that this worked! :) Please go ahead and commit it if you
> believe it makes sense.
I sent a patch here:
https://lore.kernel.org/linux-pci/20261123121217.1107902-2-cassel@kernel.org/
Sending your Tested-by: tag might improve the chances that the maintainers
pick up the patch.
Kind regards,
Niklas
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
prev parent reply other threads:[~2026-11-23 12:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 16:03 PCI: dw-rockchip: Unable to boot Quartz64 Model B from NVMe since reset changes James Le Cuirot
2026-11-18 16:46 ` Niklas Cassel
2026-11-18 22:30 ` James Le Cuirot
2026-11-18 22:47 ` Wilfred Mallawa
2026-11-19 10:55 ` Niklas Cassel
2026-11-23 10:47 ` James Le Cuirot
2026-11-23 12:16 ` Niklas Cassel [this message]
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=awQuuC-4nRpHj3wK@ryzen \
--to=cassel@kernel.org \
--cc=bhelgaas@google.com \
--cc=chewi@gentoo.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=manivannan.sadhasivam@oss.qualcomm.com \
--cc=shawn.lin@rock-chips.com \
--cc=wilfred.mallawa@wdc.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