[Nouveau] [Bug 40275] DPMS Blank screen turn into white mess

2012-12-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=40275

--- Comment #2 from Stefan de Konink ste...@konink.de ---
Created attachment 71972
  -- https://bugs.freedesktop.org/attachment.cgi?id=71972action=edit
Kernel log (dmesg)

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] [Bug 40275] DPMS Blank screen turn into white mess

2012-12-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=40275

--- Comment #3 from Stefan de Konink ste...@konink.de ---
Created attachment 71973
  -- https://bugs.freedesktop.org/attachment.cgi?id=71973action=edit
VBIOS G4 Snowball NVIDIA NV17 GeForce4 440 Go

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] [Bug 40275] DPMS Blank screen turn into white mess

2012-12-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=40275

--- Comment #4 from Stefan de Konink ste...@konink.de ---
Created attachment 71974
  -- https://bugs.freedesktop.org/attachment.cgi?id=71974action=edit
Dmesg of Linux 3.6.6

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] [Bug 40275] DPMS Blank screen turn into white mess

2012-12-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=40275

--- Comment #5 from Stefan de Konink ste...@konink.de ---
Created attachment 71979
  -- https://bugs.freedesktop.org/attachment.cgi?id=71979action=edit
dmesg with nouveau.debug=debug

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] [Bug 40275] DPMS Blank screen turn into white mess

2012-12-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=40275

--- Comment #6 from Stefan de Konink ste...@konink.de ---
Created attachment 71981
  -- https://bugs.freedesktop.org/attachment.cgi?id=71981action=edit
dmesg with trace, as requested

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] [Bug 40275] DPMS Blank screen turn into white mess

2012-12-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=40275

Stefan de Konink ste...@konink.de changed:

   What|Removed |Added

  Attachment #71981|0   |1
is obsolete||

--- Comment #7 from Stefan de Konink ste...@konink.de ---
Created attachment 71982
  -- https://bugs.freedesktop.org/attachment.cgi?id=71982action=edit
Dmesg Trace + DRM debug

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


[Nouveau] G4 Snowball DPMS 1 fix

2012-12-22 Thread Stefan de Konink
Hi,

Since I am a proud owner of a G4 Snowball, and the screen did some
strange things in DPMS 1 (blanking), I thought it was a good idea to fix
it. With some help from IRC I made the attached patch.

Stefan
commit 4e2b7e05ceb5afb2f1a0b9e5bfd405bbef11a723
Author: Stefan de Konink ste...@konink.de
Date:   Sat Dec 22 18:04:37 2012 +0100

drm/nouveau: Fix DPMS 1 on G4 Snowball, from snow white to coal black.

This fixes bug https://bugs.freedesktop.org/show_bug.cgi?id=40275

Signed-off-by: Stefan de Konink ste...@konink.de

diff --git a/drivers/gpu/drm/nouveau/nv04_dfp.c b/drivers/gpu/drm/nouveau/nv04_dfp.c
index 184cdf8..eb76b69 100644
--- a/drivers/gpu/drm/nouveau/nv04_dfp.c
+++ b/drivers/gpu/drm/nouveau/nv04_dfp.c
@@ -490,8 +490,8 @@ static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode)
 	/* BIOS scripts usually take care of the backlight, thanks
 	 * Apple for your consistency.
 	 */
-	if (dev-pci_device == 0x0179 || dev-pci_device == 0x0189 ||
-	dev-pci_device == 0x0329) {
+	if (dev-pci_device == 0x0174 || dev-pci_device == 0x0179 ||
+	dev-pci_device == 0x0189 || dev-pci_device == 0x0329) {
 		if (mode == DRM_MODE_DPMS_ON) {
 			nv_mask(device, NV_PBUS_DEBUG_DUALHEAD_CTL, 0, 1  31);
 			nv_mask(device, NV_PCRTC_GPIO_EXT, 3, 1);
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau


Re: [Nouveau] G4 Snowball DPMS 1 fix

2012-12-22 Thread Marcin Slusarz
On Sat, Dec 22, 2012 at 06:25:21PM +0100, Stefan de Konink wrote:
 Hi,
 
 Since I am a proud owner of a G4 Snowball, and the screen did some
 strange things in DPMS 1 (blanking), I thought it was a good idea to fix
 it. With some help from IRC I made the attached patch.
 
 Stefan

 commit 4e2b7e05ceb5afb2f1a0b9e5bfd405bbef11a723
 Author: Stefan de Konink ste...@konink.de
 Date:   Sat Dec 22 18:04:37 2012 +0100
 
 drm/nouveau: Fix DPMS 1 on G4 Snowball, from snow white to coal black.
 
 This fixes bug https://bugs.freedesktop.org/show_bug.cgi?id=40275
 
 Signed-off-by: Stefan de Konink ste...@konink.de
 
 diff --git a/drivers/gpu/drm/nouveau/nv04_dfp.c 
 b/drivers/gpu/drm/nouveau/nv04_dfp.c
 index 184cdf8..eb76b69 100644
 --- a/drivers/gpu/drm/nouveau/nv04_dfp.c
 +++ b/drivers/gpu/drm/nouveau/nv04_dfp.c
 @@ -490,8 +490,8 @@ static void nv04_dfp_update_backlight(struct drm_encoder 
 *encoder, int mode)
   /* BIOS scripts usually take care of the backlight, thanks
* Apple for your consistency.
*/
 - if (dev-pci_device == 0x0179 || dev-pci_device == 0x0189 ||
 - dev-pci_device == 0x0329) {
 + if (dev-pci_device == 0x0174 || dev-pci_device == 0x0179 ||
 + dev-pci_device == 0x0189 || dev-pci_device == 0x0329) {
   if (mode == DRM_MODE_DPMS_ON) {
   nv_mask(device, NV_PBUS_DEBUG_DUALHEAD_CTL, 0, 1  31);
   nv_mask(device, NV_PCRTC_GPIO_EXT, 3, 1);

Reviewed-by: Marcin Slusarz marcin.slus...@gmail.com
___
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau