aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorMatthew Auld <[email protected]>2024-05-22 11:21:44 +0100
committerMatthew Auld <[email protected]>2024-05-22 13:22:38 +0100
commit4465b8c6d3539811ce576f163cb3bf3890e5c883 (patch)
tree478e88bbcf53a8d77cb999ce1cd9370ad7700472 /tools/perf/scripts/python/libxed.py
parentd8a417c4bd510e7ed8ccd30045bf2bf307c00c57 (diff)
drm/xe/pci: remove broken driver_release
This is quite broken since we are nuking the pdev link to the private driver struct, but note here that driver_release is called when the drm_device is released (poor mans drmm), which can be long after the device has been removed. So here what we are actually doing is nuking the pdev link for what is potentially bound to a different drm_device. If that happens before our pci remove callback is triggered (for the new drm_device) we silently exit and skip some important cleanup steps, resulting in hilarity. There should be no reason to implement driver_release, when we already have nicer stuff like drmm, so just remove completely. The actual pdev link is already nuked when removing the device. Signed-off-by: Matthew Auld <[email protected]> Cc: Andrzej Hajda <[email protected]> Cc: Rodrigo Vivi <[email protected]> Reviewed-by: Andrzej Hajda <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions