From 2a7fa6744cd8333a414b5f3bfe4de647d787102e Mon Sep 17 00:00:00 2001 From: Roy Spliet Date: Fri, 12 Sep 2014 18:00:12 +0200 Subject: [PATCH] drm/nouveau/bios: Add rammap support for version 1.0 Signed-off-by: Roy Spliet Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/core/subdev/bios/rammap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/rammap.c b/drivers/gpu/drm/nouveau/core/subdev/bios/rammap.c index 8b0dda5de9e0..ae3d956aec99 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/bios/rammap.c +++ b/drivers/gpu/drm/nouveau/core/subdev/bios/rammap.c @@ -84,6 +84,10 @@ nvbios_rammapEp(struct nouveau_bios *bios, int idx, p->rammap_ver = *ver; p->rammap_hdr = *hdr; switch (!!data * *ver) { + case 0x10: + p->rammap_min = nv_ro16(bios, data + 0x00); + p->rammap_max = nv_ro16(bios, data + 0x02); + break; case 0x11: p->rammap_min = nv_ro16(bios, data + 0x00); p->rammap_max = nv_ro16(bios, data + 0x02); -- 2.30.2