MTRR mystery (Announce)
I finally got full performance on my i5 @work! But it was not fully automatic process, one "bad" MTRR still caused overlaping and I must manually clear it via my CPUID tool. Also fixed MTRR prints now started to give a sense to me.
before:
VESA 3.0 NVIDIA [14336 kB]
LFB address: CF000000h
MTRR #0: base = 000000000h ( 0MB), mask = E00000000h (8192MB), WB, used
MTRR #1: base = 200000000h (8192MB), mask = FE0000000h ( 512MB), WB, used
MTRR #2: base = 220000000h (8704MB), mask = FF0000000h ( 256MB), WB, used
MTRR #3: base = 230000000h (8960MB), mask = FFC000000h ( 64MB), WB, used
MTRR #4: base = 0CC000000h (3264MB), mask = FFC000000h ( 64MB), UC, used
MTRR #5: base = 0D0000000h (3328MB), mask = FF0000000h ( 256MB), UC, used
MTRR #6: base = 0E0000000h (3584MB), mask = FE0000000h ( 512MB), UC, used
MTRR #7: base = 000000000h ( 0MB), mask = 000000000h ( 0MB), UC, unused
Setting MTRR #7...
MTRR area CF000000-CFDFFFFFh was set to mode: WC
after:
VESA 3.0 NVIDIA [14336 kB]
LFB address: CF000000h
MTRR #0: base = 000000000h ( 0MB), mask = F80000000h (2048MB), WB, used - patched to not overlap LFB
MTRR #1: base = 200000000h (8192MB), mask = FE0000000h ( 512MB), WB, used
MTRR #2: base = 220000000h (8704MB), mask = FF0000000h ( 256MB), WB, used
MTRR #3: base = 230000000h (8960MB), mask = FFC000000h ( 64MB), WB, used
MTRR #4: base = 0CC000000h (3264MB), mask = FFC000000h ( 64MB), UC, used - but this bastard overlaps LFB too. It covers some MMIO that should be uncached but I really don't know what area is really used. If I can shrink it to 32MB. This is BIOS specific issue that will complicate MTRR setting routine. I would add checking of all MTRRs if not overlaps...
MTRR #5: base = 0D0000000h (3328MB), mask = FF0000000h ( 256MB), UC, used
MTRR #6: base = 0E0000000h (3584MB), mask = FE0000000h ( 512MB), UC, used
MTRR #7: base = 0CF000000h (3312MB), mask = FFF800000h ( 8MB), WC, used - my LFB setting, now with correct continuous mask
Setting MTRR #7...
MTRR area CF000000-CFDFFFFFh was set to mode: WC
Now I got 2054 MB/s wow. As it grows to complexity it more and more suggests to use PAT. But I'd like to see your logs too to getting more understand how BIOS set MTRRs...
---
DOS gives me freedom to unlimited HW access.
Complete thread:
- New DJGPP Mplayer build from SVN - Khusraw, 23.01.2012, 18:42
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- New DJGPP Mplayer build from SVN - ron, 23.01.2012, 21:21
- New DJGPP Mplayer build from SVN - ron, 23.01.2012, 22:39
- New DJGPP Mplayer build from SVN - glennmcc, 24.01.2012, 00:24
- New DJGPP Mplayer build from SVN - ron, 24.01.2012, 00:46
- New DJGPP Mplayer build from SVN - Khusraw, 24.01.2012, 09:24
- New DJGPP Mplayer build from SVN - Khusraw, 24.01.2012, 09:22
- New DJGPP Mplayer build from SVN - glennmcc, 24.01.2012, 00:24
- New DJGPP Mplayer build from SVN - ron, 23.01.2012, 22:39
- New DJGPP Mplayer build from SVN - Doug, 24.01.2012, 04:58
- New DJGPP Mplayer build from SVN - RayeR, 24.01.2012, 10:26
- Mplayer with fixed ao wss problems - Khusraw, 24.01.2012, 13:54
- Mplayer with fixed ao wss problems - ron, 24.01.2012, 22:41
- Mplayer with fixed ao wss problems - ron, 25.01.2012, 03:51
- Mplayer with fixed ao wss problems - ron, 25.01.2012, 21:49
- Mplayer with fixed ao wss problems - ron, 25.01.2012, 03:51
- Mplayer with fixed ao wss problems - glennmcc, 25.01.2012, 01:34
- Mplayer with fixed ao wss problems - Khusraw, 25.01.2012, 09:03
- Mplayer with fixed ao wss problems - glennmcc, 25.01.2012, 17:32
- Mplayer with fixed ao wss problems - Khusraw, 25.01.2012, 21:40
- Mplayer with fixed ao wss problems - glennmcc, 26.01.2012, 02:19
- Mplayer with fixed ao wss problems - glennmcc, 26.01.2012, 03:03
- Mplayer with fixed ao wss problems - RayeR, 26.01.2012, 10:31
- Mplayer with fixed ao wss problems - Khusraw, 26.01.2012, 10:43
- Mplayer with fixed ao wss problems - glennmcc, 26.01.2012, 23:32
- Mplayer with fixed ao wss problems - Zyzzle, 26.01.2012, 23:52
- Mplayer with fixed ao wss problems - RayeR, 27.01.2012, 03:06
- Mplayer with fixed ao wss problems - Zyzzle, 26.01.2012, 23:52
- Mplayer with fixed ao wss problems - glennmcc, 26.01.2012, 23:32
- Mplayer with fixed ao wss problems - glennmcc, 26.01.2012, 03:03
- Mplayer with fixed ao wss problems - glennmcc, 26.01.2012, 02:19
- Mplayer with fixed ao wss problems - Khusraw, 25.01.2012, 21:40
- Mplayer with fixed ao wss problems - glennmcc, 25.01.2012, 17:32
- Mplayer with fixed ao wss problems - Khusraw, 25.01.2012, 09:03
- Mplayer with fixed ao wss problems - RayeR, 25.01.2012, 03:44
- Mplayer with fixed ao wss problems - Khusraw, 25.01.2012, 09:05
- Mplayer with fixed ao wss problems - Doug, 25.01.2012, 05:59
- Mplayer with fixed ao wss problems - Khusraw, 25.01.2012, 09:07
- Mplayer with fixed ao wss problems - Doug, 25.01.2012, 17:48
- Mplayer with fixed ao wss problems - RayeR, 25.01.2012, 16:05
- Mplayer with fixed ao wss problems - Doug, 25.01.2012, 17:45
- Mplayer with fixed ao wss problems - RayeR, 25.01.2012, 17:53
- Mplayer with fixed ao wss problems - Doug, 25.01.2012, 17:45
- Mplayer with fixed ao wss problems - Khusraw, 25.01.2012, 17:12
- Mplayer with fixed ao wss problems - Doug, 25.01.2012, 17:54
- Mplayer with fixed ao wss problems - my "kludgy" solution - Doug, 25.01.2012, 18:06
- Mplayer with fixed ao wss problems - Khusraw, 25.01.2012, 09:07
- Mplayer with fixed ao wss problems - ron, 24.01.2012, 22:41
- New DJGPP Mplayer build from SVN - Zyzzle, 26.01.2012, 04:52
- New DJGPP Mplayer build from SVN - Khusraw, 26.01.2012, 09:29
- New DJGPP Mplayer build from SVN - Zyzzle, 26.01.2012, 22:13
- New DJGPP Mplayer build from SVN - Khusraw, 26.01.2012, 23:14
- New DJGPP Mplayer build from SVN - RayeR, 27.01.2012, 03:12
- New DJGPP Mplayer build from SVN - Khusraw, 27.01.2012, 10:25
- New DJGPP Mplayer build from SVN - Zyzzle, 28.01.2012, 01:54
- New DJGPP Mplayer build from SVN - Khusraw, 28.01.2012, 09:23
- New DJGPP Mplayer build from SVN - Zyzzle, 28.01.2012, 13:51
- New DJGPP Mplayer build from SVN - RayeR, 28.01.2012, 14:46
- New DJGPP Mplayer build from SVN - Khusraw, 28.01.2012, 14:47
- New DJGPP Mplayer build from SVN - Zyzzle, 29.01.2012, 04:40
- MTRR mystery - RayeR, 30.01.2012, 15:03
- MTRR mystery - RayeR, 31.01.2012, 02:38
- MTRR mystery - RayeR, 31.01.2012, 02:39
- MTRR mystery - roytam, 31.01.2012, 05:38
- MTRR mystery - RayeR, 31.01.2012, 13:02
- MTRR mystery - RayeR, 02.02.2012, 04:13
- MTRR mystery - Zyzzle, 02.02.2012, 05:46
- MTRR mystery - RayeR, 02.02.2012, 10:51
- MTRR mystery - RayeR, 02.02.2012, 20:44
- MTRR mystery - Zyzzle, 03.02.2012, 08:20
- MTRR mystery - RayeR, 03.02.2012, 19:19
- MTRR mystery - Zyzzle, 04.02.2012, 07:08
- MTRR mystery - RayeR, 05.02.2012, 02:20
- MTRR mystery - RayeR, 06.02.2012, 02:23
- MTRR mystery - RayeR, 06.02.2012, 12:14
- MTRR mystery - Zyzzle, 07.02.2012, 08:04
- MTRR mystery - RayeR, 07.02.2012, 16:53
- MTRR mystery - Laaca, 11.02.2012, 08:49
- MTRR mystery - RayeR, 11.02.2012, 13:22
- MTRR mystery - Zyzzle, 12.02.2012, 08:11
- MTRR mystery - RayeR, 11.02.2012, 13:22
- MTRR mystery - Laaca, 11.02.2012, 08:49
- MTRR mystery - RayeR, 07.02.2012, 16:53
- MTRR mystery - Zyzzle, 07.02.2012, 08:04
- MTRR mystery - RayeR, 06.02.2012, 12:14
- MTRR mystery - RayeR, 06.02.2012, 02:23
- MTRR mystery - RayeR, 05.02.2012, 02:20
- MTRR mystery - Zyzzle, 04.02.2012, 07:08
- MTRR mystery - RayeR, 03.02.2012, 19:19
- MTRR mystery - Zyzzle, 03.02.2012, 08:20
- MTRR mystery - RayeR, 02.02.2012, 20:44
- MTRR mystery - RayeR, 02.02.2012, 10:51
- MTRR mystery - Zyzzle, 02.02.2012, 05:46
- MTRR mystery - RayeR, 31.01.2012, 02:38
- MTRR mystery - RayeR, 30.01.2012, 15:03
- New DJGPP Mplayer build from SVN - Zyzzle, 29.01.2012, 04:40
- New DJGPP Mplayer build from SVN - Zyzzle, 28.01.2012, 13:51
- New DJGPP Mplayer build from SVN - Khusraw, 28.01.2012, 09:23
- New DJGPP Mplayer build from SVN - Zyzzle, 28.01.2012, 02:09
- New DJGPP Mplayer build from SVN - Khusraw, 28.01.2012, 09:03
- New DJGPP Mplayer build from SVN - RayeR, 28.01.2012, 14:56
- New DJGPP Mplayer build from SVN - Zyzzle, 28.01.2012, 01:54
- New DJGPP Mplayer build from SVN - Zyzzle, 26.01.2012, 22:13
- New DJGPP Mplayer build from SVN - ron, 26.01.2012, 11:52
- New DJGPP Mplayer build from SVN - Khusraw, 26.01.2012, 09:29
- New DJGPP Mplayer build from SVN - Deniska, 27.01.2012, 12:47
- New DJGPP Mplayer build from SVN - Khusraw, 27.01.2012, 14:41
- New DJGPP Mplayer build from SVN - Deniska, 28.01.2012, 06:04
- New DJGPP Mplayer build from SVN - Khusraw, 28.01.2012, 14:34
- New DJGPP Mplayer build from SVN - Khusraw, 29.01.2012, 12:09
- New DJGPP Mplayer build from SVN - Deniska, 28.01.2012, 06:04
- New DJGPP Mplayer build from SVN - Khusraw, 27.01.2012, 14:41
- New DJGPP Mplayer build from SVN - Laaca, 27.01.2012, 15:21
- New DJGPP Mplayer build from SVN - Khusraw, 27.01.2012, 15:25
- New DJGPP Mplayer build from SVN - Laaca, 28.01.2012, 21:32
- New DJGPP Mplayer build from SVN - Khusraw, 29.01.2012, 09:46
- New DJGPP Mplayer build from SVN - Laaca, 28.01.2012, 21:32
- New DJGPP Mplayer build from SVN - Khusraw, 27.01.2012, 15:25
- New DJGPP Mplayer build from SVN - dalmudlee, 01.02.2012, 16:28
- New DJGPP Mplayer build from SVN - Khusraw, 01.02.2012, 17:09
- New DJGPP Mplayer build from SVN - dalmudlee, 01.02.2012, 18:33
- New DJGPP Mplayer build from SVN - Khusraw, 01.02.2012, 18:40
- New DJGPP Mplayer build from SVN - dalmudlee, 01.02.2012, 18:33
- New DJGPP Mplayer build from SVN - Khusraw, 01.02.2012, 17:09
- Final Mplayer DJGPP build for this "season" - Khusraw, 04.02.2012, 23:08
- Final Mplayer DJGPP build for this "season" - Zyzzle, 06.02.2012, 06:39
- Final Mplayer DJGPP build for this "season" - Khusraw, 06.02.2012, 09:54
- Final Mplayer DJGPP build for this "season" - Zyzzle, 06.02.2012, 06:39
- Yet another small update - Khusraw, 08.02.2012, 17:15
- Yet another small update - glennmcc, 11.02.2012, 00:53
- Yet another small update - ron, 11.02.2012, 07:56
- Yet another small update | OMP | works mostly - DOS386, 24.02.2012, 01:52
- Yet another small update | OMP | works mostly - Khusraw, 24.02.2012, 13:05
- Yet another small update | OMP | works mostly - DOS386, 05.03.2012, 07:47
- Yet another small update | OMP | works mostly - Khusraw, 05.03.2012, 09:02
- OMP | works mostly | OGG Theora+Vorbis issues - DOS386, 11.03.2012, 15:57
- OMP | works mostly | OGG Theora+Vorbis issues - Khusraw, 11.03.2012, 16:18
- MPLAYER 1.1 is out 2012-Jun-10 - DOS386, 13.06.2012, 11:28
- MPLAYER 1.1 is out 2012-Jun-10 - Khusraw, 14.06.2012, 20:33
- MPLAYER 1.1 is out 2012-Jun-10 - DOS386, 13.06.2012, 11:28
- OMP | works mostly | OGG Theora+Vorbis issues - Khusraw, 11.03.2012, 16:18
- OMP | works mostly | OGG Theora+Vorbis issues - DOS386, 11.03.2012, 15:57
- Yet another small update | OMP | works mostly - Khusraw, 05.03.2012, 09:02
- Yet another small update | OMP | works mostly - DOS386, 05.03.2012, 07:47
- Yet another small update | OMP | works mostly - Khusraw, 24.02.2012, 13:05
- Yet another small update - glennmcc, 11.02.2012, 00:53
- New DJGPP Mplayer build from SVN - ron, 23.01.2012, 21:21
Mix view