Page MenuHomeFreeBSD

linuxkpi: add pci_dev_present and an srcu function for drm5.2
ClosedPublic

Authored by ashafer_badland.io on May 10 2020, 2:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 5:40 PM
Unknown Object (File)
Nov 24 2024, 1:18 PM
Unknown Object (File)
Nov 22 2024, 12:32 AM
Unknown Object (File)
Nov 14 2024, 12:41 PM
Unknown Object (File)
Oct 23 2024, 1:00 PM
Unknown Object (File)
Oct 5 2024, 6:37 AM
Unknown Object (File)
Oct 5 2024, 12:34 AM
Unknown Object (File)
Oct 4 2024, 7:32 PM
Subscribers

Details

Summary

These functions are needed for building drm5.2. They should not
introduce any known backwards compatability issues.

pci_dev_present shows if a set of pci ids are present in the system.
It just wraps pci_find_device.

synchronize_srcu_expedited likewise wraps the existing synchronize_src
lkpi function.

Test Plan

Tested with drm5.2 wip on Intel UHD 605.

Diff Detail

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

Event Timeline

sys/compat/linuxkpi/common/include/linux/pci.h
1056 ↗(On Diff #71611)

style: while (cur != NULL &&

1058 ↗(On Diff #71611)

BSD style: return (1);

1062 ↗(On Diff #71611)

Ditto.

sys/compat/linuxkpi/common/include/linux/srcu.h
52 ↗(On Diff #71611)

Commit this change separately.

Sorry my style habits are taking a little while to form.

I'll make a new review for the srcu changes in a moment.

This revision is now accepted and ready to land.May 16 2020, 10:25 AM
This revision was automatically updated to reflect the committed changes.