kern/76776: [PATCH] ``top'' not working correctly on the Tyan S2510
(ThunderLE) mainboard
Christian Staudenmayer
christian.staudenmayer at informatik.uni-ulm.de
Thu Jan 27 16:00:38 PST 2005
>Number: 76776
>Category: kern
>Synopsis: [PATCH] ``top'' not working correctly on the Tyan S2510 (ThunderLE) mainboard
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jan 28 00:00:37 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Christian Staudenmayer
>Release: FreeBSD 5.3-STABLE i386
>Organization:
University of Ulm, Germany
>Environment:
System: FreeBSD satan.lan 5.3-STABLE FreeBSD 5.3-STABLE #0: Wed Jan 26 00:35:03 CET 2005 root at satan.lan:/usr/src/sys/i386/compile/SMP i386
Hardware: 2x P3 Coppermine (933/256/133), 896 MB reg. ECC PC133 RAM, Tyan S2510 (ThunderLE) Mainboard
>Description:
The ``top'' program showed ``0.00%'' for all CPU states, including ``idle''. This was most of the time the case, but not always. I posted about this on a forum on the internet and someone replied telling me that this was apparently the case with some Tyan mainboards and that he had a patch for it. I used the patch and it worked. I do not know who it was who authored the patch, but since it's only one line and I really do want the problem fixed, I hereby submit it myself.
I encountered the problem on 5.3-RELEASE, 5.3-STABLE as well as 6.0-CURRENT. I'm running the provided ``SMP'' kernel configuration, however the problem persisted when running the stock kernel ``GENERIC'', even with only one CPU installed.
>How-To-Repeat:
I guess it depends on the specific piece of hardware used (the mainboard). Type in ``top'' and take a look at the percentages of CPU states (idle, nice, etc.).
>Fix:
The patch provided below worked for me on 5.3-STABLE.
Again: I'm _not_ the author of this patch, but since it's only one line, I guess (hope) it doesn't matter.
--- patch.txt begins here ---
--- sys/i386/isa/clock.c.orig Mon Jul 12 02:50:59 2004
+++ sys/i386/isa/clock.c Thu Jan 6 21:13:48 2005
@@ -946,6 +946,7 @@
/* Initialize RTC. */
writertc(RTC_STATUSA, rtc_statusa);
writertc(RTC_STATUSB, RTCSB_24HR);
+ rtcin(RTC_INTR); /* clear any pending interrupt */
/* Don't bother enabling the statistics clock. */
if (!statclock_disable) {
--- patch.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list