Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89071
b: refs/heads/master
c: 8346ea1
h: refs/heads/master
i:
  89069: 821fb51
  89067: 4eb6d02
  89063: 4fa9885
  89055: 3dc06a1
v: v3
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Apr 17, 2008
1 parent 18328a0 commit f045da0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1de87bd40e119d26533b5135677901990390bfa9
refs/heads/master: 8346ea17aa20e9864b0f7dc03d55f3cd5620b8c1
13 changes: 13 additions & 0 deletions trunk/arch/x86/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,19 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)

if (amd_apic_timer_broken())
disable_apic_timer = 1;

if (c == &boot_cpu_data && c->x86 >= 0xf && c->x86 <= 0x11) {
unsigned long long tseg;

/*
* Split up direct mapping around the TSEG SMM area.
* Don't do it for gbpages because there seems very little
* benefit in doing so.
*/
if (!rdmsrl_safe(MSR_K8_TSEG_ADDR, &tseg) &&
(tseg >> PMD_SHIFT) < (max_pfn_mapped >> (PMD_SHIFT-PAGE_SHIFT)))
set_memory_4k((unsigned long)__va(tseg), 1);
}
}

void __cpuinit detect_ht(struct cpuinfo_x86 *c)
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-x86/msr-index.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
#define MSR_K8_SYSCFG 0xc0010010
#define MSR_K8_HWCR 0xc0010015
#define MSR_K8_ENABLE_C1E 0xc0010055
#define MSR_K8_TSEG_ADDR 0xc0010112
#define K8_MTRRFIXRANGE_DRAM_ENABLE 0x00040000 /* MtrrFixDramEn bit */
#define K8_MTRRFIXRANGE_DRAM_MODIFY 0x00080000 /* MtrrFixDramModEn bit */
#define K8_MTRR_RDMEM_WRMEM_MASK 0x18181818 /* Mask: RdMem|WrMem */
Expand Down

0 comments on commit f045da0

Please sign in to comment.