diff options
| author | Daniel Vetter <[email protected]> | 2019-06-14 08:17:23 +0200 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2019-07-10 17:17:14 +0200 |
| commit | 4f5368b5541a902f6596558b05f5c21a9770dd32 (patch) | |
| tree | 8630efb14338199c1333ca223d1d1a3b3d6bac3c /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | d006a9b63d4bbb3eb1e2e616712d45acfcda7042 (diff) | |
drm/kms: Catch mode_object lifetime errors
Only dynamic mode objects, i.e. those which are refcounted and have a free
callback, can be added while the overall drm_device is visible to
userspace. All others must be added before drm_dev_register and
removed after drm_dev_unregister.
Small issue around drivers still using the load/unload callbacks, we
need to make sure we set dev->registered so that load/unload code in
these callbacks doesn't trigger false warnings. Only a small
adjustement in drm_dev_register was needed.
Motivated by some irc discussions about object ids of dynamic objects
like blobs become invalid, and me going on a bit an audit spree.
Reviewed-by: Sean Paul <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions