Bug 3552 - i810 DRM module does not initialize
Summary: i810 DRM module does not initialize
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/other (show other bugs)
Version: DRI git
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-16 09:57 UTC by Sergey Vlasov
Modified: 2005-06-15 19:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Sergey Vlasov 2005-06-16 09:57:14 UTC
The i810 module from the 2005-05-30 DRI CVS snapshot does not initialise
properly with these error messages:

[drm] Initialized drm 1.0.0 20040925
[drm:fill_in_dev] *ERROR* Cannot initialize the agpgart module.
DRM: Fill_in_dev failed.

However, the intel-agp module was loaded previously and initialized successfully:

agpgart: Detected an Intel i810 DC100 Chipset.
agpgart: Maximum main memory to use for agp memory: 148M
agpgart: detected 4MB dedicated video ram.
agpgart: AGP aperture is 32M @ 0xe6000000

Looks like the problem is that the drm_device_is_agp() test fails, therefore DRM
does not even attempt to initialize AGP.  The builtin i810 graphics device does
not advertize the AGP capability:

0000:00:00.0 Host bridge: Intel Corporation 82810 DC-100 GMCH [Graphics Memory
Controller Hub] (rev 02)
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort+ >SERR- <PERR-
        Latency: 0

0000:00:01.0 VGA compatible controller: Intel Corporation 82810 DC-100 CGC
[Chipset Graphics Controller] (rev 02) (prog-if 00 [VGA])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 0
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at e6000000 (32-bit, prefetchable)
        Region 1: Memory at e4800000 (32-bit, non-prefetchable) [size=512K]
        Capabilities: [dc] Power Management version 1
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Comment 1 Ian Romanick 2005-06-16 11:23:25 UTC
It never fails to amaze me how close-but-not-quite-there the Intel graphics
hardware is.  The i8XX / i9XX graphics chips are "obviously" AGP, but they don't
have the AGP attribute set in their PCI information.  The i810 (and almost
certainly the deprecated i830) DRM will need a patch similar to what's in the
i915 DRM.  Search for i915_driver_device_is_agp in the i915 DRM and add
something similar to the i810 (and i830?) driver.

Do other integrated graphics chipsets have this problem?

If nobody gets to it first, I should be able to whip up a patch in a couple days.
Comment 2 Alan Hourihane 2005-06-16 12:58:59 UTC
Fixed in the CVS as per the i915 patches. 


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.