diff options
author | Lyude Paul <[email protected]> | 2017-01-11 21:25:24 -0500 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-01-27 10:50:35 +1000 |
commit | 15266ae38fe09dae07bd8812cb7a7717b1e1d992 (patch) | |
tree | ac35c6409b5abee4d9a3b7bcf84c6f3be78d2be0 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | cae9ff036eea577856d5b12860b4c79c5e71db4a (diff) |
drm/nouveau: Handle fbcon suspend/resume in seperate worker
Resuming from RPM can happen while already holding
dev->mode_config.mutex. This means we can't actually handle fbcon in
any RPM resume workers, since restoring fbcon requires grabbing
dev->mode_config.mutex again. So move the fbcon suspend/resume code into
it's own worker, and rely on that instead to avoid deadlocking.
This fixes more deadlocks for runtime suspending the GPU on the ThinkPad
W541. Reproduction recipe:
- Get a machine with both optimus and a nvidia card with connectors
attached to it
- Wait for the nvidia GPU to suspend
- Attempt to manually reprobe any of the connectors on the nvidia GPU
using sysfs
- *deadlock*
[airlied: use READ_ONCE to address Hans's comment]
Signed-off-by: Lyude <[email protected]>
Cc: Hans de Goede <[email protected]>
Cc: Kilian Singer <[email protected]>
Cc: Lukas Wunner <[email protected]>
Cc: David Airlie <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions