drm/nouveau: Fix DPMS 1 on G4 Snowball, from snow white to coal black.
authorStefan de Konink <stefan@konink.de>
Sat, 22 Dec 2012 17:04:37 +0000 (18:04 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 20 Feb 2013 06:00:55 +0000 (16:00 +1000)
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=40275.

Signed-off-by: Stefan de Konink <stefan@konink.de>
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv04_dfp.c

index 39ffc07f906b8f57fcaf2427e3a5be3bbfd76bb5..7e24cdf1cb3944d1b343829182cf321b026d2869 100644 (file)
@@ -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);