commit 54f45a30c0 ("PCI/MSI: Add startup/shutdown for per device domains") causing boot hangs on my laptop
Subsystems (2)
I'm running Linus' master (as of 7f7072574).
I bisected it to the above named commit (but had to back out ba9d484ed3 (""PCI/MSI: Remove the conditional parent [un]mask logic") and then 727e914bbfbbd ("PCI/MSI: Check MSI_FLAG_PCI_MSI_MASK_PARENT in cond_[startup|shutdown]_parent()") first for a clean revert.)
I have a Dell XPS-9320 laptop, and booting would hang before it switched to the xe video driver from the EFI FB driver (not sure if this is a symptom or partial cause) and I'd see a message akin to "not being able to set up DP tunnels, destroying" as the last thing printed before it hangs. (If it's important to see those messages I believe I can force a pstore crash to get them where they can be saved off, let me know).
LMK if you need further info,
-Kenny
Signature · 1 line
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA
Quoted 8 lines · Kenneth Crudup
I'm running Linus' master (as of
7f7072574).I bisected it to the above named commit (but had to back out
ba9d484ed3(""PCI/MSI: Remove the conditional parent [un]mask logic") and then727e914bbfbbd("PCI/MSI: CheckMSI_FLAG_PCI_MSI_MASK_PARENTin cond_[startup|shutdown]_parent()") first for a clean revert.)
Quoted 9 lines
I have a Dell XPS-9320 laptop, and booting would hang before it switched to the xe video driver from the EFI FB driver (not sure if this is a symptom or partial cause) and I'd see a message akin to "not being able to set up DP tunnels, destroying" as the last thing printed before it hangs. (If it's important to see those messages I believe I can force a pstore crash to get them where they can be saved off, let me know).
LMK if you need further info,
I think this has been fixed and the patch is merged in the latest mainline. Can you try
https://lore.kernel.org/all/[email protected]
Regards,
Inochi
Quoted 5 lines
Quoted 5 lines
I bisected it to the above named commit (but had to back out
ba9d484ed3(""PCI/MSI: Remove the conditional parent [un]mask logic") and then727e914bbfbbd("PCI/MSI: CheckMSI_FLAG_PCI_MSI_MASK_PARENTin cond_[startup|shutdown]_parent()") first for a clean revert.)
Quoted 3 lines · Inochi Amaoto
I think this has been fixed and the patch is merged in the latest mainline. Can you try
https://lore.kernel.org/all/[email protected]
But isn't this 727e914bbfbbda9e, which exists already in Linus' master RN?
Thanks,
-Kenny
Signature · 1 line
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA
Quoted 6 lines · Kenneth Crudup
Quoted 5 lines
Quoted 5 lines
I bisected it to the above named commit (but had to back out
ba9d484ed3(""PCI/MSI: Remove the conditional parent [un]mask logic") and then727e914bbfbbd("PCI/MSI: CheckMSI_FLAG_PCI_MSI_MASK_PARENTin cond_[startup|shutdown]_parent()") first for a clean revert.)
Quoted 7 lines
Quoted 3 lines · Inochi Amaoto
I think this has been fixed and the patch is merged in the latest mainline. Can you try
https://lore.kernel.org/all/[email protected]But isn't this
727e914bbfbbda9e, which exists already in Linus' master RN?
Right, I failed to recall the right commit. And that's the fixed one.
Quoted 6 lines
I have a Dell XPS-9320 laptop, and booting would hang before it switched to the xe video driver from the EFI FB driver (not sure if this is a symptom or partial cause) and I'd see a message akin to "not being able to set up DP tunnels, destroying" as the last thing printed before it hangs. (If it's important to see those messages I believe I can force a pstore crash to get them where they can be saved off, let me know).
I think it is good to have some more information like call trace to know whether is caused by this change, or the side effect from other commit.
I also suggest adding someone related to the xe driver or create an issue for it. It is pretty weird as my x86 machine with AMD card has no problem. I will try to reproduce it if I can find a idle board.
Regards,
Inochi
Quoted 2 lines · Inochi Amaoto
I think it is good to have some more information like call trace to know whether is caused by this change, or the side effect from other commit.
Yeah, let me make a branch with the commits back in place, then see if I can get the traces in pstore.
Quoted 1 line
I also suggest adding someone related to the xe driver ...
Nah, I honestly think it may be related to VMD or my NVMe; it's like it does everything it can except do disk I/O.
-Kenny
Signature · 1 line
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA
Quoted 6 lines · Kenneth Crudup
Quoted 2 lines · Inochi Amaoto
I think it is good to have some more information like call trace to know whether is caused by this change, or the side effect from other commit.
Quoted 7 lines
Yeah, let me make a branch with the commits back in place, then see if I can get the traces in pstore.
Quoted 1 line
I also suggest adding someone related to the xe driver ...
Nah, I honestly think it may be related to VMD or my NVMe; it's like it does everything it can except do disk I/O.
If this is related to the NVMe, I think you can check dmesg to see if there is some log like "nvme nvme0: I/O tag XXX (XXX) QID XX timeout, completion polled", which indicate the NVMe is broken.
Regards,
Inochi
Here's my /proc/interrupts (it was too messy to try and attach). (This is from the distro kernel 6.14.0, if it matters)
-K
Quoted 3 lines · Inochi Amaoto
If this is related to the NVMe, I think you can check dmesg to see if there is some log like "nvme nvme0: I/O tag XXX (XXX) QID XX timeout, completion polled", which indicate the NVMe is broken.
Signature · 1 line
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA
CPU0 CPU2 CPU4 CPU6 CPU8 CPU10 CPU12 CPU13 CPU14 CPU15 CPU16 CPU17 CPU18 CPU19
1: 0 0 0 0 0 0 0 0 0 0 0 0 0 12 IR-IO-APIC 1-edge i8042 8: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-IO-APIC 8-edge rtc0 9: 18950 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-IO-APIC 9-fasteoi acpi 12: 0 0 0 0 0 0 0 0 0 0 0 0 139 0 IR-IO-APIC 12-edge i8042 14: 0 36 0 0 0 0 0 0 0 0 0 0 0 0 IR-IO-APIC 14-fasteoi INTC1055:00 16: 0 0 0 0 0 0 0 0 0 0 0 0 0 17 IR-IO-APIC 16-fasteoi processor_thermal_device_pci, idma64.2, i801_smbus, intel-ipu6 26: 0 0 0 0 0 0 0 0 365 0 0 0 0 0 IR-IO-APIC 26-fasteoi intel_ish_ipc 27: 0 0 0 0 0 0 0 0 0 0 0 774 0 0 IR-IO-APIC 27-fasteoi idma64.0, i2c_designware.0 37: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-IO-APIC 37-fasteoi idma64.3, pxa2xx-spi.3 39: 0 0 1 0 0 0 0 0 0 0 0 0 0 0 IR-IO-APIC 39-fasteoi LXT2021:00 40: 0 0 0 922 0 0 0 0 0 0 0 0 0 0 IR-IO-APIC 40-fasteoi idma64.1, i2c_designware.1 120: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DMAR-MSI 1-edge dmar1 121: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DMAR-MSI 0-edge dmar0 122: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DMAR-MSI 2-edge dmar2 123: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSI-0000:00:07.0 0-edge PCIe PME, pciehp 124: 0 0 0 0 0 2 0 0 0 0 0 0 0 0 IR-PCI-MSI-0000:00:07.2 0-edge PCIe PME, pciehp 125: 0 1 0 0 0 0 0 0 0 0 0 0 0 0 intel-gpio 327 VEN_04F3:00 126: 0 0 0 0 0 0 0 778 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 0-edge iwlwifi:default_queue 127: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 1-edge iwlwifi:queue_1 128: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 2-edge iwlwifi:queue_2 129: 0 0 0 0 0 0 0 0 0 0 10464 0 0 0 IR-PCI-MSI-0000:00:0d.0 0-edge xhci_hcd 137: 0 0 0 0 82359 0 0 0 0 0 0 0 0 0 IR-PCI-MSI-0000:00:14.0 0-edge xhci_hcd 145: 0 0 1 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 0-edge vmd0 146: 0 0 0 1 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 1-edge vmd0 147: 0 0 0 0 6377 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 2-edge vmd0 148: 0 0 0 0 0 15141 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 3-edge vmd0 149: 0 0 0 0 0 0 4590 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 4-edge vmd0 150: 0 0 0 0 0 0 0 10013 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 5-edge vmd0 151: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 6-edge vmd0 152: 0 0 0 0 0 0 0 0 0 7403 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 7-edge vmd0 153: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 8-edge vmd0 154: 0 0 0 0 0 0 0 0 0 0 0 5282 0 0 IR-PCI-MSIX-0000:00:0e.0 9-edge vmd0 155: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 10-edge vmd0 156: 0 0 0 0 0 0 0 0 0 0 0 0 0 7357 IR-PCI-MSIX-0000:00:0e.0 11-edge vmd0 157: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 12-edge vmd0 158: 0 7216 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 13-edge vmd0 159: 0 0 9140 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 14-edge vmd0 160: 0 0 0 3488 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 15-edge vmd0 161: 0 0 0 0 4108 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 16-edge vmd0 162: 0 0 0 0 0 4544 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 17-edge vmd0 163: 0 0 0 0 0 0 10313 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0e.0 18-edge vmd0 164: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 146 PCIe PME, PCIe bwctrl 165: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 147 nvme0q0 166: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 148 nvme0q1 167: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 149 nvme0q2 168: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 150 nvme0q3 169: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 151 nvme0q4 170: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 152 nvme0q5 171: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 153 nvme0q6 172: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 154 nvme0q7 173: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 155 nvme0q8 174: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 156 nvme0q9 175: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 157 nvme0q10 176: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 158 nvme0q11 177: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 159 nvme0q12 178: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 160 nvme0q13 179: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 161 nvme0q14 180: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 162 nvme0q15 181: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 163 nvme0q16 182: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 147 nvme0q17 183: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VMD-MSI 148 nvme0q18 184: 0 0 0 0 0 0 0 1234846 0 0 0 0 0 0 IR-PCI-MSI-0000:00:02.0 0-edge xe 185: 0 0 0 0 0 0 0 0 0 346 0 0 0 0 IR-PCI-MSIX-0000:00:0d.2 0-edge thunderbolt 186: 0 0 0 0 0 0 0 0 0 0 346 0 0 0 IR-PCI-MSIX-0000:00:0d.2 1-edge thunderbolt 201: 0 0 0 0 0 0 0 0 0 0 0 0 80 0 IR-PCI-MSI-0000:00:16.0 0-edge mei_me 202: 1354 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0d.3 0-edge thunderbolt 203: 0 1352 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:0d.3 1-edge thunderbolt 218: 0 35 0 0 0 0 0 0 0 0 0 0 0 0 intel-gpio 23 spi-INTC1094:00 219: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 3-edge iwlwifi:queue_3 220: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 4-edge iwlwifi:queue_4 221: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 5-edge iwlwifi:queue_5 222: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 6-edge iwlwifi:queue_6 223: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 7-edge iwlwifi:queue_7 224: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 8-edge iwlwifi:queue_8 225: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 9-edge iwlwifi:queue_9 226: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 10-edge iwlwifi:queue_10 227: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 11-edge iwlwifi:queue_11 228: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 12-edge iwlwifi:queue_12 229: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 13-edge iwlwifi:queue_13 230: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 14-edge iwlwifi:queue_14 231: 0 0 3 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSIX-0000:00:14.3 15-edge iwlwifi:exception 236: 0 0 0 0 0 0 0 0 6067 0 0 0 0 0 IR-PCI-MSI-0000:00:1f.3 0-edge AudioDSP 237: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSI-0000:41:01.0 0-edge pciehp 238: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSI-0000:41:02.0 0-edge pciehp 239: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSI-0000:41:03.0 0-edge pciehp 240: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSI-0000:41:04.0 0-edge PCIe bwctrl NMI: 16 14 18 16 13 12 14 14 13 13 14 14 13 13 Non-maskable interrupts LOC: 862800 970631 847053 845734 743937 724311 830640 921689 827378 805888 940920 980629 857367 764084 Local timer interrupts SPU: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Spurious interrupts PMI: 16 14 18 16 13 12 14 14 13 13 14 14 13 13 Performance monitoring interrupts IWI: 0 0 25 0 0 0 1 29496 0 0 0 0 0 0 IRQ work interrupts RTR: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 APIC ICR read retries RES: 9005 7351 5511 4979 8209 6471 6524 7803 5892 5585 7159 5946 6403 6034 Rescheduling interrupts CAL: 40288 34563 33209 26087 29048 31998 29566 29639 29029 28247 29826 27923 30883 27169 Function call interrupts TLB: 8025 7043 6504 6137 4531 9132 5321 6474 5132 5095 5120 5123 4457 4193 TLB shootdowns TRM: 127 127 127 127 128 125 128 127 127 127 126 126 125 125 Thermal event interrupts THR: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Threshold APIC interrupts DFR: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Deferred Error APIC interrupts MCE: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Machine check exceptions MCP: 3 4 4 4 4 4 4 4 4 4 4 4 4 4 Machine check polls ERR: 0 MIS: 0 PIN: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Posted-interrupt notification event NPI: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Nested posted-interrupt event PIW: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Posted-interrupt wakeup event
[+cc Gene, Jens, Todd]
Quoted 8 lines · Kenneth Crudup
I'm running Linus' master (as of
7f7072574).I bisected it to the above named commit (but had to back out
ba9d484ed3(""PCI/MSI: Remove the conditional parent [un]mask logic") and then727e914bbfbbd("PCI/MSI: CheckMSI_FLAG_PCI_MSI_MASK_PARENTin cond_[startup|shutdown]_parent()") first for a clean revert.)
Quoted 6 lines
I have a Dell XPS-9320 laptop, and booting would hang before it switched to the xe video driver from the EFI FB driver (not sure if this is a symptom or partial cause) and I'd see a message akin to "not being able to set up DP tunnels, destroying" as the last thing printed before it hangs. (If it's important to see those messages I believe I can force a pstore crash to get them where they can be saved off, let me know).
#regzbot introduced: 54f45a30c0 ("PCI/MSI: Add startup/shutdown for per device domains") #regzbot link: https://lore.kernel.org/all/[email protected]/
#regzbot link: https://bugzilla.kernel.org/show_bug.cgi?id=220658
[+cc regressions like I meant to do the first time]
Quoted 17 lines · Bjorn Helgaas
[+cc Gene, Jens, Todd]
Quoted 14 lines · Kenneth Crudup
I'm running Linus' master (as of
7f7072574).I bisected it to the above named commit (but had to back out
ba9d484ed3(""PCI/MSI: Remove the conditional parent [un]mask logic") and then727e914bbfbbd("PCI/MSI: CheckMSI_FLAG_PCI_MSI_MASK_PARENTin cond_[startup|shutdown]_parent()") first for a clean revert.)I have a Dell XPS-9320 laptop, and booting would hang before it switched to the xe video driver from the EFI FB driver (not sure if this is a symptom or partial cause) and I'd see a message akin to "not being able to set up DP tunnels, destroying" as the last thing printed before it hangs. (If it's important to see those messages I believe I can force a pstore crash to get them where they can be saved off, let me know).
#regzbot introduced: 54f45a30c0 ("PCI/MSI: Add startup/shutdown for per device domains") #regzbot link: https://lore.kernel.org/all/[email protected]/
#regzbot link: https://bugzilla.kernel.org/show_bug.cgi?id=220658
Quoted 21 lines · Bjorn Helgaas
[+cc regressions like I meant to do the first time]
Quoted 17 lines · Bjorn Helgaas
[+cc Gene, Jens, Todd]
Quoted 14 lines · Kenneth Crudup
I'm running Linus' master (as of
7f7072574).I bisected it to the above named commit (but had to back out
ba9d484ed3(""PCI/MSI: Remove the conditional parent [un]mask logic") and then727e914bbfbbd("PCI/MSI: CheckMSI_FLAG_PCI_MSI_MASK_PARENTin cond_[startup|shutdown]_parent()") first for a clean revert.)I have a Dell XPS-9320 laptop, and booting would hang before it switched to the xe video driver from the EFI FB driver (not sure if this is a symptom or partial cause) and I'd see a message akin to "not being able to set up DP tunnels, destroying" as the last thing printed before it hangs. (If it's important to see those messages I believe I can force a pstore crash to get them where they can be saved off, let me know).
Quoted 3 lines
#regzbot introduced:
54f45a30c0("PCI/MSI: Add startup/shutdown for per device domains") #regzbot link: https://lore.kernel.org/all/[email protected]/
#regzbot link: https://bugzilla.kernel.org/show_bug.cgi?id=220658
#regzbot fix: e433110eb5bf ("PCI: vmd: Override irq_startup()/irq_shutdown() in vmd_init_dev_msi_info()")
Quoted 10 lines · Bjorn Helgaas
Quoted 9 lines · Bjorn Helgaas
Quoted 8 lines · Bjorn Helgaas
Quoted 7 lines · Kenneth Crudup
I'm running Linus' master (as of
7f7072574).I bisected it to the above named commit (but had to back out
ba9d484ed3(""PCI/MSI: Remove the conditional parent [un]mask logic") and then727e914bbfbbd("PCI/MSI: CheckMSI_FLAG_PCI_MSI_MASK_PARENTin cond_[startup|shutdown]_parent()") first for a clean revert.)
Quoted 7 lines
...
Quoted 3 lines
#regzbot introduced:
54f45a30c0("PCI/MSI: Add startup/shutdown for per device domains") #regzbot link: https://lore.kernel.org/all/[email protected]/
#regzbot link: https://bugzilla.kernel.org/show_bug.cgi?id=220658#regzbot fix:
e433110eb5bf("PCI: vmd: Override irq_startup()/irq_shutdown() invmd_init_dev_msi_info()")
#regzbot report: https://lore.kernel.org/r/[email protected]
#regzbot introduced: 54f45a30c0d0
#regzbot fix: e433110eb5bf
54f45a30c0d0 ("PCI/MSI: Add startup/shutdown for per device domains")e433110eb5bf ("PCI: vmd: Override irq_startup()/irq_shutdown() in vmd_init_dev_msi_info()") (appeared in v6.18-rc2)
Quoted 15 lines · Kenneth Crudup
I'm running Linus' master (as of
7f7072574).I bisected it to the above named commit (but had to back out
ba9d484ed3(""PCI/MSI: Remove the conditional parent [un]mask logic") and then727e914bbfbbd("PCI/MSI: CheckMSI_FLAG_PCI_MSI_MASK_PARENTin cond_[startup|shutdown]_parent()") first for a clean revert.)I have a Dell XPS-9320 laptop, and booting would hang before it switched to the xe video driver from the EFI FB driver (not sure if this is a symptom or partial cause) and I'd see a message akin to "not being able to set up DP tunnels, destroying" as the last thing printed before it hangs. (If it's important to see those messages I believe I can force a pstore crash to get them where they can be saved off, let me know).
Quoted 8 lines
LMK if you need further info,
-Kenny
Signature · 2 lines
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA
Hi, can you test the following?
```
diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c
index 1bd5bf4a6097..b4b62b9ccc45 100644
--- a/drivers/pci/controller/vmd.c
+++ b/drivers/pci/controller/vmd.c
@@ -192,6 +192,12 @@ static void vmd_pci_msi_enable(struct irq_data *data)
data->chip->irq_unmask(data);
}
+static unsigned int vmd_pci_msi_startup(struct irq_data *data)
+{
+ vmd_pci_msi_enable(data);
+ return 0;
+}
+
static void vmd_irq_disable(struct irq_data *data)
{
struct vmd_irq *vmdirq = data->chip_data;
@@ -210,6 +216,11 @@ static void vmd_pci_msi_disable(struct irq_data *data)
vmd_irq_disable(data->parent_data);
}
+static void vmd_pci_msi_shutdown(struct irq_data *data)
+{
+ vmd_pci_msi_disable(data);
+}
+
static struct irq_chip vmd_msi_controller = {
.name = "VMD-MSI",
.irq_compose_msi_msg = vmd_compose_msi_msg,
@@ -309,6 +320,8 @@ static bool vmd_init_dev_msi_info(struct device *dev, struct irq_domain *domain,
if (!msi_lib_init_dev_msi_info(dev, domain, real_parent, info))
return false;
+ info->chip->irq_startup = vmd_pci_msi_startup;
+ info->chip->irq_shutdown = vmd_pci_msi_shutdown;
info->chip->irq_enable = vmd_pci_msi_enable;
info->chip->irq_disable = vmd_pci_msi_disable;
return true;
```Kenneth Crudup
Tested-byQuoted 43 lines
Hi, can you test the following?
```
drivers/pci/controller/vmd.c +13
-0@@ -192,6 +192,12 @@ static void vmd_pci_msi_enable(struct irq_data *data) data->chip->irq_unmask (data); } +static unsigned int vmd_pci_msi_startup (struct irq_data *data) +{ +vmd_pci_msi_enable (data); +return 0 ; +} +static void vmd_irq_disable (struct irq_data *data) {struct vmd_irq *vmdirq = data->chip_data;@@ -210,6 +216,11 @@ static void vmd_pci_msi_disable(struct irq_data *data)vmd_irq_disable (data->parent_data); } +static void vmd_pci_msi_shutdown (struct irq_data *data) +{ +vmd_pci_msi_disable (data); +} +static struct irq_chip vmd_msi_controller = { .name ="VMD-MSI" , .irq_compose_msi_msg = vmd_compose_msi_msg,@@ -309,6 +320,8 @@ static bool vmd_init_dev_msi_info(struct device *dev, struct irq_domain *domain,if (!msi_lib_init_dev_msi_info (dev, domain, real_parent, info))return false; + info->chip->irq_startup = vmd_pci_msi_startup; + info->chip->irq_shutdown = vmd_pci_msi_shutdown; info->chip->irq_enable = vmd_pci_msi_enable; info->chip->irq_disable = vmd_pci_msi_disable;return true;```
Signature · 1 line
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA
Quoted 36 lines · Kenneth Crudup
Tested-by Kenneth R. Crudup <[email protected]>Quoted 32 lines
Hi, can you test the following?
```
drivers/pci/controller/vmd.c +11
-0@@ -192,6 +192,12 @@ static void vmd_pci_msi_enable(struct irq_data *data) data->chip->irq_unmask (data); } +static unsigned int vmd_pci_msi_startup (struct irq_data *data) +{ +vmd_pci_msi_enable (data); +return 0 ; +} +static void vmd_irq_disable (struct irq_data *data) {struct vmd_irq *vmdirq = data->chip_data;@@ -210,6 +216,11 @@ static void vmd_pci_msi_disable(struct irq_data *data)vmd_irq_disable (data->parent_data); } +static void vmd_pci_msi_shutdown (struct irq_data *data) +{ +vmd_pci_msi_disable (data); +} +static struct irq_chip vmd_msi_controller = { .name ="VMD-MSI" , .irq_compose_msi_msg = vmd_compose_msi_msg,@@ -309,6 +320,8 @@ static bool vmd_init_dev_msi_info(struct device *dev, struct irq_domain *domain,if (!msi_lib_init_dev_msi_info (dev, domain, real_parent, info))
Quoted 13 lines
Quoted 8 lines
drivers/pci/controller/vmd.c +2
-0return false; + info->chip->irq_startup = vmd_pci_msi_startup; + info->chip->irq_shutdown = vmd_pci_msi_shutdown; info->chip->irq_enable = vmd_pci_msi_enable; info->chip->irq_disable = vmd_pci_msi_disable;return true;```
Signature · 2 lines
Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA
Great, I have sent a patch here
https://lore.kernel.org/all/[email protected]/
Regards,
Inochi