Re: [RFC PATCH] PCI: disable MSI/MSI-X before resetting

2017-05-12 Thread Brian Norris
On Fri, May 12, 2017 at 10:07:29AM -0700, Alexander Duyck wrote: > On Thu, May 11, 2017 at 2:54 PM, Brian Norris > wrote: > > Despite the claims in the associated comment block, it seems that > > clearing the command register is not enough to guarantee that no > > MSI interrupts get triggered dur

Re: [RFC PATCH] PCI: disable MSI/MSI-X before resetting

2017-05-12 Thread Alexander Duyck
On Thu, May 11, 2017 at 2:54 PM, Brian Norris wrote: > Despite the claims in the associated comment block, it seems that > clearing the command register is not enough to guarantee that no > MSI interrupts get triggered during Function Level Reset. Through code > instrumentation, I'm able to clearl

[RFC PATCH] PCI: disable MSI/MSI-X before resetting

2017-05-11 Thread Brian Norris
Despite the claims in the associated comment block, it seems that clearing the command register is not enough to guarantee that no MSI interrupts get triggered during Function Level Reset. Through code instrumentation, I'm able to clearly trace cases like this: (0) reset a device: echo 1 >