[PATCH] bus/pci: fix automatic interrupt type selection
Pekka Riikonen
priikone at iki.fi
Fri Jun 27 21:33:22 CEST 2025
On 2025-06-27 19:00, Thomas Monjalon wrote:
> 20/06/2025 13:47, priikone at iki.fi:
>> Check if kernel returns 0 interrupt vectors and try another interrupt
>> type in that case. Failing to check the vector count can select an
>> interrupt type that's unusable.
>>
>> Signed-off-by: Pekka Riikonen <priikone at iki.fi>
>
> Please could you be explicit about the use case you are trying to fix?
This particular case was with e1000em that only supported INTx, but the
function selected MSI-X simply because it's the first one attempted,
even though it got 0 vectors. Enabling interrupts then failed. If the
function had checked the vector count it would have correctly selected
INTx. Now, my setup might have been quite old but it doesn't change
that it selected wrong interrupt type.
Pekka
More information about the dev
mailing list