* [stable] Regression in 2.6.32.2: radeon KMS hangs system
@ 2009-12-20 16:23 Johannes Hirte
2009-12-20 20:39 ` Michael Tokarev
2009-12-21 16:13 ` Alex Deucher
0 siblings, 2 replies; 3+ messages in thread
From: Johannes Hirte @ 2009-12-20 16:23 UTC (permalink / raw)
To: linux-kernel; +Cc: stable, dri-devel
With 2.6.32.2 the system hangs completely with black screen when modprobing
radeon with modeset=1. I was able to connect via ssh, but after entering the
password nothing happend. I didn't got a prompt. Only SysRq worked. I've
tracked it down to the following patch:
>From 500b758725314ab1b5316eb0caa5b0fa26740e6b Mon Sep 17 00:00:00 2001
From: Alex Deucher <alexdeucher@gmail.com>
Date: Wed, 2 Dec 2009 11:46:52 -0500
Subject: drm/radeon/kms: handle vblanks properly with dpms on
From: Alex Deucher <alexdeucher@gmail.com>
commit 500b758725314ab1b5316eb0caa5b0fa26740e6b upstream.
avivo chips
Copied from pre-avivo code.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/gpu/drm/radeon/atombios_crtc.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- a/drivers/gpu/drm/radeon/atombios_crtc.c
+++ b/drivers/gpu/drm/radeon/atombios_crtc.c
@@ -241,6 +241,7 @@ void atombios_crtc_dpms(struct drm_crtc
{
struct drm_device *dev = crtc->dev;
struct radeon_device *rdev = dev->dev_private;
+ struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc);
switch (mode) {
case DRM_MODE_DPMS_ON:
@@ -248,20 +249,19 @@ void atombios_crtc_dpms(struct drm_crtc
if (ASIC_IS_DCE3(rdev))
atombios_enable_crtc_memreq(crtc, 1);
atombios_blank_crtc(crtc, 0);
+ drm_vblank_post_modeset(dev, radeon_crtc->crtc_id);
+ radeon_crtc_load_lut(crtc);
break;
case DRM_MODE_DPMS_STANDBY:
case DRM_MODE_DPMS_SUSPEND:
case DRM_MODE_DPMS_OFF:
+ drm_vblank_pre_modeset(dev, radeon_crtc->crtc_id);
atombios_blank_crtc(crtc, 1);
if (ASIC_IS_DCE3(rdev))
atombios_enable_crtc_memreq(crtc, 0);
atombios_enable_crtc(crtc, 0);
break;
}
-
- if (mode != DRM_MODE_DPMS_OFF) {
- radeon_crtc_load_lut(crtc);
- }
}
static void
After reverting this patch, modesetting works again. It's a Radeon HD3650 AGP
(RV635) on a Tyan Tiger K8W S2875ANRF (AMD 8151 AGP tunnel). Display is an
Acer X223W connected on DVI.
regards,
Johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [stable] Regression in 2.6.32.2: radeon KMS hangs system
2009-12-20 16:23 [stable] Regression in 2.6.32.2: radeon KMS hangs system Johannes Hirte
@ 2009-12-20 20:39 ` Michael Tokarev
2009-12-21 16:13 ` Alex Deucher
1 sibling, 0 replies; 3+ messages in thread
From: Michael Tokarev @ 2009-12-20 20:39 UTC (permalink / raw)
To: Johannes Hirte; +Cc: linux-kernel, stable, dri-devel
Johannes Hirte wrote:
> With 2.6.32.2 the system hangs completely with black screen when modprobing
> radeon with modeset=1. I was able to connect via ssh, but after entering the
> password nothing happend. I didn't got a prompt. Only SysRq worked. I've
> tracked it down to the following patch:
>
> From 500b758725314ab1b5316eb0caa5b0fa26740e6b Mon Sep 17 00:00:00 2001
> From: Alex Deucher <alexdeucher@gmail.com>
> Date: Wed, 2 Dec 2009 11:46:52 -0500
> Subject: drm/radeon/kms: handle vblanks properly with dpms on
Confirmed here on amd780g chipset. I was about to debug/bisect the issue
right when the email arrived. Reverting this patch makes my system bootable
again.
/mjt
> From: Alex Deucher <alexdeucher@gmail.com>
>
> commit 500b758725314ab1b5316eb0caa5b0fa26740e6b upstream.
>
> avivo chips
>
> Copied from pre-avivo code.
>
> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
...
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [stable] Regression in 2.6.32.2: radeon KMS hangs system
2009-12-20 16:23 [stable] Regression in 2.6.32.2: radeon KMS hangs system Johannes Hirte
2009-12-20 20:39 ` Michael Tokarev
@ 2009-12-21 16:13 ` Alex Deucher
1 sibling, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2009-12-21 16:13 UTC (permalink / raw)
To: Johannes Hirte; +Cc: linux-kernel, dri-devel, stable
On Sun, Dec 20, 2009 at 11:23 AM, Johannes Hirte
<johannes.hirte@fem.tu-ilmenau.de> wrote:
> With 2.6.32.2 the system hangs completely with black screen when modprobing
> radeon with modeset=1. I was able to connect via ssh, but after entering the
> password nothing happend. I didn't got a prompt. Only SysRq worked. I've
> tracked it down to the following patch:
>
Fixed here:
http://marc.info/?l=dri-devel&m=126137027403059&w=2
2.6.32 didn't have irq support for r6xx+.
Alex
> >From 500b758725314ab1b5316eb0caa5b0fa26740e6b Mon Sep 17 00:00:00 2001
> From: Alex Deucher <alexdeucher@gmail.com>
> Date: Wed, 2 Dec 2009 11:46:52 -0500
> Subject: drm/radeon/kms: handle vblanks properly with dpms on
>
> From: Alex Deucher <alexdeucher@gmail.com>
>
> commit 500b758725314ab1b5316eb0caa5b0fa26740e6b upstream.
>
> avivo chips
>
> Copied from pre-avivo code.
>
> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
>
> ---
> drivers/gpu/drm/radeon/atombios_crtc.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> --- a/drivers/gpu/drm/radeon/atombios_crtc.c
> +++ b/drivers/gpu/drm/radeon/atombios_crtc.c
> @@ -241,6 +241,7 @@ void atombios_crtc_dpms(struct drm_crtc
> {
> struct drm_device *dev = crtc->dev;
> struct radeon_device *rdev = dev->dev_private;
> + struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc);
>
> switch (mode) {
> case DRM_MODE_DPMS_ON:
> @@ -248,20 +249,19 @@ void atombios_crtc_dpms(struct drm_crtc
> if (ASIC_IS_DCE3(rdev))
> atombios_enable_crtc_memreq(crtc, 1);
> atombios_blank_crtc(crtc, 0);
> + drm_vblank_post_modeset(dev, radeon_crtc->crtc_id);
> + radeon_crtc_load_lut(crtc);
> break;
> case DRM_MODE_DPMS_STANDBY:
> case DRM_MODE_DPMS_SUSPEND:
> case DRM_MODE_DPMS_OFF:
> + drm_vblank_pre_modeset(dev, radeon_crtc->crtc_id);
> atombios_blank_crtc(crtc, 1);
> if (ASIC_IS_DCE3(rdev))
> atombios_enable_crtc_memreq(crtc, 0);
> atombios_enable_crtc(crtc, 0);
> break;
> }
> -
> - if (mode != DRM_MODE_DPMS_OFF) {
> - radeon_crtc_load_lut(crtc);
> - }
> }
>
> static void
>
>
> After reverting this patch, modesetting works again. It's a Radeon HD3650 AGP
> (RV635) on a Tyan Tiger K8W S2875ANRF (AMD 8151 AGP tunnel). Display is an
> Acer X223W connected on DVI.
>
>
> regards,
> Johannes
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> --
> _______________________________________________
> Dri-devel mailing list
> Dri-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dri-devel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-21 16:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-20 16:23 [stable] Regression in 2.6.32.2: radeon KMS hangs system Johannes Hirte
2009-12-20 20:39 ` Michael Tokarev
2009-12-21 16:13 ` Alex Deucher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®