Skip to content

Commit

Permalink
drm/nouveau/kms: Avoid a hang entering KDB with VT accel on.
Browse files Browse the repository at this point in the history
Francisco Jerez advises that pre-nv20 cards would hang if we entered
kdb with accel on and IRQs disabled, so we now disable accel before
entering kdb and re-enable it on the way back out.

Reported-by: Francisco Jerez <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
Signed-off-by: Jason Wessel <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
cjb authored and airlied committed Oct 6, 2010
1 parent ff77371 commit a424d76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/gpu/drm/nouveau/nv04_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "nouveau_fb.h"
#include "nouveau_hw.h"
#include "nvreg.h"
#include "nouveau_fbcon.h"

static int
nv04_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
Expand Down Expand Up @@ -860,6 +861,14 @@ nv04_crtc_mode_set_base_atomic(struct drm_crtc *crtc,
struct drm_framebuffer *fb,
int x, int y, int enter)
{
struct drm_nouveau_private *dev_priv = crtc->dev->dev_private;
struct drm_device *dev = dev_priv->dev;

if (enter)
nouveau_fbcon_save_disable_accel(dev);
else
nouveau_fbcon_restore_accel(dev);

return nv04_crtc_do_mode_set_base(crtc, fb, x, y, true);
}

Expand Down

0 comments on commit a424d76

Please sign in to comment.