Re: [RESEND PATCH RFC] rtc: Fix the AltCentury value on AMD/Hygon platform

2019-10-08 Thread Alexandre Belloni
On 08/10/2019 09:20:02+, Jinke Fan wrote: > On 2019/10/4 4:01, Alexandre Belloni wrote: > > On 24/09/2019 10:41:08+0800, Jinke Fan wrote: > >> Signed-off-by: Jinke Fan > >> --- > >> drivers/rtc/rtc-mc146818-lib.c | 9 +++-- > >> include/linux/mc146818rtc.h| 2 ++ > >> 2 files chang

Re: [RESEND PATCH RFC] rtc: Fix the AltCentury value on AMD/Hygon platform

2019-10-08 Thread Jinke Fan
On 2019/10/4 4:01, Alexandre Belloni wrote: > On 24/09/2019 10:41:08+0800, Jinke Fan wrote: >> Signed-off-by: Jinke Fan >> --- >> drivers/rtc/rtc-mc146818-lib.c | 9 +++-- >> include/linux/mc146818rtc.h| 2 ++ >> 2 files changed, 9 insertions(+), 2 deletions(-) >> > Applied, thanks. H

Re: [RESEND PATCH RFC] rtc: Fix the AltCentury value on AMD/Hygon platform

2019-10-03 Thread Alexandre Belloni
On 24/09/2019 10:41:08+0800, Jinke Fan wrote: > When using following operations: > date -s "21190910 19:20:00" > hwclock -w > to change date from 2019 to 2119 for test, it will fail on Hygon > Dhyana and AMD Zen CPUs, while the same operations run ok on Intel i7 > platform. > > MC146818 driver use

[RESEND PATCH RFC] rtc: Fix the AltCentury value on AMD/Hygon platform

2019-09-23 Thread Jinke Fan
When using following operations: date -s "21190910 19:20:00" hwclock -w to change date from 2019 to 2119 for test, it will fail on Hygon Dhyana and AMD Zen CPUs, while the same operations run ok on Intel i7 platform. MC146818 driver use function mc146818_set_time() to set register RTC_FREQ_SELECT(