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

2019-09-11 Thread Jinke Fan
nd finally setup century as expected. Test results on AMD/Hygon machine show that it works as expected. Reference: https://www.amd.com/system/files/TechDocs/51192_Bolton_FCH_RRG.pdf section: 3.13 Real Time Clock (RTC) Signed-off-by: Jinke Fan --- drivers/rtc/rtc-mc146818-lib.c | 9 +++-- inc

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

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

2019-10-08 Thread Jinke Fan
er writing and finally setup century as expected. Test results on AMD/Hygon machine show that it works as expected. Reference: https://www.amd.com/system/files/TechDocs/51192_Bolton_FCH_RRG.pdf section: 3.13 Real Time Clock (RTC) Reported-by: kbuild test robot Signed-off-by: Jinke Fan --- drivers/rtc/rt

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

2019-10-08 Thread Jinke Fan
er writing and finally setup century as expected. Test results on AMD/Hygon machine show that it works as expected. Reference: https://www.amd.com/system/files/TechDocs/51192_Bolton_FCH_RRG.pdf section: 3.13 Real Time Clock (RTC) Reported-by: kbuild test robot Signed-off-by: Jinke Fan --- v2->

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

2019-10-08 Thread Jinke Fan
On 2019/10/8 17:44, Alexandre Belloni wrote: > On 08/10/2019 17:37:12+0800, Jinke Fan wrote: >> When using following operations: >> save_control = CMOS_READ(RTC_CONTROL); >> -CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); >> +CMOS_WRITE((save_cont

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

2019-10-22 Thread Jinke Fan
Clock (RTC) Reported-by: kbuild test robot Signed-off-by: Jinke Fan --- v3->v4: - Limited modification to AMD EPYC(17h). - Change the macro RTC_DV0 to RTC_DIV_RESET2. - Make sure save_freq_select's bit4 is cleared. v2->v3: - Make the changes only relevant to AMD/Hygon. v1->v2: - Fix

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

2019-10-15 Thread Jinke Fan
er writing and finally setup century as expected. Test results on AMD/Hygon machine show that it works as expected. Reference: https://www.amd.com/system/files/TechDocs/51192_Bolton_FCH_RRG.pdf section: 3.13 Real Time Clock (RTC) Reported-by: kbuild test robot Signed-off-by: Jinke Fan --- v2->

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

2019-10-15 Thread Jinke Fan
y more suggestions? -- Best Regards, Jinke Fan

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

2019-09-23 Thread Jinke Fan
er writing and finally setup century as expected. Test results on AMD/Hygon machine show that it works as expected. Reference: https://www.amd.com/system/files/TechDocs/51192_Bolton_FCH_RRG.pdf section: 3.13 Real Time Clock (RTC) Signed-off-by: Jinke Fan --- drivers/rtc/rtc-mc146818-lib.c | 9 +++-

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

2019-10-20 Thread Jinke Fan
On 2019/10/20 6:04, Alexandre Belloni wrote: > On 15/10/2019 16:08:27+0800, Jinke Fan wrote: >> save_freq_select = CMOS_READ(RTC_FREQ_SELECT); >> -CMOS_WRITE((save_freq_select|RTC_DIV_RESET2), RTC_FREQ_SELECT); >> + >> +#ifdef CONFIG_X86 >>