[coreboot] i915 status on x60.

Denis 'GNUtoo' Carikli GNUtoo at no-log.org
Mon Mar 4 12:57:13 CET 2013

On Sun, 3 Mar 2013 22:58:46 -0500
ron minnich <rminnich at gmail.com> wrote:
> setgtt is only for hardware with a gtt. Again, I'm not familiar with
> the hardware on this laptop. Does it have a gtt?
it seems so(from the xf86-video-intel mentioned before):
        if (IS_G4X(pI830))
                gtt = (unsigned char *)(pI830->mmio + MB(2));
        else if (IS_I965G(pI830))
                gtt = (unsigned char *)(pI830->mmio + KB(512));
        else {
                /* 915/945 chips has GTT range in bar 3*/
                int err = 0;
                err = pci_device_map_range (pI830->pci_dev,
                                (void **)&gtt);
                if (err != 0) {
                        fprintf(stderr, "mapping GTT bar failed\n");
So the GTT would be on the bar 3:
# lspci -s 00:02.0 -vvvv
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS,
943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00
[VGA controller]) Subsystem: Lenovo ThinkPad T60/R60 series Control:
I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr-
DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx+ Latency: 0
Interrupt: pin A routed to IRQ 11 Region 0: Memory at e4200000 (32-bit,
non-prefetchable) [size=512K] Region 1: I/O ports at 50a0 [size=8]
	Region 2: Memory at d0000000 (32-bit, prefetchable) [size=256M]
	Region 3: Memory at e4300000 (32-bit, non-prefetchable)
[size=256K] Expansion ROM at <unassigned> [disabled]
	Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
		Address: 00000000  Data: 0000
	Capabilities: [d0] Power Management version 2
		Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable-
DSel=0 DScale=0 PME-

And the datasheets for the 945G also talks about the GTT like the
GTTADR registers etc...


More information about the coreboot mailing list