linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Commit d7d8ab87e3e ("PCI: vmd: Switch to msi_create_parent_irq_domain()") causes early-stage reboots on my Dell XPS-9320
@ 2025-08-06 23:07 Kenneth Crudup
  2025-08-07  4:39 ` Nam Cao
  2025-08-07 16:03 ` Bjorn Helgaas
  0 siblings, 2 replies; 6+ messages in thread
From: Kenneth Crudup @ 2025-08-06 23:07 UTC (permalink / raw)
  To: namcao; +Cc: Me, mani, Bjorn Helgaas, linux-pci


I'm running Linus' master (as of today, cca7a0aae8958c9b1).

If I revert the named commit, I can boot OK. Unfortunately there's no 
real output before the machine reboots, to help identify the problem.

I have a(n enabled) VMD in my Alderlake machine:

[    0.141952] [      T1] smpboot: CPU0: 12th Gen Intel(R) Core(TM) 
i7-1280P (family: 0x6, model: 0x9a, stepping: 0x3)

If there's something else I can try, let me know.

Thanks,

-K

-- 
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange 
County CA


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Commit d7d8ab87e3e ("PCI: vmd: Switch to msi_create_parent_irq_domain()") causes early-stage reboots on my Dell XPS-9320
  2025-08-06 23:07 Commit d7d8ab87e3e ("PCI: vmd: Switch to msi_create_parent_irq_domain()") causes early-stage reboots on my Dell XPS-9320 Kenneth Crudup
@ 2025-08-07  4:39 ` Nam Cao
  2025-08-07  5:16   ` Nam Cao
  2025-08-07 16:03 ` Bjorn Helgaas
  1 sibling, 1 reply; 6+ messages in thread
From: Nam Cao @ 2025-08-07  4:39 UTC (permalink / raw)
  To: Kenneth Crudup; +Cc: Me, mani, Bjorn Helgaas, linux-pci

Kenneth Crudup <kenny@panix.com> writes:

> I'm running Linus' master (as of today, cca7a0aae8958c9b1).
>
> If I revert the named commit, I can boot OK. Unfortunately there's no 
> real output before the machine reboots, to help identify the problem.
>
> I have a(n enabled) VMD in my Alderlake machine:
>
> [    0.141952] [      T1] smpboot: CPU0: 12th Gen Intel(R) Core(TM) 
> i7-1280P (family: 0x6, model: 0x9a, stepping: 0x3)
>
> If there's something else I can try, let me know.

Thanks for the report. It is unfortunate that there is no output to work
with :(

Let me stare at the commit again..

Nam

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Commit d7d8ab87e3e ("PCI: vmd: Switch to msi_create_parent_irq_domain()") causes early-stage reboots on my Dell XPS-9320
  2025-08-07  4:39 ` Nam Cao
@ 2025-08-07  5:16   ` Nam Cao
  2025-08-07  6:29     ` Kenneth Crudup
  0 siblings, 1 reply; 6+ messages in thread
From: Nam Cao @ 2025-08-07  5:16 UTC (permalink / raw)
  To: Kenneth Crudup; +Cc: mani, Bjorn Helgaas, linux-pci

