linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* tsc: Fast TSC calibration failed with AMD B350M/Ryzen 3 2200G
@ 2018-12-31 10:02 Paul Menzel
  2019-01-07 15:24 ` Thomas Gleixner
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Menzel @ 2018-12-31 10:02 UTC (permalink / raw)
  To: x86; +Cc: LKML

[-- Attachment #1: Type: text/plain, Size: 4084 bytes --]

Dear Linux folks,


Linux 4.19.13 from Debian Sid/unstable logs the message below on the 
board MSI MS-7A37/B350M MORTAR with the processor AMD Ryzen 3 2200G.

As a result, the early time stamps do not seem to be working.

> [    0.000000] Linux version 4.19.0-1-amd64 (debian-kernel@lists.debian.org) (gcc version 8.2.0 (Debian 8.2.0-13)) #1 SMP Debian 4.19.13-1 (2018-12-30)
> [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.19.0-1-amd64 root=UUID=8883f733-2248-47e0-90b9-ee5384f18d62 ro quiet
> [    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
> [    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
> [    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
> [    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
> [    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
> [    0.000000] BIOS-provided physical RAM map:
> [    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
> [    0.000000] BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] reserved
> [    0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000009d7ffff] usable
> [    0.000000] BIOS-e820: [mem 0x0000000009d80000-0x0000000009ffffff] reserved
> [    0.000000] BIOS-e820: [mem 0x000000000a000000-0x000000000a1fffff] usable
> [    0.000000] BIOS-e820: [mem 0x000000000a200000-0x000000000a209fff] ACPI NVS
> [    0.000000] BIOS-e820: [mem 0x000000000a20a000-0x000000000affffff] usable
> [    0.000000] BIOS-e820: [mem 0x000000000b000000-0x000000000b01ffff] reserved
> [    0.000000] BIOS-e820: [mem 0x000000000b020000-0x000000005d11afff] usable
> [    0.000000] BIOS-e820: [mem 0x000000005d11b000-0x000000005d20bfff] reserved
> [    0.000000] BIOS-e820: [mem 0x000000005d20c000-0x000000005d389fff] usable
> [    0.000000] BIOS-e820: [mem 0x000000005d38a000-0x000000005d790fff] ACPI NVS
> [    0.000000] BIOS-e820: [mem 0x000000005d791000-0x000000005e5b9fff] reserved
> [    0.000000] BIOS-e820: [mem 0x000000005e5ba000-0x000000005e663fff] type 20
> [    0.000000] BIOS-e820: [mem 0x000000005e664000-0x000000005effffff] usable
> [    0.000000] BIOS-e820: [mem 0x000000005f000000-0x00000000dfffffff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000fd100000-0x00000000fdffffff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000fea00000-0x00000000fea0ffff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000feb80000-0x00000000fec01fff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000fec10000-0x00000000fec10fff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000fec30000-0x00000000fec30fff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000fed00000-0x00000000fed00fff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000fed40000-0x00000000fed44fff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000fed80000-0x00000000fed8ffff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000fedc2000-0x00000000fedcffff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000fedd4000-0x00000000fedd5fff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000feefffff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
> [    0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000041f33ffff] usable
> [    0.000000] NX (Execute Disable) protection: active
> [    0.000000] efi: EFI v2.70 by American Megatrends
> [    0.000000] efi:  ACPI 2.0=0x5d711000  ACPI=0x5d711000  SMBIOS=0x5e483000  MEMATTR=0x597ce018  ESRT=0x597d2f98 
> [    0.000000] secureboot: Secure boot could not be determined (mode 0)
> [    0.000000] SMBIOS 2.8 present.
> [    0.000000] DMI: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.I0 11/06/2018
> [    0.000000] tsc: Fast TSC calibration failed
> [    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
> [    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
Please find the Linux messages attached.


Kind regards,

Paul

[-- Attachment #2: 20181231-105503--initcall.dmesg --]
[-- Type: text/plain, Size: 76109 bytes --]

[    0.000000] Linux version 4.19.0-1-amd64 (debian-kernel@lists.debian.org) (gcc version 8.2.0 (Debian 8.2.0-13)) #1 SMP Debian 4.19.13-1 (2018-12-30)
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.19.0-1-amd64 root=UUID=8883f733-2248-47e0-90b9-ee5384f18d62 ro quiet
[    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000009d7ffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000009d80000-0x0000000009ffffff] reserved
[    0.000000] BIOS-e820: [mem 0x000000000a000000-0x000000000a1fffff] usable
[    0.000000] BIOS-e820: [mem 0x000000000a200000-0x000000000a209fff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x000000000a20a000-0x000000000affffff] usable
[    0.000000] BIOS-e820: [mem 0x000000000b000000-0x000000000b01ffff] reserved
[    0.000000] BIOS-e820: [mem 0x000000000b020000-0x000000005d11afff] usable
[    0.000000] BIOS-e820: [mem 0x000000005d11b000-0x000000005d20bfff] reserved
[    0.000000] BIOS-e820: [mem 0x000000005d20c000-0x000000005d389fff] usable
[    0.000000] BIOS-e820: [mem 0x000000005d38a000-0x000000005d790fff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x000000005d791000-0x000000005e5b9fff] reserved
[    0.000000] BIOS-e820: [mem 0x000000005e5ba000-0x000000005e663fff] type 20
[    0.000000] BIOS-e820: [mem 0x000000005e664000-0x000000005effffff] usable
[    0.000000] BIOS-e820: [mem 0x000000005f000000-0x00000000dfffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fd100000-0x00000000fdffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fea00000-0x00000000fea0ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000feb80000-0x00000000fec01fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fec10000-0x00000000fec10fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fec30000-0x00000000fec30fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fed00000-0x00000000fed00fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fed40000-0x00000000fed44fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fed80000-0x00000000fed8ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fedc2000-0x00000000fedcffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fedd4000-0x00000000fedd5fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000feefffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000041f33ffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] efi: EFI v2.70 by American Megatrends
[    0.000000] efi:  ACPI 2.0=0x5d711000  ACPI=0x5d711000  SMBIOS=0x5e483000  MEMATTR=0x597ce018  ESRT=0x597d2f98 
[    0.000000] secureboot: Secure boot could not be determined (mode 0)
[    0.000000] SMBIOS 2.8 present.
[    0.000000] DMI: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.I0 11/06/2018
[    0.000000] tsc: Fast TSC calibration failed
[    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000000] last_pfn = 0x41f340 max_arch_pfn = 0x400000000
[    0.000000] MTRR default type: uncachable
[    0.000000] MTRR fixed ranges enabled:
[    0.000000]   00000-9FFFF write-back
[    0.000000]   A0000-BFFFF write-through
[    0.000000]   C0000-FFFFF write-protect
[    0.000000] MTRR variable ranges enabled:
[    0.000000]   0 base 000000000000 mask FFFF80000000 write-back
[    0.000000]   1 base 000080000000 mask FFFFC0000000 write-back
[    0.000000]   2 base 0000C0000000 mask FFFFE0000000 write-back
[    0.000000]   3 disabled
[    0.000000]   4 disabled
[    0.000000]   5 disabled
[    0.000000]   6 disabled
[    0.000000]   7 disabled
[    0.000000] TOM2: 0000000420000000 aka 16896M
[    0.000000] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT  
[    0.000000] e820: update [mem 0xe0000000-0xffffffff] usable ==> reserved
[    0.000000] last_pfn = 0x5f000 max_arch_pfn = 0x400000000
[    0.000000] esrt: Reserving ESRT space from 0x00000000597d2f98 to 0x00000000597d2fd0.
[    0.000000] Base memory trampoline at [(____ptrval____)] 96000 size 24576
[    0.000000] Using GB pages for direct mapping
[    0.000000] BRK [0x144801000, 0x144801fff] PGTABLE
[    0.000000] BRK [0x144802000, 0x144802fff] PGTABLE
[    0.000000] BRK [0x144803000, 0x144803fff] PGTABLE
[    0.000000] BRK [0x144804000, 0x144804fff] PGTABLE
[    0.000000] BRK [0x144805000, 0x144805fff] PGTABLE
[    0.000000] BRK [0x144806000, 0x144806fff] PGTABLE
[    0.000000] BRK [0x144807000, 0x144807fff] PGTABLE
[    0.000000] BRK [0x144808000, 0x144808fff] PGTABLE
[    0.000000] BRK [0x144809000, 0x144809fff] PGTABLE
[    0.000000] BRK [0x14480a000, 0x14480afff] PGTABLE
[    0.000000] BRK [0x14480b000, 0x14480bfff] PGTABLE
[    0.000000] BRK [0x14480c000, 0x14480cfff] PGTABLE
[    0.000000] RAMDISK: [mem 0x37235000-0x37911fff]
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x000000005D711000 000024 (v02 ALASKA)
[    0.000000] ACPI: XSDT 0x000000005D7110A0 0000BC (v01 ALASKA A M I    01072009 AMI  00010013)
[    0.000000] ACPI: FACP 0x000000005D718F58 000114 (v06 ALASKA A M I    01072009 AMI  00010013)
[    0.000000] ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has valid Length but zero Address: 0x0000000000000000/0x1 (20180810/tbfadt-624)
[    0.000000] ACPI: DSDT 0x000000005D7111F0 007D67 (v02 ALASKA A M I    01072009 INTL 20120913)
[    0.000000] ACPI: FACS 0x000000005D77AD80 000040
[    0.000000] ACPI: APIC 0x000000005D719070 0000DE (v03 ALASKA A M I    01072009 AMI  00010013)
[    0.000000] ACPI: FPDT 0x000000005D719150 000044 (v01 ALASKA A M I    01072009 AMI  00010013)
[    0.000000] ACPI: FIDT 0x000000005D719198 00009C (v01 ALASKA A M I    01072009 AMI  00010013)
[    0.000000] ACPI: SSDT 0x000000005D719238 005419 (v02 AMD    AmdTable 00000002 MSFT 02000002)
[    0.000000] ACPI: SSDT 0x000000005D71E658 0007DC (v01 AMD    AMD CPU  00000001 AMD  00000001)
[    0.000000] ACPI: CRAT 0x000000005D71EE38 000810 (v01 AMD    AMD CRAT 00000001 AMD  00000001)
[    0.000000] ACPI: CDIT 0x000000005D71F648 000029 (v01 AMD    AMD CDIT 00000001 AMD  00000001)
[    0.000000] ACPI: SSDT 0x000000005D71F678 002DA8 (v01 AMD    AMD AOD  00000001 INTL 20120913)
[    0.000000] ACPI: MCFG 0x000000005D722420 00003C (v01 ALASKA A M I    01072009 MSFT 00010013)
[    0.000000] ACPI: HPET 0x000000005D722460 000038 (v01 ALASKA A M I    01072009 AMI  00000005)
[    0.000000] ACPI: UEFI 0x000000005D722498 000048 (v01                 00000000      00000000)
[    0.000000] ACPI: IVRS 0x000000005D7224E0 0000D0 (v02 AMD    AMD IVRS 00000001 AMD  00000000)
[    0.000000] ACPI: BGRT 0x000000005D7225B0 000038 (v01 ALASKA A M I    01072009 AMI  00010013)
[    0.000000] ACPI: SSDT 0x000000005D7225E8 000C33 (v01 AMD    AmdTable 00000001 INTL 20120913)
[    0.000000] ACPI: SSDT 0x000000005D723220 0010F5 (v01 AMD    AmdTable 00000001 INTL 20120913)
[    0.000000] ACPI: SSDT 0x000000005D724318 001B4E (v01 AMD    AmdTable 00000001 INTL 20120913)
[    0.000000] ACPI: SSDT 0x000000005D725E68 0000BF (v01 AMD    AMD PT   00001000 INTL 20120913)
[    0.000000] ACPI: WSMT 0x000000005D725F28 000028 (v01 ALASKA A M I    01072009 AMI  00010013)
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at [mem 0x0000000000000000-0x000000041f33ffff]
[    0.000000] NODE_DATA(0) allocated [mem 0x41f33b000-0x41f33ffff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000000]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000041f33ffff]
[    0.000000]   Device   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000001000-0x000000000009ffff]
[    0.000000]   node   0: [mem 0x0000000000100000-0x0000000009d7ffff]
[    0.000000]   node   0: [mem 0x000000000a000000-0x000000000a1fffff]
[    0.000000]   node   0: [mem 0x000000000a20a000-0x000000000affffff]
[    0.000000]   node   0: [mem 0x000000000b020000-0x000000005d11afff]
[    0.000000]   node   0: [mem 0x000000005d20c000-0x000000005d389fff]
[    0.000000]   node   0: [mem 0x000000005e664000-0x000000005effffff]
[    0.000000]   node   0: [mem 0x0000000100000000-0x000000041f33ffff]
[    0.000000] Reserved but unavailable: 97 pages
[    0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000041f33ffff]
[    0.000000] On node 0 totalpages: 3656810
[    0.000000]   DMA zone: 64 pages used for memmap
[    0.000000]   DMA zone: 28 pages reserved
[    0.000000]   DMA zone: 3999 pages, LIFO batch:0
[    0.000000]   DMA32 zone: 5927 pages used for memmap
[    0.000000]   DMA32 zone: 379275 pages, LIFO batch:63
[    0.000000]   Normal zone: 51149 pages used for memmap
[    0.000000]   Normal zone: 3273536 pages, LIFO batch:63
[    0.000000] ACPI: PM-Timer IO Port: 0x808
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
[    0.000000] IOAPIC[0]: apic_id 5, version 33, address 0xfec00000, GSI 0-23
[    0.000000] IOAPIC[1]: apic_id 6, version 33, address 0xfec01000, GSI 24-55
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] ACPI: HPET id: 0x10228201 base: 0xfed00000
[    0.000000] smpboot: Allowing 16 CPUs, 12 hotplug CPUs
[    0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000fffff]
[    0.000000] PM: Registered nosave memory: [mem 0x09d80000-0x09ffffff]
[    0.000000] PM: Registered nosave memory: [mem 0x0a200000-0x0a209fff]
[    0.000000] PM: Registered nosave memory: [mem 0x0b000000-0x0b01ffff]
[    0.000000] PM: Registered nosave memory: [mem 0x5d11b000-0x5d20bfff]
[    0.000000] PM: Registered nosave memory: [mem 0x5d38a000-0x5d790fff]
[    0.000000] PM: Registered nosave memory: [mem 0x5d791000-0x5e5b9fff]
[    0.000000] PM: Registered nosave memory: [mem 0x5e5ba000-0x5e663fff]
[    0.000000] PM: Registered nosave memory: [mem 0x5f000000-0xdfffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xe0000000-0xf7ffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xf8000000-0xfbffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfc000000-0xfd0fffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfd100000-0xfdffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfe000000-0xfe9fffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfea00000-0xfea0ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfea10000-0xfeb7ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfeb80000-0xfec01fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec02000-0xfec0ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec10000-0xfec10fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec11000-0xfec2ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec30000-0xfec30fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfec31000-0xfecfffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed00000-0xfed00fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed01000-0xfed3ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed40000-0xfed44fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed45000-0xfed7ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed80000-0xfed8ffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfed90000-0xfedc1fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfedc2000-0xfedcffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfedd0000-0xfedd3fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfedd4000-0xfedd5fff]
[    0.000000] PM: Registered nosave memory: [mem 0xfedd6000-0xfedfffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfee00000-0xfeefffff]
[    0.000000] PM: Registered nosave memory: [mem 0xfef00000-0xfeffffff]
[    0.000000] PM: Registered nosave memory: [mem 0xff000000-0xffffffff]
[    0.000000] [mem 0xe0000000-0xf7ffffff] available for PCI devices
[    0.000000] Booting paravirtualized kernel on bare hardware
[    0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.000000] random: get_random_bytes called from start_kernel+0x93/0x537 with crng_init=0
[    0.000000] setup_percpu: NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:16 nr_node_ids:1
[    0.000000] percpu: Embedded 44 pages/cpu @(____ptrval____) s143192 r8192 d28840 u262144
[    0.000000] pcpu-alloc: s143192 r8192 d28840 u262144 alloc=1*2097152
[    0.000000] pcpu-alloc: [0] 00 01 02 03 04 05 06 07 [0] 08 09 10 11 12 13 14 15 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 3599642
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-4.19.0-1-amd64 root=UUID=8883f733-2248-47e0-90b9-ee5384f18d62 ro quiet
[    0.000000] Calgary: detecting Calgary via BIOS EBDA area
[    0.000000] Calgary: Unable to locate Rio Grande table in EBDA - bailing!
[    0.000000] Memory: 14228932K/14627240K available (10252K kernel code, 1236K rwdata, 3196K rodata, 1572K init, 2332K bss, 398308K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=16, Nodes=1
[    0.000000] ftrace: allocating 31612 entries in 124 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=512 to nr_cpu_ids=16.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=16
[    0.000000] NR_IRQS: 33024, nr_irqs: 1096, preallocated irqs: 16
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled
[    0.000000] ACPI: Core revision 20180810
[    0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484873504 ns
[    0.000000] hpet clockevent registered
[    0.000000] APIC: Switch to symmetric I/O mode setup
[    0.004000] Switched APIC routing to physical flat.
[    0.004000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.036000] tsc: Unable to calibrate against PIT
[    0.036000] tsc: using HPET reference calibration
[    0.036000] tsc: Detected 3500.117 MHz processor
[    0.000007] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x3273bf77e15, max_idle_ns: 440795257978 ns
[    0.000013] Calibrating delay loop (skipped), value calculated using timer frequency.. 7000.23 BogoMIPS (lpj=14000468)
[    0.000015] pid_max: default: 32768 minimum: 301
[    0.001324] Security Framework initialized
[    0.001325] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.001396] AppArmor: AppArmor initialized
[    0.005912] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)
[    0.007125] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[    0.007231] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.007268] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.007809] mce: CPU supports 23 MCE banks
[    0.007826] LVT offset 1 assigned for vector 0xf9
[    0.007873] LVT offset 2 assigned for vector 0xf4
[    0.007883] Last level iTLB entries: 4KB 1024, 2MB 1024, 4MB 512
[    0.007883] Last level dTLB entries: 4KB 1536, 2MB 1536, 4MB 768, 1GB 0
[    0.007885] Spectre V2 : Mitigation: Full AMD retpoline
[    0.007885] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.007891] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[    0.007892] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
[    0.011474] Freeing SMP alternatives memory: 24K
[    0.020008] smpboot: CPU0: AMD Ryzen 3 2200G with Radeon Vega Graphics (family: 0x17, model: 0x11, stepping: 0x0)
[    0.020008] Performance Events: Fam17h core perfctr, AMD PMU driver.
[    0.020008] ... version:                0
[    0.020008] ... bit width:              48
[    0.020008] ... generic registers:      6
[    0.020008] ... value mask:             0000ffffffffffff
[    0.020008] ... max period:             00007fffffffffff
[    0.020008] ... fixed-purpose events:   0
[    0.020008] ... event mask:             000000000000003f
[    0.020008] rcu: Hierarchical SRCU implementation.
[    0.020008] NMI watchdog: Enabled. Permanently consumes one hw-PMU counter.
[    0.020008] smp: Bringing up secondary CPUs ...
[    0.020008] x86: Booting SMP configuration:
[    0.020008] .... node  #0, CPUs:        #1  #2  #3
[    0.026450] smp: Brought up 1 node, 4 CPUs
[    0.026450] smpboot: Max logical packages: 4
[    0.026450] smpboot: Total of 4 processors activated (28000.93 BogoMIPS)
[    0.026450] devtmpfs: initialized
[    0.026450] x86/mm: Memory block size: 128MB
[    0.029213] PM: Registering ACPI NVS region [mem 0x0a200000-0x0a209fff] (40960 bytes)
[    0.029213] PM: Registering ACPI NVS region [mem 0x5d38a000-0x5d790fff] (4222976 bytes)
[    0.029213] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.029213] futex hash table entries: 4096 (order: 6, 262144 bytes)
[    0.029213] pinctrl core: initialized pinctrl subsystem
[    0.029349] NET: Registered protocol family 16
[    0.029436] audit: initializing netlink subsys (disabled)
[    0.029441] audit: type=2000 audit(1546246410.064:1): state=initialized audit_enabled=0 res=1
[    0.029441] cpuidle: using governor ladder
[    0.029441] cpuidle: using governor menu
[    0.029441] ACPI: bus type PCI registered
[    0.029441] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.029441] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xf8000000-0xfbffffff] (base 0xf8000000)
[    0.029441] PCI: MMCONFIG at [mem 0xf8000000-0xfbffffff] reserved in E820
[    0.029441] PCI: Using configuration type 1 for base access
[    0.032182] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.032182] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.032276] ACPI: Added _OSI(Module Device)
[    0.032277] ACPI: Added _OSI(Processor Device)
[    0.032278] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.032278] ACPI: Added _OSI(Processor Aggregator Device)
[    0.032279] ACPI: Added _OSI(Linux-Dell-Video)
[    0.032280] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.038593] ACPI: 8 ACPI AML tables successfully acquired and loaded
[    0.040072] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    0.041242] ACPI: Interpreter enabled
[    0.041254] ACPI: (supports S0 S3 S4 S5)
[    0.041255] ACPI: Using IOAPIC for interrupt routing
[    0.041542] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.041783] ACPI: Enabled 2 GPEs in block 00 to 1F
[    0.043600] ACPI: Power Resource [P0ST] (on)
[    0.043625] ACPI: Power Resource [P3ST] (on)
[    0.050794] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    0.050798] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
[    0.050924] acpi PNP0A08:00: _OSC: platform does not support [SHPCHotplug LTR]
[    0.051043] acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[    0.051052] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[    0.051340] PCI host bridge to bus 0000:00
[    0.051342] pci_bus 0000:00: root bus resource [io  0x0000-0x03af window]
[    0.051344] pci_bus 0000:00: root bus resource [io  0x03e0-0x0cf7 window]
[    0.051345] pci_bus 0000:00: root bus resource [io  0x03b0-0x03df window]
[    0.051354] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff window]
[    0.051355] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[    0.051356] pci_bus 0000:00: root bus resource [mem 0x000c0000-0x000dffff window]
[    0.051358] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xfec2ffff window]
[    0.051359] pci_bus 0000:00: root bus resource [mem 0xfee00000-0xffffffff window]
[    0.051360] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.051369] pci 0000:00:00.0: [1022:15d0] type 00 class 0x060000
[    0.051493] pci 0000:00:00.2: [1022:15d1] type 00 class 0x080600
[    0.051653] pci 0000:00:01.0: [1022:1452] type 00 class 0x060000
[    0.052122] pci 0000:00:01.2: [1022:15d3] type 01 class 0x060400
[    0.052178] pci 0000:00:01.2: enabling Extended Tags
[    0.052240] pci 0000:00:01.2: PME# supported from D0 D3hot D3cold
[    0.052393] pci 0000:00:08.0: [1022:1452] type 00 class 0x060000
[    0.052527] pci 0000:00:08.1: [1022:15db] type 01 class 0x060400
[    0.052582] pci 0000:00:08.1: enabling Extended Tags
[    0.052639] pci 0000:00:08.1: PME# supported from D0 D3hot D3cold
[    0.052749] pci 0000:00:08.2: [1022:15dc] type 01 class 0x060400
[    0.052803] pci 0000:00:08.2: enabling Extended Tags
[    0.052857] pci 0000:00:08.2: PME# supported from D0 D3hot D3cold
[    0.052997] pci 0000:00:14.0: [1022:790b] type 00 class 0x0c0500
[    0.053181] pci 0000:00:14.3: [1022:790e] type 00 class 0x060100
[    0.053376] pci 0000:00:18.0: [1022:15e8] type 00 class 0x060000
[    0.053432] pci 0000:00:18.1: [1022:15e9] type 00 class 0x060000
[    0.053496] pci 0000:00:18.2: [1022:15ea] type 00 class 0x060000
[    0.053554] pci 0000:00:18.3: [1022:15eb] type 00 class 0x060000
[    0.053619] pci 0000:00:18.4: [1022:15ec] type 00 class 0x060000
[    0.053682] pci 0000:00:18.5: [1022:15ed] type 00 class 0x060000
[    0.053737] pci 0000:00:18.6: [1022:15ee] type 00 class 0x060000
[    0.053793] pci 0000:00:18.7: [1022:15ef] type 00 class 0x060000
[    0.053939] pci 0000:15:00.0: [1022:43bb] type 00 class 0x0c0330
[    0.053970] pci 0000:15:00.0: reg 0x10: [mem 0xfe8a0000-0xfe8a7fff 64bit]
[    0.054021] pci 0000:15:00.0: enabling Extended Tags
[    0.054080] pci 0000:15:00.0: PME# supported from D3hot D3cold
[    0.054188] pci 0000:15:00.1: [1022:43b7] type 00 class 0x010601
[    0.054253] pci 0000:15:00.1: reg 0x24: [mem 0xfe880000-0xfe89ffff]
[    0.054263] pci 0000:15:00.1: reg 0x30: [mem 0xfe800000-0xfe87ffff pref]
[    0.054271] pci 0000:15:00.1: enabling Extended Tags
[    0.054320] pci 0000:15:00.1: PME# supported from D3hot D3cold
[    0.054392] pci 0000:15:00.2: [1022:43b2] type 01 class 0x060400
[    0.054446] pci 0000:15:00.2: enabling Extended Tags
[    0.054498] pci 0000:15:00.2: PME# supported from D3hot D3cold
[    0.054630] pci 0000:00:01.2: PCI bridge to [bus 15-1b]
[    0.054636] pci 0000:00:01.2:   bridge window [io  0xf000-0xffff]
[    0.054639] pci 0000:00:01.2:   bridge window [mem 0xfe700000-0xfe8fffff]
[    0.054742] pci 0000:16:00.0: [1022:43b4] type 01 class 0x060400
[    0.054801] pci 0000:16:00.0: enabling Extended Tags
[    0.054864] pci 0000:16:00.0: PME# supported from D3hot D3cold
[    0.054972] pci 0000:16:01.0: [1022:43b4] type 01 class 0x060400
[    0.055031] pci 0000:16:01.0: enabling Extended Tags
[    0.055093] pci 0000:16:01.0: PME# supported from D3hot D3cold
[    0.055194] pci 0000:16:04.0: [1022:43b4] type 01 class 0x060400
[    0.055252] pci 0000:16:04.0: enabling Extended Tags
[    0.055313] pci 0000:16:04.0: PME# supported from D3hot D3cold
[    0.055429] pci 0000:15:00.2: PCI bridge to [bus 16-1b]
[    0.055435] pci 0000:15:00.2:   bridge window [io  0xf000-0xffff]
[    0.055438] pci 0000:15:00.2:   bridge window [mem 0xfe700000-0xfe7fffff]
[    0.055482] pci 0000:16:00.0: PCI bridge to [bus 17]
[    0.055574] pci 0000:18:00.0: [10ec:8168] type 00 class 0x020000
[    0.055622] pci 0000:18:00.0: reg 0x10: [io  0xf000-0xf0ff]
[    0.055664] pci 0000:18:00.0: reg 0x18: [mem 0xfe704000-0xfe704fff 64bit]
[    0.055690] pci 0000:18:00.0: reg 0x20: [mem 0xfe700000-0xfe703fff 64bit]
[    0.055838] pci 0000:18:00.0: supports D1 D2
[    0.055839] pci 0000:18:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.056062] pci 0000:16:01.0: PCI bridge to [bus 18]
[    0.056068] pci 0000:16:01.0:   bridge window [io  0xf000-0xffff]
[    0.056072] pci 0000:16:01.0:   bridge window [mem 0xfe700000-0xfe7fffff]
[    0.056122] pci 0000:16:04.0: PCI bridge to [bus 1b]
[    0.056263] pci 0000:38:00.0: [1002:15dd] type 00 class 0x030000
[    0.056309] pci 0000:38:00.0: reg 0x10: [mem 0xe0000000-0xefffffff 64bit pref]
[    0.056327] pci 0000:38:00.0: reg 0x18: [mem 0xf0000000-0xf01fffff 64bit pref]
[    0.056339] pci 0000:38:00.0: reg 0x20: [io  0xe000-0xe0ff]
[    0.056351] pci 0000:38:00.0: reg 0x24: [mem 0xfe600000-0xfe67ffff]
[    0.056372] pci 0000:38:00.0: enabling Extended Tags
[    0.056383] pci 0000:38:00.0: BAR 0: assigned to efifb
[    0.056478] pci 0000:38:00.0: PME# supported from D1 D2 D3hot D3cold
[    0.056611] pci 0000:38:00.1: [1002:15de] type 00 class 0x040300
[    0.056641] pci 0000:38:00.1: reg 0x10: [mem 0xfe688000-0xfe68bfff]
[    0.056713] pci 0000:38:00.1: enabling Extended Tags
[    0.056779] pci 0000:38:00.1: PME# supported from D1 D2 D3hot D3cold
[    0.056851] pci 0000:38:00.2: [1022:15df] type 00 class 0x108000
[    0.056901] pci 0000:38:00.2: reg 0x18: [mem 0xfe500000-0xfe5fffff]
[    0.056933] pci 0000:38:00.2: reg 0x24: [mem 0xfe68c000-0xfe68dfff]
[    0.056953] pci 0000:38:00.2: enabling Extended Tags
[    0.057113] pci 0000:38:00.3: [1022:15e0] type 00 class 0x0c0330
[    0.057148] pci 0000:38:00.3: reg 0x10: [mem 0xfe400000-0xfe4fffff 64bit]
[    0.057209] pci 0000:38:00.3: enabling Extended Tags
[    0.057283] pci 0000:38:00.3: PME# supported from D0 D3hot D3cold
[    0.057368] pci 0000:38:00.4: [1022:15e1] type 00 class 0x0c0330
[    0.057403] pci 0000:38:00.4: reg 0x10: [mem 0xfe300000-0xfe3fffff 64bit]
[    0.057464] pci 0000:38:00.4: enabling Extended Tags
[    0.057537] pci 0000:38:00.4: PME# supported from D0 D3hot D3cold
[    0.057639] pci 0000:38:00.6: [1022:15e3] type 00 class 0x040300
[    0.057668] pci 0000:38:00.6: reg 0x10: [mem 0xfe680000-0xfe687fff]
[    0.057740] pci 0000:38:00.6: enabling Extended Tags
[    0.057807] pci 0000:38:00.6: PME# supported from D0 D3hot D3cold
[    0.057954] pci 0000:00:08.1: PCI bridge to [bus 38]
[    0.057959] pci 0000:00:08.1:   bridge window [io  0xe000-0xefff]
[    0.057962] pci 0000:00:08.1:   bridge window [mem 0xfe300000-0xfe6fffff]
[    0.057968] pci 0000:00:08.1:   bridge window [mem 0xe0000000-0xf01fffff 64bit pref]
[    0.058045] pci 0000:39:00.0: [1022:7901] type 00 class 0x010601
[    0.058128] pci 0000:39:00.0: reg 0x24: [mem 0xfe900000-0xfe9007ff]
[    0.058148] pci 0000:39:00.0: enabling Extended Tags
[    0.058222] pci 0000:39:00.0: PME# supported from D3hot D3cold
[    0.058342] pci 0000:00:08.2: PCI bridge to [bus 39]
[    0.058350] pci 0000:00:08.2:   bridge window [mem 0xfe900000-0xfe9fffff]
[    0.058802] ACPI: PCI Interrupt Link [LNKA] (IRQs 4 5 7 10 11 14 15) *0
[    0.058846] ACPI: PCI Interrupt Link [LNKB] (IRQs 4 5 7 10 11 14 15) *0
[    0.058882] ACPI: PCI Interrupt Link [LNKC] (IRQs 4 5 7 10 11 14 15) *0
[    0.058931] ACPI: PCI Interrupt Link [LNKD] (IRQs 4 5 7 10 11 14 15) *0
[    0.058973] ACPI: PCI Interrupt Link [LNKE] (IRQs 4 5 7 10 11 14 15) *0
[    0.059007] ACPI: PCI Interrupt Link [LNKF] (IRQs 4 5 7 10 11 14 15) *0
[    0.059041] ACPI: PCI Interrupt Link [LNKG] (IRQs 4 5 7 10 11 14 15) *0
[    0.059074] ACPI: PCI Interrupt Link [LNKH] (IRQs 4 5 7 10 11 14 15) *0
[    0.059464] pci 0000:38:00.0: vgaarb: setting as boot VGA device
[    0.059464] pci 0000:38:00.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[    0.059464] pci 0000:38:00.0: vgaarb: bridge control possible
[    0.059464] vgaarb: loaded
[    0.059464] pps_core: LinuxPPS API ver. 1 registered
[    0.059464] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.059464] PTP clock support registered
[    0.059464] EDAC MC: Ver: 3.0.0
[    0.060077] Registered efivars operations
[    0.076253] PCI: Using ACPI for IRQ routing
[    0.082708] PCI: pci_cache_line_size set to 64 bytes
[    0.082787] e820: reserve RAM buffer [mem 0x09d80000-0x0bffffff]
[    0.082788] e820: reserve RAM buffer [mem 0x0a200000-0x0bffffff]
[    0.082789] e820: reserve RAM buffer [mem 0x0b000000-0x0bffffff]
[    0.082789] e820: reserve RAM buffer [mem 0x5d11b000-0x5fffffff]
[    0.082790] e820: reserve RAM buffer [mem 0x5d38a000-0x5fffffff]
[    0.082790] e820: reserve RAM buffer [mem 0x5f000000-0x5fffffff]
[    0.082791] e820: reserve RAM buffer [mem 0x41f340000-0x41fffffff]
[    0.082895] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.082895] hpet0: 3 comparators, 32-bit 14.318180 MHz counter
[    0.084047] clocksource: Switched to clocksource tsc-early
[    0.094342] VFS: Disk quotas dquot_6.6.0
[    0.094382] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.094537] AppArmor: AppArmor Filesystem Enabled
[    0.094563] pnp: PnP ACPI init
[    0.094682] system 00:00: [mem 0xf8000000-0xfbffffff] has been reserved
[    0.094687] system 00:00: Plug and Play ACPI device, IDs PNP0c01 (active)
[    0.094737] system 00:01: [mem 0x60000000-0xdfffffff window] has been reserved
[    0.094739] system 00:01: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.094834] pnp 00:02: Plug and Play ACPI device, IDs PNP0b00 (active)
[    0.094962] system 00:03: [io  0x0a00-0x0a0f] has been reserved
[    0.094963] system 00:03: [io  0x0a10-0x0a1f] has been reserved
[    0.094964] system 00:03: [io  0x0a20-0x0a2f] has been reserved
[    0.094965] system 00:03: [io  0x0a40-0x0a4f] has been reserved
[    0.094968] system 00:03: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.095216] pnp 00:04: [dma 0 disabled]
[    0.095311] pnp 00:04: Plug and Play ACPI device, IDs PNP0400 (active)
[    0.095504] pnp 00:05: [dma 0 disabled]
[    0.095547] pnp 00:05: Plug and Play ACPI device, IDs PNP0501 (active)
[    0.095694] system 00:06: [io  0x04d0-0x04d1] has been reserved
[    0.095695] system 00:06: [io  0x040b] has been reserved
[    0.095696] system 00:06: [io  0x04d6] has been reserved
[    0.095697] system 00:06: [io  0x0c00-0x0c01] has been reserved
[    0.095698] system 00:06: [io  0x0c14] has been reserved
[    0.095699] system 00:06: [io  0x0c50-0x0c51] has been reserved
[    0.095700] system 00:06: [io  0x0c52] has been reserved
[    0.095701] system 00:06: [io  0x0c6c] has been reserved
[    0.095702] system 00:06: [io  0x0c6f] has been reserved
[    0.095703] system 00:06: [io  0x0cd0-0x0cd1] has been reserved
[    0.095704] system 00:06: [io  0x0cd2-0x0cd3] has been reserved
[    0.095705] system 00:06: [io  0x0cd4-0x0cd5] has been reserved
[    0.095706] system 00:06: [io  0x0cd6-0x0cd7] has been reserved
[    0.095707] system 00:06: [io  0x0cd8-0x0cdf] has been reserved
[    0.095707] system 00:06: [io  0x0800-0x089f] has been reserved
[    0.095716] system 00:06: [io  0x0b00-0x0b0f] has been reserved
[    0.095717] system 00:06: [io  0x0b20-0x0b3f] has been reserved
[    0.095718] system 00:06: [io  0x0900-0x090f] has been reserved
[    0.095720] system 00:06: [io  0x0910-0x091f] has been reserved
[    0.095721] system 00:06: [mem 0xfec00000-0xfec00fff] could not be reserved
[    0.095722] system 00:06: [mem 0xfec01000-0xfec01fff] could not be reserved
[    0.095723] system 00:06: [mem 0xfedc0000-0xfedc0fff] has been reserved
[    0.095725] system 00:06: [mem 0xfee00000-0xfee00fff] has been reserved
[    0.095726] system 00:06: [mem 0xfed80000-0xfed8ffff] could not be reserved
[    0.095727] system 00:06: [mem 0xfec10000-0xfec10fff] has been reserved
[    0.095728] system 00:06: [mem 0xff000000-0xffffffff] has been reserved
[    0.095730] system 00:06: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.096046] pnp: PnP ACPI: found 7 devices
[    0.102331] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.102397] pci 0000:16:00.0: PCI bridge to [bus 17]
[    0.102411] pci 0000:16:01.0: PCI bridge to [bus 18]
[    0.102413] pci 0000:16:01.0:   bridge window [io  0xf000-0xffff]
[    0.102418] pci 0000:16:01.0:   bridge window [mem 0xfe700000-0xfe7fffff]
[    0.102427] pci 0000:16:04.0: PCI bridge to [bus 1b]
[    0.102439] pci 0000:15:00.2: PCI bridge to [bus 16-1b]
[    0.102441] pci 0000:15:00.2:   bridge window [io  0xf000-0xffff]
[    0.102446] pci 0000:15:00.2:   bridge window [mem 0xfe700000-0xfe7fffff]
[    0.102454] pci 0000:00:01.2: PCI bridge to [bus 15-1b]
[    0.102456] pci 0000:00:01.2:   bridge window [io  0xf000-0xffff]
[    0.102460] pci 0000:00:01.2:   bridge window [mem 0xfe700000-0xfe8fffff]
[    0.102469] pci 0000:00:08.1: PCI bridge to [bus 38]
[    0.102471] pci 0000:00:08.1:   bridge window [io  0xe000-0xefff]
[    0.102476] pci 0000:00:08.1:   bridge window [mem 0xfe300000-0xfe6fffff]
[    0.102479] pci 0000:00:08.1:   bridge window [mem 0xe0000000-0xf01fffff 64bit pref]
[    0.102485] pci 0000:00:08.2: PCI bridge to [bus 39]
[    0.102489] pci 0000:00:08.2:   bridge window [mem 0xfe900000-0xfe9fffff]
[    0.102499] pci_bus 0000:00: resource 4 [io  0x0000-0x03af window]
[    0.102500] pci_bus 0000:00: resource 5 [io  0x03e0-0x0cf7 window]
[    0.102501] pci_bus 0000:00: resource 6 [io  0x03b0-0x03df window]
[    0.102502] pci_bus 0000:00: resource 7 [io  0x0d00-0xffff window]
[    0.102503] pci_bus 0000:00: resource 8 [mem 0x000a0000-0x000bffff window]
[    0.102504] pci_bus 0000:00: resource 9 [mem 0x000c0000-0x000dffff window]
[    0.102505] pci_bus 0000:00: resource 10 [mem 0xe0000000-0xfec2ffff window]
[    0.102506] pci_bus 0000:00: resource 11 [mem 0xfee00000-0xffffffff window]
[    0.102507] pci_bus 0000:15: resource 0 [io  0xf000-0xffff]
[    0.102508] pci_bus 0000:15: resource 1 [mem 0xfe700000-0xfe8fffff]
[    0.102509] pci_bus 0000:16: resource 0 [io  0xf000-0xffff]
[    0.102510] pci_bus 0000:16: resource 1 [mem 0xfe700000-0xfe7fffff]
[    0.102511] pci_bus 0000:18: resource 0 [io  0xf000-0xffff]
[    0.102511] pci_bus 0000:18: resource 1 [mem 0xfe700000-0xfe7fffff]
[    0.102512] pci_bus 0000:38: resource 0 [io  0xe000-0xefff]
[    0.102513] pci_bus 0000:38: resource 1 [mem 0xfe300000-0xfe6fffff]
[    0.102514] pci_bus 0000:38: resource 2 [mem 0xe0000000-0xf01fffff 64bit pref]
[    0.102515] pci_bus 0000:39: resource 1 [mem 0xfe900000-0xfe9fffff]
[    0.102700] NET: Registered protocol family 2
[    0.102940] tcp_listen_portaddr_hash hash table entries: 8192 (order: 5, 131072 bytes)
[    0.102973] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.103132] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    0.103244] TCP: Hash tables configured (established 131072 bind 65536)
[    0.103287] UDP hash table entries: 8192 (order: 6, 262144 bytes)
[    0.103320] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes)
[    0.103460] NET: Registered protocol family 1
[    0.103641] pci 0000:38:00.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[    0.103648] pci 0000:38:00.1: Linked as a consumer to 0000:38:00.0
[    0.103910] PCI: CLS 64 bytes, default 64
[    0.103945] Unpacking initramfs...
[    0.180750] Freeing initrd memory: 7028K
[    0.180835] AMD-Vi: Unable to write to IOMMU perf counter.
[    0.180930] pci 0000:00:00.2: can't derive routing for PCI INT A
[    0.180931] pci 0000:00:00.2: PCI INT A: not connected
[    0.181373] iommu: Adding device 0000:00:01.0 to group 0
[    0.181568] iommu: Adding device 0000:00:01.2 to group 1
[    0.181782] iommu: Adding device 0000:00:08.0 to group 2
[    0.181974] iommu: Adding device 0000:00:08.1 to group 3
[    0.182000] iommu: Adding device 0000:00:08.2 to group 2
[    0.182206] iommu: Adding device 0000:00:14.0 to group 4
[    0.182228] iommu: Adding device 0000:00:14.3 to group 4
[    0.182434] iommu: Adding device 0000:00:18.0 to group 5
[    0.182457] iommu: Adding device 0000:00:18.1 to group 5
[    0.182478] iommu: Adding device 0000:00:18.2 to group 5
[    0.182507] iommu: Adding device 0000:00:18.3 to group 5
[    0.182529] iommu: Adding device 0000:00:18.4 to group 5
[    0.182550] iommu: Adding device 0000:00:18.5 to group 5
[    0.182572] iommu: Adding device 0000:00:18.6 to group 5
[    0.182594] iommu: Adding device 0000:00:18.7 to group 5
[    0.182821] iommu: Adding device 0000:15:00.0 to group 6
[    0.182857] iommu: Adding device 0000:15:00.1 to group 6
[    0.182902] iommu: Adding device 0000:15:00.2 to group 6
[    0.182924] iommu: Adding device 0000:16:00.0 to group 6
[    0.182946] iommu: Adding device 0000:16:01.0 to group 6
[    0.182968] iommu: Adding device 0000:16:04.0 to group 6
[    0.183011] iommu: Adding device 0000:18:00.0 to group 6
[    0.183279] iommu: Adding device 0000:38:00.0 to group 7
[    0.183357] iommu: Using direct mapping for device 0000:38:00.0
[    0.183466] iommu: Adding device 0000:38:00.1 to group 8
[    0.183509] iommu: Adding device 0000:38:00.2 to group 8
[    0.183552] iommu: Adding device 0000:38:00.3 to group 8
[    0.183594] iommu: Adding device 0000:38:00.4 to group 8
[    0.183637] iommu: Adding device 0000:38:00.6 to group 8
[    0.183660] iommu: Adding device 0000:39:00.0 to group 2
[    0.183908] AMD-Vi: Found IOMMU at 0000:00:00.2 cap 0x40
[    0.183909] AMD-Vi: Extended features (0x4f77ef22294ada):
[    0.183909]  PPR NX GT IA GA PC GA_vAPIC
[    0.183912] AMD-Vi: Interrupt remapping enabled
[    0.183912] AMD-Vi: virtual APIC enabled
[    0.184131] AMD-Vi: Lazy IO/TLB flushing enabled
[    0.184999] amd_uncore: AMD NB counters detected
[    0.185002] amd_uncore: AMD LLC counters detected
[    0.185856] Initialise system trusted keyrings
[    0.185952] workingset: timestamp_bits=40 max_order=22 bucket_order=0
[    0.187548] zbud: loaded
[    0.187772] pstore: using deflate compression
[    0.284722] Key type asymmetric registered
[    0.284723] Asymmetric key parser 'x509' registered
[    0.284755] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.284818] io scheduler noop registered
[    0.284818] io scheduler deadline registered
[    0.284881] io scheduler cfq registered (default)
[    0.284882] io scheduler mq-deadline registered
[    0.286350] pcieport 0000:00:01.2: AER enabled with IRQ 26
[    0.286371] pcieport 0000:00:01.2: Signaling PME with IRQ 26
[    0.286395] pcieport 0000:00:08.1: Signaling PME with IRQ 27
[    0.286418] pcieport 0000:00:08.2: Signaling PME with IRQ 28
[    0.286449] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    0.286459] efifb: probing for efifb
[    0.286470] efifb: framebuffer at 0xe0000000, using 3072k, total 3072k
[    0.286471] efifb: mode is 1024x768x32, linelength=4096, pages=1
[    0.286471] efifb: scrolling: redraw
[    0.286473] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[    0.288307] Console: switching to colour frame buffer device 128x48
[    0.290034] fb0: EFI VGA frame buffer device
[    0.290060] Monitor-Mwait will be used to enter C-1 state
[    0.290516] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.311424] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    0.311791] Linux agpgart interface v0.103
[    0.312156] AMD IOMMUv2 driver by Joerg Roedel <jroedel@suse.de>
[    0.312607] i8042: PNP: No PS/2 controller found.
[    0.312657] mousedev: PS/2 mouse device common for all mice
[    0.312714] rtc_cmos 00:02: RTC can wake from S4
[    0.312986] rtc_cmos 00:02: registered as rtc0
[    0.312997] rtc_cmos 00:02: alarms up to one month, y3k, 114 bytes nvram, hpet irqs
[    0.313063] ledtrig-cpu: registered to indicate activity on CPUs
[    0.313715] NET: Registered protocol family 10
[    0.316404] Segment Routing with IPv6
[    0.316431] mip6: Mobile IPv6
[    0.316433] NET: Registered protocol family 17
[    0.316436] mpls_gso: MPLS GSO support
[    0.316834] microcode: CPU0: patch_level=0x0810100b
[    0.316839] microcode: CPU1: patch_level=0x0810100b
[    0.316850] microcode: CPU2: patch_level=0x0810100b
[    0.316857] microcode: CPU3: patch_level=0x0810100b
[    0.316895] microcode: Microcode Update Driver: v2.2.
[    0.316917] sched_clock: Marking stable (352882252, -35991111)->(423799862, -106908721)
[    0.317114] registered taskstats version 1
[    0.317115] Loading compiled-in X.509 certificates
[    0.338263] Loaded X.509 cert 'secure-boot-test-key-lfaraone: 97c1b25cddf9873ca78a58f3d73bf727d2cf78ff'
[    0.338291] zswap: loaded using pool lzo/zbud
[    0.338437] AppArmor: AppArmor sha1 policy hashing enabled
[    0.339214] rtc_cmos 00:02: setting system clock to 2018-12-31 08:53:31 UTC (1546246411)
[    0.566016] Freeing unused kernel image memory: 1572K
[    0.584614] Write protecting the kernel read-only data: 16384k
[    0.586111] Freeing unused kernel image memory: 2028K
[    0.586291] Freeing unused kernel image memory: 900K
[    0.593034] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[    0.593040] Run /init as init process
[    0.667253] SCSI subsystem initialized
[    0.668418] ACPI: bus type USB registered
[    0.668439] usbcore: registered new interface driver usbfs
[    0.668444] usbcore: registered new interface driver hub
[    0.668522] usbcore: registered new device driver usb
[    0.672864] libata version 3.00 loaded.
[    0.673924] xhci_hcd 0000:15:00.0: xHCI Host Controller
[    0.673929] xhci_hcd 0000:15:00.0: new USB bus registered, assigned bus number 1
[    0.675101] ahci 0000:15:00.1: version 3.0
[    0.675243] ahci 0000:15:00.1: SSS flag set, parallel bus scan disabled
[    0.675292] ahci 0000:15:00.1: AHCI 0001.0301 32 slots 8 ports 6 Gbps 0x33 impl SATA mode
[    0.675294] ahci 0000:15:00.1: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part sxs deso sadm sds apst 
[    0.676899] scsi host0: ahci
[    0.677511] scsi host1: ahci
[    0.677765] scsi host2: ahci
[    0.677917] scsi host3: ahci
[    0.678089] scsi host4: ahci
[    0.678227] scsi host5: ahci
[    0.678369] scsi host6: ahci
[    0.678713] scsi host7: ahci
[    0.678794] ata1: SATA max UDMA/133 abar m131072@0xfe880000 port 0xfe880100 irq 36
[    0.678796] ata2: SATA max UDMA/133 abar m131072@0xfe880000 port 0xfe880180 irq 36
[    0.678797] ata3: DUMMY
[    0.678797] ata4: DUMMY
[    0.678799] ata5: SATA max UDMA/133 abar m131072@0xfe880000 port 0xfe880300 irq 36
[    0.678801] ata6: SATA max UDMA/133 abar m131072@0xfe880000 port 0xfe880380 irq 36
[    0.678801] ata7: DUMMY
[    0.678802] ata8: DUMMY
[    0.685652] cryptd: max_cpu_qlen set to 1000
[    0.690985] ahci 0000:39:00.0: AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
[    0.690988] ahci 0000:39:00.0: flags: 64bit ncq sntf ilck led clo only pmp fbs pio 
[    0.691317] scsi host8: ahci
[    0.691389] ata9: SATA max UDMA/133 abar m2048@0xfe900000 port 0xfe900100 irq 38
[    0.696693] AVX2 version of gcm_enc/dec engaged.
[    0.696693] AES CTR mode by8 optimization enabled
[    0.729327] xhci_hcd 0000:15:00.0: hcc params 0x0200ef81 hci version 0x110 quirks 0x0000000048000410
[    0.729535] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.729537] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.729538] usb usb1: Product: xHCI Host Controller
[    0.729538] usb usb1: Manufacturer: Linux 4.19.0-1-amd64 xhci-hcd
[    0.729539] usb usb1: SerialNumber: 0000:15:00.0
[    0.729659] hub 1-0:1.0: USB hub found
[    0.729675] hub 1-0:1.0: 10 ports detected
[    0.730163] xhci_hcd 0000:15:00.0: xHCI Host Controller
[    0.730166] xhci_hcd 0000:15:00.0: new USB bus registered, assigned bus number 2
[    0.730168] xhci_hcd 0000:15:00.0: Host supports USB 3.10 Enhanced SuperSpeed
[    0.730206] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.730219] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    0.730220] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.730221] usb usb2: Product: xHCI Host Controller
[    0.730222] usb usb2: Manufacturer: Linux 4.19.0-1-amd64 xhci-hcd
[    0.730222] usb usb2: SerialNumber: 0000:15:00.0
[    0.730353] hub 2-0:1.0: USB hub found
[    0.730362] hub 2-0:1.0: 4 ports detected
[    0.730617] xhci_hcd 0000:38:00.3: xHCI Host Controller
[    0.730620] xhci_hcd 0000:38:00.3: new USB bus registered, assigned bus number 3
[    0.730832] xhci_hcd 0000:38:00.3: hcc params 0x0270ffe5 hci version 0x110 quirks 0x0000000840000410
[    0.731203] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.731204] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.731205] usb usb3: Product: xHCI Host Controller
[    0.731205] usb usb3: Manufacturer: Linux 4.19.0-1-amd64 xhci-hcd
[    0.731206] usb usb3: SerialNumber: 0000:38:00.3
[    0.731331] hub 3-0:1.0: USB hub found
[    0.731357] hub 3-0:1.0: 4 ports detected
[    0.731663] xhci_hcd 0000:38:00.3: xHCI Host Controller
[    0.731666] xhci_hcd 0000:38:00.3: new USB bus registered, assigned bus number 4
[    0.731668] xhci_hcd 0000:38:00.3: Host supports USB 3.10 Enhanced SuperSpeed
[    0.731719] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.731740] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    0.731741] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.731742] usb usb4: Product: xHCI Host Controller
[    0.731742] usb usb4: Manufacturer: Linux 4.19.0-1-amd64 xhci-hcd
[    0.731743] usb usb4: SerialNumber: 0000:38:00.3
[    0.731833] hub 4-0:1.0: USB hub found
[    0.731849] hub 4-0:1.0: 4 ports detected
[    0.732259] xhci_hcd 0000:38:00.4: xHCI Host Controller
[    0.732262] xhci_hcd 0000:38:00.4: new USB bus registered, assigned bus number 5
[    0.732434] xhci_hcd 0000:38:00.4: hcc params 0x0260ffe5 hci version 0x110 quirks 0x0000000840000410
[    0.732904] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.732905] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.732906] usb usb5: Product: xHCI Host Controller
[    0.732907] usb usb5: Manufacturer: Linux 4.19.0-1-amd64 xhci-hcd
[    0.732908] usb usb5: SerialNumber: 0000:38:00.4
[    0.733436] hub 5-0:1.0: USB hub found
[    0.733450] hub 5-0:1.0: 1 port detected
[    0.733572] xhci_hcd 0000:38:00.4: xHCI Host Controller
[    0.733574] xhci_hcd 0000:38:00.4: new USB bus registered, assigned bus number 6
[    0.733577] xhci_hcd 0000:38:00.4: Host supports USB 3.10 Enhanced SuperSpeed
[    0.733613] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.733635] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[    0.733636] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.733637] usb usb6: Product: xHCI Host Controller
[    0.733638] usb usb6: Manufacturer: Linux 4.19.0-1-amd64 xhci-hcd
[    0.733639] usb usb6: SerialNumber: 0000:38:00.4
[    0.733742] hub 6-0:1.0: USB hub found
[    0.733753] hub 6-0:1.0: 1 port detected
[    0.992594] ata1: SATA link down (SStatus 0 SControl 300)
[    1.061265] usb 1-7: new low-speed USB device number 2 using xhci_hcd
[    1.065229] usb 3-3: new high-speed USB device number 2 using xhci_hcd
[    1.168390] ata9: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.169310] ata9.00: supports DRM functions and may not be fully accessible
[    1.169356] ata9.00: ATA-10: CT1000MX500SSD4, M3CR020, max UDMA/133
[    1.169358] ata9.00: 1953525168 sectors, multi 1: LBA48 NCQ (depth 32), AA
[    1.170095] ata9.00: supports DRM functions and may not be fully accessible
[    1.170708] ata9.00: configured for UDMA/133
[    1.208052] tsc: Refined TSC clocksource calibration: 3503.012 MHz
[    1.208059] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x327e6e33414, max_idle_ns: 440795312059 ns
[    1.208087] clocksource: Switched to clocksource tsc
[    1.227658] usb 3-3: New USB device found, idVendor=1c6b, idProduct=a223, bcdDevice= 0.00
[    1.227660] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.227661] usb 3-3: Product: Mass Storage Device
[    1.227662] usb 3-3: Manufacturer: USB2.0 External
[    1.227663] usb 3-3: SerialNumber: 86 406817504398
[    1.304264] ata2: SATA link down (SStatus 0 SControl 300)
[    1.310742] usb 1-7: New USB device found, idVendor=093a, idProduct=2521, bcdDevice= 1.00
[    1.310746] usb 1-7: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    1.310748] usb 1-7: Product: USB OPTICAL MOUSE
[    1.327728] hidraw: raw HID events driver (C) Jiri Kosina
[    1.342509] usbcore: registered new interface driver usbhid
[    1.342509] usbhid: USB HID core driver
[    1.343719] input: USB OPTICAL MOUSE as /devices/pci0000:00/0000:00:01.2/0000:15:00.0/usb1/1-7/1-7:1.0/0003:093A:2521.0001/input/input0
[    1.343782] hid-generic 0003:093A:2521.0001: input,hidraw0: USB HID v1.11 Mouse [USB OPTICAL MOUSE] on usb-0000:15:00.0-7/input0
[    1.448469] usb 1-10: new low-speed USB device number 3 using xhci_hcd
[    1.617911] ata5: SATA link down (SStatus 0 SControl 300)
[    1.709716] usb 1-10: New USB device found, idVendor=045e, idProduct=07b9, bcdDevice= 1.14
[    1.709720] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.709722] usb 1-10: Product: USB Keyboard
[    1.709724] usb 1-10: Manufacturer: LITEON Technology
[    1.739526] input: LITEON Technology USB Keyboard as /devices/pci0000:00/0000:00:01.2/0000:15:00.0/usb1/1-10/1-10:1.0/0003:045E:07B9.0002/input/input1
[    1.796658] hid-generic 0003:045E:07B9.0002: input,hidraw1: USB HID v1.10 Keyboard [LITEON Technology USB Keyboard] on usb-0000:15:00.0-10/input0
[    1.931055] ata6: SATA link down (SStatus 0 SControl 300)
[    1.931476] scsi 8:0:0:0: Direct-Access     ATA      CT1000MX500SSD4  020  PQ: 0 ANSI: 5
[    1.933989] sd 8:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    1.933990] sd 8:0:0:0: [sda] 4096-byte physical blocks
[    1.933994] sd 8:0:0:0: [sda] Write Protect is off
[    1.933996] sd 8:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.934000] sd 8:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.935136]  sda: sda1 sda2 sda3
[    1.935630] sd 8:0:0:0: [sda] supports TCG Opal
[    1.935631] sd 8:0:0:0: [sda] Attached SCSI disk
[    1.982840] device-mapper: uevent: version 1.0.3
[    1.982941] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
[   15.423444] random: cryptsetup: uninitialized urandom read (2 bytes read)
[   15.430279] random: cryptsetup: uninitialized urandom read (2 bytes read)
[   15.616276] random: cryptsetup: uninitialized urandom read (2 bytes read)
[   15.741538] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
[   15.743762] random: fast init done
[   15.770493] random: crng init done
[   15.858665] systemd[1]: Inserted module 'autofs4'
[   15.912728] systemd[1]: systemd 240 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[   15.932061] systemd[1]: Detected architecture x86-64.
[   15.936700] systemd[1]: Set hostname to <tokeiihto>.
[   16.024280] systemd[1]: Listening on Journal Socket (/dev/log).
[   16.024359] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[   16.025285] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[   16.025597] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   16.025675] systemd[1]: Listening on udev Kernel Socket.
[   16.025732] systemd[1]: Reached target Remote File Systems.
[   16.028000] systemd[1]: Listening on Process Core Dump Socket.
[   16.048063] lp: driver loaded but no devices found
[   16.048622] EXT4-fs (dm-0): re-mounted. Opts: errors=remount-ro
[   16.050249] ppdev: user-space parallel port driver
[   16.051686] parport_pc 00:04: reported by Plug and Play ACPI
[   16.051859] parport0: PC-style at 0x378, irq 5 [PCSPP]
[   16.137120] acpi_cpufreq: overriding BIOS provided _PSD data
[   16.141811] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input2
[   16.141864] ACPI: Power Button [PWRB]
[   16.141917] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
[   16.141988] ACPI: Power Button [PWRF]
[   16.143772] systemd-journald[304]: Received request to flush runtime journal from PID 1
[   16.152298] lp0: using parport0 (interrupt-driven).
[   16.230337] piix4_smbus 0000:00:14.0: SMBus Host Controller at 0xb00, revision 0
[   16.230338] piix4_smbus 0000:00:14.0: Using register 0x02 for SMBus port selection
[   16.230551] sd 8:0:0:0: Attached scsi generic sg0 type 0
[   16.232225] sp5100_tco: SP5100/SB800 TCO WatchDog Timer Driver
[   16.232281] sp5100-tco sp5100-tco: Using 0xfed80b00 for watchdog MMIO address
[   16.232291] sp5100-tco sp5100-tco: Watchdog hardware is disabled
[   16.232495] libphy: r8169: probed
[   16.232824] r8169 0000:18:00.0 eth0: RTL8168h/8111h, 30:9c:23:04:d6:98, XID 54100800, IRQ 52
[   16.232826] r8169 0000:18:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[   16.235515] usb-storage 3-3:1.0: USB Mass Storage device detected
[   16.235618] scsi host9: usb-storage 3-3:1.0
[   16.235764] usbcore: registered new interface driver usb-storage
[   16.239166] snd_hda_intel 0000:38:00.1: Handle vga_switcheroo audio client
[   16.245822] input: PC Speaker as /devices/platform/pcspkr/input/input4
[   16.246688] EFI Variables Facility v0.08 2004-May-17
[   16.264555] input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:08.1/0000:38:00.1/sound/card0/input5
[   16.264754] input: HD-Audio Generic HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:08.1/0000:38:00.1/sound/card0/input6
[   16.264789] input: HD-Audio Generic HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:08.1/0000:38:00.1/sound/card0/input7
[   16.273675] pstore: Registered efi as persistent store backend
[   16.285658] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC892: line_outs=3 (0x14/0x15/0x16/0x0/0x0) type:line
[   16.285660] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   16.285661] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[   16.285668] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[   16.285668] snd_hda_codec_realtek hdaudioC1D0:    dig-out=0x1e/0x0
[   16.285669] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[   16.285670] snd_hda_codec_realtek hdaudioC1D0:      Front Mic=0x19
[   16.285671] snd_hda_codec_realtek hdaudioC1D0:      Rear Mic=0x18
[   16.285672] snd_hda_codec_realtek hdaudioC1D0:      Line=0x1a
[   16.352537] input: HD-Audio Generic Front Mic as /devices/pci0000:00/0000:00:08.1/0000:38:00.6/sound/card1/input8
[   16.352584] input: HD-Audio Generic Rear Mic as /devices/pci0000:00/0000:00:08.1/0000:38:00.6/sound/card1/input9
[   16.352617] input: HD-Audio Generic Line as /devices/pci0000:00/0000:00:08.1/0000:38:00.6/sound/card1/input10
[   16.352655] input: HD-Audio Generic Line Out Front as /devices/pci0000:00/0000:00:08.1/0000:38:00.6/sound/card1/input11
[   16.352698] input: HD-Audio Generic Line Out Surround as /devices/pci0000:00/0000:00:08.1/0000:38:00.6/sound/card1/input12
[   16.352742] input: HD-Audio Generic Line Out CLFE as /devices/pci0000:00/0000:00:08.1/0000:38:00.6/sound/card1/input13
[   16.352777] input: HD-Audio Generic Front Headphone as /devices/pci0000:00/0000:00:08.1/0000:38:00.6/sound/card1/input14
[   16.354914] [drm] amdgpu kernel modesetting enabled.
[   16.370417] kvm: disabled by bios
[   16.373437] MCE: In-kernel MCE decoding enabled.
[   16.374936] EDAC amd64: Node 0: DRAM ECC disabled.
[   16.374938] EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
                Either enable ECC checking or force module loading by setting 'ecc_enable_override'.
                (Note that use of the override may cause unknown side effects.)
[   16.375505] Parsing CRAT table with 1 nodes
[   16.375509] Creating topology SYSFS entries
[   16.375537] Topology: Add APU node [0x0:0x0]
[   16.375538] Finished initializing topology
[   16.375568] kfd kfd: Initialized module
[   16.376079] checking generic (e0000000 300000) vs hw (e0000000 10000000)
[   16.376081] fb: switching to amdgpudrmfb from EFI VGA
[   16.376097] Console: switching to colour dummy device 80x25
[   16.376324] [drm] initializing kernel modesetting (RAVEN 0x1002:0x15DD 0x1002:0x15DD 0xC8).
[   16.376336] [drm] register mmio base: 0xFE600000
[   16.376337] [drm] register mmio size: 524288
[   16.376351] [drm] add ip block number 0 <soc15_common>
[   16.376351] [drm] add ip block number 1 <gmc_v9_0>
[   16.376352] [drm] add ip block number 2 <vega10_ih>
[   16.376353] [drm] add ip block number 3 <psp>
[   16.376353] [drm] add ip block number 4 <powerplay>
[   16.376354] [drm] add ip block number 5 <dm>
[   16.376355] [drm] add ip block number 6 <gfx_v9_0>
[   16.376356] [drm] add ip block number 7 <sdma_v4_0>
[   16.376356] [drm] add ip block number 8 <vcn_v1_0>
[   16.376966] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_gpu_info.bin
[   16.376995] [drm] VCN decode is enabled in VM mode
[   16.376995] [drm] VCN encode is enabled in VM mode
[   16.376996] [drm] VCN jpeg decode is enabled in VM mode
[   16.380461] r8169 0000:18:00.0 enp24s0: renamed from eth0
[   16.402826] [drm] BIOS signature incorrect 0 0
[   16.402862] ATOM BIOS: 113-RAVEN-107
[   16.402909] [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
[   16.402929] amdgpu 0000:38:00.0: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
[   16.402930] amdgpu 0000:38:00.0: GART: 1024M 0x000000F500000000 - 0x000000F53FFFFFFF
[   16.402934] [drm] Detected VRAM RAM=2048M, BAR=2048M
[   16.402934] [drm] RAM width 128bits DDR4
[   16.412259] [TTM] Zone  kernel: Available graphics memory: 7186208 kiB
[   16.412260] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[   16.412261] [TTM] Initializing pool allocator
[   16.412264] [TTM] Initializing DMA pool allocator
[   16.412330] [drm] amdgpu: 2048M of VRAM memory ready
[   16.412331] [drm] amdgpu: 3072M of GTT memory ready.
[   16.412351] [drm] GART: num cpu pages 262144, num gpu pages 262144
[   16.412543] [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
[   16.414164] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_asd.bin
[   16.414681] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_pfp.bin
[   16.414998] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_me.bin
[   16.415210] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_ce.bin
[   16.415636] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_rlc.bin
[   16.420576] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_mec.bin
[   16.423533] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_mec2.bin
[   16.427321] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_sdma.bin
[   16.427325] [drm] use_doorbell being set to: [true]
[   16.429491] amdgpu 0000:38:00.0: firmware: direct-loading firmware amdgpu/raven_vcn.bin
[   16.429496] [drm] Found VCN firmware Version: 1.73 Family ID: 18
[   16.429506] [drm] PSP loading VCN firmware
[   16.434836] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: errors=remount-ro
[   16.452632] EDAC amd64: Node 0: DRAM ECC disabled.
[   16.452633] EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
                Either enable ECC checking or force module loading by setting 'ecc_enable_override'.
                (Note that use of the override may cause unknown side effects.)
[   16.495921] audit: type=1400 audit(1546246427.648:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=436 comm="apparmor_parser"
[   16.498190] audit: type=1400 audit(1546246427.652:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc" pid=437 comm="apparmor_parser"
[   16.499994] audit: type=1400 audit(1546246427.652:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-oopslash" pid=438 comm="apparmor_parser"
[   16.501236] audit: type=1400 audit(1546246427.656:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=433 comm="apparmor_parser"
[   16.501238] audit: type=1400 audit(1546246427.656:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cupsd" pid=433 comm="apparmor_parser"
[   16.501240] audit: type=1400 audit(1546246427.656:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cupsd//third_party" pid=433 comm="apparmor_parser"
[   16.508625] audit: type=1400 audit(1546246427.656:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=440 comm="apparmor_parser"
[   16.508629] audit: type=1400 audit(1546246427.656:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=440 comm="apparmor_parser"
[   16.508632] audit: type=1400 audit(1546246427.656:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=440 comm="apparmor_parser"
[   16.508634] audit: type=1400 audit(1546246427.660:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cups-browsed" pid=441 comm="apparmor_parser"
[   16.644300] amdgpu: [powerplay] dpm has been enabled
[   16.644380] [drm] DM_PPLIB: values for Invalid clock
[   16.644381] [drm] DM_PPLIB:	 0 in kHz
[   16.644382] [drm] DM_PPLIB:	 400000 in kHz
[   16.644382] [drm] DM_PPLIB:	 933000 in kHz
[   16.644383] [drm] DM_PPLIB:	 1067000 in kHz
[   16.644514] WARNING: CPU: 3 PID: 319 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1372 dcn_bw_update_from_pplib+0x16b/0x280 [amdgpu]
[   16.644515] Modules linked in: nls_ascii nls_cp437 vfat fat edac_mce_amd amdkfd wmi_bmof ccp rng_core kvm irqbypass crct10dif_pclmul amdgpu(+) crc32_pclmul snd_hda_codec_realtek ghash_clmulni_intel snd_hda_codec_generic efi_pstore chash snd_hda_codec_hdmi gpu_sched efivars pcspkr ttm snd_hda_intel drm_kms_helper usb_storage snd_hda_codec sp5100_tco i2c_piix4 sg k10temp snd_hda_core snd_hwdep drm snd_pcm snd_timer r8169 i2c_algo_bit snd soundcore libphy wmi video button pcc_cpufreq acpi_cpufreq parport_pc ppdev lp parport efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic fscrypto ecb dm_crypt dm_mod sd_mod evdev hid_generic usbhid hid crc32c_intel aesni_intel aes_x86_64 crypto_simd cryptd glue_helper ahci libahci xhci_pci xhci_hcd libata usbcore scsi_mod usb_common gpio_amdpt
[   16.644569]  gpio_generic
[   16.644573] CPU: 3 PID: 319 Comm: (worker) Not tainted 4.19.0-1-amd64 #1 Debian 4.19.13-1
[   16.644575] Hardware name: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.I0 11/06/2018
[   16.644679] RIP: 0010:dcn_bw_update_from_pplib+0x16b/0x280 [amdgpu]
[   16.644681] Code: d8 ca d8 f1 d9 5a 50 8b 44 fc 14 49 8b 94 24 78 01 00 00 48 89 04 24 df 2c 24 d8 f1 db 42 78 de c9 de ca de f9 d9 5a 4c eb 02 <0f> 0b 48 89 da be 04 00 00 00 48 89 ef e8 83 55 fe ff 84 c0 0f 84
[   16.644683] RSP: 0018:ffffbd1b41eab790 EFLAGS: 00010246
[   16.644685] RAX: 0000000000000001 RBX: ffffbd1b41eab7f0 RCX: 0000000000000000
[   16.644686] RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff933510ad66a0
[   16.644688] RBP: ffff933506f81100 R08: 0000000000000388 R09: 0000000000000004
[   16.644689] R10: 0000000000000000 R11: 0000000000000001 R12: ffff933505b47000
[   16.644690] R13: ffff93350b4ea700 R14: ffff933505b47000 R15: 0000000000000000
[   16.644692] FS:  00007f295bbbb8c0(0000) GS:ffff933510ac0000(0000) knlGS:0000000000000000
[   16.644693] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   16.644695] CR2: 00007f0e05959ffa CR3: 000000040acfc000 CR4: 00000000003406e0
[   16.644696] Call Trace:
[   16.644705]  ? _cond_resched+0x15/0x30
[   16.644810]  dcn10_create_resource_pool+0x781/0x9d0 [amdgpu]
[   16.644913]  ? dal_aux_engine_dce110_create+0x39/0x70 [amdgpu]
[   16.645011]  dc_create_resource_pool+0x42/0x180 [amdgpu]
[   16.645015]  ? _cond_resched+0x15/0x30
[   16.645018]  ? __kmalloc+0x177/0x210
[   16.645119]  ? dal_gpio_service_create+0x8f/0x110 [amdgpu]
[   16.645216]  dc_create+0x20f/0x620 [amdgpu]
[   16.645319]  dm_hw_init+0xc8/0x130 [amdgpu]
[   16.645416]  amdgpu_device_init.cold.28+0x10ea/0x1295 [amdgpu]
[   16.645499]  amdgpu_driver_load_kms+0x86/0x2c0 [amdgpu]
[   16.645519]  drm_dev_register+0x109/0x140 [drm]
[   16.645601]  amdgpu_pci_probe+0x1ad/0x230 [amdgpu]
[   16.645606]  local_pci_probe+0x41/0x90
[   16.645609]  pci_device_probe+0x189/0x1a0
[   16.645613]  really_probe+0x235/0x3a0
[   16.645615]  driver_probe_device+0xb3/0xf0
[   16.645617]  __driver_attach+0xdd/0x110
[   16.645619]  ? driver_probe_device+0xf0/0xf0
[   16.645622]  bus_for_each_dev+0x76/0xc0
[   16.645625]  ? klist_add_tail+0x3b/0x70
[   16.645628]  bus_add_driver+0x152/0x230
[   16.645630]  ? 0xffffffffc0d38000
[   16.645632]  driver_register+0x6b/0xb0
[   16.645634]  ? 0xffffffffc0d38000
[   16.645637]  do_one_initcall+0x46/0x1c3
[   16.645640]  ? _cond_resched+0x15/0x30
[   16.645642]  ? kmem_cache_alloc_trace+0x155/0x1d0
[   16.645646]  do_init_module+0x5a/0x210
[   16.645649]  load_module+0x215c/0x2380
[   16.645654]  ? __do_sys_finit_module+0xad/0x110
[   16.645656]  __do_sys_finit_module+0xad/0x110
[   16.645660]  do_syscall_64+0x53/0x100
[   16.645664]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   16.645666] RIP: 0033:0x7f295c624319
[   16.645668] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 47 6b 0c 00 f7 d8 64 89 01 48
[   16.645669] RSP: 002b:00007ffcf8dcb198 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[   16.645672] RAX: ffffffffffffffda RBX: 0000558bd1384890 RCX: 00007f295c624319
[   16.645673] RDX: 0000000000000000 RSI: 00007f295c528cad RDI: 0000000000000014
[   16.645674] RBP: 00007f295c528cad R08: 0000000000000000 R09: 0000000000000000
[   16.645675] R10: 0000000000000014 R11: 0000000000000246 R12: 0000000000000000
[   16.645676] R13: 0000558bd1369c90 R14: 0000000000020000 R15: 0000558bd1384890
[   16.645679] ---[ end trace 557abfb30409cf4c ]---
[   16.645682] [drm] DM_PPLIB: values for Invalid clock
[   16.645682] [drm] DM_PPLIB:	 300000 in kHz
[   16.645683] [drm] DM_PPLIB:	 600000 in kHz
[   16.645684] [drm] DM_PPLIB:	 626000 in kHz
[   16.645684] [drm] DM_PPLIB:	 654000 in kHz
[   16.660987] [drm] Display Core initialized with v3.1.59!
[   16.675087] [drm] SADs count is: -2, don't need to read it
[   16.675503] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   16.675504] [drm] Driver supports precise vblank timestamp query.
[   16.701204] [drm] VCN decode and encode initialized successfully.
[   16.702242] kfd kfd: Allocated 3969056 bytes on gart
[   16.702258] Topology: Add APU node [0x15dd:0x1002]
[   16.702424] kfd kfd: added device 1002:15dd
[   16.704083] [drm] fb mappable at 0x61100000
[   16.704084] [drm] vram apper at 0x60000000
[   16.704085] [drm] size 5242880
[   16.704086] [drm] fb depth is 24
[   16.704086] [drm]    pitch is 5120
[   16.704163] fbcon: amdgpudrmfb (fb0) is primary device
[   16.750456] Console: switching to colour frame buffer device 160x64
[   16.769017] amdgpu 0000:38:00.0: fb0: amdgpudrmfb frame buffer device
[   16.788164] amdgpu 0000:38:00.0: ring 0(gfx) uses VM inv eng 4 on hub 0
[   16.788168] amdgpu 0000:38:00.0: ring 1(comp_1.0.0) uses VM inv eng 5 on hub 0
[   16.788170] amdgpu 0000:38:00.0: ring 2(comp_1.1.0) uses VM inv eng 6 on hub 0
[   16.788172] amdgpu 0000:38:00.0: ring 3(comp_1.2.0) uses VM inv eng 7 on hub 0
[   16.788173] amdgpu 0000:38:00.0: ring 4(comp_1.3.0) uses VM inv eng 8 on hub 0
[   16.788175] amdgpu 0000:38:00.0: ring 5(comp_1.0.1) uses VM inv eng 9 on hub 0
[   16.788177] amdgpu 0000:38:00.0: ring 6(comp_1.1.1) uses VM inv eng 10 on hub 0
[   16.788178] amdgpu 0000:38:00.0: ring 7(comp_1.2.1) uses VM inv eng 11 on hub 0
[   16.788180] amdgpu 0000:38:00.0: ring 8(comp_1.3.1) uses VM inv eng 12 on hub 0
[   16.788182] amdgpu 0000:38:00.0: ring 9(kiq_2.1.0) uses VM inv eng 13 on hub 0
[   16.788184] amdgpu 0000:38:00.0: ring 10(sdma0) uses VM inv eng 4 on hub 1
[   16.788186] amdgpu 0000:38:00.0: ring 11(vcn_dec) uses VM inv eng 5 on hub 1
[   16.788187] amdgpu 0000:38:00.0: ring 12(vcn_enc0) uses VM inv eng 6 on hub 1
[   16.788189] amdgpu 0000:38:00.0: ring 13(vcn_enc1) uses VM inv eng 7 on hub 1
[   16.788191] amdgpu 0000:38:00.0: ring 14(vcn_jpeg) uses VM inv eng 8 on hub 1
[   16.791568] [drm] Initialized amdgpu 3.27.0 20150101 for 0000:38:00.0 on minor 0
[   16.946767] IPv6: ADDRCONF(NETDEV_UP): enp24s0: link is not ready
[   16.946970] r8169 0000:18:00.0: firmware: failed to load rtl_nic/rtl8168h-2.fw (-2)
[   16.947006] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[   16.947044] r8169 0000:18:00.0: Direct firmware load for rtl_nic/rtl8168h-2.fw failed with error -2
[   16.947047] r8169 0000:18:00.0 enp24s0: unable to load firmware patch rtl_nic/rtl8168h-2.fw (-2)
[   16.947278] Generic PHY r8169-1800:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=r8169-1800:00, irq=IGNORE)
[   17.046744] IPv6: ADDRCONF(NETDEV_UP): enp24s0: link is not ready
[   17.249513] scsi 9:0:0:0: CD-ROM            ASUS     SDRW-08U9M-U     B101 PQ: 0 ANSI: 0
[   17.249741] scsi 9:0:0:0: Attached scsi generic sg1 type 5
[   17.266108] sr 9:0:0:0: Power-on or device reset occurred
[   17.277664] sr 9:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
[   17.277668] cdrom: Uniform CD-ROM driver Revision: 3.20
[   17.278094] sr 9:0:0:0: Attached scsi CD-ROM sr0
[   20.718082] r8169 0000:18:00.0 enp24s0: Link is Up - 1Gbps/Full - flow control rx/tx
[   20.718091] IPv6: ADDRCONF(NETDEV_CHANGE): enp24s0: link becomes ready
[  310.040081] PM: suspend entry (deep)
[  310.040083] PM: Syncing filesystems ... done.
[  310.042240] Freezing user space processes ... (elapsed 0.030 seconds) done.
[  310.072751] OOM killer disabled.
[  310.072752] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  310.073878] Suspending console(s) (use no_console_suspend to debug)
[  310.074833] serial 00:05: disabled
[  310.074999] parport_pc 00:04: disabled
[  310.121235] sd 8:0:0:0: [sda] Synchronizing SCSI cache
[  310.121297] sd 8:0:0:0: [sda] Stopping disk
[  310.264816] ACPI: Preparing to enter system sleep state S3
[  310.601066] PM: Saving platform NVS memory
[  310.601137] Disabling non-boot CPUs ...
[  310.617964] smpboot: CPU 1 is now offline
[  310.633854] smpboot: CPU 2 is now offline
[  310.650099] smpboot: CPU 3 is now offline
[  310.652654] ACPI: Low-level resume complete
[  310.652704] PM: Restoring platform NVS memory
[  310.759774] Enabling non-boot CPUs ...
[  310.759806] x86: Booting SMP configuration:
[  310.759806] smpboot: Booting Node 0 Processor 1 APIC 0x1
[  310.762244]  cache: parent cpu1 should not be sleeping
[  310.762340] microcode: CPU1: patch_level=0x0810100b
[  310.762444] CPU1 is up
[  310.762453] smpboot: Booting Node 0 Processor 2 APIC 0x2
[  310.765096]  cache: parent cpu2 should not be sleeping
[  310.765188] microcode: CPU2: patch_level=0x0810100b
[  310.765284] CPU2 is up
[  310.765292] smpboot: Booting Node 0 Processor 3 APIC 0x3
[  310.767736]  cache: parent cpu3 should not be sleeping
[  310.767839] microcode: CPU3: patch_level=0x0810100b
[  310.767945] CPU3 is up
[  310.768286] ACPI: Waking up from system sleep state S3
[  310.848395] usb usb1: root hub lost power or was reset
[  310.848399] usb usb2: root hub lost power or was reset
[  310.850101] parport_pc 00:04: activated
[  310.850457] [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
[  310.850501] [drm] PSP is resuming...
[  310.850643] serial 00:05: activated
[  310.859056] sd 8:0:0:0: [sda] Starting disk
[  311.060607] amdgpu: [powerplay] dpm has been enabled
[  311.077052] [drm] SADs count is: -2, don't need to read it
[  311.161399] ata5: SATA link down (SStatus 0 SControl 300)
[  311.161931] ata6: SATA link down (SStatus 0 SControl 300)
[  311.162972] ata2: SATA link down (SStatus 0 SControl 300)
[  311.164519] ata1: SATA link down (SStatus 0 SControl 300)
[  311.165507] [drm] VCN decode and encode initialized successfully.
[  311.165531] amdgpu 0000:38:00.0: ring 0(gfx) uses VM inv eng 4 on hub 0
[  311.165532] amdgpu 0000:38:00.0: ring 1(comp_1.0.0) uses VM inv eng 5 on hub 0
[  311.165533] amdgpu 0000:38:00.0: ring 2(comp_1.1.0) uses VM inv eng 6 on hub 0
[  311.165533] amdgpu 0000:38:00.0: ring 3(comp_1.2.0) uses VM inv eng 7 on hub 0
[  311.165534] amdgpu 0000:38:00.0: ring 4(comp_1.3.0) uses VM inv eng 8 on hub 0
[  311.165535] amdgpu 0000:38:00.0: ring 5(comp_1.0.1) uses VM inv eng 9 on hub 0
[  311.165536] amdgpu 0000:38:00.0: ring 6(comp_1.1.1) uses VM inv eng 10 on hub 0
[  311.165537] amdgpu 0000:38:00.0: ring 7(comp_1.2.1) uses VM inv eng 11 on hub 0
[  311.165538] amdgpu 0000:38:00.0: ring 8(comp_1.3.1) uses VM inv eng 12 on hub 0
[  311.165539] amdgpu 0000:38:00.0: ring 9(kiq_2.1.0) uses VM inv eng 13 on hub 0
[  311.165540] amdgpu 0000:38:00.0: ring 10(sdma0) uses VM inv eng 4 on hub 1
[  311.165541] amdgpu 0000:38:00.0: ring 11(vcn_dec) uses VM inv eng 5 on hub 1
[  311.165542] amdgpu 0000:38:00.0: ring 12(vcn_enc0) uses VM inv eng 6 on hub 1
[  311.165543] amdgpu 0000:38:00.0: ring 13(vcn_enc1) uses VM inv eng 7 on hub 1
[  311.165544] amdgpu 0000:38:00.0: ring 14(vcn_jpeg) uses VM inv eng 8 on hub 1
[  311.335165] ata9: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  311.336082] ata9.00: supports DRM functions and may not be fully accessible
[  311.337070] ata9.00: supports DRM functions and may not be fully accessible
[  311.337770] ata9.00: configured for UDMA/133
[  311.395629] usb 1-10: reset low-speed USB device number 3 using xhci_hcd
[  312.031001] usb 1-7: reset low-speed USB device number 2 using xhci_hcd
[  312.433371] acpi LNXPOWER:01: Turning OFF
[  312.433407] OOM killer enabled.
[  312.433408] Restarting tasks ... done.
[  312.434377] PM: suspend exit
[  312.511787] IPv6: ADDRCONF(NETDEV_UP): enp24s0: link is not ready
[  312.512778] Generic PHY r8169-1800:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=r8169-1800:00, irq=IGNORE)
[  312.612523] IPv6: ADDRCONF(NETDEV_UP): enp24s0: link is not ready
[  316.243747] r8169 0000:18:00.0 enp24s0: Link is Up - 1Gbps/Full - flow control rx/tx
[  316.243759] IPv6: ADDRCONF(NETDEV_CHANGE): enp24s0: link becomes ready
[  322.158012] fuse init (API version 7.27)
[ 1119.431324] TCP: enp24s0: Driver has suspect GRO implementation, TCP performance may be compromised.

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

* Re: tsc: Fast TSC calibration failed with AMD B350M/Ryzen 3 2200G
  2018-12-31 10:02 tsc: Fast TSC calibration failed with AMD B350M/Ryzen 3 2200G Paul Menzel
@ 2019-01-07 15:24 ` Thomas Gleixner
  2019-01-07 15:33   ` Paul Menzel
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas Gleixner @ 2019-01-07 15:24 UTC (permalink / raw)
  To: Paul Menzel; +Cc: x86, LKML

Paul,

On Mon, 31 Dec 2018, Paul Menzel wrote:

> Linux 4.19.13 from Debian Sid/unstable logs the message below on the board MSI
> MS-7A37/B350M MORTAR with the processor AMD Ryzen 3 2200G.
> 
> As a result, the early time stamps do not seem to be working.

> > [    0.000000] DMI: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR
> > (MS-7A37), BIOS 1.I0 11/06/2018
> > [    0.000000] tsc: Fast TSC calibration failed

And the further boot log says:

[    0.036000] tsc: Unable to calibrate against PIT
[    0.036000] tsc: using HPET reference calibration
[    0.036000] tsc: Detected 3500.117 MHz processor

So the quick calibration in early boot fails because the PIT seems not to
do what the kernel expects. Nothing we can cure :(

Thanks,

	tglx



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

* Re: tsc: Fast TSC calibration failed with AMD B350M/Ryzen 3 2200G
  2019-01-07 15:24 ` Thomas Gleixner
@ 2019-01-07 15:33   ` Paul Menzel
  2019-01-11 20:43     ` Thomas Gleixner
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Menzel @ 2019-01-07 15:33 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: x86, LKML

[-- Attachment #1: Type: text/plain, Size: 1000 bytes --]

Dear Thomas,


On 01/07/19 16:24, Thomas Gleixner wrote:

> On Mon, 31 Dec 2018, Paul Menzel wrote:
> 
>> Linux 4.19.13 from Debian Sid/unstable logs the message below on the board MSI
>> MS-7A37/B350M MORTAR with the processor AMD Ryzen 3 2200G.
>>
>> As a result, the early time stamps do not seem to be working.
> 
>>> [    0.000000] DMI: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.I0 11/06/2018
>>> [    0.000000] tsc: Fast TSC calibration failed
> 
> And the further boot log says:
> 
> [    0.036000] tsc: Unable to calibrate against PIT
> [    0.036000] tsc: using HPET reference calibration
> [    0.036000] tsc: Detected 3500.117 MHz processor
> 
> So the quick calibration in early boot fails because the PIT seems not to
> do what the kernel expects. Nothing we can cure :(

I see. Can AMD confirm that this is the expected behavior? If yes, should
the fast TSC calibration be skipped on these devices?


Kind regards,

Paul


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]

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

* Re: tsc: Fast TSC calibration failed with AMD B350M/Ryzen 3 2200G
  2019-01-07 15:33   ` Paul Menzel
@ 2019-01-11 20:43     ` Thomas Gleixner
  2019-01-14 10:09       ` Paul Menzel
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas Gleixner @ 2019-01-11 20:43 UTC (permalink / raw)
  To: Paul Menzel; +Cc: x86, LKML

Paul,

On Mon, 7 Jan 2019, Paul Menzel wrote:
> On 01/07/19 16:24, Thomas Gleixner wrote:
> >> Linux 4.19.13 from Debian Sid/unstable logs the message below on the board MSI
> >> MS-7A37/B350M MORTAR with the processor AMD Ryzen 3 2200G.
> >>
> >> As a result, the early time stamps do not seem to be working.
> > 
> >>> [    0.000000] DMI: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.I0 11/06/2018
> >>> [    0.000000] tsc: Fast TSC calibration failed
> > 
> > And the further boot log says:
> > 
> > [    0.036000] tsc: Unable to calibrate against PIT
> > [    0.036000] tsc: using HPET reference calibration
> > [    0.036000] tsc: Detected 3500.117 MHz processor
> > 
> > So the quick calibration in early boot fails because the PIT seems not to
> > do what the kernel expects. Nothing we can cure :(
> 
> I see. Can AMD confirm that this is the expected behavior? If yes, should
> the fast TSC calibration be skipped on these devices?

It should work and we really don't want to add cpu family/model based
decisions whether we invoke something or not. Those tables are stale before
they hit mainline.

Thanks,

	tglx

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

* Re: tsc: Fast TSC calibration failed with AMD B350M/Ryzen 3 2200G
  2019-01-11 20:43     ` Thomas Gleixner
@ 2019-01-14 10:09       ` Paul Menzel
  2019-01-22 16:53         ` Paul Menzel
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Menzel @ 2019-01-14 10:09 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: x86, LKML

[-- Attachment #1: Type: text/plain, Size: 2602 bytes --]

Dear Thomas,


On 01/11/19 21:43, Thomas Gleixner wrote:

> On Mon, 7 Jan 2019, Paul Menzel wrote:
>> On 01/07/19 16:24, Thomas Gleixner wrote:
>>>> Linux 4.19.13 from Debian Sid/unstable logs the message below on the board MSI
>>>> MS-7A37/B350M MORTAR with the processor AMD Ryzen 3 2200G.
>>>>
>>>> As a result, the early time stamps do not seem to be working.
>>>
>>>>> [    0.000000] DMI: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.I0 11/06/2018
>>>>> [    0.000000] tsc: Fast TSC calibration failed
>>>
>>> And the further boot log says:
>>>
>>> [    0.036000] tsc: Unable to calibrate against PIT
>>> [    0.036000] tsc: using HPET reference calibration
>>> [    0.036000] tsc: Detected 3500.117 MHz processor
>>>
>>> So the quick calibration in early boot fails because the PIT seems not to
>>> do what the kernel expects. Nothing we can cure :(
>>
>> I see. Can AMD confirm that this is the expected behavior? If yes, should
>> the fast TSC calibration be skipped on these devices?
> 
> It should work and we really don't want to add cpu family/model based
> decisions whether we invoke something or not. Those tables are stale before
> they hit mainline.

Understood. If it’s supposed to work, any hints on how to debug this?

Does some Linux kernel developers have an AMD Ryzen system, and can reproduce
the issue?

It seems to fail with an AMD Ryzen 2400G too [1].

It also fails on an AMD Ryzen 7 1700 [2].

```
[ 0.000000] Linux version 4.15.0-kali3-amd64 (devel@kali.org) (gcc version 7.3.0 (Debian 7.3.0-16)) #1 SMP Debian 4.15.17-1kali1 (2018-04-25)
[…]
[ 0.008000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.028000] tsc: Fast TSC calibration failed
[ 0.032000] tsc: PIT calibration matches HPET. 1 loops
[ 0.032000] tsc: Detected 2994.246 MHz processor
[…]
[ 0.044000] smpboot: CPU0: AMD Ryzen 7 1700 Eight-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
```

It *works* here on one system with AMD Ryzen 5 PRO 1500 and Linux 4.14.87.

```
[    0.000000] Linux version 4.14.87.mx64.236 (root@likearollingstone.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 10 09:48:57 CET 2018
[…]
[    0.000000] tsc: Fast TSC calibration using PIT
[…]
[    0.035000] smpboot: CPU0: AMD Ryzen 5 PRO 1500 Quad-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
```


Kind regards,

Paul


[1]: https://bbs.archlinux.org/viewtopic.php?pid=1781282#p1781282
[2]: https://forums.kali.org/showthread.php?40444-error-loading-amdgpu-drivers-AMD-RX580-driver


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]

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

* Re: tsc: Fast TSC calibration failed with AMD B350M/Ryzen 3 2200G
  2019-01-14 10:09       ` Paul Menzel
@ 2019-01-22 16:53         ` Paul Menzel
  2019-01-22 20:24           ` Lendacky, Thomas
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Menzel @ 2019-01-22 16:53 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: x86, LKML, Tom Lendacky

[-- Attachment #1: Type: text/plain, Size: 3658 bytes --]

[Adding Tom to CC]

Dear Thomas, dear Tom,


On 01/14/19 11:09, Paul Menzel wrote:

> On 01/11/19 21:43, Thomas Gleixner wrote:
> 
>> On Mon, 7 Jan 2019, Paul Menzel wrote:
>>> On 01/07/19 16:24, Thomas Gleixner wrote:
>>>>> Linux 4.19.13 from Debian Sid/unstable logs the message below on the board MSI
>>>>> MS-7A37/B350M MORTAR with the processor AMD Ryzen 3 2200G.
>>>>>
>>>>> As a result, the early time stamps do not seem to be working.
>>>>
>>>>>> [    0.000000] DMI: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.I0 11/06/2018
>>>>>> [    0.000000] tsc: Fast TSC calibration failed
>>>>
>>>> And the further boot log says:
>>>>
>>>> [    0.036000] tsc: Unable to calibrate against PIT
>>>> [    0.036000] tsc: using HPET reference calibration
>>>> [    0.036000] tsc: Detected 3500.117 MHz processor
>>>>
>>>> So the quick calibration in early boot fails because the PIT seems not to
>>>> do what the kernel expects. Nothing we can cure :(
>>>
>>> I see. Can AMD confirm that this is the expected behavior? If yes, should
>>> the fast TSC calibration be skipped on these devices?
>>
>> It should work and we really don't want to add cpu family/model based
>> decisions whether we invoke something or not. Those tables are stale before
>> they hit mainline.
> 
> Understood. If it’s supposed to work, any hints on how to debug this?
> 
> Does some Linux kernel developers have an AMD Ryzen system, and can reproduce
> the issue?
> 
> It seems to fail with an AMD Ryzen 2400G too [1].

We now have an HP EliteDesk 705 G4 MT with that processsor, showing the same
problem.

```
[    0.000000] Linux version 4.20.0.mx64.238 (root@elcattivo.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 24 14:50:00 CET 2018
[…]
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 3.1 present.
[    0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.01 09/14/2018
[    0.000000] tsc: Fast TSC calibration failed
[    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[…]
[    0.017860] smpboot: CPU0: AMD Ryzen 5 PRO 2400G with Radeon Vega Graphics (family: 0x17, model: 0x11, stepping: 0x0)
[…]
```

> It also fails on an AMD Ryzen 7 1700 [2].
> 
> ```
> [ 0.000000] Linux version 4.15.0-kali3-amd64 (devel@kali.org) (gcc version 7.3.0 (Debian 7.3.0-16)) #1 SMP Debian 4.15.17-1kali1 (2018-04-25)
> […]
> [ 0.008000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
> [ 0.028000] tsc: Fast TSC calibration failed
> [ 0.032000] tsc: PIT calibration matches HPET. 1 loops
> [ 0.032000] tsc: Detected 2994.246 MHz processor
> […]
> [ 0.044000] smpboot: CPU0: AMD Ryzen 7 1700 Eight-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
> ```
> 
> It *works* here on one system with AMD Ryzen 5 PRO 1500 and Linux 4.14.87.
> 
> ```
> [    0.000000] Linux version 4.14.87.mx64.236 (root@likearollingstone.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 10 09:48:57 CET 2018
> […]
> [    0.000000] tsc: Fast TSC calibration using PIT
> […]
> [    0.035000] smpboot: CPU0: AMD Ryzen 5 PRO 1500 Quad-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
> ```

How to continue from here? Is documentation for that available from AMD?
I didn’t find a BKDG (Bios Kernel Developer Guide) at [3].


Kind regards,

Paul


> [1]: https://bbs.archlinux.org/viewtopic.php?pid=1781282#p1781282
> [2]: https://forums.kali.org/showthread.php?40444-error-loading-amdgpu-drivers-AMD-RX580-driver[3]: https://developer.amd.com/resources/developer-guides-manuals/


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]

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

* Re: tsc: Fast TSC calibration failed with AMD B350M/Ryzen 3 2200G
  2019-01-22 16:53         ` Paul Menzel
@ 2019-01-22 20:24           ` Lendacky, Thomas
  2019-01-23 12:56             ` tsc: Fast TSC calibration failed with sever AMD Ryzen processor (2200G, 2400G, Ryzen 7 1700) Paul Menzel
  0 siblings, 1 reply; 10+ messages in thread
From: Lendacky, Thomas @ 2019-01-22 20:24 UTC (permalink / raw)
  To: Paul Menzel, Thomas Gleixner; +Cc: x86, LKML

On 1/22/19 10:53 AM, Paul Menzel wrote:
> [Adding Tom to CC]
> 
> Dear Thomas, dear Tom,
> 
> 
> On 01/14/19 11:09, Paul Menzel wrote:
> 
>> On 01/11/19 21:43, Thomas Gleixner wrote:
>>
>>> On Mon, 7 Jan 2019, Paul Menzel wrote:
>>>> On 01/07/19 16:24, Thomas Gleixner wrote:
>>>>>> Linux 4.19.13 from Debian Sid/unstable logs the message below on the board MSI
>>>>>> MS-7A37/B350M MORTAR with the processor AMD Ryzen 3 2200G.
>>>>>>
>>>>>> As a result, the early time stamps do not seem to be working.
>>>>>
>>>>>>> [    0.000000] DMI: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.I0 11/06/2018
>>>>>>> [    0.000000] tsc: Fast TSC calibration failed
>>>>>
>>>>> And the further boot log says:
>>>>>
>>>>> [    0.036000] tsc: Unable to calibrate against PIT
>>>>> [    0.036000] tsc: using HPET reference calibration
>>>>> [    0.036000] tsc: Detected 3500.117 MHz processor
>>>>>
>>>>> So the quick calibration in early boot fails because the PIT seems not to
>>>>> do what the kernel expects. Nothing we can cure :(
>>>>
>>>> I see. Can AMD confirm that this is the expected behavior? If yes, should
>>>> the fast TSC calibration be skipped on these devices?

Hi Paul,

It's not expected behavior. All of the systems that I have access to do
not exhibit this issue. Having said that, I have a limited number of
systems available to me.

I don't have much experience in this area, but if it is something that
consistently occurs, you might try to see if you can better identify why
it fails. The message is issued in pit_hpet_ptimer_calibrate_cpu() in file
arch/x86/kernel/tsc.c.

Thanks,
Tom

>>>
>>> It should work and we really don't want to add cpu family/model based
>>> decisions whether we invoke something or not. Those tables are stale before
>>> they hit mainline.
>>
>> Understood. If it’s supposed to work, any hints on how to debug this?
>>
>> Does some Linux kernel developers have an AMD Ryzen system, and can reproduce
>> the issue?
>>
>> It seems to fail with an AMD Ryzen 2400G too [1].
> 
> We now have an HP EliteDesk 705 G4 MT with that processsor, showing the same
> problem.
> 
> ```
> [    0.000000] Linux version 4.20.0.mx64.238 (root@elcattivo.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 24 14:50:00 CET 2018
> […]
> [    0.000000] NX (Execute Disable) protection: active
> [    0.000000] SMBIOS 3.1 present.
> [    0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.01 09/14/2018
> [    0.000000] tsc: Fast TSC calibration failed
> [    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
> […]
> [    0.017860] smpboot: CPU0: AMD Ryzen 5 PRO 2400G with Radeon Vega Graphics (family: 0x17, model: 0x11, stepping: 0x0)
> […]
> ```
> 
>> It also fails on an AMD Ryzen 7 1700 [2].
>>
>> ```
>> [ 0.000000] Linux version 4.15.0-kali3-amd64 (devel@kali.org) (gcc version 7.3.0 (Debian 7.3.0-16)) #1 SMP Debian 4.15.17-1kali1 (2018-04-25)
>> […]
>> [ 0.008000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
>> [ 0.028000] tsc: Fast TSC calibration failed
>> [ 0.032000] tsc: PIT calibration matches HPET. 1 loops
>> [ 0.032000] tsc: Detected 2994.246 MHz processor
>> […]
>> [ 0.044000] smpboot: CPU0: AMD Ryzen 7 1700 Eight-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
>> ```
>>
>> It *works* here on one system with AMD Ryzen 5 PRO 1500 and Linux 4.14.87.
>>
>> ```
>> [    0.000000] Linux version 4.14.87.mx64.236 (root@likearollingstone.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 10 09:48:57 CET 2018
>> […]
>> [    0.000000] tsc: Fast TSC calibration using PIT
>> […]
>> [    0.035000] smpboot: CPU0: AMD Ryzen 5 PRO 1500 Quad-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
>> ```
> 
> How to continue from here? Is documentation for that available from AMD?
> I didn’t find a BKDG (Bios Kernel Developer Guide) at [3].
> 
> 
> Kind regards,
> 
> Paul
> 
> 
>> [1]: https://bbs.archlinux.org/viewtopic.php?pid=1781282#p1781282
>> [2]: https://forums.kali.org/showthread.php?40444-error-loading-amdgpu-drivers-AMD-RX580-driver[3]: https://developer.amd.com/resources/developer-guides-manuals/
> 

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

* Re: tsc: Fast TSC calibration failed with sever AMD Ryzen processor (2200G, 2400G, Ryzen 7 1700)
  2019-01-22 20:24           ` Lendacky, Thomas
@ 2019-01-23 12:56             ` Paul Menzel
  2019-01-23 23:33               ` Lendacky, Thomas
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Menzel @ 2019-01-23 12:56 UTC (permalink / raw)
  To: Thomas Lendacky; +Cc: Thomas Gleixner, x86, LKML


[-- Attachment #1.1: Type: text/plain, Size: 5729 bytes --]

Dear Tom,


On 01/22/19 21:24, Lendacky, Thomas wrote:
> On 1/22/19 10:53 AM, Paul Menzel wrote:
>> [Adding Tom to CC]

>> On 01/14/19 11:09, Paul Menzel wrote:
>>
>>> On 01/11/19 21:43, Thomas Gleixner wrote:
>>>
>>>> On Mon, 7 Jan 2019, Paul Menzel wrote:
>>>>> On 01/07/19 16:24, Thomas Gleixner wrote:
>>>>>>> Linux 4.19.13 from Debian Sid/unstable logs the message below on the board MSI
>>>>>>> MS-7A37/B350M MORTAR with the processor AMD Ryzen 3 2200G.
>>>>>>>
>>>>>>> As a result, the early time stamps do not seem to be working.
>>>>>>
>>>>>>>> [    0.000000] DMI: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.I0 11/06/2018
>>>>>>>> [    0.000000] tsc: Fast TSC calibration failed
>>>>>>
>>>>>> And the further boot log says:
>>>>>>
>>>>>> [    0.036000] tsc: Unable to calibrate against PIT
>>>>>> [    0.036000] tsc: using HPET reference calibration
>>>>>> [    0.036000] tsc: Detected 3500.117 MHz processor
>>>>>>
>>>>>> So the quick calibration in early boot fails because the PIT seems not to
>>>>>> do what the kernel expects. Nothing we can cure :(
>>>>>
>>>>> I see. Can AMD confirm that this is the expected behavior? If yes, should
>>>>> the fast TSC calibration be skipped on these devices?

> It's not expected behavior. All of the systems that I have access to do
> not exhibit this issue. Having said that, I have a limited number of
> systems available to me.

But as a data point, what Ryzen systems did you test with? Just to know, if
there are configurations where the same processor behaves inconsistently.

Can you request one of the failing systems mentioned below to reproduce the
problem?

> I don't have much experience in this area, but if it is something that
> consistently occurs, you might try to see if you can better identify why
> it fails. The message is issued in pit_hpet_ptimer_calibrate_cpu() in file
> arch/x86/kernel/tsc.c.

With the attached patch applied, I get:

    [    0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i = 42
    [    0.000000] tsc: Fast TSC calibration failed, i = 42
    [    0.000000] tsc: Using PIT calibration value

The functions `pit_verify_msb()` and `pit_expect_msb()` are:

```
static inline int pit_verify_msb(unsigned char val)
{
        /* Ignore LSB */
        inb(0x42);
        return inb(0x42) == val;
}

static inline int pit_expect_msb(unsigned char val, u64 *tscp, unsigned long *deltap)
{
        int count;
        u64 tsc = 0, prev_tsc = 0;

        for (count = 0; count < 50000; count++) {
                if (!pit_verify_msb(val))
                        break;
                prev_tsc = tsc;
                tsc = get_cycles();
        }
        *deltap = get_cycles() - prev_tsc;
        *tscp = tsc;

        /*
         * We require _some_ success, but the quality control
         * will be based on the error terms on the TSC values.
         */
        return count > 5;
}
```

So count is smaller than or equal to 5, and `pit_verify_msb(val)` failed early,
right?

>>>> It should work and we really don't want to add cpu family/model based
>>>> decisions whether we invoke something or not. Those tables are stale before
>>>> they hit mainline.
>>>
>>> Understood. If it’s supposed to work, any hints on how to debug this?
>>>
>>> Does some Linux kernel developers have an AMD Ryzen system, and can reproduce
>>> the issue?
>>>
>>> It seems to fail with an AMD Ryzen 2400G too [1].
>>
>> We now have an HP EliteDesk 705 G4 MT with that processsor, showing the same
>> problem.
>>
>> ```
>> [    0.000000] Linux version 4.20.0.mx64.238 (root@elcattivo.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 24 14:50:00 CET 2018
>> […]
>> [    0.000000] NX (Execute Disable) protection: active
>> [    0.000000] SMBIOS 3.1 present.
>> [    0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.01 09/14/2018
>> [    0.000000] tsc: Fast TSC calibration failed
>> [    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
>> […]
>> [    0.017860] smpboot: CPU0: AMD Ryzen 5 PRO 2400G with Radeon Vega Graphics (family: 0x17, model: 0x11, stepping: 0x0)
>> […]
>> ```
>>
>>> It also fails on an AMD Ryzen 7 1700 [2].
>>>
>>> ```
>>> [ 0.000000] Linux version 4.15.0-kali3-amd64 (devel@kali.org) (gcc version 7.3.0 (Debian 7.3.0-16)) #1 SMP Debian 4.15.17-1kali1 (2018-04-25)
>>> […]
>>> [ 0.008000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
>>> [ 0.028000] tsc: Fast TSC calibration failed
>>> [ 0.032000] tsc: PIT calibration matches HPET. 1 loops
>>> [ 0.032000] tsc: Detected 2994.246 MHz processor
>>> […]
>>> [ 0.044000] smpboot: CPU0: AMD Ryzen 7 1700 Eight-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
>>> ```
>>>
>>> It *works* here on one system with AMD Ryzen 5 PRO 1500 and Linux 4.14.87.
>>>
>>> ```
>>> [    0.000000] Linux version 4.14.87.mx64.236 (root@likearollingstone.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 10 09:48:57 CET 2018
>>> […]
>>> [    0.000000] tsc: Fast TSC calibration using PIT
>>> […]
>>> [    0.035000] smpboot: CPU0: AMD Ryzen 5 PRO 1500 Quad-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
>>> ```
>>
>> How to continue from here? Is documentation for that available from AMD?
>> I didn’t find a BKDG (Bios Kernel Developer Guide) at [3].


Kind regards,

Paul


>>> [1]: https://bbs.archlinux.org/viewtopic.php?pid=1781282#p1781282
>>> [2]: https://forums.kali.org/showthread.php?40444-error-loading-amdgpu-drivers-AMD-RX580-driver[3]: https://developer.amd.com/resources/developer-guides-manuals/

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-x86-kernel-tsc-Debug-early-TSC-calibration.patch --]
[-- Type: text/x-patch; name="0001-x86-kernel-tsc-Debug-early-TSC-calibration.patch", Size: 1414 bytes --]

From af43aa1191dd7abcfece56b712966bb19df94653 Mon Sep 17 00:00:00 2001
From: Paul Menzel <pmenzel@molgen.mpg.de>
Date: Wed, 23 Jan 2019 00:24:37 +0100
Subject: [PATCH] x86/kernel/tsc: Debug early TSC calibration

Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
---
 arch/x86/kernel/tsc.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index e9f777bfed40..28d0b4b29668 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -549,8 +549,10 @@ static unsigned long quick_pit_calibrate(void)
 
 	if (pit_expect_msb(0xff, &tsc, &d1)) {
 		for (i = 1; i <= MAX_QUICK_PIT_ITERATIONS; i++) {
-			if (!pit_expect_msb(0xff-i, &delta, &d2))
+			if (!pit_expect_msb(0xff-i, &delta, &d2)) {
+				pr_err("%s: break in if !pit_expect_msb, i = %d\n", __func__, i);
 				break;
+			}
 
 			delta -= tsc;
 
@@ -575,12 +577,14 @@ static unsigned long quick_pit_calibrate(void)
 			 * This also guarantees serialization of the
 			 * last cycle read ('d2') in pit_expect_msb.
 			 */
-			if (!pit_verify_msb(0xfe - i))
+			if (!pit_verify_msb(0xfe - i)) {
+				pr_err("%s: break in if !pit_verify_msb\n", __func__);
 				break;
+			}
 			goto success;
 		}
 	}
-	pr_info("Fast TSC calibration failed\n");
+	pr_info("Fast TSC calibration failed, i = %d\n", i);
 	return 0;
 
 success:
-- 
2.20.1


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]

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

* Re: tsc: Fast TSC calibration failed with sever AMD Ryzen processor (2200G, 2400G, Ryzen 7 1700)
  2019-01-23 12:56             ` tsc: Fast TSC calibration failed with sever AMD Ryzen processor (2200G, 2400G, Ryzen 7 1700) Paul Menzel
@ 2019-01-23 23:33               ` Lendacky, Thomas
  2019-01-28 16:05                 ` Paul Menzel
  0 siblings, 1 reply; 10+ messages in thread
From: Lendacky, Thomas @ 2019-01-23 23:33 UTC (permalink / raw)
  To: Paul Menzel; +Cc: Thomas Gleixner, x86, LKML

On 1/23/19 6:56 AM, Paul Menzel wrote:
> Dear Tom,
> 
> 
> On 01/22/19 21:24, Lendacky, Thomas wrote:
>> On 1/22/19 10:53 AM, Paul Menzel wrote:
>>> [Adding Tom to CC]
> 
>>> On 01/14/19 11:09, Paul Menzel wrote:
>>>
>>>> On 01/11/19 21:43, Thomas Gleixner wrote:
>>>>
>>>>> On Mon, 7 Jan 2019, Paul Menzel wrote:
>>>>>> On 01/07/19 16:24, Thomas Gleixner wrote:
>>>>>>>> Linux 4.19.13 from Debian Sid/unstable logs the message below on the board MSI
>>>>>>>> MS-7A37/B350M MORTAR with the processor AMD Ryzen 3 2200G.
>>>>>>>>
>>>>>>>> As a result, the early time stamps do not seem to be working.
>>>>>>>
>>>>>>>>> [    0.000000] DMI: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.I0 11/06/2018
>>>>>>>>> [    0.000000] tsc: Fast TSC calibration failed
>>>>>>>
>>>>>>> And the further boot log says:
>>>>>>>
>>>>>>> [    0.036000] tsc: Unable to calibrate against PIT
>>>>>>> [    0.036000] tsc: using HPET reference calibration
>>>>>>> [    0.036000] tsc: Detected 3500.117 MHz processor
>>>>>>>
>>>>>>> So the quick calibration in early boot fails because the PIT seems not to
>>>>>>> do what the kernel expects. Nothing we can cure :(
>>>>>>
>>>>>> I see. Can AMD confirm that this is the expected behavior? If yes, should
>>>>>> the fast TSC calibration be skipped on these devices?
> 
>> It's not expected behavior. All of the systems that I have access to do
>> not exhibit this issue. Having said that, I have a limited number of
>> systems available to me.
> 
> But as a data point, what Ryzen systems did you test with? Just to know, if
> there are configurations where the same processor behaves inconsistently.
> 
> Can you request one of the failing systems mentioned below to reproduce the
> problem?
> 
>> I don't have much experience in this area, but if it is something that
>> consistently occurs, you might try to see if you can better identify why
>> it fails. The message is issued in pit_hpet_ptimer_calibrate_cpu() in file
>> arch/x86/kernel/tsc.c.
> 
> With the attached patch applied, I get:
> 
>     [    0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i = 42
>     [    0.000000] tsc: Fast TSC calibration failed, i = 42
>     [    0.000000] tsc: Using PIT calibration value
> 
> The functions `pit_verify_msb()` and `pit_expect_msb()` are:
> 
> ```
> static inline int pit_verify_msb(unsigned char val)
> {
>         /* Ignore LSB */
>         inb(0x42);
>         return inb(0x42) == val;
> }
> 
> static inline int pit_expect_msb(unsigned char val, u64 *tscp, unsigned long *deltap)
> {
>         int count;
>         u64 tsc = 0, prev_tsc = 0;
> 
>         for (count = 0; count < 50000; count++) {
>                 if (!pit_verify_msb(val))
>                         break;
>                 prev_tsc = tsc;
>                 tsc = get_cycles();
>         }
>         *deltap = get_cycles() - prev_tsc;
>         *tscp = tsc;
> 
>         /*
>          * We require _some_ success, but the quality control
>          * will be based on the error terms on the TSC values.
>          */
>         return count > 5;
> }
> ```
> 
> So count is smaller than or equal to 5, and `pit_verify_msb(val)` failed early,
> right?

Depends on what you mean by "failed early." The loop iterated 42 times
as it tried to reach the acceptable error rate, so pit_expect_msb() had
succeeded a number of times before failing.

One of the things I noticed while searching for info on the PIT is that
one of the specs [1] mentioned that just reading the counter values (as
opposed to using the counter latch command or the read-back command) could
return undefined values if the counters are being updated while being
read. I'm not sure if that is what is occurring or if that matters in
this day and age, I'm not familiar with this area.

There's also talk of SMIs messing with this calibration.  Could a long
running SMI (something close to 214us) run that results in keeping "count"
under 6? Again, just speculation on my part.

Thanks,
Tom

[1] http://www.scs.stanford.edu/10wi-cs140/pintos/specs/8254.pdf

> 
>>>>> It should work and we really don't want to add cpu family/model based
>>>>> decisions whether we invoke something or not. Those tables are stale before
>>>>> they hit mainline.
>>>>
>>>> Understood. If it’s supposed to work, any hints on how to debug this?
>>>>
>>>> Does some Linux kernel developers have an AMD Ryzen system, and can reproduce
>>>> the issue?
>>>>
>>>> It seems to fail with an AMD Ryzen 2400G too [1].
>>>
>>> We now have an HP EliteDesk 705 G4 MT with that processsor, showing the same
>>> problem.
>>>
>>> ```
>>> [    0.000000] Linux version 4.20.0.mx64.238 (root@elcattivo.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 24 14:50:00 CET 2018
>>> […]
>>> [    0.000000] NX (Execute Disable) protection: active
>>> [    0.000000] SMBIOS 3.1 present.
>>> [    0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.01 09/14/2018
>>> [    0.000000] tsc: Fast TSC calibration failed
>>> [    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
>>> […]
>>> [    0.017860] smpboot: CPU0: AMD Ryzen 5 PRO 2400G with Radeon Vega Graphics (family: 0x17, model: 0x11, stepping: 0x0)
>>> […]
>>> ```
>>>
>>>> It also fails on an AMD Ryzen 7 1700 [2].
>>>>
>>>> ```
>>>> [ 0.000000] Linux version 4.15.0-kali3-amd64 (devel@kali.org) (gcc version 7.3.0 (Debian 7.3.0-16)) #1 SMP Debian 4.15.17-1kali1 (2018-04-25)
>>>> […]
>>>> [ 0.008000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
>>>> [ 0.028000] tsc: Fast TSC calibration failed
>>>> [ 0.032000] tsc: PIT calibration matches HPET. 1 loops
>>>> [ 0.032000] tsc: Detected 2994.246 MHz processor
>>>> […]
>>>> [ 0.044000] smpboot: CPU0: AMD Ryzen 7 1700 Eight-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
>>>> ```
>>>>
>>>> It *works* here on one system with AMD Ryzen 5 PRO 1500 and Linux 4.14.87.
>>>>
>>>> ```
>>>> [    0.000000] Linux version 4.14.87.mx64.236 (root@likearollingstone.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 10 09:48:57 CET 2018
>>>> […]
>>>> [    0.000000] tsc: Fast TSC calibration using PIT
>>>> […]
>>>> [    0.035000] smpboot: CPU0: AMD Ryzen 5 PRO 1500 Quad-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
>>>> ```
>>>
>>> How to continue from here? Is documentation for that available from AMD?
>>> I didn’t find a BKDG (Bios Kernel Developer Guide) at [3].
> 
> 
> Kind regards,
> 
> Paul
> 
> 
>>>> [1]: https://bbs.archlinux.org/viewtopic.php?pid=1781282#p1781282
>>>> [2]: https://forums.kali.org/showthread.php?40444-error-loading-amdgpu-drivers-AMD-RX580-driver[3]: https://developer.amd.com/resources/developer-guides-manuals/

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

* Re: tsc: Fast TSC calibration failed with sever AMD Ryzen processor (2200G, 2400G, Ryzen 7 1700)
  2019-01-23 23:33               ` Lendacky, Thomas
@ 2019-01-28 16:05                 ` Paul Menzel
  0 siblings, 0 replies; 10+ messages in thread
From: Paul Menzel @ 2019-01-28 16:05 UTC (permalink / raw)
  To: Thomas Lendacky; +Cc: Thomas Gleixner, x86, LKML, it+linux-x86


[-- Attachment #1.1: Type: text/plain, Size: 24328 bytes --]

Dear Tom,


On 01/24/19 00:33, Lendacky, Thomas wrote:
> On 1/23/19 6:56 AM, Paul Menzel wrote:

>> On 01/22/19 21:24, Lendacky, Thomas wrote:
>>> On 1/22/19 10:53 AM, Paul Menzel wrote:
>>>> [Adding Tom to CC]
>>
>>>> On 01/14/19 11:09, Paul Menzel wrote:
>>>>
>>>>> On 01/11/19 21:43, Thomas Gleixner wrote:
>>>>>
>>>>>> On Mon, 7 Jan 2019, Paul Menzel wrote:
>>>>>>> On 01/07/19 16:24, Thomas Gleixner wrote:
>>>>>>>>> Linux 4.19.13 from Debian Sid/unstable logs the message below on the board MSI
>>>>>>>>> MS-7A37/B350M MORTAR with the processor AMD Ryzen 3 2200G.
>>>>>>>>>
>>>>>>>>> As a result, the early time stamps do not seem to be working.
>>>>>>>>
>>>>>>>>>> [    0.000000] DMI: Micro-Star International Co., Ltd. MS-7A37/B350M MORTAR (MS-7A37), BIOS 1.I0 11/06/2018
>>>>>>>>>> [    0.000000] tsc: Fast TSC calibration failed
>>>>>>>>
>>>>>>>> And the further boot log says:
>>>>>>>>
>>>>>>>> [    0.036000] tsc: Unable to calibrate against PIT
>>>>>>>> [    0.036000] tsc: using HPET reference calibration
>>>>>>>> [    0.036000] tsc: Detected 3500.117 MHz processor
>>>>>>>>
>>>>>>>> So the quick calibration in early boot fails because the PIT seems not to
>>>>>>>> do what the kernel expects. Nothing we can cure :(
>>>>>>>
>>>>>>> I see. Can AMD confirm that this is the expected behavior? If yes, should
>>>>>>> the fast TSC calibration be skipped on these devices?
>>
>>> It's not expected behavior. All of the systems that I have access to do
>>> not exhibit this issue. Having said that, I have a limited number of
>>> systems available to me.
>>
>> But as a data point, what Ryzen systems did you test with? Just to know, if
>> there are configurations where the same processor behaves inconsistently.
>>
>> Can you request one of the failing systems mentioned below to reproduce the
>> problem?
>>
>>> I don't have much experience in this area, but if it is something that
>>> consistently occurs, you might try to see if you can better identify why
>>> it fails. The message is issued in pit_hpet_ptimer_calibrate_cpu() in file
>>> arch/x86/kernel/tsc.c.
>>
>> With the attached patch applied, I get:
>>
>>     [    0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i = 42
>>     [    0.000000] tsc: Fast TSC calibration failed, i = 42
>>     [    0.000000] tsc: Using PIT calibration value
>>
>> The functions `pit_verify_msb()` and `pit_expect_msb()` are:
>>
>> ```
>> static inline int pit_verify_msb(unsigned char val)
>> {
>>         /* Ignore LSB */
>>         inb(0x42);
>>         return inb(0x42) == val;
>> }
>>
>> static inline int pit_expect_msb(unsigned char val, u64 *tscp, unsigned long *deltap)
>> {
>>         int count;
>>         u64 tsc = 0, prev_tsc = 0;
>>
>>         for (count = 0; count < 50000; count++) {
>>                 if (!pit_verify_msb(val))
>>                         break;
>>                 prev_tsc = tsc;
>>                 tsc = get_cycles();
>>         }
>>         *deltap = get_cycles() - prev_tsc;
>>         *tscp = tsc;
>>
>>         /*
>>          * We require _some_ success, but the quality control
>>          * will be based on the error terms on the TSC values.
>>          */
>>         return count > 5;
>> }
>> ```
>>
>> So count is smaller than or equal to 5, and `pit_verify_msb(val)` failed early,
>> right?
> 
> Depends on what you mean by "failed early." The loop iterated 42 times
> as it tried to reach the acceptable error rate, so pit_expect_msb() had
> succeeded a number of times before failing.

The maximum is 233, and in my tests the counter `i` never surpassed 55 or so.

> One of the things I noticed while searching for info on the PIT is that
> one of the specs [1] mentioned that just reading the counter values (as
> opposed to using the counter latch command or the read-back command) could
> return undefined values if the counters are being updated while being
> read. I'm not sure if that is what is occurring or if that matters in
> this day and age, I'm not familiar with this area.
> 
> There's also talk of SMIs messing with this calibration.  Could a long
> running SMI (something close to 214us) run that results in keeping "count"
> under 6? Again, just speculation on my part.

I printed the values read from `inb(0x42)`, and log them, if they are unequal.
Please find the patch attached.

Here are the results of five boots.

[    0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.01 09/14/2018
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ff != 0 = val
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fe != ff = val
[    0.000000] tsc: pit_expect_msb: val = 0xff: count = 52
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fd != fe = val
[    0.000000] tsc: pit_expect_msb: val = 0xfe: count = 51
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fc != fd = val
[    0.000000] tsc: pit_expect_msb: val = 0xfd: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fb != fc = val
[    0.000000] tsc: pit_expect_msb: val = 0xfc: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fa != fb = val
[    0.000000] tsc: pit_expect_msb: val = 0xfb: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f9 != fa = val
[    0.000000] tsc: pit_expect_msb: val = 0xfa: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f8 != f9 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf9: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f7 != f8 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf8: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f6 != f7 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf7: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f5 != f6 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf6: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f4 != f5 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf5: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f3 != f4 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf4: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f2 != f3 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf3: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f1 != f2 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf2: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f0 != f1 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf1: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ef != f0 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf0: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ee != ef = val
[    0.000000] tsc: pit_expect_msb: val = 0xef: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ed != ee = val
[    0.000000] tsc: pit_expect_msb: val = 0xee: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ec != ed = val
[    0.000000] tsc: pit_expect_msb: val = 0xed: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = eb != ec = val
[    0.000000] tsc: pit_expect_msb: val = 0xec: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ea != eb = val
[    0.000000] tsc: pit_expect_msb: val = 0xeb: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e9 != ea = val
[    0.000000] tsc: pit_expect_msb: val = 0xea: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e8 != e9 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe9: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e7 != e8 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe8: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e6 != e7 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe7: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e5 != e6 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe6: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e4 != e5 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe5: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e3 != e4 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe4: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e2 != e3 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe3: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e1 != e2 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe2: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e0 != e1 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe1: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = df != e0 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe0: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = de != df = val
[    0.000000] tsc: pit_expect_msb: val = 0xdf: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = dd != de = val
[    0.000000] tsc: pit_expect_msb: val = 0xde: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = dc != dd = val
[    0.000000] tsc: pit_expect_msb: val = 0xdd: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = da != dc = val
[    0.000000] tsc: pit_expect_msb: val = 0xdc: count = 4
[    0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i = 35
[    0.000000] tsc: Fast TSC calibration failed, i = 35 from 233

[    0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.01 09/14/2018
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ff != 0 = val
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fe != ff = val
[    0.000000] tsc: pit_expect_msb: val = 0xff: count = 53
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fd != fe = val
[    0.000000] tsc: pit_expect_msb: val = 0xfe: count = 53
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fc != fd = val
[    0.000000] tsc: pit_expect_msb: val = 0xfd: count = 52
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fb != fc = val
[    0.000000] tsc: pit_expect_msb: val = 0xfc: count = 51
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fa != fb = val
[    0.000000] tsc: pit_expect_msb: val = 0xfb: count = 50
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f9 != fa = val
[    0.000000] tsc: pit_expect_msb: val = 0xfa: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f8 != f9 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf9: count = 46
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f7 != f8 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf8: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f6 != f7 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf7: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f5 != f6 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf6: count = 46
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f4 != f5 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf5: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f3 != f4 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf4: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f2 != f3 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf3: count = 46
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f1 != f2 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf2: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f0 != f1 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf1: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ef != f0 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf0: count = 46
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ee != ef = val
[    0.000000] tsc: pit_expect_msb: val = 0xef: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ed != ee = val
[    0.000000] tsc: pit_expect_msb: val = 0xee: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ec != ed = val
[    0.000000] tsc: pit_expect_msb: val = 0xed: count = 46
[    0.000000] tsc: pit_verify_msb: inb(0x42) = eb != ec = val
[    0.000000] tsc: pit_expect_msb: val = 0xec: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ea != eb = val
[    0.000000] tsc: pit_expect_msb: val = 0xeb: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e9 != ea = val
[    0.000000] tsc: pit_expect_msb: val = 0xea: count = 46
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e8 != e9 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe9: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e7 != e8 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe8: count = 45
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e5 != e7 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe7: count = 14
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e5 != e6 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe6: count = 0
[    0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i = 25
[    0.000000] tsc: Fast TSC calibration failed, i = 25 from 233

[    0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.01 09/14/2018
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ff != 0 = val
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fe != ff = val
[    0.000000] tsc: pit_expect_msb: val = 0xff: count = 53
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fd != fe = val
[    0.000000] tsc: pit_expect_msb: val = 0xfe: count = 53
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fc != fd = val
[    0.000000] tsc: pit_expect_msb: val = 0xfd: count = 52
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fb != fc = val
[    0.000000] tsc: pit_expect_msb: val = 0xfc: count = 44
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fa != fb = val
[    0.000000] tsc: pit_expect_msb: val = 0xfb: count = 51
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f7 != fa = val
[    0.000000] tsc: pit_expect_msb: val = 0xfa: count = 13
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f7 != f9 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf9: count = 0
[    0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i = 6
[    0.000000] tsc: Fast TSC calibration failed, i = 6 from 233

[    0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.01 09/14/2018
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ff != 0 = val
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fe != ff = val
[    0.000000] tsc: pit_expect_msb: val = 0xff: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fd != fe = val
[    0.000000] tsc: pit_expect_msb: val = 0xfe: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fc != fd = val
[    0.000000] tsc: pit_expect_msb: val = 0xfd: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fb != fc = val
[    0.000000] tsc: pit_expect_msb: val = 0xfc: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fa != fb = val
[    0.000000] tsc: pit_expect_msb: val = 0xfb: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f9 != fa = val
[    0.000000] tsc: pit_expect_msb: val = 0xfa: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f8 != f9 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf9: count = 40
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f7 != f8 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf8: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f6 != f7 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf7: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f5 != f6 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf6: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f4 != f5 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf5: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f3 != f4 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf4: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f2 != f3 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf3: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f1 != f2 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf2: count = 40
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f0 != f1 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf1: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ef != f0 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf0: count = 39
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ed != ef = val
[    0.000000] tsc: pit_expect_msb: val = 0xef: count = 13
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ed != ee = val
[    0.000000] tsc: pit_expect_msb: val = 0xee: count = 0
[    0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i = 17
[    0.000000] tsc: Fast TSC calibration failed, i = 17 from 233

[    0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.01 09/14/2018
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ff != 0 = val
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fe != ff = val
[    0.000000] tsc: pit_expect_msb: val = 0xff: count = 52
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fd != fe = val
[    0.000000] tsc: pit_expect_msb: val = 0xfe: count = 51
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fc != fd = val
[    0.000000] tsc: pit_expect_msb: val = 0xfd: count = 44
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fb != fc = val
[    0.000000] tsc: pit_expect_msb: val = 0xfc: count = 46
[    0.000000] tsc: pit_verify_msb: inb(0x42) = fa != fb = val
[    0.000000] tsc: pit_expect_msb: val = 0xfb: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f9 != fa = val
[    0.000000] tsc: pit_expect_msb: val = 0xfa: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f8 != f9 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf9: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f7 != f8 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf8: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f6 != f7 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf7: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f5 != f6 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf6: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f4 != f5 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf5: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f3 != f4 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf4: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f2 != f3 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf3: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f1 != f2 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf2: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = f0 != f1 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf1: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ef != f0 = val
[    0.000000] tsc: pit_expect_msb: val = 0xf0: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ee != ef = val
[    0.000000] tsc: pit_expect_msb: val = 0xef: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ed != ee = val
[    0.000000] tsc: pit_expect_msb: val = 0xee: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ec != ed = val
[    0.000000] tsc: pit_expect_msb: val = 0xed: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = eb != ec = val
[    0.000000] tsc: pit_expect_msb: val = 0xec: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = ea != eb = val
[    0.000000] tsc: pit_expect_msb: val = 0xeb: count = 48
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e9 != ea = val
[    0.000000] tsc: pit_expect_msb: val = 0xea: count = 47
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e6 != e9 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe9: count = 42
[    0.000000] tsc: pit_verify_msb: inb(0x42) = e6 != e8 = val
[    0.000000] tsc: pit_expect_msb: val = 0xe8: count = 0
[    0.000000] tsc: quick_pit_calibrate: break in if !pit_expect_msb, i = 23
[    0.000000] tsc: Fast TSC calibration failed, i = 23 from 233

So you can see, that, if my patch does not have any side effects, the
read value is in the end smaller than the expected value and decreases
not by one, but by more than one.

So in the last boot from e9 to e6, and the code decreases by one, so
expects e8 in the next iteration.

Of course your explanation that an SMI could cause this, could still
apply. Another explanation would be, that the PIT(?) does not decrease
by a constant rate.

I remembered that there was also a TSC related problem in coreboot,
that Google fixed by the commit below [2].

> soc/amd/stoneyridge: remove dependence on TSC
>
> The TSC rate is empirically swinging during early boot. That
> leaves timestamps and udelay()s to not be correct. To rectify this
> stop using TSC for all of these time sources. Instead use the
> performance TSC which is at a fixed 100MHz clock. That provides
> stable time sources and legit timestamps.
>
> BUG=b:72378235,b:72170796

Aaron replied in #coreboot@irc.freenode.de:

> I don't know that the lkml report applies to this ryzen, but my 
> recollection of that bug on stoney was that TSC wasn't exactly constant
> rate until deeper into the boot flow. I think there's something that
> happens in SMU at a point in the boot that stabilizes the clock rate. 
> Ryzen could be the same thing or a completely different bug all
> together.

The HP and MSI firmwares take more than eight seconds though, compared
to the less than one second by coreboot, so it might be something else.

Unfortunately, I have neither resources nor knowledge to look into this,
and it looks like a hardware issue to me, only AMD can debug. Tom, could
you forward that to the appropriate departments in AMD?


Kind regards,

Paul


> [1] http://www.scs.stanford.edu/10wi-cs140/pintos/specs/8254.pdf
[2] https://review.coreboot.org/23424

>>>>>> It should work and we really don't want to add cpu family/model based
>>>>>> decisions whether we invoke something or not. Those tables are stale before
>>>>>> they hit mainline.
>>>>>
>>>>> Understood. If it’s supposed to work, any hints on how to debug this?
>>>>>
>>>>> Does some Linux kernel developers have an AMD Ryzen system, and can reproduce
>>>>> the issue?
>>>>>
>>>>> It seems to fail with an AMD Ryzen 2400G too [1].
>>>>
>>>> We now have an HP EliteDesk 705 G4 MT with that processsor, showing the same
>>>> problem.
>>>>
>>>> ```
>>>> [    0.000000] Linux version 4.20.0.mx64.238 (root@elcattivo.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 24 14:50:00 CET 2018
>>>> […]
>>>> [    0.000000] NX (Execute Disable) protection: active
>>>> [    0.000000] SMBIOS 3.1 present.
>>>> [    0.000000] DMI: HP HP EliteDesk 705 G4 MT/83E7, BIOS Q06 Ver. 02.04.01 09/14/2018
>>>> [    0.000000] tsc: Fast TSC calibration failed
>>>> [    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
>>>> […]
>>>> [    0.017860] smpboot: CPU0: AMD Ryzen 5 PRO 2400G with Radeon Vega Graphics (family: 0x17, model: 0x11, stepping: 0x0)
>>>> […]
>>>> ```
>>>>
>>>>> It also fails on an AMD Ryzen 7 1700 [2].
>>>>>
>>>>> ```
>>>>> [ 0.000000] Linux version 4.15.0-kali3-amd64 (devel@kali.org) (gcc version 7.3.0 (Debian 7.3.0-16)) #1 SMP Debian 4.15.17-1kali1 (2018-04-25)
>>>>> […]
>>>>> [ 0.008000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
>>>>> [ 0.028000] tsc: Fast TSC calibration failed
>>>>> [ 0.032000] tsc: PIT calibration matches HPET. 1 loops
>>>>> [ 0.032000] tsc: Detected 2994.246 MHz processor
>>>>> […]
>>>>> [ 0.044000] smpboot: CPU0: AMD Ryzen 7 1700 Eight-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
>>>>> ```
>>>>>
>>>>> It *works* here on one system with AMD Ryzen 5 PRO 1500 and Linux 4.14.87.
>>>>>
>>>>> ```
>>>>> [    0.000000] Linux version 4.14.87.mx64.236 (root@likearollingstone.molgen.mpg.de) (gcc version 7.3.0 (GCC)) #1 SMP Mon Dec 10 09:48:57 CET 2018
>>>>> […]
>>>>> [    0.000000] tsc: Fast TSC calibration using PIT
>>>>> […]
>>>>> [    0.035000] smpboot: CPU0: AMD Ryzen 5 PRO 1500 Quad-Core Processor (family: 0x17, model: 0x1, stepping: 0x1)
>>>>> ```
>>>>
>>>> How to continue from here? Is documentation for that available from AMD?
>>>> I didn’t find a BKDG (Bios Kernel Developer Guide) at [3].
>>
>>
>> Kind regards,
>>
>> Paul
>>
>>
>>>>> [1]: https://bbs.archlinux.org/viewtopic.php?pid=1781282#p1781282
>>>>> [2]: https://forums.kali.org/showthread.php?40444-error-loading-amdgpu-drivers-AMD-RX580-driver[3]: https://developer.amd.com/resources/developer-guides-manuals

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-x86-kernel-tsc-Debug-early-TSC-calibration.patch --]
[-- Type: text/x-patch; name="0001-x86-kernel-tsc-Debug-early-TSC-calibration.patch", Size: 2290 bytes --]

From 7720e8dbc578da02b020d7e8f5441e74b3726004 Mon Sep 17 00:00:00 2001
From: Paul Menzel <pmenzel@molgen.mpg.de>
Date: Wed, 23 Jan 2019 00:24:37 +0100
Subject: [PATCH] x86/kernel/tsc: Debug early TSC calibration

Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
---
 arch/x86/kernel/tsc.c | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index 3fae23834069..4696ef7326b6 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -478,9 +478,15 @@ static unsigned long pit_calibrate_tsc(u32 latch, unsigned long ms, int loopmin)
  */
 static inline int pit_verify_msb(unsigned char val)
 {
+	unsigned char val1;
+
 	/* Ignore LSB */
 	inb(0x42);
-	return inb(0x42) == val;
+	val1 = inb(0x42);
+
+	if (val1 != val)
+		pr_err("%s: inb(0x42) = %x != %x = val", __func__, val1, val);
+	return val1 == val;
 }
 
 static inline int pit_expect_msb(unsigned char val, u64 *tscp, unsigned long *deltap)
@@ -497,6 +503,8 @@ static inline int pit_expect_msb(unsigned char val, u64 *tscp, unsigned long *de
 	*deltap = get_cycles() - prev_tsc;
 	*tscp = tsc;
 
+	pr_err("%s: val = 0x%x: count = %d\n", __func__, val, count);
+
 	/*
 	 * We require _some_ success, but the quality control
 	 * will be based on the error terms on the TSC values.
@@ -550,8 +558,10 @@ static unsigned long quick_pit_calibrate(void)
 
 	if (pit_expect_msb(0xff, &tsc, &d1)) {
 		for (i = 1; i <= MAX_QUICK_PIT_ITERATIONS; i++) {
-			if (!pit_expect_msb(0xff-i, &delta, &d2))
+			if (!pit_expect_msb(0xff-i, &delta, &d2)) {
+				pr_err("%s: break in if !pit_expect_msb, i = %d\n", __func__, i);
 				break;
+			}
 
 			delta -= tsc;
 
@@ -576,12 +586,14 @@ static unsigned long quick_pit_calibrate(void)
 			 * This also guarantees serialization of the
 			 * last cycle read ('d2') in pit_expect_msb.
 			 */
-			if (!pit_verify_msb(0xfe - i))
+			if (!pit_verify_msb(0xfe - i)) {
+				pr_err("%s: break in if !pit_verify_msb\n", __func__);
 				break;
+			}
 			goto success;
 		}
 	}
-	pr_info("Fast TSC calibration failed\n");
+	pr_err("Fast TSC calibration failed, i = %u from %u\n", i, MAX_QUICK_PIT_ITERATIONS);
 	return 0;
 
 success:
-- 
2.17.1


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]

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

end of thread, other threads:[~2019-01-28 17:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-31 10:02 tsc: Fast TSC calibration failed with AMD B350M/Ryzen 3 2200G Paul Menzel
2019-01-07 15:24 ` Thomas Gleixner
2019-01-07 15:33   ` Paul Menzel
2019-01-11 20:43     ` Thomas Gleixner
2019-01-14 10:09       ` Paul Menzel
2019-01-22 16:53         ` Paul Menzel
2019-01-22 20:24           ` Lendacky, Thomas
2019-01-23 12:56             ` tsc: Fast TSC calibration failed with sever AMD Ryzen processor (2200G, 2400G, Ryzen 7 1700) Paul Menzel
2019-01-23 23:33               ` Lendacky, Thomas
2019-01-28 16:05                 ` Paul Menzel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).