提交 c2c2f6cb 编写于 作者: B Ben Skeggs

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

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 7af4dec1
......@@ -47,7 +47,7 @@ nvbios_imagen(struct nouveau_bios *bios, struct nvbios_image *image)
return false;
image->size = pcir.image_size;
image->type = pcir.image_type;
image->last = true;
image->last = pcir.last;
return true;
}
......@@ -55,7 +55,10 @@ bool
nvbios_image(struct nouveau_bios *bios, int idx, struct nvbios_image *image)
{
memset(image, 0x00, sizeof(*image));
if (idx)
do {
image->base += image->size;
if (image->last || !nvbios_imagen(bios, image))
return false;
return nvbios_imagen(bios, image);
} while(idx--);
return true;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册