diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2014-02-05 14:33:04 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-02-18 10:27:24 +1000 |
commit | a3e4b0be71da73f84fb144c7d051d9b0c9397135 (patch) | |
tree | dc31fb3eb1f8dcf9f31388f594e5bdbbca80319a /nvkm/subdev/bios/base.c | |
parent | c9f375a10c564a7ea00ea0123a824c0549cb1cd7 (diff) | |
download | nouveau-a3e4b0be71da73f84fb144c7d051d9b0c9397135.tar.gz |
bios/nv4c: disallow retrieving from prom 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>
Diffstat (limited to 'nvkm/subdev/bios/base.c')
-rw-r--r-- | nvkm/subdev/bios/base.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nvkm/subdev/bios/base.c b/nvkm/subdev/bios/base.c index aa0fbbec7..ef0c9c4a8 100644 --- a/nvkm/subdev/bios/base.c +++ b/nvkm/subdev/bios/base.c @@ -130,6 +130,10 @@ nouveau_bios_shadow_prom(struct nouveau_bios *bios) u16 pcir; int i; + /* there is no prom on nv4x IGP's */ + if (device->card_type == NV_40 && device->chipset >= 0x4c) + return; + /* enable access to rom */ if (device->card_type >= NV_50) pcireg = 0x088050; |