In order to be able to support a framebuffer console on i386/amd64 I'd
like to reorder some code such that wsdisaplay(4) attaches to vga(4)
*after* drm(4).  Since I don't have any hardware with radeondrm(4) I'd
appreciate it if people with access to such hardware would test the
diff below.  Just check that your vga text glass console and X still
work.

Thanks,

Mark


Index: vga_pci.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/vga_pci.c,v
retrieving revision 1.69
diff -u -p -r1.69 vga_pci.c
--- vga_pci.c   8 Oct 2012 21:47:50 -0000       1.69
+++ vga_pci.c   3 Mar 2013 21:34:59 -0000
@@ -249,8 +249,6 @@ vga_pci_attach(struct device *parent, st
        }
 #endif
        printf("\n");
-       sc->sc_vc = vga_common_attach(self, pa->pa_iot, pa->pa_memt,
-           WSDISPLAY_TYPE_PCIVGA);
 
        vga_pci_bar_init(sc, pa);
 
@@ -294,6 +292,9 @@ vga_pci_attach(struct device *parent, st
 #if NDRM > 0
        config_found_sm(self, aux, NULL, drmsubmatch);
 #endif
+
+       sc->sc_vc = vga_common_attach(self, pa->pa_iot, pa->pa_memt,
+           WSDISPLAY_TYPE_PCIVGA);
 }
 
 int

Reply via email to