Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm
Lyude Paul 15266ae38f 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 <lyude@redhat.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Kilian Singer <kilian.singer@quantumtechnology.info>
Cc: Lukas Wunner <lukas@wunner.de>
Cc: David Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2017-01-27 10:50:35 +10:00
..
2017-01-04 12:09:30 +01:00
2016-12-08 10:25:37 +10:00
2016-12-02 17:15:20 +01:00
2016-09-19 15:04:15 +02:00
2016-11-17 11:58:09 +01:00
2016-09-19 11:22:08 +02:00
2016-09-06 13:56:41 -04:00
2016-11-15 23:33:48 +01:00
2016-09-19 13:57:38 +02:00
2016-12-08 10:00:15 +01:00
2016-11-15 23:33:48 +01:00
2016-09-19 13:57:38 +02:00