Subject: port-sparc/16608: sun4m profiling clock does not work
To: None <gnats-bugs@gnats.netbsd.org>
From: None <adam@lebsack.com>
List: netbsd-bugs
Date: 05/02/2002 00:10:56
>Number: 16608
>Category: port-sparc
>Synopsis: sun4m profiling clock does not work
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: port-sparc-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 02 00:11:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Adam Lebsack
>Release: NetBSD-1.5ZC
>Organization:
None
>Environment:
NetBSD trippel 1.5ZC NetBSD 1.5ZC (SPARCS) #5: Wed May 1 23:34:01 MDT 2002 root@trippel:/u1/Sandbox/SPARCS sparc
>Description:
The profile clock on sun4m is broken, which yields this result, for one example:
Running top shows this...
CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 0.0% idle
The clock hardware which is responsible for these CPU states is not initialized properly and therefore does not work at all.
>How-To-Repeat:
Run any NetBSD-1.5ZC kernel on a sun4m machine, from sources since March 18, 2002.
>Fix:
Here is a patch:
--- sys/arch/sparc/sparc/clock.c.orig Thu May 2 00:35:11 2002
+++ sys/arch/sparc/sparc/clock.c Thu May 2 00:35:31 2002
@@ -190,7 +190,7 @@
void
cpu_initclocks()
{
- int statint, minint;
+ int minint;
if (1000000 % hz) {
printf("cannot get %d Hz clock; using 100 Hz\n", hz);
>Release-Note:
>Audit-Trail:
>Unformatted: