Page MenuHomeFreeBSD

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

Authored by ashafer on May 10 2020, 2:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 26, 12:07 PM
Unknown Object (File)
Thu, Mar 19, 6:48 PM
Unknown Object (File)
Sat, Mar 14, 7:56 AM
Unknown Object (File)
Sat, Mar 7, 10:24 PM
Unknown Object (File)
Fri, Mar 6, 6:56 PM
Unknown Object (File)
Fri, Mar 6, 11:42 AM
Unknown Object (File)
Fri, Feb 27, 3:31 PM
Unknown Object (File)
Feb 18 2026, 3:29 AM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 31014
Build 28720: arc lint + arc unit

Event Timeline

sys/compat/linuxkpi/common/include/linux/pci.h
1056

style: while (cur != NULL &&

1058

BSD style: return (1);

1062

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.