login
Header Space

 
 

Re: [PATCH] x86_64: restore mask_bits in msi shutdown

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <hlu.kernel@...>
Cc: Thomas Gleixner <tglx@...>, Andrew Morton <akpm@...>, Ingo Molnar <mingo@...>, Jeff Garzik <jeff@...>, Ayaz Abdulla <aabdulla@...>, kernel list <linux-kernel@...>
Date: Thursday, April 17, 2008 - 5:19 am

Yinghai Lu <yhlu.kernel.send@gmail.com> writes:


Ouch!  In the case of MSI-X this is horrible.  Reenabling an interrupt
line when we are not using it.  That is likely to cause even stranger
things than kexec to fail.

What happens when someone next comes to use that msi interrupt is
a reasonable question.

The PCI standard describes the state the bits in the msi capability
are supposed to be in after reset, and if a driver is going to
assume some state that is the only reasonable state for a driver to
expect the hardware to be in.  So we don't need to perform a
save/restore cycle.

Could you look at having pci_disable_msi reset the mask bit
to it's default state after we have called msi_set_enable(dev, 0)?
Once the msi capability is disabled the mask bit has no affect.

You should be able to ignoring pci_disable_msix for now.

Thanks, 
Eric

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86_64: restore mask_bits in msi shutdown, Yinghai Lu, (Fri Apr 11, 7:26 pm)
Re: [PATCH] x86_64: restore mask_bits in msi shutdown, Eric W. Biederman, (Thu Apr 17, 6:15 am)
Re: [PATCH] x86_64: restore mask_bits in msi shutdown, Eric W. Biederman, (Thu Apr 17, 5:19 am)
Re: [PATCH] x86_64: restore mask_bits in msi shutdown, Andrew Morton, (Tue Apr 15, 4:12 am)
speck-geostationary