NetBSD Problem Report #49655

From www@NetBSD.org  Tue Feb 10 19:32:58 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4B0D3A6558
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 10 Feb 2015 19:32:58 +0000 (UTC)
Message-Id: <20150210193256.CF11BA65B6@mollari.NetBSD.org>
Date: Tue, 10 Feb 2015 19:32:56 +0000 (UTC)
From: arun@naic.edu
Reply-To: arun@naic.edu
To: gnats-bugs@NetBSD.org
Subject: PPS_SYNC option not supported on sab driver for Sun Ultra 5 serial ports (sparc64)
X-Send-Pr-Version: www-1.0

>Number:         49655
>Category:       port-sparc64
>Synopsis:       PPS_SYNC option not supported on sab driver for Sun Ultra 5 serial ports (sparc64)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 10 19:35:00 +0000 2015
>Originator:     Arun Venkataraman
>Release:        6.1.5
>Organization:
Arecibo Observatory
>Environment:
NetBSD netbsd0 6.1.5 NetBSD 6.1.5 (netbsd0) #1: Tue Feb 10 01:15:10 UTC 2015  root@netbsd0:/usr/src/sys/arch/sparc64/compile/netbsd0 sparc64

>Description:
Sun Ultra 5 serial ports are attached via the sab(4) driver (Infineon 82532 Enhanced Serial Communication Controller). This driver currently does not provide the PPS_SYNC option enabling a kernel serial line discipline for external reference clocks. NetBSD currently supports the PPS_SYNC option in com(4) and zsc(4) neither of which are available on the Ultra5, limiting accuracy of NTP time.  Attempt to use the NTP4 daemon with a PPS refclock is rejected with "Interrupted system call".  The pps-api utility packaged with ntp-4.2.8 returns for /dev/ttyh1 or /dev/dtyh1:
 pps-api: time_pps_getcap: Inappropriate ioctl for device

Request adding PPS_SYNC support in the sab driver.


>How-To-Repeat:
Fetch and build current net/ntp4 via pkgsrc
Use a NetBSD kernel with NTP and PPS_SYNC options compiled in
Either:
Create PPSAPI devices for NTP ( /dev/pps1 -> /dev/ttyh1 )
Add a PPS peer in ntp.conf (refclock driver 127.127.22.1)
(Re)start NTP daemon
OR
Build and run the ntp-4.2.8/util/pps-api diagnostic to detect PPS signals.

>Fix:
Request adding PPS line discipline support in sab(4) preferably via CD pin as specified in the PPSAPI RFC.

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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.