drm/nouveau: fix headless mode
authorBen Skeggs <bskeggs@redhat.com>
Sat, 9 Aug 2014 18:10:31 +0000 (04:10 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 9 Aug 2014 19:28:18 +0000 (05:28 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_drm.c

index 62f969608c2f26d7b9d02fba978e2b8ca88277e1..1cc7b603c75342799835825708e0d6edb144f620 100644 (file)
@@ -477,7 +477,7 @@ nouveau_display_create(struct drm_device *dev)
        drm_kms_helper_poll_init(dev);
        drm_kms_helper_poll_disable(dev);
 
-       if (drm->vbios.dcb.entries) {
+       if (nouveau_modeset != 2 && drm->vbios.dcb.entries) {
                static const u16 oclass[] = {
                        GM107_DISP,
                        GK110_DISP,
index 12b5ba3d4fdc9ae9c7a049de637e3eb765374751..14fb8e86f5bc4db2f3cc28cbfb3d7b3b6de42a7e 100644 (file)
@@ -306,7 +306,8 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
 #ifdef CONFIG_X86
        boot = pdev->resource[PCI_ROM_RESOURCE].flags & IORESOURCE_ROM_SHADOW;
 #endif
-       remove_conflicting_framebuffers(aper, "nouveaufb", boot);
+       if (nouveau_modeset != 2)
+               remove_conflicting_framebuffers(aper, "nouveaufb", boot);
        kfree(aper);
 
        ret = nouveau_device_create(pdev, NOUVEAU_BUS_PCI,