drm/nouveau/bios: stop after NV+NPDS+ISBN image
authorBen Skeggs <bskeggs@redhat.com>
Thu, 25 Sep 2014 02:11:16 +0000 (12:11 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 2 Dec 2014 05:43:51 +0000 (15:43 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/bios/image.c

index d91e2f3a829547826b3e01ac00ade84809a484d0..373f9a564ac9a0b334d51889d3fdf23021b3b5f1 100644 (file)
@@ -53,10 +53,15 @@ nvbios_imagen(struct nouveau_bios *bios, struct nvbios_image *image)
        image->type = pcir.image_type;
        image->last = pcir.last;
 
-       if (!(data = nvbios_npdeTp(bios, image->base, &npde)))
-               return true;
-       image->size = npde.image_size;
-       image->last = npde.last;
+       if (image->type != 0x70) {
+               if (!(data = nvbios_npdeTp(bios, image->base, &npde)))
+                       return true;
+               image->size = npde.image_size;
+               image->last = npde.last;
+       } else {
+               image->last = true;
+       }
+
        return true;
 }