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

drm/nouveau/mxm: pretend to succeed, even if we can't shadow the MXM-SIS

There's at least one known case where our shadowing code is buggy, and we
fail init. Until we can be confident we're doing all this correctly, lets
succeed and risk crazy bios tables rather than failing for perfectly valid
configs too.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>

+9
+9
drivers/gpu/drm/nouveau/nouveau_mxm.c
··· 656 656 657 657 if (mxm_shadow(dev, mxm[0])) { 658 658 MXM_MSG(dev, "failed to locate valid SIS\n"); 659 + #if 0 660 + /* we should, perhaps, fall back to some kind of limited 661 + * mode here if the x86 vbios hasn't already done the 662 + * work for us (so we prevent loading with completely 663 + * whacked vbios tables). 664 + */ 659 665 return -EINVAL; 666 + #else 667 + return 0; 668 + #endif 660 669 } 661 670 662 671 MXM_MSG(dev, "MXMS Version %d.%d\n",