Re: [PATCH 2/2] PCI/MSI: Update MSI-X irq domain hwsize

From: Guixin Liu

Date: Wed Mar 25 2026 - 22:02:17 EST




在 2026/3/25 21:58, Thomas Gleixner 写道:
On Wed, Mar 25 2026 at 16:40, Guixin Liu wrote:
在 2026/3/25 15:42, Thomas Gleixner 写道:
So the straight forward solution is to free the MSI domain when the
driver shuts down and tears the MSI interrupts down.
Yes, I had also considered this aspect before, I will change the scheme
to this, and send another patch, thanks.
Actually none of that is required. When you update the firmware then
just let the PCI core rescan the device. That makes way more sense as
the new firmware might change other config entries as well not only the
MSI ones.

Thanks,

tglx
You are right, besides MSI, other attributes may also change.
Removing and then recanning the PCI device is the best approach.

Best Regards,
Guixin Liu