diff options
author | Saravana Kannan <[email protected]> | 2024-10-30 10:10:07 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-11-05 14:02:39 +0100 |
commit | bac3b10b78e54b7da3cede397258f75a2180609b (patch) | |
tree | 432b997c88b2fa7a85e2c41115de732dfb86eadb /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 562e932a077cb35173d8dc11e5005f9c5acd22f0 (diff) |
driver core: fw_devlink: Stop trying to optimize cycle detection logic
In attempting to optimize fw_devlink runtime, I introduced numerous cycle
detection bugs by foregoing cycle detection logic under specific
conditions. Each fix has further narrowed the conditions for optimization.
It's time to give up on these optimization attempts and just run the cycle
detection logic every time fw_devlink tries to create a device link.
The specific bug report that triggered this fix involved a supplier fwnode
that never gets a device created for it. Instead, the supplier fwnode is
represented by the device that corresponds to an ancestor fwnode.
In this case, fw_devlink didn't do any cycle detection because the cycle
detection logic is only run when a device link is created between the
devices that correspond to the actual consumer and supplier fwnodes.
With this change, fw_devlink will run cycle detection logic even when
creating SYNC_STATE_ONLY proxy device links from a device that is an
ancestor of a consumer fwnode.
Reported-by: Tomi Valkeinen <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: 6442d79d880c ("driver core: fw_devlink: Improve detection of overlapping cycles")
Cc: stable <[email protected]>
Tested-by: Tomi Valkeinen <[email protected]>
Signed-off-by: Saravana Kannan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions