lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080430113933.14651edc@i1501.lan.towertech.it>
Date:	Wed, 30 Apr 2008 11:39:33 +0200
From:	Alessandro Zummo <alessandro.zummo@...ertech.it>
To:	David Woodhouse <dwmw2@...radead.org>
Cc:	rtc-linux@...glegroups.com, paulus@...ba.org,
	<linux-kernel@...r.kernel.org>
Subject: Re: [rtc-linux] Re: [PATCH] RTC class driver for ppc_md RTC
 functions

On Mon, 28 Apr 2008 12:08:02 +0100
David Woodhouse <dwmw2@...radead.org> wrote:

> 
> I suspect that actually covers quite a lot of devices, but the RTC class
> could happily cope with other types of devices too -- just giving an

 If we are talking about milliseconds I think a suspect is not enough.


> infrastructure for them to be notified when NTP comes into sync
> (cf. notify_cmos_timer()) should be sufficient, and after that we can
> leave them to their own devices. We should probably provide the
> common-case 'call me at half past the second' functionality too, though,
> rather than expecting each driver to implement it for itself.

 A common thing is something that can be used on a lot of devices. Given that
 the rtc class support more than 20 drivers and probably more than 30 devices
 and that this "half second" functionality is eventually useful only on one
 I won't call it common.


> >  And I suspect that the RTC of most PCs is pretty useless for
> >  any serious NTP related use.
> 
> RTCs in computers are notoriously unreliable. All the more reason to
> want them updated, when the computer is deriving its time sync from
> elsewhere.


 The hardware RTC does not need to be updated every time the system
 clock is. In fact, as long as the system is running, it's pretty useless.

 Most distributions update the RTC from the system timer on shutdown.

 This kind of update will also be unreliable on any not-memory-mapped
 RTC (think of SPI and I2C) .

 My opinion is that such NTP mode could be removed from the kernel/not
 implemented in rtc class without loosing anything.

 However, there should still be a way to tell the kernel/userspace
 that it is being kept in sync with a reliable time source, but that's
 not related to RTC.


-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