NetBSD Problem Report #48795

From martin@duskware.de  Fri May  9 09:28:50 2014
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D2F6BA584C
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  9 May 2014 09:28:49 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: msiiep_timer.c calibration broken?
X-Send-Pr-Version: 3.95

>Number:         48795
>Category:       port-sparc
>Synopsis:       msiiep_timer.c calibration broken?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 09 09:30:00 +0000 2014
>Originator:     Martin Husemann
>Release:        NetBSD 6.99.41
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD krups.duskware.de 6.99.41 NetBSD 6.99.41 (MP3) #1: Fri May 9 09:44:23 CEST 2014 martin@night-owl.duskware.de:/usr/src/sys/arch/sparc/compile/MP3 sparc
Architecture: sparc
Machine: sparc
>Description:

My Krups has big trouble keeping its time, despite nptd:

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+ns.duskware.de  199.102.46.73    2 u   29   64  377   43.498  -5528.5 852.789

This was after about 20 minutes, after runing ntpdate and starting ntpd
fresh w/o drift file.

Other sparc (Sparc LX and SS20) machines can sync closely to the same
ntpd server.

I wonder if it is related to timer delay miscalculation:

cpu0 at mainbus0: MB86904 @ 100  MHz, on-chip FPU
cpu0: 16K instruction (32 b/l), 8K data (16 b/l): cache enabled
msiiep0 at mainbus0 addr 0x300c0000
timer0 at msiiep0: delay constant 47

>How-To-Repeat:

Boot a krups and watch the clock wander off.

>Fix:
n/a

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.