Intel driver on ThinkPad X240(Haswell ULT) failure

Takanori Watanabe takawata at init-main.com
Wed Apr 22 16:28:06 UTC 2015


Hi, I tried to use Intel driver on ThinkPad X240, which has Haswell ULT as
GPU.
With following patch, and set 
kenv drm.i915.enable_unsupported=1,
X recognize DRM, but Screen turns black and never come back.
What shall I do next?



Index: dev/agp/agp_i810.c
===================================================================
--- dev/agp/agp_i810.c	(revision 281684)
+++ dev/agp/agp_i810.c	(working copy)
@@ -797,6 +797,11 @@
 		.driver = &agp_i810_hsw_driver
 	},
 	{
+		.devid = 0x0a168086,
+		.name = "Haswell mobile ULT",
+		.driver = &agp_i810_hsw_driver
+	},
+	{
 		.devid = 0,
 	}
 };
Index: dev/drm2/drm_pciids.h
===================================================================
--- dev/drm2/drm_pciids.h	(revision 281684)
+++ dev/drm2/drm_pciids.h	(working copy)
@@ -54,8 +54,9 @@
 	{0x8086, 0x0412, CHIP_I9XX|CHIP_I915, "Intel Haswell"}, \
 	{0x8086, 0x0416, CHIP_I9XX|CHIP_I915, "Intel Haswell (M)"}, \
 	{0x8086, 0x041A, CHIP_I9XX|CHIP_I915, "Intel Haswell (S)"}, \
+	{0x8086, 0x0A16, CHIP_I9XX|CHIP_I915, "Intel Haswell (ULT)"}, \
 	{0x8086, 0x0C16, CHIP_I9XX|CHIP_I915, "Intel Haswell (SDV)"}, \
-	{0x8086, 0x2562, CHIP_I8XX, "Intel i845G GMCH"}, \
+	{0x8086, 0x2562, CHIP_I8XX, "Intel i845G GMCH"},	      \
 	{0x8086, 0x2572, CHIP_I8XX, "Intel i865G GMCH"}, \
 	{0x8086, 0x2582, CHIP_I9XX|CHIP_I915, "Intel i915G"}, \
 	{0x8086, 0x258A, CHIP_I9XX|CHIP_I915, "Intel E7221 (i915)"}, \
Index: dev/drm2/i915/i915_drv.c
===================================================================
--- dev/drm2/i915/i915_drv.c	(revision 281684)
+++ dev/drm2/i915/i915_drv.c	(working copy)
@@ -280,11 +280,12 @@
 	INTEL_VGA_DEVICE(0x041a, &intel_haswell_d_info), /* GT2 server */
 	INTEL_VGA_DEVICE(0x0406, &intel_haswell_m_info), /* GT1 mobile */
 	INTEL_VGA_DEVICE(0x0416, &intel_haswell_m_info), /* GT2 mobile */
+	INTEL_VGA_DEVICE(0x0a16, &intel_haswell_m_info), /* GT2 mobile */
 	INTEL_VGA_DEVICE(0x0c16, &intel_haswell_d_info), /* SDV */
 	{0, 0}
 };
 
-static int i915_enable_unsupported;
+static int i915_enable_unsupported = 0;
 
 static int i915_drm_freeze(struct drm_device *dev)
 {
@@ -415,7 +416,6 @@
 {
 	const struct intel_device_info *info;
 	int error;
-
 	error = drm_probe_helper(kdev, i915_pciidlist);
 	if (error != 0)
 		return (-error);

=====

[  1193.434] 
X.Org X Server 1.14.7
Release Date: 2014-06-05
[  1193.434] X Protocol Version 11, Revision 0
[  1193.434] Build Operating System: FreeBSD 11.0-CURRENT amd64 
[  1193.434] Current Operating System: FreeBSD inazuma.init-main.com 11.0-CURRENT FreeBSD 11.0-CURRENT #3 r281684M: Wed Apr 22 11:47:59 JST 2015     takawata at inazuma.init-main.com:/usr/obj/usr/src.svn/head/sys/LIEUTENANT amd64
[  1193.434] Build Date: 21 April 2015  01:51:07AM
[  1193.434]  
[  1193.434] Current version of pixman: 0.32.6
[  1193.434] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  1193.434] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1193.434] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Apr 23 00:38:26 2015
[  1193.434] (II) Loader magic: 0x801450
[  1193.434] (II) Module ABI versions:
[  1193.434] 	X.Org ANSI C Emulation: 0.4
[  1193.434] 	X.Org Video Driver: 14.1
[  1193.434] 	X.Org XInput driver : 19.1
[  1193.434] 	X.Org Server Extension : 7.0
[  1193.435] (--) PCI:*(0:0:2:0) 8086:0a16:17aa:2214 rev 11, Mem @ 0xf0000000/4194304, 0xe0000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/65536
[  1193.435] (==) Using default built-in configuration (30 lines)
[  1193.435] (==) --- Start of built-in configuration ---
[  1193.435] 	Section "Device"
[  1193.435] 		Identifier	"Builtin Default intel Device 0"
[  1193.435] 		Driver	"intel"
[  1193.435] 	EndSection
[  1193.435] 	Section "Screen"
[  1193.435] 		Identifier	"Builtin Default intel Screen 0"
[  1193.435] 		Device	"Builtin Default intel Device 0"
[  1193.435] 	EndSection
[  1193.435] 	Section "Device"
[  1193.435] 		Identifier	"Builtin Default vesa Device 0"
[  1193.435] 		Driver	"vesa"
[  1193.435] 	EndSection
[  1193.435] 	Section "Screen"
[  1193.435] 		Identifier	"Builtin Default vesa Screen 0"
[  1193.435] 		Device	"Builtin Default vesa Device 0"
[  1193.435] 	EndSection
[  1193.435] 	Section "Device"
[  1193.435] 		Identifier	"Builtin Default fbdev Device 0"
[  1193.435] 		Driver	"fbdev"
[  1193.435] 	EndSection
[  1193.435] 	Section "Screen"
[  1193.435] 		Identifier	"Builtin Default fbdev Screen 0"
[  1193.435] 		Device	"Builtin Default fbdev Device 0"
[  1193.435] 	EndSection
[  1193.435] 	Section "ServerLayout"
[  1193.435] 		Identifier	"Builtin Default Layout"
[  1193.435] 		Screen	"Builtin Default intel Screen 0"
[  1193.435] 		Screen	"Builtin Default vesa Screen 0"
[  1193.435] 		Screen	"Builtin Default fbdev Screen 0"
[  1193.435] 	EndSection
[  1193.435] (==) --- End of built-in configuration ---
[  1193.435] (==) ServerLayout "Builtin Default Layout"
[  1193.435] (**) |-->Screen "Builtin Default intel Screen 0" (0)
[  1193.435] (**) |   |-->Monitor "<default monitor>"
[  1193.435] (**) |   |-->Device "Builtin Default intel Device 0"
[  1193.435] (==) No monitor specified for screen "Builtin Default intel Screen 0".
	Using a default monitor configuration.
[  1193.435] (**) |-->Screen "Builtin Default vesa Screen 0" (1)
[  1193.435] (**) |   |-->Monitor "<default monitor>"
[  1193.435] (**) |   |-->Device "Builtin Default vesa Device 0"
[  1193.435] (==) No monitor specified for screen "Builtin Default vesa Screen 0".
	Using a default monitor configuration.
[  1193.435] (**) |-->Screen "Builtin Default fbdev Screen 0" (2)
[  1193.435] (**) |   |-->Monitor "<default monitor>"
[  1193.435] (**) |   |-->Device "Builtin Default fbdev Device 0"
[  1193.435] (==) No monitor specified for screen "Builtin Default fbdev Screen 0".
	Using a default monitor configuration.
