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

Commit d2898713 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/kms: don't fail if there's no dcb table entries



Fixes module not loading on Tesla K20.

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 79442c3a
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1878,9 +1878,6 @@ parse_dcb_table(struct drm_device *dev, struct nvbios *bios)
	if (dcb->version < 0x21)
		merge_like_dcb_entries(dev, dcb);

	if (!dcb->entries)
		return -ENXIO;

	/* dump connector table entries to log, if any exist */
	idx = -1;
	while ((conn = olddcb_conn(dev, ++idx))) {
+9 −4
Original line number Diff line number Diff line
@@ -332,10 +332,15 @@ nouveau_display_create(struct drm_device *dev)

	if (nouveau_modeset == 1 ||
	    (nouveau_modeset < 0 && pclass == PCI_CLASS_DISPLAY_VGA)) {
		if (drm->vbios.dcb.entries) {
			if (nv_device(drm->device)->card_type < NV_50)
				ret = nv04_display_create(dev);
			else
				ret = nv50_display_create(dev);
		} else {
			ret = 0;
		}

		if (ret)
			goto disp_create_err;