[Nouveau] [PATCH] drm/nouveau/fb: fix suspend/resume fbcon

2013-10-03 Thread Christoph Rudorff
On resume of a hibernated notebook, I get garbled virtual consoles. fb_set_suspend(*dev, state == 0 means dev is running ...) This patch fixes that issue for me: hibernate: kernel: nouveau [ DRM] suspending fbcon... kernel: nouveau [ DRM] suspending display... kernel: nouveau [ DR

Re: [Nouveau] [PATCH] drm/nouveau/fb: fix suspend/resume fbcon

2013-10-03 Thread Christoph Rudorff
Am Donnerstag, den 03.10.2013, 23:50 +0100 schrieb Emil Velikov: > I'm not entirely sure this is correct. One needs to save and disable > accleration before suspending the fb. Please try the following > > - if (state == 0) > + if (state == 1) > nouveau_fbcon_save_disable_acce

Re: [Nouveau] [PATCH] drm/nouveau/fb: fix suspend/resume fbcon

2013-11-17 Thread Christoph Rudorff
On 17.11.2013 00:22, Emil Velikov wrote: > On 04/10/13 01:54, Christoph Rudorff wrote: >> Am Donnerstag, den 03.10.2013, 23:50 +0100 schrieb Emil Velikov: >>> I'm not entirely sure this is correct. One needs to save and disable >>> accleration before suspending

[Nouveau] [PATCH] drm/nouveau/fbcon: fix suspend/resume fbcon

2013-11-19 Thread Christoph Rudorff
Current code disables fbcon acceleration before fbcon is suspended, leading to corrupted console after resume from s2disk. In a similar fashion we must make sure that fbcon acceleration is enabled before we revive the console. With this patch s2disk works correctly on my MacBookPro6,2 with GT216 [

Re: [Nouveau] [PATCH] drm/nouveau/fbcon: fix suspend/resume fbcon

2013-11-19 Thread Christoph Rudorff
On 19.11.2013 19:48, Greg KH wrote: > On Tue, Nov 19, 2013 at 05:59:13PM +0100, Christoph Rudorff wrote: >> Current code disables fbcon acceleration before fbcon is suspended, >> leading to corrupted console after resume from s2disk. In a similar >> fashion we must