NetBSD Problem Report #49655

From  Tue Feb 10 19:32:58 2015
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (not verified))
	by (Postfix) with ESMTPS id 4B0D3A6558
	for <>; Tue, 10 Feb 2015 19:32:58 +0000 (UTC)
Message-Id: <>
Date: Tue, 10 Feb 2015 19:32:56 +0000 (UTC)
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
Arecibo Observatory
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

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.

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

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:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.