Bug 216214 - TSC marked unstable on AMD Ryzen 2200G
Summary: TSC marked unstable on AMD Ryzen 2200G
Status: ASSIGNED
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: x86-64 (show other bugs)
Hardware: AMD Linux
: P1 normal
Assignee: platform_x86_64@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-07 11:55 UTC by Karri Hämäläinen
Modified: 2022-07-08 03:12 UTC (History)
5 users (show)

See Also:
Kernel Version: 5.18.5
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg output of cold boot (71.93 KB, text/plain)
2022-07-07 11:56 UTC, Karri Hämäläinen
Details
dmesg output of warm reboot (72.94 KB, text/plain)
2022-07-07 11:56 UTC, Karri Hämäläinen
Details

Description Karri Hämäläinen 2022-07-07 11:55:49 UTC
TSC detected as unstable following warm reboots, including using UEFI setup before booting to OS.
TSC detected as stable after cold boot straight to OS.


Probably duplicate of:  

TSC marked unstable on AMD Ryzen 5700G
https://bugzilla.kernel.org/show_bug.cgi?id=216146

TSC marked unstable on AMD Ryzen 4750U
https://bugzilla.kernel.org/show_bug.cgi?id=216166


If so, then AMD needs to port the firmware fix made for 5xxx APU:s to Raven Ridge firmware too.


Tested systems:

AMD Ryzen 3 2200G
AsRock B450M Pro4-F R2.0
Bios P3.10 (latest)
AGESA 1.2.0.6

AMD Ryzen 3 2200G
Asus TUF B450M-Pro Gaming
Bios 3802 (latest)
AGESA 1.2.0.7


OS tested:
Debian Bullseye 11.3: Kernel 5.10.120
Debian Sid: Kernel 5.18.5
Debian Sid: Experimental Kernel 5.19.0-rc4


Debian 11.3 with AsRock MB:

Cold boot: dmesg | egrep -i "tsc|hpet|clocksource"

[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 3500.198 MHz processor
[    0.006189] ACPI: HPET 0x00000000BCB1F000 000038 (v01 ALASKA A M I    01072009 AMI  00000005)
[    0.006224] ACPI: Reserving HPET table memory at [mem 0xbcb1f000-0xbcb1f037]
[    0.014306] ACPI: HPET id: 0x10228201 base: 0xfed00000
[    0.014392] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.066664] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns
[    0.086701] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x32740be83ca, max_idle_ns: 440795218882 ns
[    0.227566] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.369862] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.369864] hpet0: 3 comparators, 32-bit 14.318180 MHz counter
[    0.371991] clocksource: Switched to clocksource tsc-early
[    0.385414] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.485801] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[    1.507035] tsc: Refined TSC clocksource calibration: 3500.007 MHz
[    1.507049] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x327357b0e8a, max_idle_ns: 440795371538 ns
[    1.542723] clocksource: Switched to clocksource tsc

Warm reboot: dmesg | egrep -i "tsc|hpet|clocksource"

[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 3500.106 MHz processor
[    0.005565] ACPI: HPET 0x00000000BCB1F000 000038 (v01 ALASKA A M I    01072009 AMI  00000005)
[    0.005600] ACPI: Reserving HPET table memory at [mem 0xbcb1f000-0xbcb1f037]
[    0.013508] ACPI: HPET id: 0x10228201 base: 0xfed00000
[    0.013592] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.065388] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns
[    0.085426] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x3273b586782, max_idle_ns: 440795378990 ns
[    0.225671] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.356481] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.356484] hpet0: 3 comparators, 32-bit 14.318180 MHz counter
[    0.358700] clocksource: Switched to clocksource tsc-early
[    0.372134] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.471903] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[    1.529468] tsc: Refined TSC clocksource calibration: 3500.000 MHz
[    1.529474] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x3273517a200, max_idle_ns: 440795369676 ns
[    1.529976] clocksource: Switched to clocksource tsc
[    3.105797] clocksource: timekeeping watchdog on CPU1: Marking clocksource 'tsc' as unstable because the skew is too large:
[    3.105827] clocksource:                       'hpet' wd_now: 29928e6 wd_last: 2296a46 mask: ffffffff
[    3.105830] clocksource:                       'tsc' cs_now: a04c22604 cs_last: 999e00635 mask: ffffffffffffffff
[    3.105839] tsc: Marking TSC unstable due to clocksource watchdog
[    3.105866] TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'.
[    3.106040] clocksource: Checking clocksource tsc synchronization from CPU 1.
[    3.106089] clocksource: Switched to clocksource hpet

