diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-09-22 01:21:57 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-12-02 05:43:41 (GMT) |
commit | 7205875d09e4fd60d21a448fe070c0ba3e6e9588 (patch) | |
tree | d8b16f03cee405d3feba919b491f53ccf9112b9d /drivers/gpu/drm/nouveau | |
parent | b71a1344ec200bfe9f5d25c4046e2794f7b2699f (diff) | |
download | linux-7205875d09e4fd60d21a448fe070c0ba3e6e9588.tar.xz |
drm/nouveau/bios: use NPDE to locate images beyond those defined by PCIR
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/bios/image.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/image.c b/drivers/gpu/drm/nouveau/core/subdev/bios/image.c index dd8fd2f..df85cc6 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/bios/image.c +++ b/drivers/gpu/drm/nouveau/core/subdev/bios/image.c @@ -25,11 +25,13 @@ #include <subdev/bios.h> #include <subdev/bios/image.h> #include <subdev/bios/pcir.h> +#include <subdev/bios/npde.h> static bool nvbios_imagen(struct nouveau_bios *bios, struct nvbios_image *image) { struct nvbios_pcirT pcir; + struct nvbios_npdeT npde; u8 ver; u16 hdr; u32 data; @@ -48,6 +50,11 @@ nvbios_imagen(struct nouveau_bios *bios, struct nvbios_image *image) image->size = pcir.image_size; 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; return true; } |