Commit c2c2f6cb authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/bios: fetch images beyond the first one in the rom

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 7af4dec1
...@@ -47,7 +47,7 @@ nvbios_imagen(struct nouveau_bios *bios, struct nvbios_image *image) ...@@ -47,7 +47,7 @@ nvbios_imagen(struct nouveau_bios *bios, struct nvbios_image *image)
return false; return false;
image->size = pcir.image_size; image->size = pcir.image_size;
image->type = pcir.image_type; image->type = pcir.image_type;
image->last = true; image->last = pcir.last;
return true; return true;
} }
...@@ -55,7 +55,10 @@ bool ...@@ -55,7 +55,10 @@ bool
nvbios_image(struct nouveau_bios *bios, int idx, struct nvbios_image *image) nvbios_image(struct nouveau_bios *bios, int idx, struct nvbios_image *image)
{ {
memset(image, 0x00, sizeof(*image)); memset(image, 0x00, sizeof(*image));
if (idx) do {
return false; image->base += image->size;
return nvbios_imagen(bios, image); if (image->last || !nvbios_imagen(bios, image))
return false;
} while(idx--);
return true;
} }
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