From: Ilia Mirkin Date: Wed, 5 Feb 2014 19:33:04 +0000 (-0500) Subject: drm/nv4c/bios: disallow retrieving from prom on nv4x igp's X-Git-Tag: firefly_0821_release~176^2~4337^2~8^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5ac607ec4006d61c425c7846f29de8a9d8ce4f9f;p=firefly-linux-kernel-4.4.55.git drm/nv4c/bios: disallow retrieving from prom on nv4x igp's Suggested-by: Marcin Koƛcielnicki Signed-off-by: Ilia Mirkin Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/base.c b/drivers/gpu/drm/nouveau/core/subdev/bios/base.c index aa0fbbec7f08..ef0c9c4a8cc3 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/bios/base.c +++ b/drivers/gpu/drm/nouveau/core/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;