Skip to contentSkip to conversation

Problems with uio_pci_generic in v4.18-rc8

DISCUSSION Harris, James R 3 participants 4 messages Aug 10, 2018 – Aug 12, 2018 KVM

lore
Share & tools
lore
#0 lore raw

Hi,

Using Linux kernel v4.18-rc8, I am unable to bind a PCI device to uio_pci_generic.  This works fine with v4.18-rc4.  dmesg shows:

[  336.221585] genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq 33
[  336.221681] uio_pci_generic: probe of 0000:04:00.0 failed with error -22

This problem has been reproduced on multiple systems.

This seems to be related to commit 9421e45f5 (“uio: use request_threaded_irq instead”) which was merged in -rc5.  Reverting this commit fixes the issue (I also reverted 543af5861f and 57c5f4df0a which also touch uio.c - just to be safe).
This seems like a serious regression to uio_pci_generic, but any tips or pointers would be appreciated.

Thanks,

Jim Harris

#1 lore raw

Hi Harris,

Since the lock protection in uio irq handler is useless currently as discussed in the mail list, so I will revert this commit with small changes and now the testing based LIO/TCMU has been finished.

Thanks,
BRs

Quoted 17 lines · James R

Hi,

Using Linux kernel v4.18-rc8, I am unable to bind a PCI device to uio_pci_generic.  This works fine with v4.18-rc4.  dmesg shows:

[  336.221585] genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq 33 [  336.221681] uio_pci_generic: probe of 0000:04:00.0 failed with error -22

This problem has been reproduced on multiple systems.

This seems to be related to commit 9421e45f5 (“uio: use request_threaded_irq instead”) which was merged in -rc5.  Reverting this commit fixes the issue (I also reverted 543af5861f and 57c5f4df0a which also touch uio.c - just to be safe).

This seems like a serious regression to uio_pci_generic, but any tips or pointers would be appreciated.

Thanks,

Jim Harris

#2 lore raw
Quoted 5 lines · Xiubo Li

Hi Harris,

Since the lock protection in uio irq handler is useless currently as discussed in the mail list, so I will revert this commit with small changes and now the testing based LIO/TCMU has been finished.

Can you send the fixup patch so I can apply it please?

thanks,

greg k-h

#3 lore raw
Quoted 7 lines · On 2018/8/12 19:03, [email protected] wrote:
Quoted 5 lines · Xiubo Li

Hi Harris,

Since the lock protection in uio irq handler is useless currently as discussed in the mail list, so I will revert this commit with small changes and now the testing based LIO/TCMU has been finished.

Can you send the fixup patch so I can apply it please?

Yeah, sure.

Thanks,

Quoted 3 lines

thanks,

greg k-h