public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ruud Linders <kernelml@xs4all.nl>
To: linux-kernel@vger.kernel.org
Subject: Stable version 2.6.32.2 broke my KMS Radeon setup
Date: Sun, 20 Dec 2009 13:02:09 +0100	[thread overview]
Message-ID: <4B2E1241.9070503@xs4all.nl> (raw)

[-- Attachment #1: Type: text/plain, Size: 799 bytes --]


Hello,

After upgrading from 2.6.32.1 to 2.6.32.2 my radeon KMS broke. Broke
meaning after kernel boot at the moment radeon module is loaded, I get a
blank screen, monitor goes in powersave mode and machine stops booting
(ping-able but can't login via ssh and nothing in the logs after
Sysrq-S-U-B reboot).

Upgraded userspace  (drm/mesa/xf86-video-ati) to git version from
19-december but no change.

Note this happens on 2 different systems, both connected via DVI-D to an
LCD monitor:
  Chipset: "ATI RV730XT [Radeon HD 4670]" (ChipID = 0x9490)
and
  Chipset: "ATI Radeon HD 3200 Graphics" (ChipID = 0x9610)

So I started looking at the diff between 2.6.32.1 & 2.6.32.2, backing
out attached change makes everything work again. Anything else I can
provide to debug/fix this, let me know.

Ruud


[-- Attachment #2: DIFF --]
[-- Type: text/plain, Size: 929 bytes --]

--- atombios_crtc.c	2009-12-20 12:28:42.921933107 +0100
+++ atombios_crtc.c.NEW	2009-12-20 12:28:36.223818764 +0100
@@ -241,6 +241,7 @@
 {
 	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 @@
 		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

             reply	other threads:[~2009-12-20 12:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-20 12:02 Ruud Linders [this message]
2009-12-20 12:30 ` Stable version 2.6.32.2 broke my KMS Radeon setup Alexander Beregalov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B2E1241.9070503@xs4all.nl \
    --to=kernelml@xs4all.nl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox