drm/nouveau: Pause between setting gpu to D3hot and cutting the power
authorLukas Wunner <lukas@wunner.de>
Sun, 19 Apr 2015 15:18:01 +0000 (17:18 +0200)
committerDave Airlie <airlied@redhat.com>
Fri, 26 Jun 2015 00:26:37 +0000 (10:26 +1000)
commitc5fd936e992dd2829167d2adc63e151675ca6898
treec918bba01de7222dfc52cc736dbfd23a9966c1ab
parent6b8eeca65b18ae77e175cc2b6571731f0ee413bf
drm/nouveau: Pause between setting gpu to D3hot and cutting the power

On the MacBook Pro, power of the gpu is cut by a gmux chip. Sometimes
the gpu gets stuck in powersaving mode and refuses to wake up
("Refused to change power state, currently in D3"). Inserting a
delay between setting the gpu to D3hot and cutting the power seems
to help (most of the time). This issue and its (partial) remediation
by the patch was observed with an Nvidia GT650M (NVE7 / GK107).

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drm.c