Voodooprojects

Chameleon => Bug Reports => Topic started by: doobz on October 11, 2009, 04:27:03 PM

Title: cham can't detect i5 "fsb"
Post by: doobz on October 11, 2009, 04:27:03 PM
hello, in i386/libsaio/freq_detect.c, line 185 a model check must be added for "0x1e" in order for i5 to find correct "fsb"
Title: Re: cham can't detect i5 "fsb"
Post by: Kabyl on October 11, 2009, 11:13:41 PM
Code: [Select]
Index: i386/libsaio/freq_detect.c
===================================================================
--- i386/libsaio/freq_detect.c (revision 660)
+++ i386/libsaio/freq_detect.c (working copy)
@@ -182,7 +182,7 @@
  (cpu_family == 0x0f && cpu_model >= 0x03))
  {
  /* Nehalem CPU model */
- if (cpu_family == 0x06 && cpu_model == 0x1a)
+ if (cpu_family == 0x06 && (cpu_model == 0x1a || cpu_model == 0x1e))
  {
  msr = rdmsr64(MSR_PLATFORM_INFO);
  currcoef = (msr >> 8) & 0xff;

Thanks.
Title: Re: cham can't detect i5 "fsb"
Post by: alakaboo on November 11, 2009, 09:12:21 AM
Patch enables vanilla 10.6.2 kernel to run on Lynnfield without a hitch. Hope it makes it into the next public build. Thanks.
Title: Re: cham can't detect i5 "fsb"
Post by: zef on November 11, 2009, 09:51:23 PM
Hope it makes it into the next public build.

Yeah, Kabyl already committed this change into the repo.