Page MenuHomeFreeBSD

Factor code in LinuxKPI to allow attach and detach to and from any BSD device
ClosedPublic

Authored by hselasky on Apr 20 2020, 7:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 29, 11:18 PM
Unknown Object (File)
Jul 27 2025, 6:51 AM
Unknown Object (File)
Jul 26 2025, 4:31 PM
Unknown Object (File)
Jul 22 2025, 1:09 PM
Unknown Object (File)
Jul 6 2025, 4:45 PM
Unknown Object (File)
Jul 4 2025, 9:10 AM
Unknown Object (File)
Jul 3 2025, 1:20 AM
Unknown Object (File)
Jun 30 2025, 2:27 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

np requested changes to this revision.EditedApr 21 2020, 10:56 PM

This doesn't quite work because I can't have a struct pci_dev in the softc of the device, which has a native BSD driver (cxgbe) and doesn't use linuxkpi. A different module (iw_cxgbe) on top of cxgbe deals with OFED and that uses linuxkpi. With all this in mind I made the following changes on top of this revision:
https://people.freebsd.org/~np/lkpi_pci.diff

What do you think? If you're ok with my changes please incorporate them into this review.

These are the driver changes I used for testing:
https://people.freebsd.org/~np/iw_cxgbe_dma_device.diff

This revision now requires changes to proceed.Apr 21 2020, 10:56 PM

Incorporate Navdeeps changes.

Can you use this version?

This isn't the exact change I'd suggested or tested but it looks ok to me.

This revision is now accepted and ready to land.Apr 22 2020, 7:22 AM