Skip to contentSkip to conversation

Linux 4.5's nfp_net_irq_unmask_msix() vs Xen

DISCUSSION Jan Beulich 2 participants 4 messages Mar 22, 2016

lore
Share & tools
lore
#0 lore raw

All,

the new driver homed under drivers/net/ethernet/netronome/nfp/ has some direct MSI-X table manipulation which quite clearly is incompatible with Xen. According to the comment preceding the function, bypassing the Linux IRQ subsystem is intentional here. Irrespective of the question of whether that's a good idea, this also bypassing the abstractions allowing MSI to work on Xen clearly needs addressing. Does anyone have any thoughts on how to reasonably achieve this? Calling pci_msi_unmask_irq() would seem to be an option (the symbol at least is exported), but likely isn't intended to be used that way.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw

Hello Jan.

Quoted 12 lines · Jan Beulich

All,

the new driver homed under drivers/net/ethernet/netronome/nfp/ has some direct MSI-X table manipulation which quite clearly is incompatible with Xen. According to the comment preceding the function, bypassing the Linux IRQ subsystem is intentional here. Irrespective of the question of whether that's a good idea, this also bypassing the abstractions allowing MSI to work on Xen clearly needs addressing. Does anyone have any thoughts on how to reasonably achieve this? Calling pci_msi_unmask_irq() would seem to be an option (the symbol at least is exported), but likely isn't intended to be used that way.

Did you check the driver code before sending this? I think you may be referring to something which was removed months ago (and never upstreamed).

Kuba

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 16 lines · Jakub Kicinski

Hello Jan.

Quoted 12 lines · Jan Beulich

All,

the new driver homed under drivers/net/ethernet/netronome/nfp/ has some direct MSI-X table manipulation which quite clearly is incompatible with Xen. According to the comment preceding the function, bypassing the Linux IRQ subsystem is intentional here. Irrespective of the question of whether that's a good idea, this also bypassing the abstractions allowing MSI to work on Xen clearly needs addressing. Does anyone have any thoughts on how to reasonably achieve this? Calling pci_msi_unmask_irq() would seem to be an option (the symbol at least is exported), but likely isn't intended to be used that way.

Quoted 3 lines

Did you check the driver code before sending this? I think you may be referring to something which was removed months ago (and never upstreamed).

Oh, sorry. I think you just mean unmasking automasked interrupts. Is that correct? We used to do more MSI-X magic...

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw
Quoted 14 lines
Quoted 1 line
Quoted 1 line · On 22.03.16 at 12:38, <[email protected]> wrote:
Quoted 12 lines · Jakub Kicinski
Quoted 10 lines · Jan Beulich

the new driver homed under drivers/net/ethernet/netronome/nfp/ has some direct MSI-X table manipulation which quite clearly is incompatible with Xen. According to the comment preceding the function, bypassing the Linux IRQ subsystem is intentional here. Irrespective of the question of whether that's a good idea, this also bypassing the abstractions allowing MSI to work on Xen clearly needs addressing. Does anyone have any thoughts on how to reasonably achieve this? Calling pci_msi_unmask_irq() would seem to be an option (the symbol at least is exported), but likely isn't intended to be used that way.

Quoted 6 lines
Quoted 3 lines

Did you check the driver code before sending this? I think you may be referring to something which was removed months ago (and never upstreamed).

Oh, sorry. I think you just mean unmasking automasked interrupts. Is that correct?

Yes (see $subject).

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel