Commit 5ac607ec authored by Ilia Mirkin's avatar Ilia Mirkin Committed by Ben Skeggs

drm/nv4c/bios: disallow retrieving from prom 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 b71313e1
...@@ -130,6 +130,10 @@ nouveau_bios_shadow_prom(struct nouveau_bios *bios) ...@@ -130,6 +130,10 @@ nouveau_bios_shadow_prom(struct nouveau_bios *bios)
u16 pcir; u16 pcir;
int i; int i;
/* there is no prom on nv4x IGP's */
if (device->card_type == NV_40 && device->chipset >= 0x4c)
return;
/* enable access to rom */ /* enable access to rom */
if (device->card_type >= NV_50) if (device->card_type >= NV_50)
pcireg = 0x088050; pcireg = 0x088050;
......
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