LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-10-2022, 01:06 AM   #1
SlackIT
Member
 
Registered: Mar 2022
Posts: 162

Rep: Reputation: 17
TSC found unstable after boot


Hello,

In /var/log/syslog I noticed this;
Code:
May  9 19:50:36 slack kernel: clocksource: timekeeping watchdog on CPU3: Marking clocksource 'tsc' as unstable because the skew is too large:
May  9 19:50:36 slack kernel: clocksource:                       'hpet' wd_nsec: 499463060 wd_now: 1da4296 wd_last: 16d236c mask: ffffffff
May  9 19:50:36 slack kernel: clocksource:                       'tsc' cs_nsec: 495995182 cs_now: 1d1e43f813 cs_last: 1caa294cc9 mask: ffffffffffffffff
May  9 19:50:36 slack kernel: clocksource:                       'tsc' is current clocksource.
May  9 19:50:36 slack kernel: TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'.
May  9 19:50:36 slack kernel: clocksource: Checking clocksource tsc synchronization from CPU 8 to CPUs 0,6.
Then I went online surfing around and found this mentioned online;
Code:
In short, on modern systems, the TSC sucks for measuring time accurately. And that's what the message is telling you. On your system, the TSC is not a stable time source.
So is that the reality, nothing is wrong, other than TSC is not measuring time accurately, and not a stable time source?

So nothing is really broke/wrong with the BIOS?

I use grub, so I'm assuming I should put on the GRUB_CMDLINE_LINUX_DEFAULT=tsc=unstable?

THANKS

P.S. After posting this I added to grub; GRUB_CMDLINE_LINUX_DEFAULT=tsc=unstable

When I rebooted, I know have this in the logs;
Code:
May  9 20:19:50 slack kernel: Unstable clock detected, switching default tracing clock to "global"
May  9 20:19:50 slack kernel: If you want to keep using the local clock, then add:
May  9 20:19:50 slack kernel:  "trace_clock=local"
So I'm assuming I should now also add to the GRUB_CMDLINE_LINUX_DEFAULT=trace_clock=local?

Last edited by SlackIT; 05-10-2022 at 01:23 AM.
 
Old 05-10-2022, 11:19 AM   #2
walecha
Member
 
Registered: Jan 2010
Location: Malang, +62
Distribution: slackware
Posts: 174

Rep: Reputation: 42
I think it's a bug in ryzen cpu firmware, see https://bugzilla.kernel.org/show_bug.cgi?id=202525. From comment #54 and from this discussion, warm reboot could be the suspect. I'm using ryzen 5 3400G and have the same tsc issue. I have updated the bios to latest version available. Let's see...

Last edited by walecha; 05-10-2022 at 11:24 AM. Reason: maybe a workaround
 
Old 05-10-2022, 12:04 PM   #3
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
It's not specific to Zen, I got this "Unstable clock detected" on Turion 64 today.
 
Old 05-11-2022, 01:50 AM   #4
SlackIT
Member
 
Registered: Mar 2022
Posts: 162

Original Poster
Rep: Reputation: 17
Ahh so possibly a bug, or is...

Well I added to the grub boot line both of them, tsc=unstable & trace_clock=local, and I don't have any more log messages.
 
2 members found this post helpful.
Old 05-11-2022, 04:13 AM   #5
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Quote:
Originally Posted by SlackIT View Post
Well I added to the grub boot line both of them, tsc=unstable & trace_clock=local, and I don't have any more log messages.
This works, no more warnings and no more panic on shutdown.
Code:
tsc: Marking TSC unstable due to boot parameter
 
1 members found this post helpful.
Old 05-26-2022, 04:31 AM   #6
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Those boot parameters got rid of error messages, but my laptop still sometimes panic on shutdown with kernel-huge-5.15.38
So I've moved it from kernel-huge to my desktop kernel 5.15.43-x64 today, hopefully it'll make a difference.
That one is compiled for generic x86_64 but otherwise pure AMD kernel with no intel drivers or pstate, has only acpi-cpufreq and fixed voltage regulator.
It uses PREEMPT_VOLUNTARY, and I only had to include some old ATI stuff for the laptop, some Texas Instruments modules, USB-1.0, and Synaptics.
Boots ok, doesn't panic on shutdown after 4 tries, kinda busy right now but I'll see in couple of days if it still has the same issues with new kernel.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tsc: Marking TSC unstable due to check_tsc_sync_source failed GreyBeard Linux - Kernel 1 07-16-2016 01:12 PM
Clocksource tsc unstable(delta = -75444992 ns) haribabu1836 Linux - Software 1 04-06-2010 09:22 AM
Clocksource tsc unstable sampoo55 Linux - General 1 07-25-2009 09:46 AM
Clocksource tsc unstable punt Fedora 11 12-29-2008 03:16 AM
is ubuntu unstable less unstable than debian unstable? lefty.crupps Ubuntu 9 10-14-2005 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration