Bug 12197

Summary: [915] machine hang at server startup when intel is not the primary graphics device
Product: xorg Reporter: Stefan Dirsch <sndirsch>
Component: Driver/intelAssignee: Hong Liu <hong.liu>
Status: RESOLVED WORKSFORME QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: eich, libv, mat
Version: gitKeywords: NEEDINFO
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 13027    
Attachments:
Description Flags
xorg.conf
none
Xorg.0.log.intel-primary
none
Xorg.0.log.intel-non_primary none

Description Stefan Dirsch 2007-08-28 05:41:03 UTC
I'm getting a machine freeze with the intel driver, if it's not the primary device. I'm using an Intel 915G machine with a Radeon ES1000/RN50 in the PCI slot. The latter is configured as primary graphics device via the system BIOS.
The driver works fine if the onboard graphics are configured as primary graphics device.

I debugged the driver to see where the freeze happens.

 i830_display.c: i830_crtc_mode_set()
     [...]
     i830WaitForVblank(pScrn);

 --> OUTREG(dspcntr_reg, dspcntr);  /* hard freeze */
     /* Flush the plane changes */
     i830PipeSetBase(crtc, x, y);
     [...]

 (gdb) p /x dspcntr_reg
 $6 = 0x70180
 (gdb) p /x dspcntr
 $7 = 0xd8000000

I'll attach config and log files as well.
Comment 1 Stefan Dirsch 2007-08-28 05:44:04 UTC
Created attachment 11306 [details]
xorg.conf
Comment 2 Stefan Dirsch 2007-08-28 05:45:06 UTC
Created attachment 11307 [details]
Xorg.0.log.intel-primary
Comment 3 Stefan Dirsch 2007-08-28 05:45:58 UTC
Created attachment 11308 [details]
Xorg.0.log.intel-non_primary
Comment 4 Stefan Dirsch 2007-08-28 05:47:33 UTC
As you can see Xorg.0.log.intel-non_primary is truncated after 

  (II) intel(0): I2C bus "SDVOCTRL_E for SDVOC" removed.

This is where the machine freezes.
Comment 5 Stefan Dirsch 2007-08-28 06:01:54 UTC
Just an idea. The Intel VGA BIOS gets overwritten by ATI Radeon BIOS during system start, if the ATI card is the primary device. During Xserver start the intel driver posts the wrong BIOS, the ATI one --> machine freeze

Is there any VGA initialization in intel driver missing, so using Intel onboard graphics as non-primary graphics currently cannot work at all?
Comment 6 Jesse Barnes 2007-10-31 15:05:07 UTC
I think something like that is happening.  It's likely none of the Intel pipes are enabled and we program the display controller registers incorrectly at startup for that case...
Comment 7 Michael Fu 2008-01-06 22:39:29 UTC
what kind of mobo do you use? it seems that we can't reproduce this here, as the machine disabled the intel gfx if it's not set as primary...( can't find it through lspci)  :(
Comment 8 Michael Fu 2008-01-26 18:36:58 UTC
bug reporter's respone timeout...reject the bug..

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.