All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: Cyril Brulebois <kibi@debian.org>
Cc: Thorsten Leemhuis <regressions@leemhuis.info>,
	Jim Quinlan <jim2101024@gmail.com>,
	"regressions@lists.linux.dev" <regressions@lists.linux.dev>,
	Linux PCI <linux-pci@vger.kernel.org>,
	bjorn@helgaas.com
Subject: Re: [Bug 215925] New: PCIe regression on Raspberry Pi Compute Module 4 (CM4) breaks booting
Date: Tue, 10 May 2022 12:22:43 -0500	[thread overview]
Message-ID: <20220510172243.GA684299@bhelgaas> (raw)
In-Reply-To: <20220509174527.zoqhmaxfwo7udezo@mraw.org>

On Mon, May 09, 2022 at 07:45:27PM +0200, Cyril Brulebois wrote:
> Hi Bjorn,
> 
> Bjorn Helgaas <helgaas@kernel.org> (2022-05-09):
> > Cyril, 830aa6f29f07 ("PCI: brcmstb: Split brcm_pcie_setup() into two
> > funcs") reverts cleanly as of 57ae8a492116.  Does reverting it avoid
> > the regression?
> 
> I didn't even try and revert this commit before you suggested doing so
> since it was supposed to be some preliminary work. Quoting a part of
> its commit message:
> 
>     In future commits the brcm_pcie_linkup() function will be called
>     indirectly by pci_host_probe() as opposed to the host driver
>     invoking it directly.
> 
> 
> Anyway, the patch can indeed be reverted on top of v5.18-rc4 or
> v5.18-rc6 but the build fails due to the former function being removed,
> while being still called from other places:
> 
>       CC      drivers/pci/controller/pcie-brcmstb.o
>     drivers/pci/controller/pcie-brcmstb.c:199:12: warning: ‘brcm_pcie_linkup’ used but never defined
>       199 | static int brcm_pcie_linkup(struct brcm_pcie *pcie);
>           |            ^~~~~~~~~~~~~~~~
>     …
>     aarch64-linux-gnu-ld: drivers/pci/controller/pcie-brcmstb.o: in function `brcm_pcie_add_bus':
>     /home/kibi/hack/linux.git/drivers/pci/controller/pcie-brcmstb.c:527: undefined reference to `brcm_pcie_linkup'
> 
> 
> See for example:
> 
>     commit 93e41f3fca3d4a0f927b784012338c37f80a8a80
>     Author: Jim Quinlan <jim2101024@gmail.com>
>     Date:   Thu Jan 6 11:03:29 2022 -0500
>     
>         PCI: brcmstb: Add control of subdevice voltage regulators
> 
> (And that one cannot be trivially reverted.)

What if you revert 830aa6f29f07 and the subsequent brcmstb patches?

  11ed8b8624b8 ("PCI: brcmstb: Do not turn off WOL regulators on suspend")
  93e41f3fca3d ("PCI: brcmstb: Add control of subdevice voltage regulators")
  67211aadcb4b ("PCI: brcmstb: Add mechanism to turn on subdev regulators")
  830aa6f29f07 ("PCI: brcmstb: Split brcm_pcie_setup() into two funcs")

  $ git revert 11ed8b8624b8 93e41f3fca3d 67211aadcb4b 830aa6f29f07

I did that on current upstream: 9be9ed2612b5 ("Merge tag
'platform-drivers-x86-v5.18-4' of
git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86")
and it built fine on x86.

  reply	other threads:[~2022-05-10 17:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-215925-41252@https.bugzilla.kernel.org/>
2022-05-02 18:38 ` [Bug 215925] New: PCIe regression on Raspberry Pi Compute Module 4 (CM4) breaks booting Bjorn Helgaas
2022-05-09  7:44   ` Thorsten Leemhuis
2022-05-09 17:07     ` Bjorn Helgaas
2022-05-09 17:45       ` Cyril Brulebois
2022-05-10 17:22         ` Bjorn Helgaas [this message]
2022-05-10 20:07           ` Cyril Brulebois
2022-05-10 20:55             ` Bjorn Helgaas
2022-05-16 21:05     ` Jim Quinlan
2022-05-18 19:47       ` Jim Quinlan
2022-05-20  5:48         ` Thorsten Leemhuis
2022-06-20  7:00     ` [Bug 215925] New: PCIe regression on Raspberry Pi Compute Module 4 (CM4) breaks booting #forregzbot Thorsten Leemhuis

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=20220510172243.GA684299@bhelgaas \
    --to=helgaas@kernel.org \
    --cc=bjorn@helgaas.com \
    --cc=jim2101024@gmail.com \
    --cc=kibi@debian.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=regressions@leemhuis.info \
    --cc=regressions@lists.linux.dev \
    /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.