All of lore.kernel.org
 help / color / mirror / Atom feed
* G4 Snowball DPMS 1 fix
@ 2012-12-22 17:25 Stefan de Konink
       [not found] ` <50D5ED01.2030206-01bSGNrlLMOzQB+pC5nmwQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan de Konink @ 2012-12-22 17:25 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

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

[-- Attachment #2: dpms-g4-snowball.diff --]
[-- Type: text/x-patch, Size: 1168 bytes --]

commit 4e2b7e05ceb5afb2f1a0b9e5bfd405bbef11a723
Author: Stefan de Konink <stefan-01bSGNrlLMOzQB+pC5nmwQ@public.gmane.org>
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 <stefan-01bSGNrlLMOzQB+pC5nmwQ@public.gmane.org>

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);

[-- Attachment #3: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: G4 Snowball DPMS 1 fix
       [not found] ` <50D5ED01.2030206-01bSGNrlLMOzQB+pC5nmwQ@public.gmane.org>
@ 2012-12-22 17:46   ` Marcin Slusarz
  0 siblings, 0 replies; 2+ messages in thread
From: Marcin Slusarz @ 2012-12-22 17:46 UTC (permalink / raw)
  To: Stefan de Konink; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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 <stefan-01bSGNrlLMOzQB+pC5nmwQ@public.gmane.org>
> 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 <stefan-01bSGNrlLMOzQB+pC5nmwQ@public.gmane.org>
> 
> 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.slusarz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-22 17:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-22 17:25 G4 Snowball DPMS 1 fix Stefan de Konink
     [not found] ` <50D5ED01.2030206-01bSGNrlLMOzQB+pC5nmwQ@public.gmane.org>
2012-12-22 17:46   ` Marcin Slusarz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.