cat /sys/kernel/debug/dri/0/amdgpu_firmware_info

VCE feature version: 0, firmware version: 0x00000000
UVD feature version: 0, firmware version: 0x00000000
MC feature version: 0, firmware version: 0x00000000
ME feature version: 49, firmware version: 0x000000a3
PFP feature version: 49, firmware version: 0x000000bb
CE feature version: 49, firmware version: 0x0000004f
RLC feature version: 1, firmware version: 0x00000213
RLC SRLC feature version: 1, firmware version: 0x00000001
RLC SRLG feature version: 1, firmware version: 0x00000001
RLC SRLS feature version: 1, firmware version: 0x00000001
MEC feature version: 49, firmware version: 0x000001b4
MEC2 feature version: 49, firmware version: 0x000001b4
SOS feature version: 0, firmware version: 0x00000000
ASD feature version: 0, firmware version: 0x21000039
TA RAS feature version: 0x00000000, firmware version: 0x2100002b
TA XGMI feature version: 0x00000000, firmware version: 0x2100002b
TA HDCP feature version: 0x17000011, firmware version: 0x2100002b
TA DTM feature version: 0x12000003, firmware version: 0x2100002b
SMC feature version: 0, firmware version: 0x00001e62
SDMA0 feature version: 41, firmware version: 0x000000a9
VCN feature version: 0, firmware version: 0x0210c001
DMCU feature version: 0, firmware version: 0x00000000
DMCUB feature version: 0, firmware version: 0x00000000
VBIOS version: 113-RAVEN-117


Debian 11.3 with Asus MB:

Cold boot: dmesg | egrep -i "tsc|hpet|clocksource"

[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 3500.174 MHz processor
[    0.005124] ACPI: HPET 0x00000000CA3B2000 000038 (v01 ALASKA A M I    01072009 AMI  00000005)
[    0.005160] ACPI: Reserving HPET table memory at [mem 0xca3b2000-0xca3b2037]
[    0.012450] ACPI: HPET id: 0x10228201 base: 0xfed00000
[    0.012538] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.059881] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns
[    0.079915] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x3273f588d1c, max_idle_ns: 440795336173 ns
[    0.212685] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.346406] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.346408] hpet0: 3 comparators, 32-bit 14.318180 MHz counter
[    0.347961] clocksource: Switched to clocksource tsc-early
[    0.362320] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.466963] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[    1.464187] tsc: Refined TSC clocksource calibration: 3499.999 MHz
[    1.464198] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x32734f9ce42, max_idle_ns: 440795224466 ns
[    1.567944] clocksource: Switched to clocksource tsc

Warm reboot: dmesg | egrep -i "tsc|hpet|clocksource"

[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 3500.078 MHz processor
[    0.004793] ACPI: HPET 0x00000000CA3B2000 000038 (v01 ALASKA A M I    01072009 AMI  00000005)
[    0.004830] ACPI: Reserving HPET table memory at [mem 0xca3b2000-0xca3b2037]
[    0.011937] ACPI: HPET id: 0x10228201 base: 0xfed00000
[    0.012024] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.059410] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns
[    0.079444] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x32739acdc0f, max_idle_ns: 440795226328 ns
[    0.212188] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.346357] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.346359] hpet0: 3 comparators, 32-bit 14.318180 MHz counter
[    0.347717] clocksource: Switched to clocksource tsc-early
[    0.361909] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.467907] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[    1.559823] tsc: Refined TSC clocksource calibration: 3500.000 MHz
[    1.559827] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x3273517a200, max_idle_ns: 440795369676 ns
[    1.559842] clocksource: Switched to clocksource tsc
[    2.584374] clocksource: timekeeping watchdog on CPU0: Marking clocksource 'tsc' as unstable because the skew is too large:
[    2.584390] clocksource:                       'hpet' wd_now: 228313b wd_last: 1bf5243 mask: ffffffff
[    2.584393] clocksource:                       'tsc' cs_now: cfb43cc74 cs_last: c96f1ab8d mask: ffffffffffffffff
[    2.584399] tsc: Marking TSC unstable due to clocksource watchdog
[    2.584416] TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'.
[    2.584758] clocksource: Checking clocksource tsc synchronization from CPU 0.
[    2.584796] clocksource: Switched to clocksource hpet

