Port-sparc64 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Sun Fire V240 RTC
Hi Frank,
> The problem was not to remove the 2000-base, but that the "start-year"
> property set by ofw_patch.c was not recognised by the dsrtc driver
> in NetBSD-11! The 2000-base is indeed very much needed.
>
> dsrtc_attach() in 11 only does:
>
> #ifdef DSRTC_YEAR_START_2K
> sc->sc_model.dm_flags |= DSRTC_FLAG_YEAR_START_2K;
> #endif
> prop_dictionary_get_bool(dict, "base_year_is_2000", &base_2k);
> if (base_2k) sc->sc_model.dm_flags |= DSRTC_FLAG_YEAR_START_2K;
>
> But neither DSRTC_YEAR_START_2K nor "base_year_is_2000" was set
> by sparc64 in 11.
Argh! But changing the property name in 11 is easy.
> When I fix that, then all problems are gone. And it works like in
> current. So everything you assumed was correct: the DS1307 time is
> likely copied by ALOM to the m5819p, and the 2000-base is needed
> for both, V245 and V240.
This is very good to hear and thanks for confirming!
> Sorry for having reported another already fixed issue in 11, as with my
> envstat problem, but I did't want to run current on a production
> server. :)
No problem at all! I'm glad that we fixed everything, and also gave
the multi-RTC code a good test :-)
Nice to hear that a NetBSD sparc64 machine is running in production!
Regards,
Julian
PS. I was thinking today that the 2000 offset must be correct, because
that would explain perfectly the M5819p going forward 30 years, but you
wrote before I sent the mail. Also, as a result of being confused by
time deltas between RTC's, I changed my patch to subtract the system RTC
time from the other RTC times, which means that values are either all
positive, or all negative (i.e. less possibility of confusion).
--
Home |
Main Index |
Thread Index |
Old Index