Browse Source

drm/nv4c/vga: decode register is in a different place on nv4x igp's

Suggested-by: Marcin Kościelnicki <koriakin@0x04.net>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Ilia Mirkin 11 years ago
parent
commit
b71313e14b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      drivers/gpu/drm/nouveau/nouveau_vga.c

+ 3 - 1
drivers/gpu/drm/nouveau/nouveau_vga.c

@@ -14,7 +14,9 @@ nouveau_vga_set_decode(void *priv, bool state)
 {
 {
 	struct nouveau_device *device = nouveau_dev(priv);
 	struct nouveau_device *device = nouveau_dev(priv);
 
 
-	if (device->chipset >= 0x40)
+	if (device->card_type == NV_40 && device->chipset >= 0x4c)
+		nv_wr32(device, 0x088060, state);
+	else if (device->chipset >= 0x40)
 		nv_wr32(device, 0x088054, state);
 		nv_wr32(device, 0x088054, state);
 	else
 	else
 		nv_wr32(device, 0x001854, state);
 		nv_wr32(device, 0x001854, state);