]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/nouveau/disp/nv04: avoid creation of output paths
authorBen Skeggs <bskeggs@redhat.com>
Thu, 10 Aug 2017 01:32:18 +0000 (11:32 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 10 Aug 2017 01:39:18 +0000 (11:39 +1000)
Fixes hitting WARN_ON() during initialisation of pre-NV50 GPUs, caused
by the recent changes to support pad macro routing on GM20x.

We currently don't use them here for older GPUs anyway.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c

index c7c84d34d97e20308b926077e7ed4ce6e8d77281..88582af8bd89745b7c78332cf415dd0bc9f24e23 100644 (file)
@@ -267,6 +267,8 @@ nvkm_disp_oneinit(struct nvkm_engine *engine)
        /* Create output path objects for each VBIOS display path. */
        i = -1;
        while ((data = dcb_outp_parse(bios, ++i, &ver, &hdr, &dcbE))) {
+               if (ver < 0x40) /* No support for chipsets prior to NV50. */
+                       break;
                if (dcbE.type == DCB_OUTPUT_UNUSED)
                        continue;
                if (dcbE.type == DCB_OUTPUT_EOL)