linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nam Cao <namcao@linutronix.de>
To: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Cc: Lukas Wunner <lukas@wunner.de>,
	Bjorn Helgaas <helgaas@kernel.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Linux PCI Mailing List <linux-pci@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Rob Herring <robh@kernel.org>,
	Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
	Manivannan Sadhasivam <mani@kernel.org>,
	Krzysztof Wilczynski <kwilczynski@kernel.org>,
	Armando Budianto <sprite@gnuweeb.org>,
	Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>,
	gwml@vger.gnuweeb.org
Subject: Re: [GIT PULL v2] PCI changes for v6.17
Date: Fri, 08 Aug 2025 20:07:03 +0200	[thread overview]
Message-ID: <87ectlr8l4.fsf@yellow.woof> (raw)
In-Reply-To: <aJXdMPW4uQm6Tmyx@linux.gnuweeb.org>

Ammar Faizi <ammarfaizi2@gnuweeb.org> writes:

> On Fri, Aug 08, 2025 at 05:59:23PM +0700, Ammar Faizi wrote:
>> On Thu, Aug 07, 2025 at 12:13:37PM +0700, Ammar Faizi wrote:
>> > On Thu, Aug 07, 2025 at 07:03:50AM +0200, Nam Cao wrote:
>> > > Does the diff below help?
>> > 
>> > Yes, it works.
>> 
>> So today, I synced with Linus' master branch again:
>> 
>>   37816488247d ("Merge tag 'net-6.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net")
>> 
>> and applied your fix on top of it.
>> 
>> I can boot, but I get this splat. Looking at the call trace, it seems
>> it's still related to pci, but different issue. The call trace is also
>> different from the previous one.
>
> It'll be a bit tricky to bisect this one. Because if I step back to
> a bad commit post:
>
>    d7d8ab87e3e ("PCI: vmd: Switch to msi_create_parent_irq_domain()")
>
> I won't be able to boot to reach this new splat :/
>
> I guess I need to apply the fix dirty for each bisection step. But I'll
> also need to make sure the current step has the d7d8ab87e3e commit
> anchestor before applying.

There is no point in bisecting before that commit, because the WARN_ON()
is added by that commit, so you wouldn't see anything before that.

The WARN_ONCE() tells us that some devices down the PCI tree are
allocating MSI, but VMD supports MSI-X only.

From the backtrace:
   msi_create_device_irq_domain+0x1eb/0x290
   __pci_enable_msi_range+0x106/0x300
   pci_alloc_irq_vectors_affinity+0xc5/0x110
   pcie_portdrv_probe+0x24e/0x610

It seems MSI-X are allocated first, but fail for some reason. Then
fallback to MSI, which triggers the WARN_ON().

So we need to figure out why MSI-X allocation fail.

I may need to ask you to insert a bunch of printk() to help me pinpoint
the problem. But let me stare at it first..

Nam

  parent reply	other threads:[~2025-08-08 18:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-01 14:22 [GIT PULL v2] PCI changes for v6.17 Bjorn Helgaas
2025-08-01 21:37 ` pr-tracker-bot
2025-08-07  3:34   ` Ammar Faizi
2025-08-07  3:51     ` Lukas Wunner
2025-08-07  4:44       ` Nam Cao
2025-08-07  4:54       ` Ammar Faizi
2025-08-07  5:03         ` Nam Cao
2025-08-07  5:13           ` Ammar Faizi
2025-08-08 10:59             ` Ammar Faizi
2025-08-08 11:19               ` Ammar Faizi
2025-08-08 13:34                 ` Ammar Faizi
2025-08-08 18:07                 ` Nam Cao [this message]
2025-08-08 22:52                   ` Ammar Faizi
2025-08-09  4:34                     ` Nam Cao
2025-08-09 13:28                       ` Ammar Faizi
2025-08-09 14:49                         ` Nam Cao
2025-08-09 15:15                           ` Ammar Faizi
2025-08-09 15:32                             ` Nam Cao
2025-08-09 16:03                               ` Ammar Faizi
2025-08-09 16:28                                 ` Nam Cao

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=87ectlr8l4.fsf@yellow.woof \
    --to=namcao@linutronix.de \
    --cc=alviro.iskandar@gnuweeb.org \
    --cc=ammarfaizi2@gnuweeb.org \
    --cc=gwml@vger.gnuweeb.org \
    --cc=helgaas@kernel.org \
    --cc=kwilczynski@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=lukas@wunner.de \
    --cc=mani@kernel.org \
    --cc=robh@kernel.org \
    --cc=sprite@gnuweeb.org \
    --cc=torvalds@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).