Commit b71313e1 authored by Ilia Mirkin's avatar Ilia Mirkin Committed by Ben Skeggs

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

Suggested-by: default avatarMarcin Kościelnicki <koriakin@0x04.net>
Signed-off-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent fa8c9ac7
...@@ -14,7 +14,9 @@ nouveau_vga_set_decode(void *priv, bool state) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment