diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-19 13:41:41 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-19 13:52:20 +0100 |
commit | c5d59580c308763d163d2bfb374b796ae68a3748 (patch) | |
tree | 3ce80d188b977f297f53240bec2495e2cdc86c1a /main/linux-grsec/x86-centaur-enable-cx8-for-via-eden-too.patch | |
parent | 1d14f37cea33666974d6adf5d93daba1542bf7f5 (diff) | |
download | aports-c5d59580c308763d163d2bfb374b796ae68a3748.tar.bz2 aports-c5d59580c308763d163d2bfb374b796ae68a3748.tar.xz |
main/linux-grsec: fix mtu regression and fix via cpu support
Diffstat (limited to 'main/linux-grsec/x86-centaur-enable-cx8-for-via-eden-too.patch')
-rw-r--r-- | main/linux-grsec/x86-centaur-enable-cx8-for-via-eden-too.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main/linux-grsec/x86-centaur-enable-cx8-for-via-eden-too.patch b/main/linux-grsec/x86-centaur-enable-cx8-for-via-eden-too.patch new file mode 100644 index 0000000000..37e3e3bdb0 --- /dev/null +++ b/main/linux-grsec/x86-centaur-enable-cx8-for-via-eden-too.patch @@ -0,0 +1,38 @@ +From: Timo Teräs <timo.teras@iki.fi> +Date: Thu, 15 Dec 2011 15:11:28 +0000 (+0200) +Subject: x86, centaur: Enable cx8 for VIA Eden too +X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftip%2Ftip.git;a=commitdiff_plain;h=cb3f718de8301a969f8169d7d4160e73baff0b86 + +x86, centaur: Enable cx8 for VIA Eden too + +My box with following cpuinfo needs the cx8 enabling still: + +vendor_id : CentaurHauls +cpu family : 6 +model : 13 +model name : VIA Eden Processor 1200MHz +stepping : 0 +cpu MHz : 1199.940 +cache size : 128 KB + +This fixes valgrind to work on my box (it requires and checks +cx8 from cpuinfo). + +Signed-off-by: Timo Teräs <timo.teras@iki.fi> +Link: http://lkml.kernel.org/r/1323961888-10223-1-git-send-email-timo.teras@iki.fi +Signed-off-by: H. Peter Anvin <hpa@zytor.com> +--- + +diff --git a/arch/x86/kernel/cpu/centaur.c b/arch/x86/kernel/cpu/centaur.c +index e58d978..159103c 100644 +--- a/arch/x86/kernel/cpu/centaur.c ++++ b/arch/x86/kernel/cpu/centaur.c +@@ -278,7 +278,7 @@ static void __cpuinit init_c3(struct cpuinfo_x86 *c) + } + #ifdef CONFIG_X86_32 + /* Cyrix III family needs CX8 & PGE explicitly enabled. */ +- if (c->x86_model >= 6 && c->x86_model <= 9) { ++ if (c->x86_model >= 6 && c->x86_model <= 13) { + rdmsr(MSR_VIA_FCR, lo, hi); + lo |= (1<<1 | 1<<7); + wrmsr(MSR_VIA_FCR, lo, hi); |