Emil Velikov
2014-Mar-04 21:35 UTC
[Nouveau] [PATCH] drm/nv04/disp: restore console accel after the modeset
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
Noticed while looking at an issue reported by Rafa? Mi?ecki.
Seems like the right thing to do, but I don't know the specifics
behind the mode_set_base_atomic() so cannot comment if
nouveau_fbcon_save/restore is even needed or not.
Cheers
Emil
drivers/gpu/drm/nouveau/dispnv04/crtc.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/dispnv04/crtc.c
b/drivers/gpu/drm/nouveau/dispnv04/crtc.c
index d4fbf11..6a89409 100644
--- a/drivers/gpu/drm/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 *src,
--
1.9.0
Seemingly Similar Threads
- [PATCH 13/36] drm/nouveau: use bpp instead of cpp for drm_format_info
- [PATCH 13/36] drm/nouveau: use bpp instead of cpp for drm_format_info
- [PATCH 3/4] drm/nouveau: Remove field nvbo from struct nouveau_framebuffer
- [PATCH 1/2] drm/nv04: Fix NV04 set_operation software method.
- [PATCH] nv50/accel: Fix mangled A8+A8 shader.
