Re: [PATCH 2/2] PCI/MSI: Update MSI-X irq domain hwsize
From: Guixin Liu
Date: Tue Mar 24 2026 - 21:36:49 EST
在 2026/3/24 21:59, Thomas Gleixner 写道:
On Tue, Mar 24 2026 at 09:47, Guixin Liu wrote:Hi, My description was a bit ambiguous. The msi_device_data_release()
After the upper-layer driver removes the device and before the nextWhen a device is removed then the corresponding struct device is torn
probe, events such as firmware updates may increase the number of
interrupts supported by the device. However, the irq_domain still
retains the old hwsize, which causes subsequent interrupt allocation
failures. Update hwsize during MSI-X device domain setup to fix this
issue.
down, which implies that the device domain is freed as well. So how can
this end up with the old state on the next probe?
Thanks,
tglx
path to remove the irq_domain is only triggered when the device is
removed at the PCI layer. If only the upper-layer driver unbinds,
this path will not be reached.
Best Regards,
Guixin Liu