Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern info: [drm] failed to find VBIOS tables



With drm_debug = 4 set; dmesg is here:
   http://www.ki.nu/software/NetBSD/dmesg/8.99.30-drm-debug-4

-- 
Makoto Fujiwara
mef%NetBSD.org@localhost
makoto%if.t.u-tokyo.ac.jp@localhost
makoto%ki.nu@localhost

diff --git a/sys/arch/x86/x86/bus_space.c b/sys/arch/x86/x86/bus_space.c
index 4680176ceef..918e56e6301 100644
--- a/sys/arch/x86/x86/bus_space.c
+++ b/sys/arch/x86/x86/bus_space.c
@@ -153,6 +153,8 @@ x86_bus_space_mallocok(void)
 	ioport_malloc_safe = 1;
 }
 
+#include <ddb/ddb.h>
+
 int
 bus_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size,
 		int flags, bus_space_handle_t *bshp)
@@ -161,6 +163,12 @@ bus_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size,
 	bus_space_tag_t it;
 	int error;
 
+	if (bpa <= 0xc0000 && 0xc0000 - bpa < size) {
+		printf("%s: mapping vga rom\n", __func__);
+		db_stack_trace_print((db_expr_t)(intptr_t)
+		    __builtin_frame_address(0), true, 65536, "", printf);
+	}
+
 	if ((t->bst_exists & BUS_SPACE_OVERRIDE_MAP) == 0)
 		;	/* skip override */
 	else for (it = t; it != NULL; it = it->bst_super) {
diff --git a/sys/external/bsd/drm2/dist/drm/drm_drv.c b/sys/external/bsd/drm2/dist/drm/drm_drv.c
index ed2ba904a3e..40bf2111c53 100644
--- a/sys/external/bsd/drm2/dist/drm/drm_drv.c
+++ b/sys/external/bsd/drm2/dist/drm/drm_drv.c
@@ -45,7 +45,8 @@ __KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.10 2018/08/28 08:20:27 martin Exp $");
 #include "drm_legacy.h"
 #include "drm_internal.h"
 
-unsigned int drm_debug = 0;	/* bitmask of DRM_UT_x */
+// unsigned int drm_debug = 0;	/* bitmask of DRM_UT_x */
+unsigned int drm_debug = 4;	/* bitmask of DRM_UT_x */
 EXPORT_SYMBOL(drm_debug);
 
 MODULE_AUTHOR(CORE_AUTHOR);


Home | Main Index | Thread Index | Old Index