kern/56451: [linprocfs] /compat/linux/proc/cpuinfo gives wrong CPU model

Alexander Best alexbestms at wwu.de
Wed Feb 10 01:30:04 UTC 2010


The following reply was made to PR kern/56451; it has been noted by GNATS.

From: Alexander Best <alexbestms at wwu.de>
To: <bug-followup at FreeBSD.org>
Cc: Simon Barner <barner at in.tum.de>
Subject: Re: kern/56451: [linprocfs] /compat/linux/proc/cpuinfo gives wrong
 CPU model
Date: Wed, 10 Feb 2010 02:29:19 +0100 (CET)

   This is a MIME encoded multipart message.
 
 --+permail-20100210012919f7e55a9d00006fa1-a_best01+
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 seems cpuinfo is broken too under amd64. this is the output i get:
 
 processor       : 0
 vendor_id       : GenuineIntel
 cpu family      : 15
 model           : 1
 model name      : Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz
 stepping        : 13
 processor       : 1
 vendor_id       : GenuineIntel
 cpu family      : 15
 model           : 1
 model name      : Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz
 stepping        : 13
 flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
 cmov pat pse36 b19 b21 mmxext mmx fxsr xmm sse2 b27 b28 b29 3dnow
 cpu MHz         : 1800.01
 bogomips        : 1800.01
 
 since dmesg says
 
 Origin = "GenuineIntel"  Id = 0x6fd  Stepping = 13
 
 the values for model and cpu family are wrong.
 
 with the patch (well lets call it hack ;)) attached the output changes to
 
 processor       : 0
 vendor_id       : GenuineIntel
 cpu family      : 6
 model           : 15
 model name      : Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz
 stepping        : 13
 processor       : 1
 vendor_id       : GenuineIntel
 cpu family      : 6
 model           : 15
 model name      : Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz
 stepping        : 13
 flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
 cmov pat pse36 b19 b21 mmxext mmx fxsr xmm sse2 b27 b28 b29 3dnow
 cpu MHz         : 1800.01
 bogomips        : 1800.01
 
 which i believe is what the output should look like. maybe somebody could shed
 some light on this. maybe by starting to look for the place where "class" and
 "cpu" are being defined?
 
 cheers.
 alex
 
 --+permail-20100210012919f7e55a9d00006fa1-a_best01+
 Content-Type: text/plain
 Content-Transfer-Encoding: Base64
 Content-Disposition: attachment; filename="linprocfs.patch.txt"
 
 SW5kZXg6IHN5cy9jb21wYXQvbGlucHJvY2ZzL2xpbnByb2Nmcy5jCj09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5
 cy9jb21wYXQvbGlucHJvY2ZzL2xpbnByb2Nmcy5jCShyZXZpc2lvbiAyMDM3MTMpCisrKyBzeXMv
 Y29tcGF0L2xpbnByb2Nmcy9saW5wcm9jZnMuYwkod29ya2luZyBjb3B5KQpAQCAtMjczLDcgKzI3
 Myw3IEBACiAJCSAgICAibW9kZWxcdFx0OiAlZFxuIgogCQkgICAgIm1vZGVsIG5hbWVcdDogJXNc
 biIKIAkJICAgICJzdGVwcGluZ1x0OiAlZFxuIiwKLQkJICAgIGksIGNwdV92ZW5kb3IsIGNsYXNz
 LCBjcHUsIG1vZGVsLCBjcHVfaWQgJiAweGYpOworCQkgICAgaSwgY3B1X3ZlbmRvciwgKGNwdV9p
 ZCAmIDB4ZjAwKSA+PiA4LCAoY3B1X2lkICYgMHhmMCkgPj4gNCwgbW9kZWwsIGNwdV9pZCAmIDB4
 Zik7CiAJCS8qIFhYWCBwZXItY3B1IHZlbmRvciAvIGNsYXNzIC8gbW9kZWwgLyBpZD8gKi8KIAl9
 CiAK
 
 --+permail-20100210012919f7e55a9d00006fa1-a_best01+--


More information about the freebsd-emulation mailing list