[  1193.435] (==) Automatically adding devices
[  1193.435] (==) Automatically enabling devices
[  1193.435] (==) Not automatically adding GPU devices
[  1193.435] (WW) The directory "/usr/local/share/fonts/misc/" does not exist.
[  1193.435] 	Entry deleted from font path.
[  1193.435] (WW) The directory "/usr/local/share/fonts/Type1/" does not exist.
[  1193.435] 	Entry deleted from font path.
[  1193.435] (WW) The directory "/usr/local/share/fonts/100dpi/" does not exist.
[  1193.435] 	Entry deleted from font path.
[  1193.435] (WW) The directory "/usr/local/share/fonts/75dpi/" does not exist.
[  1193.435] 	Entry deleted from font path.
[  1193.435] (==) FontPath set to:
	/usr/local/share/fonts/TTF/,
	/usr/local/share/fonts/OTF/
[  1193.435] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[  1193.435] (II) The server relies on devd to provide the list of input devices.
	If no devices become available, reconfigure devd or disable AutoAddDevices.
[  1193.435] Initializing built-in extension Generic Event Extension
[  1193.435] Initializing built-in extension SHAPE
[  1193.435] Initializing built-in extension MIT-SHM
[  1193.435] Initializing built-in extension XInputExtension
[  1193.435] Initializing built-in extension XTEST
[  1193.435] Initializing built-in extension BIG-REQUESTS
[  1193.435] Initializing built-in extension SYNC
[  1193.435] Initializing built-in extension XKEYBOARD
[  1193.435] Initializing built-in extension XC-MISC
[  1193.435] Initializing built-in extension XINERAMA
[  1193.435] Initializing built-in extension XFIXES
[  1193.435] Initializing built-in extension RENDER
[  1193.436] Initializing built-in extension RANDR
[  1193.436] Initializing built-in extension COMPOSITE
[  1193.436] Initializing built-in extension DAMAGE
[  1193.436] Initializing built-in extension MIT-SCREEN-SAVER
[  1193.436] Initializing built-in extension DOUBLE-BUFFER
[  1193.436] Initializing built-in extension RECORD
[  1193.436] Initializing built-in extension DPMS
[  1193.436] Initializing built-in extension X-Resource
[  1193.436] Initializing built-in extension XVideo
[  1193.436] Initializing built-in extension XVideo-MotionCompensation
[  1193.436] Initializing built-in extension XFree86-VidModeExtension
[  1193.436] Initializing built-in extension XFree86-DGA
[  1193.436] Initializing built-in extension XFree86-DRI
[  1193.436] Initializing built-in extension DRI2
[  1193.436] (II) LoadModule: "glx"
[  1193.436] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[  1193.436] (II) Module glx: vendor="X.Org Foundation"
[  1193.436] 	compiled for 1.14.7, module version = 1.0.0
[  1193.436] 	ABI class: X.Org Server Extension, version 7.0
[  1193.436] (==) AIGLX enabled
[  1193.436] Loading extension GLX
[  1193.436] (II) LoadModule: "intel"
[  1193.436] (II) Loading /usr/local/lib/xorg/modules/drivers/intel_drv.so
[  1193.436] (II) Module intel: vendor="X.Org Foundation"
[  1193.436] 	compiled for 1.14.7, module version = 2.21.15
[  1193.436] 	Module class: X.Org Video Driver
[  1193.436] 	ABI class: X.Org Video Driver, version 14.1
[  1193.436] (II) LoadModule: "vesa"
[  1193.437] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[  1193.437] (II) Module vesa: vendor="X.Org Foundation"
[  1193.437] 	compiled for 1.14.7, module version = 2.3.3
[  1193.437] 	Module class: X.Org Video Driver
[  1193.437] 	ABI class: X.Org Video Driver, version 14.1
[  1193.437] (II) LoadModule: "fbdev"
[  1193.437] (WW) Warning, couldn't open module fbdev
[  1193.437] (II) UnloadModule: "fbdev"
[  1193.437] (II) Unloading fbdev
[  1193.437] (EE) Failed to load module "fbdev" (module does not exist, 0)
[  1193.437] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43, HD Graphics,
	HD Graphics 2000, HD Graphics 3000, HD Graphics 2500,
	HD Graphics 4000, HD Graphics P4000, HD Graphics 4600,
	HD Graphics 5000, HD Graphics P4600/P4700, Iris(TM) Graphics 5100,
	HD Graphics 4400, HD Graphics 4200, Iris(TM) Pro Graphics 5200
