From owner-freebsd-current@FreeBSD.ORG Wed Apr 21 03:40:09 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48EE316A4CF for ; Wed, 21 Apr 2004 03:40:09 -0700 (PDT) Received: from av8-1-sn2.hy.skanova.net (av8-1-sn2.hy.skanova.net [81.228.8.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54E4243D1F for ; Wed, 21 Apr 2004 03:40:07 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: by av8-1-sn2.hy.skanova.net (Postfix, from userid 502) id BABC737E45; Wed, 21 Apr 2004 12:40:05 +0200 (CEST) Received: from smtp2-2-sn2.hy.skanova.net (smtp2-2-sn2.hy.skanova.net [81.228.8.178]) by av8-1-sn2.hy.skanova.net (Postfix) with ESMTP id ABEB537E42 for ; Wed, 21 Apr 2004 12:40:05 +0200 (CEST) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp2-2-sn2.hy.skanova.net (Postfix) with SMTP id DF15337E4A for ; Wed, 21 Apr 2004 12:40:04 +0200 (CEST) Received: (qmail 15953 invoked by uid 1001); 21 Apr 2004 10:40:04 -0000 Date: Wed, 21 Apr 2004 12:40:04 +0200 From: Erik Trulsson To: Ion-Mihai Tetcu Message-ID: <20040421104003.GA15918@falcon.midgard.homeip.net> Mail-Followup-To: Ion-Mihai Tetcu , =?iso-8859-1?Q?Mikko=5FTy=F6l=E4j=E4rvi?= , current@freebsd.org, Nate Lawson References: <20040415171837.6580d1b1@it.buh.cameradicommercio.ro> <20040420103534.W29720@root.org> <20040420190005.R31913@atlas.home> <20040421133317.2f3cb8dc@it.buh.cameradicommercio.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20040421133317.2f3cb8dc@it.buh.cameradicommercio.ro> User-Agent: Mutt/1.5.6i cc: current@freebsd.org cc: Nate Lawson Subject: Re: kernel: rtc: 1000 > kern.hz: Timing will be inaccurate, please increase hz. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2004 10:40:09 -0000 On Wed, Apr 21, 2004 at 01:33:17PM +0300, Ion-Mihai Tetcu wrote: > On Tue, 20 Apr 2004 19:05:54 -0700 (PDT) > Mikko_Ty=F6l=E4j=E4rvi wrote: >=20 > > On Tue, 20 Apr 2004, Nate Lawson wrote: > >=20 > > > On Thu, 15 Apr 2004, Ion-Mihai Tetcu wrote: > > > > I've started to get this messages after upgrading to > > > > /src/sys/dev/acpica/acpi_pcib.c rev=3D1.38 from rev 1.36 > >=20 > > [...] > >=20 > > > I can't see anything wrong with your dmesg. A quick grep through the > > > kernel doesn't show any message like in the subject line. I'm ccing = this > > > to current@ because the message sounds like it's hz or timecounter > > > related. It's not likely that this message is acpi-related. > >=20 > > It is ports/emulators/rtc. Has nothing to do with acpi. >=20 > My bad, excuse me for the noise on acpi@. It just happen the I installed > it in the same day I had the little acpi problem. >=20 > Still what is it complaining about ? It seems I'm lost here; I have an > "options HZ=3D1000" in my kernel. That is actually a minor bug in emulators/rtc. The relevant snippet of code from there is in files/rtc.c and looks like: sc->var.freq =3D freq; = =20 if (sc->var.freq * 9 > hz * 8) { sc->var.freq =3D hz; printf("rtc: %d > kern.hz: Timing will be inaccurate, please increase = hz.\n", sc->var.freq); } =20 Note that when it prints "1000 > kern.hz" the number printed will be what actually have set HZ to, rather than the frequency requested. That is easily fixed by switching places of the "sc->var.freq =3D hz;" line and the printf line. Note also that the value for HZ needs to be a bit higher than the frequency rtc is requested to use in order to stop rtc from complaining. The frequency rtc is requested to use is probably 1024 (at least that is what mplayer uses when built with rtc support.) If you set HZ to 1160 or higher the complaining should stop. --=20 Erik Trulsson ertr1013@student.uu.se