Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 243844

Summary: X driver intel (i810) fails to load with xorg-server-1.5.2 and intelfb
Product: Gentoo Linux Reporter: Robert Bradbury <robert.bradbury>
Component: [OLD] ServerAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: N/A
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Xorg log attempting to start using intel driver with i915 hardware
Config file for kernel 2.6.27
/etc/X11/xorg.conf for intel
emerge --info for system in problem state
List of loaded modules on Linux 2.6.27 boot

Description Robert Bradbury 2008-10-24 16:16:01 UTC
xorg-server-1.5.2 fails to start (fails to locate the i915 chip in a HP Pavilion) when combined with Driver i810 (symlinked to intel_drv.so) and Linux 2.6.27 with the intelfb driver.

Reproducible: Always

Steps to Reproduce:
1. emerge xorg-server (-1.5.2) and emerge the Intel driver (xf86-video-intel).
2. Configure /etc/X11/xorg.conf for Driver i810 (i810_drv.so -> intel_drv.so).
3. Configure Linux 2.6.27 with intelfb (builtin or module for CONFIG_FB_INTEL in
.config)

Actual Results:  
Driver fails to find i915 device.

Tail of the log file is:
(II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
	i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G,
	E7221 (i915), 915GM, 945G, 945GM, 945GME, 965G, G35, 965Q, 946GZ,
	965GM, 965GME/GLE, G33, Q35, Q33,
	Mobile Intel�� GM45 Express Chipset,
	Intel Integrated Graphics Device, G45/G43, Q45/Q43
(II) Primary Device is: PCI 00@00:02:0
(EE) No devices detected.

Fatal server error:
no screens found


Expected Results:  
Using "Driver vesa" works fine.  As documented in Bug #243830, Driver fbdev does not work.  Driver i810 (== Driver intel) also fails to work but for different reasons.  Both the fbdev and intel drivers should work and xdm should start (on multiple VTs) and allow switching between the conole VTs and multiple user VTs.  

Running multiple X VTs and switching between them and/or the console VTs appears to work with xorg-1.5.2 and xf86-video-vesa (with intelfb under kernel 2.6.26).

However attempting the same with xorg-1.4.2 and the i810 (intel) driver under with intelfb and kernel 2.6.26 was always problematic -- forcing one to run a single X VT.

This may be due to the fact that previous testing was using 915resolution to reconfigure the Intel BIOS for a Dell 2007WFP which supports 1680x1050 resolution.  However the tests with xorg-server-1.5.2 were all done *without* monitor reconfiguration of the Intel BIOS using 915resolution.

I have significant questions with respect to whether the kernel Intel drivers (and/or the X server Intel driver) properly deal with monitor dimension reconfigurations but do not understand enough about how this works to be sure.
Comment 1 Robert Bradbury 2008-10-24 16:24:43 UTC
Created attachment 169730 [details]
Xorg log attempting to start using intel driver with i915 hardware

In previous versions Xorg.#.logs (before server-1.5.2, kernel-2.6.27) there were commonly long scans of the PCI bus devices.  In the current configuration it does appear to find the primary device @ PCI 00@00:02:0 but then claims there is no screen.

As far as my ability to interpret dmesg, this is the right device, e.g.

intelfb: intelfb_pci_register
intelfb 0000:00:02.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, low) -> IRQ 10
intelfb: fb aperture: 0xc0000000/0x10000000, MMIO region: 0xbfe00000/0x80000
intelfb: 00:02.0: Intel(R) 915G, aperture size 256MB, stolen memory 7932kB
intelfb: fb: 0xc0000000(+ 0x0)/0x7bf000 (0xf8a00000)
intelfb: MMIO: 0xbfe00000/0x80000 (0xfc200000)
intelfb: ring buffer: 0xc3001000/0x10000 (0xfba01000)
intelfb: HW cursor: 0x0/0x0 (0x00000000) (offset 0x0) (phys 0x0)
intelfb: options: vram = 4, accel = 1, hwcursor = 0, fixed = 0, noinit = 0
intelfb: options: mode = ""
intelfb: intelfb_set_fbinfo
intelfb: intelfb_init_var
intelfb: intelfb_check_var: accel_flags is 0
intelfb: intelfb_var_to_depth: bpp: 32, green.length is 0
intelfb: intelfb_check_var: accel_flags is 0
intelfb: intelfb_var_to_depth: bpp: 32, green.length is 8
intelfb: intelfb_check_var: accel_flags is 0
intelfb: intelfb_var_to_depth: bpp: 32, green.length is 8
intelfb: Initial video mode is 1024x768-32@70.
intelfb: Initial video mode is from 1.
intelfb: update_dinfo
intelfb: intelfb_var_to_depth: bpp: 32, green.length is 8
i2c-adapter i2c-1: adapter [intelfb CRTDDC_A] registered
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-24 21:41:59 UTC
You know what to do by now.
Comment 3 Mike Auty (RETIRED) gentoo-dev 2008-10-25 12:20:15 UTC
This appears to be a known problem, as mentioned in [1].  Please no longer use the "Driver i810" line, but instead use "Driver intel".  Also, as Jer mentioned, please include the output of "emerge --info" for each bug you file, even if you're filing several.  Thanks...  5:)

