Displaying 8 results from an estimated 8 matches for "nouveau_fbcon_save_disable_accel".
2013 Oct 03
2
[PATCH] drm/nouveau/fb: fix suspend/resume fbcon
...on.c
index b035317..46e37c0 100644
--- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
@@ -514,10 +514,10 @@ void nouveau_fbcon_set_suspend(struct drm_device *dev, int state)
struct nouveau_drm *drm = nouveau_drm(dev);
console_lock();
if (state == 0)
- nouveau_fbcon_save_disable_accel(dev);
+ nouveau_fbcon_restore_accel(dev);
fb_set_suspend(drm->fbcon->helper.fbdev, state);
if (state == 1)
- nouveau_fbcon_restore_accel(dev);
+ nouveau_fbcon_save_disable_accel(dev);
console_unlock();
}
--
1.7.10.4
2013 Oct 03
0
[PATCH] drm/nouveau/fb: fix suspend/resume fbcon
...> --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c
> +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
> @@ -514,10 +514,10 @@ void nouveau_fbcon_set_suspend(struct drm_device *dev, int state)
> struct nouveau_drm *drm = nouveau_drm(dev);
> console_lock();
> if (state == 0)
> - nouveau_fbcon_save_disable_accel(dev);
> + nouveau_fbcon_restore_accel(dev);
> fb_set_suspend(drm->fbcon->helper.fbdev, state);
> if (state == 1)
> - nouveau_fbcon_restore_accel(dev);
> + nouveau_fbcon_save_disable_accel(dev);
> console_unlock();
> }
I'm not entirely sure this is correct. O...
2013 Oct 04
2
[PATCH] drm/nouveau/fb: fix suspend/resume fbcon
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_accel(dev);
> fb_set_suspend(drm->fbcon->helper.fbdev, state);
> - if (state == 1)
> + if (state == 0)
> nouveau_fbcon_restore_accel(dev);
> console_unlock();
>
> Cheers,
> Emil
Hi!
That was my first try! I guessed the same but I got exactly one trap
message on resume...
2013 Nov 19
2
[PATCH] drm/nouveau/fbcon: fix suspend/resume fbcon
...c
index b035317..3fa6628 100644
--- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
@@ -513,11 +513,11 @@ void nouveau_fbcon_set_suspend(struct drm_device *dev, int state)
{
struct nouveau_drm *drm = nouveau_drm(dev);
console_lock();
- if (state == 0)
- nouveau_fbcon_save_disable_accel(dev);
- fb_set_suspend(drm->fbcon->helper.fbdev, state);
- if (state == 1)
+ if (state == FBINFO_STATE_RUNNING)
nouveau_fbcon_restore_accel(dev);
+ fb_set_suspend(drm->fbcon->helper.fbdev, state);
+ if (state == FBINFO_STATE_SUSPENDED)
+ nouveau_fbcon_save_disable_accel(dev);
cons...
2013 Nov 17
1
[PATCH] drm/nouveau/fb: fix suspend/resume fbcon
...n 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_accel(dev);
>>> fb_set_suspend(drm->fbcon->helper.fbdev, state);
>>> - if (state == 1)
>>> + if (state == 0)
>>> nouveau_fbcon_restore_accel(dev);
>>> console_unlock();
>>>
>>> Cheers,
>>> Emil
>>
>> Hi!
>>...
2013 Nov 16
0
[PATCH] drm/nouveau/fb: fix suspend/resume fbcon
...:
> 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_accel(dev);
>> fb_set_suspend(drm->fbcon->helper.fbdev, state);
>> - if (state == 1)
>> + if (state == 0)
>> nouveau_fbcon_restore_accel(dev);
>> console_unlock();
>>
>> Cheers,
>> Emil
>
> Hi!
>
> That was my first try! I guessed th...
2014 Mar 04
0
[PATCH] drm/nv04/disp: restore console accel after the modeset
...m/nouveau/dispnv04/crtc.c
+++ b/drivers/gpu/drm/nouveau/dispnv04/crtc.c
@@ -915,13 +915,14 @@ nv04_crtc_mode_set_base_atomic(struct drm_crtc *crtc,
{
struct nouveau_drm *drm = nouveau_drm(crtc->dev);
struct drm_device *dev = drm->dev;
+ int ret;
if (state == ENTER_ATOMIC_MODE_SET)
nouveau_fbcon_save_disable_accel(dev);
- else
+ ret = nv04_crtc_do_mode_set_base(crtc, fb, x, y, true);
+ if (state == LEAVE_ATOMIC_MODE_SET)
nouveau_fbcon_restore_accel(dev);
-
- return nv04_crtc_do_mode_set_base(crtc, fb, x, y, true);
+ return ret;
}
static void nv04_cursor_upload(struct drm_device *dev, struct nouveau_bo...
2011 Oct 09
11
[PATCH 01/10]: nouveau: assorted fixes
Hi,
Here is my patch queue I accumulated over quite a long time.
Patches 1-6 are bugfixes, and rest is mostly RFC.
Comments are welcome.
Best regards,
Maxim Levitsky