cat /sys/kernel/debug/dri/0/amdgpu_firmware_info

VCE feature version: 0, firmware version: 0x00000000
UVD feature version: 0, firmware version: 0x00000000
MC feature version: 0, firmware version: 0x00000000
ME feature version: 49, firmware version: 0x000000a3
PFP feature version: 49, firmware version: 0x000000bb
CE feature version: 49, firmware version: 0x0000004f
RLC feature version: 1, firmware version: 0x00000213
RLC SRLC feature version: 1, firmware version: 0x00000001
RLC SRLG feature version: 1, firmware version: 0x00000001
RLC SRLS feature version: 1, firmware version: 0x00000001
MEC feature version: 49, firmware version: 0x000001b4
MEC2 feature version: 49, firmware version: 0x000001b4
SOS feature version: 0, firmware version: 0x00000000
ASD feature version: 0, firmware version: 0x21000039
TA RAS feature version: 0x00000000, firmware version: 0x2100002b
TA XGMI feature version: 0x00000000, firmware version: 0x2100002b
TA HDCP feature version: 0x17000011, firmware version: 0x2100002b
TA DTM feature version: 0x12000003, firmware version: 0x2100002b
SMC feature version: 0, firmware version: 0x00001e62
SDMA0 feature version: 41, firmware version: 0x000000a9
VCN feature version: 0, firmware version: 0x0210c001
DMCU feature version: 0, firmware version: 0x00000000
DMCUB feature version: 0, firmware version: 0x00000000
VBIOS version: 113-PICASSO-118


Debian Sid with Asus MB:

Included full dmesg outputs from cold and warm boot with this configuration.
Different boots to the included grepped outputs below.

Cold boot: dmesg | egrep -i "tsc|hpet|clocksource"

[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 3499.887 MHz processor
[    0.005852] ACPI: HPET 0x00000000CA3B2000 000038 (v01 ALASKA A M I    01072009 AMI  00000005)
[    0.005895] ACPI: Reserving HPET table memory at [mem 0xca3b2000-0xca3b2037]
[    0.013275] ACPI: HPET id: 0x10228201 base: 0xfed00000
[    0.013376] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.068438] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns
[    0.088475] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x3272e69994e, max_idle_ns: 440795378979 ns
[    0.221592] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.261913] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.261913] hpet0: 3 comparators, 32-bit 14.318180 MHz counter
[    0.262818] clocksource: Switched to clocksource tsc-early
[    0.273503] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.389547] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[    1.324997] tsc: Refined TSC clocksource calibration: 3500.003 MHz
[    1.325002] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x327353f6701, max_idle_ns: 440795287763 ns
[    1.325023] clocksource: Switched to clocksource tsc
[    2.247633] SVM: TSC scaling supported

Warm reboot: dmesg | egrep -i "tsc|hpet|clocksource"

[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 3499.777 MHz processor
[    0.005668] ACPI: HPET 0x00000000CA3B2000 000038 (v01 ALASKA A M I    01072009 AMI  00000005)
[    0.005710] ACPI: Reserving HPET table memory at [mem 0xca3b2000-0xca3b2037]
[    0.013201] ACPI: HPET id: 0x10228201 base: 0xfed00000
[    0.013301] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.068230] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns
[    0.088267] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x32727e37099, max_idle_ns: 440795306373 ns
[    0.221179] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.262084] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.262084] hpet0: 3 comparators, 32-bit 14.318180 MHz counter
[    0.264476] clocksource: Switched to clocksource tsc-early
[    0.282148] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.395075] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[    1.316285] tsc: Refined TSC clocksource calibration: 3499.996 MHz
[    1.316292] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x32734d20948, max_idle_ns: 440795306379 ns
[    1.327316] clocksource: Switched to clocksource tsc
[    2.597627] clocksource: timekeeping watchdog on CPU0: Marking clocksource 'tsc' as unstable because the skew is too large:
[    2.597654] clocksource:                       'hpet' wd_nsec: 476459089 wd_now: 228bcfd wd_last: 1c0a472 mask: ffffffff
[    2.597660] clocksource:                       'tsc' cs_nsec: 477346559 cs_now: d1f9c0b09 cs_last: cbc070454 mask: ffffffffffffffff
[    2.597665] clocksource:                       'tsc' is current clocksource.
[    2.597673] tsc: Marking TSC unstable due to clocksource watchdog
[    2.597696] TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'.
[    2.597864] clocksource: Checking clocksource tsc synchronization from CPU 0 to CPUs 1.
[    2.597901] clocksource: Switched to clocksource hpet
[    3.251338] SVM: TSC scaling supported

