Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4767fae8 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/bios: some older boards have shorter displayport tables



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 46ea1688
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -89,6 +89,7 @@ nvbios_dpout_parse(struct nouveau_bios *bios, u8 idx,
		   struct nvbios_dpout *info)
{
	u16 data = nvbios_dpout_entry(bios, idx, ver, hdr, cnt, len);
	memset(info, 0x00, sizeof(*info));
	if (data && *ver) {
		info->type = nv_ro16(bios, data + 0x00);
		info->mask = nv_ro16(bios, data + 0x02);
@@ -99,8 +100,11 @@ nvbios_dpout_parse(struct nouveau_bios *bios, u8 idx,
			info->script[0] = nv_ro16(bios, data + 0x06);
			info->script[1] = nv_ro16(bios, data + 0x08);
			info->lnkcmp    = nv_ro16(bios, data + 0x0a);
			if (*len >= 0x0f) {
				info->script[2] = nv_ro16(bios, data + 0x0c);
				info->script[3] = nv_ro16(bios, data + 0x0e);
			}
			if (*len >= 0x11)
				info->script[4] = nv_ro16(bios, data + 0x10);
			break;
		case 0x40: