Enable fw_devlink=on by default
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 74 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | driver core: Add debug logs for device link related probe deferralsdrivers/ | +6 | 0 replies | |
| 2/5 | driver core: Add device link support for INFERRED flagdrivers/ include/ | +13 | 0 replies | |
| 3/5 | driver core: Have fw_devlink use DL_FLAG_INFERREDdrivers/ | +14 | 0 replies | |
| 4/5 | driver core: Handle cycles in device links created by fw_devlinkdrivers/ | +57 | 0 replies | |
| 5/5 | driver core: Set fw_devlink=on by defaultdrivers/ | +1 | 46 replies |
Reviews trailers per patch
None of the 5 patches has a Reviewed-by or Acked-by.
| Patch | Jon Hunter |
|---|---|
| Series | T-b |
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 0/5] Enable fw_devlink=on by default
As discussed in LPC 2020, cyclic dependencies in firmware that couldn't be broken using logic was one of the last remaining reasons fw_devlink=on couldn't be set by default.
This series changes fw_devlink so that when a cyclic dependency is found in firmware, the links between those devices fallback to permissive mode behavior. This way, the rest of the system still benefits from fw_devlink, but the ambiguous cases fallback to permissive mode.
Setting fw_devlink=on by default brings a bunch of benefits (currently, only for systems with device tree firmware):
* Significantly cuts down deferred probes.
* Device probe is effectively attempted in graph order.
* Makes it much easier to load drivers as modules without having to worry about functional dependencies between modules (depmod is still needed for symbol dependencies).
Greg/Rafael,
Can we get this pulled into 5.11-rc1 or -rc2 soon please? I expect to see some issues due to device drivers that aren't following best practices (they don't expose the device to driver core). Want to identify those early on and try to have them fixed before 5.11 release. See [1] for an example of such a case.
If we do end up have to revert anything, it'll just be Patch 5/5 (a one liner).
Marc,
You had hit issues with fw_devlink=on before on some of your systems. Want to give this a shot?
Jisheng,
Want to fix up one of those gpio drivers you were having problems with?
Thanks,
Saravana
[1] - https://lore.kernel.org/lkml/CAGETcx9PiX==mLxB9PO8Myyk6u2vhPVwTMsA5NkD-ywH5xhusw@mail.gmail.com/
Saravana Kannan (5):
driver core: Add debug logs for device link related probe deferrals driver core: Add device link support for INFERRED flag driver core: Have fw_devlink use DL_FLAG_INFERRED
driver core: Handle cycles in device links created by fw_devlink driver core: Set fw_devlink=on by default
drivers/base/core.c | 101 +++++++++++++++++++++++++++++++++++------ include/linux/device.h | 2 + 2 files changed, 90 insertions(+), 13 deletions(-)
Signature · 1 line
2.29.2.684.gfbc64c5ab5-goog