cat /sys/kernel/debug/dri/0/amdgpu_firmware_info

VCE feature version: 0, firmware version: 0x00000000
UVD feature version: 0, firmware version: 0x00000000
MC feature version: 0, firmware version: 0x00000000
ME feature version: 52, firmware version: 0x000000a4
PFP feature version: 52, firmware version: 0x000000bc
CE feature version: 52, firmware version: 0x0000004f
RLC feature version: 1, firmware version: 0x00000213
RLC SRLC feature version: 1, firmware version: 0x00000001
RLC SRLG feature version: 1, firmware version: 0x00000001
RLC SRLS feature version: 1, firmware version: 0x00000001
MEC feature version: 52, firmware version: 0x000001ca
MEC2 feature version: 52, firmware version: 0x000001ca
SOS feature version: 0, firmware version: 0x00000000
ASD feature version: 0, firmware version: 0x2100005a
TA XGMI feature version: 0x00000000, firmware version: 0x00000000
TA RAS feature version: 0x00000000, firmware version: 0x00000000
TA HDCP feature version: 0x00000000, firmware version: 0x1700001f
TA DTM feature version: 0x00000000, firmware version: 0x12000009
TA RAP feature version: 0x00000000, firmware version: 0x00000000
TA SECUREDISPLAY feature version: 0x00000000, firmware version: 0x00000000
SMC feature version: 0, program: 0, firmware version: 0x00001e62 (0.30.98)
SDMA0 feature version: 41, firmware version: 0x000000a9
VCN feature version: 0, firmware version: 0x0210c009
DMCU feature version: 0, firmware version: 0x00000000
DMCUB feature version: 0, firmware version: 0x00000000
TOC feature version: 0, firmware version: 0x00000000
VBIOS version: 113-PICASSO-118


Debian Sid, experimental kernel, with Asus MB:

Cold boot: dmesg | egrep -i "tsc|hpet|clocksource"

[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 3499.742 MHz processor
[    0.005607] ACPI: HPET 0x00000000CA3B2000 000038 (v01 ALASKA A M I    01072009 AMI  00000005)
[    0.005645] ACPI: Reserving HPET table memory at [mem 0xca3b2000-0xca3b2037]
[    0.013105] ACPI: HPET id: 0x10228201 base: 0xfed00000
[    0.013201] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.067835] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns
[    0.087872] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x32725d490fa, max_idle_ns: 440795358494 ns
[    0.220777] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.267132] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.267132] hpet0: 3 comparators, 32-bit 14.318180 MHz counter
[    0.268935] clocksource: Switched to clocksource tsc-early
[    0.275018] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.471748] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[    1.315888] tsc: Refined TSC clocksource calibration: 3499.988 MHz
[    1.315895] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x327345aba71, max_idle_ns: 440795345474 ns
[    2.098648] clocksource: Switched to clocksource tsc
[    4.728311] SVM: TSC scaling supported

Warm reboot: dmesg | egrep -i "tsc|hpet|clocksource"

[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 3499.841 MHz processor
[    0.005679] ACPI: HPET 0x00000000CA3B2000 000038 (v01 ALASKA A M I    01072009 AMI  00000005)
[    0.005717] ACPI: Reserving HPET table memory at [mem 0xca3b2000-0xca3b2037]
[    0.013178] ACPI: HPET id: 0x10228201 base: 0xfed00000
[    0.013273] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.068020] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns
[    0.088058] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x3272bb1afbb, max_idle_ns: 440795365945 ns
[    0.220968] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.267317] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.267317] hpet0: 3 comparators, 32-bit 14.318180 MHz counter
[    0.269123] clocksource: Switched to clocksource tsc-early
[    0.275205] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.471711] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[    1.316075] tsc: Refined TSC clocksource calibration: 3500.003 MHz
[    1.316082] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x327353f6701, max_idle_ns: 440795287763 ns
[    2.118609] clocksource: Switched to clocksource tsc
[    4.100338] clocksource: timekeeping watchdog on CPU3: Marking clocksource 'tsc' as unstable because the skew is too large:
[    4.100361] clocksource:                       'hpet' wd_nsec: 479405133 wd_now: 3716ffd wd_last: 308b2ac mask: ffffffff
[    4.100367] clocksource:                       'tsc' cs_nsec: 480285000 cs_now: e6965b306 cs_last: e0533b0a9 mask: ffffffffffffffff
[    4.100372] clocksource:                       'tsc' is current clocksource.
[    4.100379] tsc: Marking TSC unstable due to clocksource watchdog
[    4.100402] TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'.
[    4.100963] clocksource: Checking clocksource tsc synchronization from CPU 1 to CPUs 0.
[    4.101045] clocksource: Switched to clocksource hpet
[    4.634603] SVM: TSC scaling supported

