1
linux/arch/i386
Jan Beulich 365bff806e [PATCH] i386: fix MTRR code
Until not so long ago, there were system log messages pointing to
inconsistent MTRR setup of the video frame buffer caused by the way vesafb
and X worked. While vesafb was fixed meanwhile, I believe fixing it there
only hides a shortcoming in the MTRR code itself, in that that code is not
symmetric with respect to the ordering of attempts to set up two (or more)
regions where one contains the other. In the current shape, it permits
only setting up sub-regions of pre-exisiting ones. The patch below makes
this symmetric.

While working on that I noticed a few more inconsistencies in that code,
namely
- use of 'unsigned int' for sizes in many, but not all places (the patch
  is converting this to use 'unsigned long' everywhere, which specifically
  might be necessary for x86-64 once a processor supporting more than 44
  physical address bits would become available)
- the code to correct inconsistent settings during secondary processor
  startup tried (if necessary) to correct, among other things, the value
  in IA32_MTRR_DEF_TYPE, however the newly computed value would never get
  used (i.e. stored in the respective MSR)
- the generic range validation code checked that the end of the
  to-be-added range would be above 1MB; the value checked should have been
  the start of the range
- when contained regions are detected, previously this was allowed only
  when the old region was uncacheable; this can be symmetric (i.e. the new
  region can also be uncacheable) and even further as per Intel's
  documentation write-trough and write-back for either region is also
  compatible with the respective opposite in the other

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
2006-12-07 02:14:09 +01:00
..
boot [PATCH] paravirt: header and stubs for paravirtualisation 2006-12-07 02:14:07 +01:00
crypto [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
kernel [PATCH] i386: fix MTRR code 2006-12-07 02:14:09 +01:00
lib [PATCH] separate bdi congestion functions from queue congestion functions 2006-10-20 10:26:35 -07:00
mach-default [PATCH] irq-flags: i386: Use the new IRQF_ constants 2006-07-02 13:58:47 -07:00
mach-es7000
mach-generic [PATCH] i386: Replace i386 open-coded cmdline parsing with 2006-09-26 10:52:32 +02:00
mach-visws [PATCH] visws build fix 2006-10-28 11:30:52 -07:00
mach-voyager [PATCH] i386: Initialize the per-CPU data area 2006-12-07 02:14:02 +01:00
math-emu [PATCH] i386: fix must_checks 2006-12-07 02:14:00 +01:00
mm [PATCH] i386: clear_fixmap() should not use set_pte() 2006-12-07 02:14:09 +01:00
oprofile [PATCH] oprofile: ppro: need to enable/disable all the counters 2006-09-29 09:18:11 -07:00
pci [PATCH] paravirt: Be careful about touching BIOS address space 2006-12-07 02:14:08 +01:00
power [PATCH] paravirt: header and stubs for paravirtualisation 2006-12-07 02:14:07 +01:00
defconfig [PATCH] i386: Update defconfig 2006-12-07 02:14:00 +01:00
Kconfig [PATCH] paravirt: header and stubs for paravirtualisation 2006-12-07 02:14:07 +01:00
Kconfig.cpu [PATCH] i386: Add support for compilation for Core2 2006-12-07 02:14:09 +01:00
Kconfig.debug [PATCH] paravirt: Patch inline replacements for paravirt intercepts 2006-12-07 02:14:08 +01:00
Makefile [PATCH] i386: Relocatable kernel support 2006-12-07 02:14:04 +01:00
Makefile.cpu [PATCH] i386: Add support for compilation for Core2 2006-12-07 02:14:09 +01:00