Bug 12197 - [915] machine hang at server startup when intel is not the primary graphics device
Summary: [915] machine hang at server startup when intel is not the primary graphics d...
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Hong Liu
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks: 13027
  Show dependency treegraph
 
Reported: 2007-08-28 05:41 UTC by Stefan Dirsch
Modified: 2008-01-26 18:36 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
xorg.conf (1.38 KB, text/plain)
2007-08-28 05:44 UTC, Stefan Dirsch
no flags Details
Xorg.0.log.intel-primary (35.95 KB, text/plain)
2007-08-28 05:45 UTC, Stefan Dirsch
no flags Details
Xorg.0.log.intel-non_primary (18.33 KB, text/plain)
2007-08-28 05:45 UTC, Stefan Dirsch
no flags Details

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.