cat /sys/kernel/debug/dri/0/amdgpu_firmware_info

VCE feature version: 0, firmware version: 0x00000000
UVD feature version: 0, firmware version: 0x00000000
MC feature version: 0, firmware version: 0x00000000
ME feature version: 52, firmware version: 0x000000a4
PFP feature version: 52, firmware version: 0x000000bc
CE feature version: 52, firmware version: 0x0000004f
RLC feature version: 1, firmware version: 0x00000213
RLC SRLC feature version: 1, firmware version: 0x00000001
RLC SRLG feature version: 1, firmware version: 0x00000001
RLC SRLS feature version: 1, firmware version: 0x00000001
MEC feature version: 52, firmware version: 0x000001ca
MEC2 feature version: 52, firmware version: 0x000001ca
SOS feature version: 0, firmware version: 0x00000000
ASD feature version: 0, firmware version: 0x2100005a
TA XGMI feature version: 0x00000000, firmware version: 0x00000000
TA RAS feature version: 0x00000000, firmware version: 0x00000000
TA HDCP feature version: 0x00000000, firmware version: 0x1700001f
TA DTM feature version: 0x00000000, firmware version: 0x12000009
TA RAP feature version: 0x00000000, firmware version: 0x00000000
TA SECUREDISPLAY feature version: 0x00000000, firmware version: 0x00000000
SMC feature version: 0, program: 0, firmware version: 0x00001e62 (0.30.98)
SDMA0 feature version: 41, firmware version: 0x000000a9
VCN feature version: 0, firmware version: 0x0210c009
DMCU feature version: 0, firmware version: 0x00000000
DMCUB feature version: 0, firmware version: 0x00000000
TOC feature version: 0, firmware version: 0x00000000
VBIOS version: 113-PICASSO-118
Comment 1 Karri Hämäläinen 2022-07-07 11:56:19 UTC
Created attachment 301357 [details]
dmesg output of cold boot
Comment 2 Karri Hämäläinen 2022-07-07 11:56:35 UTC
Created attachment 301358 [details]
dmesg output of warm reboot
Comment 3 Karri Hämäläinen 2022-07-07 11:59:41 UTC
Attached dmesg outputs are from Asus MB with 5.18.5 kernel.
Different boots to the ones included in the original message.
Forgot to copy reordered bug report before sending.
Comment 4 Mario Limonciello (AMD) 2022-07-07 21:31:05 UTC
Thanks for sharing.  Want to warn you that due to age and availability Raven Ridge will be a bit more difficult to reproduce, and also less likely for an OEM to fix. But I'll raise it, thanks.
Comment 5 Karri Hämäläinen 2022-07-08 03:12:17 UTC
Yeah. I understand.

I just noticed this while testing the Asrock motherboard, and wanted to share once I searched to see if the log entries were fixable.
This was just to make you in AMD know the TSC sync on warm reboot issue is probably more widespread in the Zen (APU?) family, and not just in latest generation(s).

Will not personally affect me, if the 4000-series APU fix comes.
And I can just make sure to always cold boot the system, now that I know.

The 2200G I have will end up in a Windows work machine for a relative with the Asus motherboard.
So even if this also affects Windows it shouldn't really matter.
Performance difference shouldn't be that big in this use.

Asrock board will stay with me as a personal server, with a Ryzen Pro 4650G.

I will add to the relevant thread when I this processor I'm waiting for arrives.

Note You need to log in before you can comment on or make changes to this bug.