[PATCH] genirq/msi: Make sure early activation of all PCI MSIs

Marc Zyngier maz at kernel.org
Sat Jan 23 07:32:53 EST 2021


Hi Shameer,

On 2021-01-22 09:21, Shameerali Kolothum Thodi wrote:
> Hi Marc,
> 

[...]

>> I find this pretty complicated, and the I'd like to avoid injecting 
>> the PCI
>> MSI-vs-MSI-X concept in something that is supposed to be bus-agnostic.
> 
> Agree. That’s mainly because I was very skeptical(TBH, very limited in
> my knowledge
> on this msi core code) about changing the MSI-X activation logic here
> and just thought
> of limiting the impact to MSI case as a first attempt.
> 
>> What's wrong with the following (untested) patch, which looks much 
>> simpler?
> 
> Yes, had tried this as one of the early fix, but as said above was not
> very sure of
> the impact on other platforms. Tested this again and it works.
> 
> Please send it.

Actually, there is a better way, which is to have a proper iterator on
vectors instead of descriptors. With that and a bit of cleanup, the
patch[1] looks pretty neat.

Please give it a go.

Thanks,

         M.

[1] https://lore.kernel.org/r/20210123122759.1781359-1-maz@kernel.org
-- 
Jazz is not dead. It just smells funny...



More information about the linux-arm-kernel mailing list