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)
Jan 30 2024, 5:12 AM
Unknown Object (File)
Dec 22 2023, 11:20 PM
Unknown Object (File)
Dec 13 2023, 4:14 PM
Unknown Object (File)
Nov 7 2023, 4:15 PM
Unknown Object (File)
Nov 6 2023, 11:04 AM
Unknown Object (File)
Nov 6 2023, 9:06 AM
Unknown Object (File)
Nov 5 2023, 4:39 AM
Unknown Object (File)
Oct 6 2023, 3:14 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