[  1193.437] (II) VESA: driver for VESA chipsets: vesa
[  1193.437] (--) Using syscons driver with X support (version 549739036674.0)
[  1193.437] (--) using VT number 9

[  1193.811] (WW) Falling back to old probe method for vesa
[  1193.811] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  1193.811] (II) intel(0): Creating default Display subsection in Screen section
	"Builtin Default intel Screen 0" for depth/fbbpp 24/32
[  1193.811] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[  1193.811] (==) intel(0): RGB weight 888
[  1193.811] (==) intel(0): Default visual is TrueColor
[  1193.811] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4400
[  1193.811] (**) intel(0): Relaxed fencing enabled
[  1193.811] (**) intel(0): Wait on SwapBuffers? enabled
[  1193.811] (**) intel(0): Triple buffering? enabled
[  1193.811] (**) intel(0): Framebuffer tiled
[  1193.811] (**) intel(0): Pixmaps tiled
[  1193.811] (**) intel(0): 3D buffers tiled
[  1193.811] (**) intel(0): SwapBuffers wait enabled
[  1193.811] (==) intel(0): video overlay key set to 0x101fe
[  1193.811] (II) intel(0): Output VGA1 has no monitor section
[  1194.006] (II) intel(0): Output HDMI1 has no monitor section
[  1194.016] (II) intel(0): Output HDMI2 has no monitor section
[  1194.016] (II) intel(0): EDID for output VGA1
[  1194.211] (II) intel(0): EDID for output HDMI1
[  1194.221] (II) intel(0): EDID for output HDMI2
[  1194.221] (II) intel(0): Output VGA1 disconnected
[  1194.221] (II) intel(0): Output HDMI1 disconnected
[  1194.221] (II) intel(0): Output HDMI2 disconnected
[  1194.221] (WW) intel(0): No outputs definitely connected, trying again...
[  1194.221] (II) intel(0): Output VGA1 disconnected
[  1194.221] (II) intel(0): Output HDMI1 disconnected
[  1194.221] (II) intel(0): Output HDMI2 disconnected
[  1194.221] (WW) intel(0): Unable to find connected outputs - setting 1024x768 initial framebuffer
[  1194.221] (II) intel(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[  1194.221] (II) intel(0): Kernel page flipping support detected, enabling
[  1194.221] (==) intel(0): DPI set to (96, 96)
[  1194.221] (II) Loading sub module "fb"
[  1194.221] (II) LoadModule: "fb"
[  1194.221] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[  1194.221] (II) Module fb: vendor="X.Org Foundation"
[  1194.221] 	compiled for 1.14.7, module version = 1.0.0
[  1194.221] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  1194.221] (II) Loading sub module "dri2"
[  1194.221] (II) LoadModule: "dri2"
[  1194.221] (II) Module "dri2" already built-in
[  1194.221] (II) UnloadModule: "vesa"
[  1194.222] (II) Unloading vesa
[  1194.222] (==) Depth 24 pixmap format is 32 bpp
[  1194.222] (II) intel(0): [DRI2] Setup complete
[  1194.222] (II) intel(0): [DRI2]   DRI driver: i965
[  1194.222] (II) intel(0): Allocated new frame buffer 1024x768 stride 4096, tiled
[  1194.224] (II) UXA(0): Driver registered support for the following operations:
[  1194.224] (II)         solid
[  1194.224] (II)         copy
[  1194.224] (II)         composite (RENDER acceleration)
[  1194.224] (II)         put_image
[  1194.224] (II)         get_image
[  1194.224] (==) intel(0): Backing store disabled
[  1194.224] (==) intel(0): Silken mouse enabled
[  1194.224] (II) intel(0): Initializing HW Cursor
[  1194.224] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[  1194.225] (==) intel(0): DPMS enabled
[  1194.225] (==) intel(0): Intel XvMC decoder enabled
[  1194.225] (II) intel(0): Set up textured video
[  1194.225] (II) intel(0): [XvMC] xvmc_vld driver initialized.
[  1194.225] (II) intel(0): direct rendering: DRI2 Enabled
[  1194.225] (--) RandR disabled
[  1194.403] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[  1194.403] (II) AIGLX: enabled GLX_INTEL_swap_event
[  1194.403] (II) AIGLX: enabled GLX_ARB_create_context
[  1194.403] (II) AIGLX: enabled GLX_ARB_create_context_profile
[  1194.403] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[  1194.403] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[  1194.403] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[  1194.403] (II) AIGLX: Loaded and initialized i965
[  1194.403] (II) GLX: Initialized DRI2 GL provider for screen 0
[  1194.441] (II) config/devd: probing input devices...
[  1194.441] (II) config/devd: adding input device (null) (/dev/kbdmux)
[  1194.441] (II) LoadModule: "kbd"
[  1194.442] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[  1194.442] (II) Module kbd: vendor="X.Org Foundation"
[  1194.442] 	compiled for 1.14.7, module version = 1.8.0
[  1194.442] 	Module class: X.Org XInput Driver
[  1194.442] 	ABI class: X.Org XInput driver, version 19.1
[  1194.442] (II) Using input driver 'kbd' for 'kbdmux'
[  1194.442] (**) kbdmux: always reports core events
[  1194.442] (**) kbdmux: always reports core events
[  1194.442] (**) Option "Protocol" "standard"
[  1194.442] (**) Option "XkbRules" "base"
[  1194.442] (**) Option "XkbModel" "pc105"
[  1194.442] (**) Option "XkbLayout" "us"
[  1194.442] (**) Option "config_info" "devd:kbdmux"
[  1194.442] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6)
[  1194.443] (II) config/devd: kbdmux is enabled, ignoring device atkbd0
[  1194.443] (II) config/devd: adding input device (null) (/dev/sysmouse)
[  1194.443] (II) LoadModule: "mouse"
[  1194.444] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
[  1194.444] (II) Module mouse: vendor="X.Org Foundation"
[  1194.444] 	compiled for 1.14.7, module version = 1.9.1
[  1194.444] 	Module class: X.Org XInput Driver
[  1194.444] 	ABI class: X.Org XInput driver, version 19.1
[  1194.444] (II) Using input driver 'mouse' for 'sysmouse'
[  1194.444] (**) sysmouse: always reports core events
[  1194.444] (**) Option "Device" "/dev/sysmouse"
[  1194.444] (==) sysmouse: Protocol: "Auto"
[  1194.444] (**) sysmouse: always reports core events
[  1194.444] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[  1194.444] (**) sysmouse: ZAxisMapping: buttons 4 and 5
[  1194.444] (**) sysmouse: Buttons: 5
[  1194.444] (**) Option "config_info" "devd:sysmouse"
[  1194.444] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[  1194.444] (**) sysmouse: (accel) keeping acceleration scheme 1
[  1194.444] (**) sysmouse: (accel) acceleration profile 0
[  1194.444] (**) sysmouse: (accel) acceleration factor: 2.000
[  1194.444] (**) sysmouse: (accel) acceleration threshold: 4
[  1194.444] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[  1194.444] (II) sysmouse: SetupAuto: protocol is SysMouse
[  1194.444] (II) config/devd: device /dev/psm0 already opened
[  1202.395] (WW) config/devd: devd socket is lost
[  1202.396] (EE) config/devd: fail to connect to devd
[  1202.457] (II) config/devd: terminating backend...
[  1202.457] (II) UnloadModule: "mouse"
[  1202.457] (II) UnloadModule: "kbd"
[  1202.492] (EE) Server terminated successfully (0). Closing log file.


More information about the freebsd-x11 mailing list