Subject: Re: High availability under NetBSD (automatic wakeup for the moment).
To: John Nemeth <jnemeth@victoria.tc.ca>
From: Kurt J. Lidl <lidl@pix.net>
List: port-sparc
Date: 07/06/2006 12:11:03
On Wed, Jul 05, 2006 at 11:39:33PM -0400, Kurt Lidl wrote:
> >     I don't think NetBSD currently has much in the way power
> >management for sparc based machines.  Also, I don't know if the SS5 and
> >SS20 have the necessary hardware support.  Can Solaris tell these
> >machines to wake up at a certain time?
> 
> I doubt it, I think it's sun4u thing only.  There used to be
> publically available a program that would use the undocumented
> ioctl calls in Solaris to set or clear the time-of-day wakeup
> counter on the sun4u.

Running the following search on the opensolaris site:

http://cvs.opensolaris.org/source/search?q=tod_set_power_alarm

Shows which TOD drivers that implement the tod_set_power_alarm
ioctl, which is the one that is needed to setup a power-on
interrupt from the TOD.

/on/usr/src/uts/sun4u/io/
  - Architecture dependent files for the sun4u architecture
todstarfire.c 	92 tod_ops.tod_set_power_alarm = todsf_set_power_alarm;
todm5819.c 	98 tod_ops.tod_set_power_alarm = todm5819_set_power_alarm;
todmostek.c 	79 tod_ops.tod_set_power_alarm = todm_set_power_alarm;
todopl.c 	177 tod_ops.tod_set_power_alarm = todopl_set_power_alarm;
todblade.c 	104 tod_ops.tod_set_power_alarm = todbl_set_power_alarm;
todbq4802.c 	116 tod_ops.tod_set_power_alarm = todbq4802_set_power_alarm;
todsg.c 	156 tod_ops.tod_set_power_alarm = todsg_set_power_alarm;
todds1287.c 	231 tod_ops.tod_set_power_alarm = todds_set_power_alarm;
todds1337.c 	170 tod_ops.tod_set_power_alarm = todds1337_set_power_alarm;

/on/usr/src/uts/sun4u/snowbird/io/todds1307/
  - NetraTM-CP2300
todds1307.c 	176 tod_ops.tod_set_power_alarm = todds1307_set_power_alarm;

So, I don't know offhand which TOD chips are in the SS5 and SS20, but
that's the list of sparc TOD chips that can do it.

-Kurt