Skip to content

[bsp_tests] Bind desiredDrivers when reloading kmods#626

Open
dzarista wants to merge 1 commit into
facebook:mainfrom
dzarista:bspTestKmods
Open

[bsp_tests] Bind desiredDrivers when reloading kmods#626
dzarista wants to merge 1 commit into
facebook:mainfrom
dzarista:bspTestKmods

Conversation

@dzarista

@dzarista dzarista commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

Summary

During bsp_tests, before each subtest, kmods are reloaded. This poses an issue for devices that need to use the desiredDriver setting, as loading the scd driver will not actually bind the devices.

To fix this, I'm proposing a change similar to the way PciExplorer handles desiredDriver. In KmodUtils, the desiredDriver attribute is checked and the devices are bound during runtime.

Test Plan

bsp_tests passes on darwin(48v), which use desiredDriver for scd devices.

@meta-cla meta-cla Bot added the CLA Signed label Nov 3, 2025
@meta-codesync

meta-codesync Bot commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

@Scott8440 has imported this pull request. If you are a Meta employee, you can view this in D86276834.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant