annotate DOCS/MTRR @ 1251:ed006a130ad3

ICCCM anythingdunnowhat
author gabucino
date Sun, 01 Jul 2001 21:49:21 +0000
parents 0bddc179f042
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1201
0bddc179f042 some fixes, updates
arpi_esp
parents: 753
diff changeset
1 Setting up MTRR for X11 3.3.x, SVGAlib or mga_vid:
0bddc179f042 some fixes, updates
arpi_esp
parents: 753
diff changeset
2 ==================================================
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 1. find the base address
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 ~~~~~~~~~~~~~~~~~~~~~~~~
96
2c04d6650bc9 very much changes
gabucino
parents: 82
diff changeset
6 You have 3 ways to find it:
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 - from X11 startup messages, for example:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9 (--) SVGA: PCI: Matrox MGA G400 AGP rev 4, Memory @ 0xd8000000, 0xd4000000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10 (--) SVGA: Linear framebuffer at 0xD8000000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 - from /proc/pci (use lspci -v command):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 01:00.0 VGA compatible controller: Matrox Graphics, Inc.: Unknown device 0525
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 Memory at d8000000 (32-bit, prefetchable)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 - from mga_vid kernel driver messages (use dmesg):
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 mga_mem_base = d8000000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 2. find memory size
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 ~~~~~~~~~~~~~~~~~~~
96
2c04d6650bc9 very much changes
gabucino
parents: 82
diff changeset
21 This is very easy, just convert video ram size to hexadecimal, or
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 use this table:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 1 MB 0x100000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 2 MB 0x200000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25 4 MB 0x400000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 8 MB 0x800000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 16 MB 0x1000000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 32 MB 0x2000000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 3. setting up mtrr
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 ~~~~~~~~~~~~~~~~~~
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 You know base address and memory size, let's setup mtrr registers!
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 For example, for the matrox card above (base=0xd8000000) with 32MB
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 ram (size=0x2000000) just execute:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 echo "base=0xd8000000 size=0x2000000 type=write-combining" >| /proc/mtrr
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37
753
34c1a9fb631b oh, this much? :p
gabucino
parents: 96
diff changeset
38 - Older K6-2's [around 266Mhz, stepping 0] doesn't support MTRR, but
34c1a9fb631b oh, this much? :p
gabucino
parents: 96
diff changeset
39 stepping 12's do ('cat /proc/cpuinfo' to check it).