MTRR mystery (Announce)
> Alright, now this is getting mysterious to me. Your new version seems to
> speed up all my i7 VESA lfb modes to maximum speed (between 8287 and 10070
> MB/sec!), BUT now all system memory ABOVE 2gb is Uncached! Resetting my
> system to state before MTRRLFBE.exe is run restores full caching to my
> fullrange of DOS memory available to the system (to 3.5GB)
Yes, this is because I rewrite MTRR0 that overlaped entire 4GB to 2GB. Do you have some problems caused that mem above 2GB is uncached? I guess that common dos programs will never reach this address. If this will be problem I would need add more MTRRs covering 1GB and 0.5GB or 0.25GB range upt to 3.5GB / 3.25GB. But it may happen that there will be no free MTRR. Windows and Linux should set MTRR by own way.
> Also, more strangely, if I run "mtrrlfbe lfb UC -d" on my i7 system now, it
> freezes within 0.2 second of setting the MTRRs. It is like the situation is
> reversed from your older versions of MTRRLFBE where the i7 system would
> freeze in an identical manner AFTER lfb WC was enabled!!
Hm, on my c2d and i5 it works both. I made a set of test versions to trace problem: http://rayer.ic.cz/350d/vesatest2.zip
Try all to set WC and UC and note which freezed and which not. Logs are not needed.
> It seems more apparent to me that I must manually set MTRRs somehow, but
> how? BIOS does not allow this and I do have your CPUID program, but how to
> set MTRRs with it?
try cpuid /?
this will allow you to read/write MSR. Variable MTRR0 starts at index 200h, every MTRR use two 64bit MSRs (base and mask structure). Eg. MTTR1 starta at 202h, MTRR2 at 204h and so on...
If you will clear MTRR2 (MSR index 204 and 205) on your C2D with remapping it should work. Do you need to enable remapping anyway?
> C2D with bios memory remapping before
> LFB address: D0000000h
> MTRR #0: base = 000000000h ( 0MB), mask = F00000000h (4096MB), WB, used - I fix this to 2GB
> MTRR #1: base = 100000000h (4096MB), mask = FC0000000h (1024MB), WB, used
> MTRR #2: base = 0C0000000h (3072MB), mask = FC0000000h (1024MB), UC, used - but this still overlaps LFB
> MTRR #3: base = 0BDE00000h (3038MB), mask = FFFE00000h ( 2MB), UC, used
> MTRR #4: base = 0BE000000h (3040MB), mask = FFE000000h ( 32MB), UC, used
It seems that I cannot use Page Attribute Table because it works only when paging enabled. And not all DOS programs using LFB enables paging. Even I don't know if setting will be permanent or only for program that set it. Not much info, nobody replied @osdev :(
---
DOS gives me freedom to unlimited HW access.
Complete thread:
- New DJGPP Mplayer build from SVN - Khusraw, 23.01.2012, 18:42 (Announce)
- 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