All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clocksource: Print clocksource name when clocksource is tested unstable
@ 2022-11-16  8:22 Yunying Sun
  2022-11-16 20:31 ` Paul E. McKenney
  2022-11-17  6:46 ` Feng Tang
  0 siblings, 2 replies; 6+ messages in thread
From: Yunying Sun @ 2022-11-16  8:22 UTC (permalink / raw)
  To: tglx, peterz, paulmck, longman, x86, linux-kernel; +Cc: feng.tang, yunying.sun

Some "TSC fall back to HPET" cases are seen on systems that have more
than 2 numa nodes. When this happens, in kernel log it has:

clocksource: timekeeping watchdog on CPU168: hpet read-back delay of 4296200ns, attempt 4, marking unstable

The "hpet" here is misleading since it prints only the name of watchdog,
where actually it's measuring the delay of 3 reads: wd-clocksource-wd.

Signed-off-by: Yunying Sun <yunying.sun@intel.com>
---
 kernel/time/clocksource.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 8058bec87ace..fac8c0d90e61 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -257,8 +257,8 @@ static enum wd_read_status cs_watchdog_read(struct clocksource *cs, u64 *csnow,
 			goto skip_test;
 	}
 
-	pr_warn("timekeeping watchdog on CPU%d: %s read-back delay of %lldns, attempt %d, marking unstable\n",
-		smp_processor_id(), watchdog->name, wd_delay, nretries);
+	pr_warn("timekeeping watchdog on CPU%d: wd-%s-wd read-back delay of %lldns, attempt %d, marking unstable\n",
+		smp_processor_id(), cs->name, wd_delay, nretries);
 	return WD_READ_UNSTABLE;
 
 skip_test:
-- 
2.17.0


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

end of thread, other threads:[~2022-11-17  8:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-16  8:22 [PATCH] clocksource: Print clocksource name when clocksource is tested unstable Yunying Sun
2022-11-16 20:31 ` Paul E. McKenney
2022-11-17  1:12   ` Sun, Yunying
2022-11-17  6:46 ` Feng Tang
2022-11-17  8:03   ` Sun, Yunying
2022-11-17  8:35     ` Feng Tang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.