lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090610104409.GC27724@elte.hu>
Date:	Wed, 10 Jun 2009 12:44:09 +0200
From:	Ingo Molnar <mingo@...e.hu>
To:	Yong Wang <yong.y.wang@...ux.intel.com>
Cc:	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Thomas Gleixner <tglx@...utronix.de>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH -tip] perf_counter/x86: Fix incorrect default branch


* Yong Wang <yong.y.wang@...ux.intel.com> wrote:

> On Tue, Jun 09, 2009 at 04:25:06PM +0200, Ingo Molnar wrote:
> > 
> > They dont have X86_FEATURE_ARCH_PERFMON set, right?
> > 
> > I made the switch statement under the assumption that it covers all 
> > existing arch-perfmon CPU models. If not, the 'default:' placement 
> > would indeed be buggy.
> > 
> 
> OK, you are right. X86_FEATURE_ARCH_PERFMON eliminates all the old CPUs.
> However, the logic still seems not correct. Both the Core2 CPUs I'm
> using are recognized as Nehalem/Corei7. /proc/cpuinfo and cpuid outputs
> are given below.
> 
> The first one:
> vendor_id       : GenuineIntel
> cpu family      : 6
> model           : 23
> model name      : Intel(R) Core(TM)2 Duo CPU     P8400  @ 2.26GHz
> stepping        : 6
> 
> CPUID.0x00000001: eax=0x00010676
> 
> The second one:
> vendor_id       : GenuineIntel
> cpu family      : 6
> model           : 15
> model name      : Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
> stepping        : 6
> 
> CPUID.0x00000001: eax=0x000006f6
> 
> Looks like it's not enough to just look at boot_cpu_data.x86_model.

Yeah - i've applied the patch you sent, thanks. I'm mostly working 
on NHM so i didnt notice.

	Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