Skip to content

Commit

Permalink
drm/nv4c/bios: disallow retrieving from prom on nv4x igp's
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ilia Mirkin authored and Ben Skeggs committed Feb 18, 2014
1 parent b71313e commit 5ac607e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/nouveau/core/subdev/bios/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ac607e

Please sign in to comment.