On Thu, Aug 07, 2025 at 06:39:13AM +0200, Nam Cao wrote:
> Kenneth Crudup <kenny@panix.com> writes:
> 
> > I'm running Linus' master (as of today, cca7a0aae8958c9b1).
> >
> > If I revert the named commit, I can boot OK. Unfortunately there's no 
> > real output before the machine reboots, to help identify the problem.
> >
> > I have a(n enabled) VMD in my Alderlake machine:
> >
> > [    0.141952] [      T1] smpboot: CPU0: 12th Gen Intel(R) Core(TM) 
> > i7-1280P (family: 0x6, model: 0x9a, stepping: 0x3)
> >
> > If there's something else I can try, let me know.
> 
> Thanks for the report. It is unfortunate that there is no output to work
> with :(
> 
> Let me stare at the commit again..

Another person reported problem with this commit, and that was resolved
with the diff below.

Does it fix your case too?

diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c
index 9bbb0ff4cc15..b679c7f28f51 100644
--- a/drivers/pci/controller/vmd.c
+++ b/drivers/pci/controller/vmd.c
@@ -280,10 +280,12 @@ static int vmd_msi_alloc(struct irq_domain *domain, unsigned int virq,
 static void vmd_msi_free(struct irq_domain *domain, unsigned int virq,
 			 unsigned int nr_irqs)
 {
+	struct irq_data *irq_data;
 	struct vmd_irq *vmdirq;
 
 	for (int i = 0; i < nr_irqs; ++i) {
-		vmdirq = irq_get_chip_data(virq + i);
+		irq_data = irq_domain_get_irq_data(domain, virq + i);
+		vmdirq = irq_data->chip_data;
 
 		synchronize_srcu(&vmdirq->irq->srcu);
 

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: Commit d7d8ab87e3e ("PCI: vmd: Switch to msi_create_parent_irq_domain()") causes early-stage reboots on my Dell XPS-9320
  2025-08-07  5:16   ` Nam Cao
@ 2025-08-07  6:29     ` Kenneth Crudup
  0 siblings, 0 replies; 6+ messages in thread
From: Kenneth Crudup @ 2025-08-07  6:29 UTC (permalink / raw)
  To: Nam Cao; +Cc: mani, Bjorn Helgaas, linux-pci, Me


I can boot with this patch- thanks!

-K

On 8/6/25 22:16, Nam Cao wrote:
> On Thu, Aug 07, 2025 at 06:39:13AM +0200, Nam Cao wrote:
>> Kenneth Crudup <kenny@panix.com> writes:
>>
>>> I'm running Linus' master (as of today, cca7a0aae8958c9b1).
>>>
>>> If I revert the named commit, I can boot OK. Unfortunately there's no
>>> real output before the machine reboots, to help identify the problem.
>>>
>>> I have a(n enabled) VMD in my Alderlake machine:
>>>
>>> [    0.141952] [      T1] smpboot: CPU0: 12th Gen Intel(R) Core(TM)
>>> i7-1280P (family: 0x6, model: 0x9a, stepping: 0x3)
>>>
>>> If there's something else I can try, let me know.
>>
>> Thanks for the report. It is unfortunate that there is no output to work
>> with :(
>>
>> Let me stare at the commit again..
> 
> Another person reported problem with this commit, and that was resolved
> with the diff below.
> 
> Does it fix your case too?
> 
> diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c
> index 9bbb0ff4cc15..b679c7f28f51 100644
> --- a/drivers/pci/controller/vmd.c
> +++ b/drivers/pci/controller/vmd.c
> @@ -280,10 +280,12 @@ static int vmd_msi_alloc(struct irq_domain *domain, unsigned int virq,
>   static void vmd_msi_free(struct irq_domain *domain, unsigned int virq,
>   			 unsigned int nr_irqs)
>   {
> +	struct irq_data *irq_data;
>   	struct vmd_irq *vmdirq;
>   
>   	for (int i = 0; i < nr_irqs; ++i) {
> -		vmdirq = irq_get_chip_data(virq + i);
> +		irq_data = irq_domain_get_irq_data(domain, virq + i);
> +		vmdirq = irq_data->chip_data;
>   
>   		synchronize_srcu(&vmdirq->irq->srcu);
>   
> 

-- 
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange 
County CA


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Commit d7d8ab87e3e ("PCI: vmd: Switch to msi_create_parent_irq_domain()") causes early-stage reboots on my Dell XPS-9320
  2025-08-06 23:07 Commit d7d8ab87e3e ("PCI: vmd: Switch to msi_create_parent_irq_domain()") causes early-stage reboots on my Dell XPS-9320 Kenneth Crudup
  2025-08-07  4:39 ` Nam Cao
@ 2025-08-07 16:03 ` Bjorn Helgaas
  2025-08-11 14:38   ` Bjorn Helgaas
  1 sibling, 1 reply; 6+ messages in thread
From: Bjorn Helgaas @ 2025-08-07 16:03 UTC (permalink / raw)
  To: Kenneth Crudup; +Cc: namcao, mani, Bjorn Helgaas, linux-pci, regressions

On Wed, Aug 06, 2025 at 04:07:30PM -0700, Kenneth Crudup wrote:
> 
> I'm running Linus' master (as of today, cca7a0aae8958c9b1).
> 
> If I revert the named commit, I can boot OK. Unfortunately there's no real
> output before the machine reboots, to help identify the problem.
> 
> I have a(n enabled) VMD in my Alderlake machine:
> 
> [    0.141952] [      T1] smpboot: CPU0: 12th Gen Intel(R) Core(TM) i7-1280P
> (family: 0x6, model: 0x9a, stepping: 0x3)

#regzbot introduced: d7d8ab87e3e7 ("PCI: vmd: Switch to msi_create_parent_irq_domain()")

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Commit d7d8ab87e3e ("PCI: vmd: Switch to msi_create_parent_irq_domain()") causes early-stage reboots on my Dell XPS-9320
  2025-08-07 16:03 ` Bjorn Helgaas
@ 2025-08-11 14:38   ` Bjorn Helgaas
  0 siblings, 0 replies; 6+ messages in thread
From: Bjorn Helgaas @ 2025-08-11 14:38 UTC (permalink / raw)
  To: Kenneth Crudup; +Cc: namcao, mani, Bjorn Helgaas, linux-pci, regressions

On Thu, Aug 07, 2025 at 11:03:03AM -0500, Bjorn Helgaas wrote:
> On Wed, Aug 06, 2025 at 04:07:30PM -0700, Kenneth Crudup wrote:
> > 
> > I'm running Linus' master (as of today, cca7a0aae8958c9b1).
> > 
> > If I revert the named commit, I can boot OK. Unfortunately there's no real
> > output before the machine reboots, to help identify the problem.
> > 
> > I have a(n enabled) VMD in my Alderlake machine:
> > 
> > [    0.141952] [      T1] smpboot: CPU0: 12th Gen Intel(R) Core(TM) i7-1280P
> > (family: 0x6, model: 0x9a, stepping: 0x3)
> 
> #regzbot introduced: d7d8ab87e3e7 ("PCI: vmd: Switch to msi_create_parent_irq_domain()")

#regzbot fix: d5c647b08ee0 ("PCI: vmd: Fix wrong kfree() in vmd_msi_free()")

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-08-11 14:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-06 23:07 Commit d7d8ab87e3e ("PCI: vmd: Switch to msi_create_parent_irq_domain()") causes early-stage reboots on my Dell XPS-9320 Kenneth Crudup
2025-08-07  4:39 ` Nam Cao
2025-08-07  5:16   ` Nam Cao
2025-08-07  6:29     ` Kenneth Crudup
2025-08-07 16:03 ` Bjorn Helgaas
2025-08-11 14:38   ` Bjorn Helgaas

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).