Displaying 11 results from an estimated 11 matches for "nouveau_fbcon_restore_accel".
2013 Oct 03
2
[PATCH] drm/nouveau/fb: fix suspend/resume fbcon
...rivers/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 04
2
[PATCH] drm/nouveau/fb: fix suspend/resume fbcon
...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.
So it's about first put the bucket and then open the water tap.
;)
chris
ps: just found these macros for the state in fb.h:
FBINFO_STATE_...
2013 Oct 03
0
[PATCH] drm/nouveau/fb: fix suspend/resume fbcon
...n.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. One needs to save and disable
accleration b...
2013 Nov 17
1
[PATCH] drm/nouveau/fb: fix suspend/resume fbcon
...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.
>>
> Hi Chris,
>
Hi Emil!
> Just got around to playing...
2013 Nov 16
0
[PATCH] drm/nouveau/fb: fix suspend/resume fbcon
...ation 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.
>
Hi Chris,
Just got around to playing with s2disk on my laptop(nv96) and AFAICS
it seems to be OK wi...
2014 Mar 04
0
[PATCH] drm/nv04/disp: restore console accel after the modeset
...c,
{
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 *src,
--
1.9.0
2013 Nov 19
2
[PATCH] drm/nouveau/fbcon: fix suspend/resume fbcon
...veau_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);
console_unlock();
}
--
1.7.10.4
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
2011 Jan 20
1
[PATCH] change acquire/release_console_sem() to console_lock/unlock()
...b/drivers/gpu/drm/nouveau/nouveau_drv.c
@@ -234,9 +234,9 @@ nouveau_pci_suspend(struct pci_dev *pdev, pm_message_t pm_state)
pci_set_power_state(pdev, PCI_D3hot);
}
- acquire_console_sem();
+ console_lock();
nouveau_fbcon_set_suspend(dev, 1);
- release_console_sem();
+ console_unlock();
nouveau_fbcon_restore_accel(dev);
return 0;
@@ -359,9 +359,9 @@ nouveau_pci_resume(struct pci_dev *pdev)
nv_crtc->lut.depth = 0;
}
- acquire_console_sem();
+ console_lock();
nouveau_fbcon_set_suspend(dev, 0);
- release_console_sem();
+ console_unlock();
nouveau_fbcon_zfill_all(dev);
diff --git a/drivers/...
2011 Jan 20
1
[PATCH] change acquire/release_console_sem() to console_lock/unlock()
...b/drivers/gpu/drm/nouveau/nouveau_drv.c
@@ -234,9 +234,9 @@ nouveau_pci_suspend(struct pci_dev *pdev, pm_message_t pm_state)
pci_set_power_state(pdev, PCI_D3hot);
}
- acquire_console_sem();
+ console_lock();
nouveau_fbcon_set_suspend(dev, 1);
- release_console_sem();
+ console_unlock();
nouveau_fbcon_restore_accel(dev);
return 0;
@@ -359,9 +359,9 @@ nouveau_pci_resume(struct pci_dev *pdev)
nv_crtc->lut.depth = 0;
}
- acquire_console_sem();
+ console_lock();
nouveau_fbcon_set_suspend(dev, 0);
- release_console_sem();
+ console_unlock();
nouveau_fbcon_zfill_all(dev);
diff --git a/drivers/...
2011 Jan 20
1
[PATCH] change acquire/release_console_sem() to console_lock/unlock()
...b/drivers/gpu/drm/nouveau/nouveau_drv.c
@@ -234,9 +234,9 @@ nouveau_pci_suspend(struct pci_dev *pdev, pm_message_t pm_state)
pci_set_power_state(pdev, PCI_D3hot);
}
- acquire_console_sem();
+ console_lock();
nouveau_fbcon_set_suspend(dev, 1);
- release_console_sem();
+ console_unlock();
nouveau_fbcon_restore_accel(dev);
return 0;
@@ -359,9 +359,9 @@ nouveau_pci_resume(struct pci_dev *pdev)
nv_crtc->lut.depth = 0;
}
- acquire_console_sem();
+ console_lock();
nouveau_fbcon_set_suspend(dev, 0);
- release_console_sem();
+ console_unlock();
nouveau_fbcon_zfill_all(dev);
diff --git a/drivers/...