NetBSD Problem Report #26437

Received: (qmail 23233 invoked by uid 605); 26 Jul 2004 20:31:45 -0000
Message-Id: <20040726180742.A813711157@narn.netbsd.org>
Date: Mon, 26 Jul 2004 18:07:42 +0000 (UTC)
From: pavel.cahyna@st.mff.cuni.cz
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: pavel.cahyna@st.mff.cuni.cz
To: gnats-bugs@gnats.NetBSD.org
Subject: pmc not working in 2.0_BETA
X-Send-Pr-Version: www-1.0

>Number:         26437
>Category:       port-i386
>Synopsis:       pmc not working in 2.0_BETA
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 26 20:32:00 +0000 2004
>Closed-Date:    Wed Mar 08 15:24:58 +0000 2017
>Last-Modified:  Wed Mar 08 15:24:58 +0000 2017
>Originator:     Pavel Cahyna
>Release:        2.0_BETA
>Organization:
>Environment:
>Description:
I've compiled a kernel with pmc support and discovered that it does not
work, even if my CPU (Pentium II) has pmc support. (pmc -h prints 
pmc: PMC counters are not supported for your CPU (0x0) .)

The cause seems to be this commit to sys/arch/i386/i386/pmc.c :

----------------------------
revision 1.5
date: 2002/10/05 05:55:46;  author: gmcgarry;  state: Exp;  lines: +4 -2
branches:  1.5.2;
At least make it compile even though it doesn't make sense.
----------------------------

The log mesage is correct.
>How-To-Repeat:
pmc -h on a kernel with options         PERFCTRS
>Fix:
Upgrade sys/arch/i386/i386/pmc.c to rev. 1.7
>Release-Note:
>Audit-Trail:

From: Matthew Mondor <mmondor@gmail.com>
To: gnats-bugs@netbsd.org
Cc:  
Subject: Re: port-i386/26437
Date: Mon, 26 Jul 2004 20:00:36 -0400

 I beleive that performance counters are currently only supported for
 the i686 familly (ppro or P3+) of Intel processors (P2 being of the
 i586 family)

 Matt
Responsible-Changed-From-To: port-i386-maintainer->mrg 
Responsible-Changed-By: tron 
Responsible-Changed-When: Tue Jul 27 16:14:42 UTC 2004 
Responsible-Changed-Why:  
Matthew Green committed revision 1.7 of "pmc.c". 
Responsible-Changed-From-To: mrg->port-i386-maintainer 
Responsible-Changed-By: tron 
Responsible-Changed-When: Tue Jul 27 16:37:49 UTC 2004 
Responsible-Changed-Why:  
Matthew doesn't want this PR. 

From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
To: gnats-bugs@netbsd.org
Cc: Matthew Mondor <mmondor@gmail.com>
Subject: Re: port-i386/26437
Date: Tue, 27 Jul 2004 21:47:15 +0200

 > I beleive that performance counters are currently only supported for
 > the i686 familly (ppro or P3+) of Intel processors 

 This is not true, according to the pmc(3) manpage.

 > (P2 being of the i586 family)

 This is also not true, P2 is almost the same as Pentium Pro:

 cpu0: Intel Pentium II (686-class), 400.93 MHz, id 0x653
 cpu0: features 183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
 cpu0: features 183f9ff<PGE,MCA,CMOV,PAT,PSE36,MMX>
 cpu0: features 183f9ff<FXSR>

From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
To: gnats-bugs@netbsd.org
Cc: netbsd-bugs@netbsd.org
Subject: Re: port-i386/26437
Date: Tue, 27 Jul 2004 21:50:49 +0200

 > Reply-To: "pavel@cahyna"@st.mff.cuni.cz
 mea culpa, could somebody correct it to pavel.cahyna@st.mff.cuni.cz, please?

 Thanks	Pavel

From: Soren Jacobsen <snj@NetBSD.org>
To: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
Cc: gnats-bugs@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: port-i386/26437
Date: Tue, 27 Jul 2004 13:07:57 -0700

 On 07/27 21:50, Pavel Cahyna wrote:
 > > Reply-To: "pavel@cahyna"@st.mff.cuni.cz
 > mea culpa, could somebody correct it to pavel.cahyna@st.mff.cuni.cz, please?

 Done.

From: Matthew Mondor <mmondor@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pcah8322@artax.karlin.mff.cuni.cz
Subject: Re: port-i386/26437
Date: Tue, 27 Jul 2004 21:50:23 -0400

 On Tue, 27 Jul 2004 21:47:15 +0200, Pavel Cahyna
 <pcah8322@artax.karlin.mff.cuni.cz> wrote:
 > > I beleive that performance counters are currently only supported for
 > > the i686 familly (ppro or P3+) of Intel processors
 > 
 > This is not true, according to the pmc(3) manpage.

 You are right, support for i586 perf counters seem to have been added
 in 2.0 and -current
 now (it's actually on 1-6 branch that support lacked for i586).

 > This is also not true, P2 is almost the same as Pentium Pro:
 > 
 > cpu0: Intel Pentium II (686-class), 400.93 MHz, id 0x653
 > cpu0: features 183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
 > cpu0: features 183f9ff<PGE,MCA,CMOV,PAT,PSE36,MMX>
 > cpu0: features 183f9ff<FXSR>

 Yes sorry about all this, I actually remind now that Intel P1, AMD K6
 and Cyrix are the ones which are i586 (or compatible)... I must have
 been lacking alot of sleep when I wrote this :)
State-Changed-From-To: open->closed
State-Changed-By: maxv@NetBSD.org
State-Changed-When: Wed, 08 Mar 2017 15:24:58 +0000
State-Changed-Why:
I rewrote this a few weeks ago


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.