Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/nouveau/disp/nv04: avoid creation of output paths

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>

+2
+2
drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c
··· 267 267 /* Create output path objects for each VBIOS display path. */ 268 268 i = -1; 269 269 while ((data = dcb_outp_parse(bios, ++i, &ver, &hdr, &dcbE))) { 270 + if (ver < 0x40) /* No support for chipsets prior to NV50. */ 271 + break; 270 272 if (dcbE.type == DCB_OUTPUT_UNUSED) 271 273 continue; 272 274 if (dcbE.type == DCB_OUTPUT_EOL)