* G4x_GMCH_SIZE_VT_2M
@ 2011-07-08 9:26 Konstantin Belousov
2011-07-08 9:49 ` G4x_GMCH_SIZE_VT_2M Chris Wilson
0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Belousov @ 2011-07-08 9:26 UTC (permalink / raw)
To: Intel-gfx
[-- Attachment #1.1: Type: text/plain, Size: 382 bytes --]
In Linux source, drivers/char/agp/intel_agp.h, there is a definition
#define G4x_GMCH_SIZE_VT_2M (0xc << 8)
According to the Intel document 319970.pdf, Intel 4 Series Chipset
Family, page 93, the VT mode, 2MB GTT page is reported by the
value 0xb << 8. One of my testers with GM45 chipset machine confirms
that the value in northbridge register 0x52 is 0xb << 8.
Is this a typo ?
[-- Attachment #1.2: Type: application/pgp-signature, Size: 196 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: G4x_GMCH_SIZE_VT_2M
2011-07-08 9:26 G4x_GMCH_SIZE_VT_2M Konstantin Belousov
@ 2011-07-08 9:49 ` Chris Wilson
0 siblings, 0 replies; 2+ messages in thread
From: Chris Wilson @ 2011-07-08 9:49 UTC (permalink / raw)
To: Konstantin Belousov, Intel-gfx
On Fri, 8 Jul 2011 12:26:28 +0300, Konstantin Belousov <kostikbel@gmail.com> wrote:
> In Linux source, drivers/char/agp/intel_agp.h, there is a definition
> #define G4x_GMCH_SIZE_VT_2M (0xc << 8)
>
> According to the Intel document 319970.pdf, Intel 4 Series Chipset
> Family, page 93, the VT mode, 2MB GTT page is reported by the
> value 0xb << 8. One of my testers with GM45 chipset machine confirms
> that the value in northbridge register 0x52 is 0xb << 8.
>
> Is this a typo ?
Yes, the code is wrong.
#define G4x_GMCH_SIZE_VT_EN (0x8<<8)
#define G4x_GMCH_SIZE_VT_1M (G4x_GMCH_SIZE_1M | G4x_GMCH_SIZE_VT_EN)
#define G4x_GMCH_SIZE_VT_1_5_M (0x2<<8 | G4x_GMCH_SIZE_VT_EN) /* No non-VT
equivalent */
#define G4x_GMCH_SIZE_VT_2M (G4x_GMCH_SIZE_2M | G4x_GMCH_SIZE_VT_EN)
Care to submit a patch?
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-08 9:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-08 9:26 G4x_GMCH_SIZE_VT_2M Konstantin Belousov
2011-07-08 9:49 ` G4x_GMCH_SIZE_VT_2M Chris Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).