Please report back whether that solves your problem, on both this bug and on bug 243830.

[1] http://planet.gentoo.org/developers/remi/2008/10/18/it_s_been_too_long
Comment 4 Robert Bradbury 2008-10-25 18:18:52 UTC
Emerge --info is attached to Bug #243820.  The only difference between that and Bugs #243930 and #243844 was that I was booting the 2.6.27 kernel rather than the 2.6.26 kernel.

The only "major" difference between the 2.6.26 configuration and the 2.6.27 configuration was (a) making intelfb a module rather than being compiled into the kernel; and (b) changing the 2.6.27 configuration to have the high resolution timers disabled at first (later enabled to try and understand Bug #243816).
Comment 5 Mike Auty (RETIRED) gentoo-dev 2008-10-25 22:15:07 UTC
Robert, you haven't mentioned whether you tried using 'driver "intel"' rather than 'driver "i810"'?  As mentioned on the page I linked to in comment 3, there is an issue with the symlinked i810 driver which causes crashes.  Please try changing the driver line and if the problem still occurs please reopen this bug...
Comment 6 Robert Bradbury 2008-10-26 03:20:01 UTC
I have read the comments regarding the symlinks and do not believe that is the problem.  I did not try the "Driver intel" option, as at various points in my history with the xf86-video-intel driver, I did download the original source(s) from xorg.  I would compile these for debugging (-g2), drop them into the module directory and symlink i810_drv.so to the various versions (e.g. intel_drv_dbg.so).  There was never a problem with this strategy.

So I am reluctant to conclude that there is a problem with symlinked drivers.  It may be days before I am again at a point of testing 2.6.27 and the X server, so others may be able to test this before I can get to it.
Comment 7 Robert Bradbury 2008-10-26 07:28:33 UTC
I will confirm that with Linux 2.6.27, and X-server 1.5.2 and xorg.conf using Driver "intel", my system will boot multiple X windows.  There still appears to be some problems with (a) forcing the Kernel to *not* use "intelfb" (if it is available as a module, requests for video=vesafb or uvesafb notwithstanding); and (b) switching between the X VTs and the console VTs (console VTs appeared to be non-functional in cases where X intel driver was running in 2.6.27 and intelfb was the kernel driver).

So this solves part of my problem (1.5.2 with an Intel X driver).  However I will confirm that Bug #243816 is still in effect for kernel 2.6.27.  I.e. I have to fall back to kernel 2.6.26 in order to file this bug comment because "bugs.gentoo.org" hangs with a 2.6.27.
Comment 8 Robert Bradbury 2008-10-26 07:31:36 UTC
Created attachment 169904 [details]
Config file for kernel 2.6.27

Config file for Linux 2.6.27 which "hangs" and/or has problems with the Intel framebuffer driver.
Comment 9 Robert Bradbury 2008-10-26 07:35:15 UTC
Created attachment 169906 [details]
/etc/X11/xorg.conf for intel

xorg.conf which appears to boot under Linux 2.6.27 on Intel hardware.
Comment 10 Robert Bradbury 2008-10-26 07:39:14 UTC
Created attachment 169908 [details]
emerge --info for system in problem state

This is the emerge --info for the system running under 2.6.27 (vs. the hsqldb info associated with bug #243820).
Comment 11 Robert Bradbury 2008-10-26 07:45:52 UTC
Created attachment 169909 [details]
List of loaded modules on Linux 2.6.27 boot

This is the output of "lsmod" when running 2.6.27 (configured such that many of the drivers should be loadable modules).  It should be noted that even though the kernel was booted (via grub) using video=vesafb or uvesafb, that intelfb was pulled into the modules loaded.

The kernel command line (from grub) as documented by dmesg, was:
  Kernel command line: root=/dev/sda8 single video=vesafb