public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Extend time to wait for UIP for some callers
@ 2023-11-20 14:15 Mario Limonciello
  2023-11-20 14:15 ` [PATCH v2 1/4] rtc: mc146818-lib: Adjust failure return code for mc146818_get_time() Mario Limonciello
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Mario Limonciello @ 2023-11-20 14:15 UTC (permalink / raw)
  To: Mateusz Jończyk, Alessandro Zummo, Alexandre Belloni
  Cc: open list:REAL TIME CLOCK (RTC) SUBSYSTEM, open list, linux-pm,
	tobrohl, aalsing, Dhaval.Giani, xmb8dsv4, x86, dhaval.giani,
	Mario Limonciello

A number of users have reported their system will have a failure reading
the RTC around s2idle entry or exit.

This failure manifests as UIP clear taking longer than 10ms.

By a debugging patch provided by Mateusz Jończyk it is shown that this
has taken upwards of 300ms in some cases.

This series adjusts the UIP timeout to be configurable by the caller and
changes some callers which aren't called in an interrupt context to allow
longer timeouts.

Mario Limonciello (4):
  rtc: mc146818-lib: Adjust failure return code for mc146818_get_time()
  rtc: Adjust failure return code for cmos_set_alarm()
  rtc: Add support for configuring the UIP timeout for RTC reads
  rtc: Extend timeout for waiting for UIP to clear to 1s

 arch/alpha/kernel/rtc.c        |  2 +-
 arch/x86/kernel/hpet.c         |  2 +-
 arch/x86/kernel/rtc.c          |  2 +-
 drivers/base/power/trace.c     |  2 +-
 drivers/rtc/rtc-cmos.c         | 10 ++++-----
 drivers/rtc/rtc-mc146818-lib.c | 37 +++++++++++++++++++++++++---------
 include/linux/mc146818rtc.h    |  3 ++-
 7 files changed, 39 insertions(+), 19 deletions(-)


base-commit: 98b1cc82c4affc16f5598d4fa14b1858671b2263
-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-11-23  8:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-20 14:15 [PATCH v2 0/4] Extend time to wait for UIP for some callers Mario Limonciello
2023-11-20 14:15 ` [PATCH v2 1/4] rtc: mc146818-lib: Adjust failure return code for mc146818_get_time() Mario Limonciello
2023-11-20 14:15 ` [PATCH v2 2/4] rtc: Adjust failure return code for cmos_set_alarm() Mario Limonciello
2023-11-20 14:15 ` [PATCH v2 3/4] rtc: Add support for configuring the UIP timeout for RTC reads Mario Limonciello
2023-11-22 17:06   ` Mateusz Jończyk
2023-11-20 14:15 ` [PATCH v2 4/4] rtc: Extend timeout for waiting for UIP to clear to 1s Mario Limonciello
2023-11-22 17:16   ` Mateusz Jończyk
2023-11-22 16:58 ` [PATCH v2 0/4] Extend time to wait for UIP for some callers Mateusz Jończyk
2023-11-23  8:31 ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox