Konstantin Belousov
2018-Jun-26 11:29 UTC
Ryzen issues on FreeBSD ? (with sort of workaround)
On Tue, Jun 26, 2018 at 11:31:26AM +0100, Pete French wrote:> > On 06/18/2018 09:34, Pete French wrote: > > > Preseumably in the slightly longer term these workarounds go into the > > > actual kernel if it detects Ryzen ? > > > > Yes, Kostik said he would code this into the kernel after he gets enough > > feedback. > > So, I've been running with the sysctl and cputl fixes from > https://lists.freebsd.org/pipermail/freebsd-current/2018-June/069799.html > for a couple of weeks now, with all the default settings back on (including > SMT) and it now completely stable, so consider this one more point of feedbackIf you run without the script, with the same settings, do you experience problems ? Also, please show the 100 first lines of the verbose boot dmesg on this machine.
> If you run without the script, with the same settings, do you experience > problems ?I have not tried this since the last BIOPS update which brought with it the latest AEGSA version. Previously the machine would lock uop if I enabled SMT though which is why looking at those settings and cross referencing them to the erata was very interesting. I just rebooted the machine to get you the log, and am going to run without applyingthose fixes for the rest of the week to see how it goes though. Will let you know one way or the other on Friday, and will do my best to lock it up before then.> Also, please show the 100 first lines of the verbose boot dmesg on this > machine.the dmesg wraps around if I boot verbosely, but heres the contnets of /var/log/messages from the time it starts to where it stops talking about CPU specific stuff... if you need something else then let me know - this is an easy machine to reboot and play about with. -pete. Jun 26 13:13:26 dilbert kernel: Table 'FACP' at 0xdd0fb6b8 Jun 26 13:13:26 dilbert kernel: Table 'APIC' at 0xdd0fb7d0 Jun 26 13:13:26 dilbert kernel: APIC: Found table at 0xdd0fb7d0 Jun 26 13:13:26 dilbert kernel: APIC: Using the MADT enumerator. Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 0 ACPI ID 1: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 0 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 1 ACPI ID 2: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 1 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 2 ACPI ID 3: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 2 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 3 ACPI ID 4: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 3 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 4 ACPI ID 5: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 4 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 5 ACPI ID 6: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 5 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 6 ACPI ID 7: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 6 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 7 ACPI ID 8: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 7 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 8 ACPI ID 9: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 8 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 9 ACPI ID 10: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 9 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 10 ACPI ID 11: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 10 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 11 ACPI ID 12: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 11 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 12 ACPI ID 13: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 12 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 13 ACPI ID 14: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 13 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 14 ACPI ID 15: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 14 (AP) Jun 26 13:13:26 dilbert kernel: MADT: Found CPU APIC ID 15 ACPI ID 16: enabled Jun 26 13:13:26 dilbert kernel: SMP: Added CPU 15 (AP) Jun 26 13:13:26 dilbert kernel: Copyright (c) 1992-2018 The FreeBSD Project. Jun 26 13:13:26 dilbert kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Jun 26 13:13:26 dilbert kernel: The Regents of the University of California. All rights reserved. Jun 26 13:13:26 dilbert kernel: FreeBSD is a registered trademark of The FreeBSD Foundation. Jun 26 13:13:26 dilbert kernel: FreeBSD 11.2-STABLE #0 r335659: Tue Jun 26 10:47:47 BST 2018 Jun 26 13:13:26 dilbert kernel: petefrench at dilbert.london-internal.ingresso.co.uk:/usr/obj/usr/src/sys/GENERIC amd64 Jun 26 13:13:26 dilbert kernel: FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0) Jun 26 13:13:26 dilbert kernel: Table 'FACP' at 0xdd0fb6b8 Jun 26 13:13:26 dilbert kernel: Table 'APIC' at 0xdd0fb7d0 Jun 26 13:13:26 dilbert kernel: Table 'FPDT' at 0xdd0fb8b0 Jun 26 13:13:26 dilbert kernel: Table 'FIDT' at 0xdd0fb8f8 Jun 26 13:13:26 dilbert kernel: Table 'SSDT' at 0xdd0fb998 Jun 26 13:13:26 dilbert kernel: Table 'SSDT' at 0xdd104630 Jun 26 13:13:26 dilbert kernel: Table 'CRAT' at 0xdd106948 Jun 26 13:13:26 dilbert kernel: Table 'CDIT' at 0xdd107898 Jun 26 13:13:26 dilbert kernel: Table 'SSDT' at 0xdd1078c8 Jun 26 13:13:26 dilbert kernel: Table 'MCFG' at 0xdd10a660 Jun 26 13:13:26 dilbert kernel: Table 'HPET' at 0xdd10a6a0 Jun 26 13:13:26 dilbert kernel: Table 'SSDT' at 0xdd10a6d8 Jun 26 13:13:26 dilbert kernel: Table 'UEFI' at 0xdd10a700 Jun 26 13:13:26 dilbert kernel: Table 'IVRS' at 0xdd10a748 Jun 26 13:13:26 dilbert kernel: Table 'SSDT' at 0xdd10a818 Jun 26 13:13:26 dilbert kernel: Table 'SSDT' at 0xdd10a910 Jun 26 13:13:26 dilbert kernel: Table 'WSMT' at 0xdd10c358 Jun 26 13:13:26 dilbert kernel: ACPI: No SRAT table found Jun 26 13:13:26 dilbert kernel: PPIM 0: PA=0xa0000, VA=0xffffffff82810000, size=0x10000, mode=0 Jun 26 13:13:26 dilbert kernel: VT(vga): resolution 640x480 Jun 26 13:13:26 dilbert kernel: Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff826bd000. Jun 26 13:13:26 dilbert kernel: Preloaded boot_entropy_cache "/boot/entropy" at 0xffffffff826c6148. Jun 26 13:13:26 dilbert kernel: Preloaded elf obj module "/boot/kernel/aesni.ko" at 0xffffffff826c61a0. Jun 26 13:13:26 dilbert kernel: Preloaded elf obj module "/boot/kernel/cryptodev.ko" at 0xffffffff826c6888. Jun 26 13:13:26 dilbert kernel: Preloaded elf obj module "/boot/kernel/geom_eli.ko" at 0xffffffff826c6f38. Jun 26 13:13:26 dilbert kernel: Preloaded elf obj module "/boot/kernel/fuse.ko" at 0xffffffff826c75e8. Jun 26 13:13:26 dilbert kernel: Preloaded elf obj module "/boot/kernel/sem.ko" at 0xffffffff826c7c90. Jun 26 13:13:26 dilbert kernel: Preloaded elf obj module "/boot/kernel/amdtemp.ko" at 0xffffffff826c82b8. Jun 26 13:13:26 dilbert kernel: Preloaded elf obj module "/boot/kernel/amdsmn.ko" at 0xffffffff826c8860. Jun 26 13:13:26 dilbert kernel: Preloaded elf obj module "/boot/kernel/linux.ko" at 0xffffffff826c8e08. Jun 26 13:13:26 dilbert kernel: Preloaded elf obj module "/boot/kernel/linux_common.ko" at 0xffffffff826c96f0. Jun 26 13:13:26 dilbert kernel: Preloaded elf obj module "/boot/kernel/zfs.ko" at 0xffffffff826c9e20. Jun 26 13:13:26 dilbert kernel: Preloaded elf obj module "/boot/kernel/opensolaris.ko" at 0xffffffff826ca648. Jun 26 13:13:26 dilbert kernel: Calibrating TSC clock ... TSC clock: 3000069750 Hz Jun 26 13:13:26 dilbert kernel: CPU: AMD Ryzen 7 1700 Eight-Core Processor (3000.07-MHz K8-class CPU) Jun 26 13:13:26 dilbert kernel: Origin="AuthenticAMD" Id=0x800f11 Family=0x17 Model=0x1 Stepping=1 Jun 26 13:13:26 dilbert kernel: Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Jun 26 13:13:26 dilbert kernel: Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> Jun 26 13:13:26 dilbert kernel: AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> Jun 26 13:13:26 dilbert kernel: AMD Features2=0x35c233ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX> Jun 26 13:13:26 dilbert kernel: Structured Extended Features=0x209c01a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA> Jun 26 13:13:26 dilbert kernel: XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES> Jun 26 13:13:26 dilbert kernel: AMD Extended Feature Extensions ID EBX=0x1007<CLZERO,IRPerf,XSaveErPtr> Jun 26 13:13:26 dilbert kernel: SVM: Features=0x1bcff<NP,LbrVirt,SVML,NRIPS,TscRateMsr,VmcbClean,FlushByAsid,DecodeAssist,PauseFilter,<b11>,PauseFilterThreshold,AVIC> Jun 26 13:13:26 dilbert kernel: Revision=1, ASIDs=32768 Jun 26 13:13:26 dilbert kernel: TSC: P-state invariant, performance statistics Jun 26 13:13:26 dilbert kernel: L1 2MB data TLB: 64 entries, fully associative Jun 26 13:13:26 dilbert kernel: L1 2MB instruction TLB: 64 entries, fully associative Jun 26 13:13:26 dilbert kernel: L1 4KB data TLB: 64 entries, fully associative Jun 26 13:13:26 dilbert kernel: L1 4KB instruction TLB: 64 entries, fully associative Jun 26 13:13:26 dilbert kernel: L1 data cache: 32 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative Jun 26 13:13:26 dilbert kernel: L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 4-way associative Jun 26 13:13:26 dilbert kernel: L2 2MB data TLB: 1536 entries, 2-way associative Jun 26 13:13:26 dilbert kernel: L2 2MB instruction TLB: 1024 entries, 2-way associative Jun 26 13:13:26 dilbert kernel: L2 4KB data TLB: 1536 entries, 8-way associative Jun 26 13:13:26 dilbert kernel: L2 4KB instruction TLB: 1536 entries, 8-way associative Jun 26 13:13:26 dilbert kernel: L2 unified cache: 512 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative Jun 26 13:13:26 dilbert kernel: real memory = 8589934592 (8192 MB) Jun 26 13:13:26 dilbert kernel: Physical memory chunk(s): Jun 26 13:13:26 dilbert kernel: 0x0000000000010000 - 0x0000000000099fff, 565248 bytes (138 pages) Jun 26 13:13:26 dilbert kernel: 0x0000000000100000 - 0x00000000001fffff, 1048576 bytes (256 pages) Jun 26 13:13:26 dilbert kernel: 0x0000000002800000 - 0x0000000003ffffff, 25165824 bytes (6144 pages) Jun 26 13:13:26 dilbert kernel: 0x000000000400a000 - 0x0000000009d7ffff, 98000896 bytes (23926 pages) Jun 26 13:13:26 dilbert kernel: 0x000000000a000000 - 0x000000000affffff, 16777216 bytes (4096 pages) Jun 26 13:13:26 dilbert kernel: 0x000000000b020000 - 0x00000000dce94fff, 3521597440 bytes (859765 pages) Jun 26 13:13:26 dilbert kernel: 0x00000000dcffd000 - 0x00000000dd0f3fff, 1011712 bytes (247 pages) Jun 26 13:13:26 dilbert kernel: 0x00000000de665000 - 0x00000000deffffff, 10072064 bytes (2459 pages) Jun 26 13:13:26 dilbert kernel: 0x0000000100000000 - 0x0000000211b2afff, 4591890432 bytes (1121067 pages) Jun 26 13:13:26 dilbert kernel: avail memory = 8208781312 (7828 MB) Jun 26 13:13:26 dilbert kernel: Event timer "LAPIC" quality 600 Jun 26 13:13:26 dilbert kernel: LAPIC: ipi_wait() us multiplier 13 (r 22217700 tsc 3000069750) Jun 26 13:13:26 dilbert kernel: ACPI APIC Table: <ALASKA A M I > Jun 26 13:13:26 dilbert kernel: Package ID shift: 4 Jun 26 13:13:26 dilbert kernel: L3 cache ID shift: 3 Jun 26 13:13:26 dilbert kernel: L2 cache ID shift: 1 Jun 26 13:13:26 dilbert kernel: L1 cache ID shift: 1 Jun 26 13:13:26 dilbert kernel: Core ID shift: 1 Jun 26 13:13:26 dilbert kernel: INTR: Adding local APIC 2 as a target Jun 26 13:13:26 dilbert kernel: INTR: Adding local APIC 4 as a target Jun 26 13:13:26 dilbert kernel: INTR: Adding local APIC 6 as a target Jun 26 13:13:26 dilbert kernel: INTR: Adding local APIC 8 as a target Jun 26 13:13:26 dilbert kernel: INTR: Adding local APIC 10 as a target Jun 26 13:13:26 dilbert kernel: INTR: Adding local APIC 12 as a target Jun 26 13:13:26 dilbert kernel: INTR: Adding local APIC 14 as a target Jun 26 13:13:26 dilbert kernel: FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs Jun 26 13:13:26 dilbert kernel: FreeBSD/SMP: 1 package(s) x 8 core(s) x 2 hardware threads Jun 26 13:13:26 dilbert kernel: Package HW ID = 0 (0) Jun 26 13:13:26 dilbert kernel: Core HW ID = 0 (0) Jun 26 13:13:26 dilbert kernel: CPU0 (BSP): APIC ID: 0 (0) Jun 26 13:13:26 dilbert kernel: CPU1 (AP/HT): APIC ID: 1 (0x1) Jun 26 13:13:26 dilbert kernel: Core HW ID = 1 (0x1) Jun 26 13:13:26 dilbert kernel: CPU2 (AP): APIC ID: 2 (0x2) Jun 26 13:13:26 dilbert kernel: CPU3 (AP/HT): APIC ID: 3 (0x3) Jun 26 13:13:26 dilbert kernel: Core HW ID = 2 (0x2) Jun 26 13:13:26 dilbert kernel: CPU4 (AP): APIC ID: 4 (0x4) Jun 26 13:13:26 dilbert kernel: CPU5 (AP/HT): APIC ID: 5 (0x5) Jun 26 13:13:26 dilbert kernel: Core HW ID = 3 (0x3) Jun 26 13:13:26 dilbert kernel: CPU6 (AP): APIC ID: 6 (0x6) Jun 26 13:13:26 dilbert kernel: CPU7 (AP/HT): APIC ID: 7 (0x7) Jun 26 13:13:26 dilbert kernel: Core HW ID = 4 (0x4) Jun 26 13:13:26 dilbert kernel: CPU8 (AP): APIC ID: 8 (0x8) Jun 26 13:13:26 dilbert kernel: CPU9 (AP/HT): APIC ID: 9 (0x9) Jun 26 13:13:26 dilbert kernel: Core HW ID = 5 (0x5) Jun 26 13:13:26 dilbert kernel: CPU10 (AP): APIC ID: 10 (0xa) Jun 26 13:13:26 dilbert kernel: CPU11 (AP/HT): APIC ID: 11 (0xb) Jun 26 13:13:26 dilbert kernel: Core HW ID = 6 (0x6) Jun 26 13:13:26 dilbert kernel: CPU12 (AP): APIC ID: 12 (0xc) Jun 26 13:13:26 dilbert kernel: CPU13 (AP/HT): APIC ID: 13 (0xd) Jun 26 13:13:26 dilbert kernel: Core HW ID = 7 (0x7) Jun 26 13:13:26 dilbert kernel: CPU14 (AP): APIC ID: 14 (0xe) Jun 26 13:13:26 dilbert kernel: CPU15 (AP/HT): APIC ID: 15 (0xf) Jun 26 13:13:26 dilbert kernel: APIC: CPU 0 has ACPI ID 1 Jun 26 13:13:26 dilbert kernel: APIC: CPU 1 has ACPI ID 2 Jun 26 13:13:26 dilbert kernel: APIC: CPU 2 has ACPI ID 3 Jun 26 13:13:26 dilbert kernel: APIC: CPU 3 has ACPI ID 4 Jun 26 13:13:26 dilbert kernel: APIC: CPU 4 has ACPI ID 5 Jun 26 13:13:26 dilbert kernel: APIC: CPU 5 has ACPI ID 6 Jun 26 13:13:26 dilbert kernel: APIC: CPU 6 has ACPI ID 7 Jun 26 13:13:26 dilbert kernel: APIC: CPU 7 has ACPI ID 8 Jun 26 13:13:26 dilbert kernel: APIC: CPU 8 has ACPI ID 9 Jun 26 13:13:26 dilbert kernel: APIC: CPU 9 has ACPI ID 10 Jun 26 13:13:26 dilbert kernel: APIC: CPU 10 has ACPI ID 11 Jun 26 13:13:26 dilbert kernel: APIC: CPU 11 has ACPI ID 12 Jun 26 13:13:26 dilbert kernel: APIC: CPU 12 has ACPI ID 13 Jun 26 13:13:26 dilbert kernel: APIC: CPU 13 has ACPI ID 14 Jun 26 13:13:26 dilbert kernel: APIC: CPU 14 has ACPI ID 15 Jun 26 13:13:26 dilbert kernel: APIC: CPU 15 has ACPI ID 16 Jun 26 13:13:26 dilbert kernel: x86bios: IVT 0x000000-0x0004ff at 0xfffff80000000000 Jun 26 13:13:26 dilbert kernel: x86bios: SSEG 0x098000-0x098fff at 0xfffffe01ecfe8000 Jun 26 13:13:26 dilbert kernel: x86bios: EBDA 0x09d000-0x09ffff at 0xfffff8000009d000 Jun 26 13:13:26 dilbert kernel: x86bios: ROM 0x0a0000-0x0fefff at 0xfffff800000a0000 Jun 26 13:13:26 dilbert kernel: Pentium Pro MTRR support enabled Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 0 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 1 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 2 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 3 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 4 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 5 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 6 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 7 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 8 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 9 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 10 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 11 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 12 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 13 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 14 Jun 26 13:13:26 dilbert kernel: ULE: setup cpu 15 Jun 26 13:13:26 dilbert kernel: ACPI: RSDP 0x00000000000F05B0 000024 (v02 ALASKA) Jun 26 13:13:26 dilbert kernel: ACPI: XSDT 0x00000000DD0F4098 0000AC (v01 ALASKA A M I 01072009 AMI 00010013) Jun 26 13:13:26 dilbert kernel: ACPI: FACP 0x00000000DD0FB6B8 000114 (v06 ALASKA A M I 01072009 AMI 00010013) Jun 26 13:13:26 dilbert kernel: Firmware Warning (ACPI): Optional FADT field Pm2ControlBlock has valid Length but zero Address: 0x0000000000000000/0x1 (20171214/tbfadt-796) Jun 26 13:13:26 dilbert kernel: ACPI: DSDT 0x00000000DD0F41D8 0074DC (v02 ALASKA A M I 01072009 INTL 20120913) Jun 26 13:13:26 dilbert kernel: ACPI: FACS 0x00000000DD4BCE00 000040 Jun 26 13:13:26 dilbert kernel: ACPI: APIC 0x00000000DD0FB7D0 0000DE (v03 ALASKA A M I 01072009 AMI 00010013) Jun 26 13:13:26 dilbert kernel: ACPI: FPDT 0x00000000DD0FB8B0 000044 (v01 ALASKA A M I 01072009 AMI 00010013) Jun 26 13:13:26 dilbert kernel: ACPI: FIDT 0x00000000DD0FB8F8 00009C (v01 ALASKA A M I 01072009 AMI 00010013) Jun 26 13:13:26 dilbert kernel: ACPI: SSDT 0x00000000DD0FB998 008C98 (v02 AMD AMD ALIB 00000002 MSFT 04000000) Jun 26 13:13:26 dilbert kernel: ACPI: SSDT 0x00000000DD104630 002314 (v01 AMD AMD CPU 00000001 AMD 00000001) Jun 26 13:13:26 dilbert kernel: ACPI: CRAT 0x00000000DD106948 000F50 (v01 AMD AMD CRAT 00000001 AMD 00000001) Jun 26 13:13:26 dilbert kernel: ACPI: CDIT 0x00000000DD107898 000029 (v01 AMD AMD CDIT 00000001 AMD 00000001) Jun 26 13:13:26 dilbert kernel: ACPI: SSDT 0x00000000DD1078C8 002D94 (v01 AMD AMD AOD 00000001 INTL 20120913) Jun 26 13:13:26 dilbert kernel: ACPI: MCFG 0x00000000DD10A660 00003C (v01 ALASKA A M I 01072009 MSFT 00010013) Jun 26 13:13:26 dilbert kernel: ACPI: HPET 0x00000000DD10A6A0 000038 (v01 ALASKA A M I 01072009 AMI 00000005) Jun 26 13:13:26 dilbert kernel: ACPI: SSDT 0x00000000DD10A6D8 000024 (v01 AMDFCH FCHZP 00001000 INTL 20120913) Jun 26 13:13:26 dilbert kernel: ACPI: UEFI 0x00000000DD10A700 000042 (v01 00000000 00000000) Jun 26 13:13:26 dilbert kernel: ACPI: IVRS 0x00000000DD10A748 0000D0 (v02 AMD AMD IVRS 00000001 AMD 00000000) Jun 26 13:13:26 dilbert kernel: ACPI: SSDT 0x00000000DD10A818 0000F8 (v01 AMD AMD PT 00001000 INTL 20120913) Jun 26 13:13:26 dilbert kernel: ACPI: SSDT 0x00000000DD10A910 001A41 (v01 AMD AmdTable 00000001 INTL 20120913) Jun 26 13:13:26 dilbert kernel: ACPI: WSMT 0x00000000DD10C358 000028 (v01 ALASKA A M I 01072009 AMI 00010013) Jun 26 13:13:26 dilbert kernel: MADT: Found IO APIC ID 17, Interrupt 0 at 0xfec00000 Jun 26 13:13:26 dilbert kernel: ioapic0: Changing APIC ID to 17 Jun 26 13:13:26 dilbert kernel: ioapic0: ver 0x21 maxredir 0x17 Jun 26 13:13:26 dilbert kernel: ioapic0: Routing external 8259A's -> intpin 0 Jun 26 13:13:26 dilbert kernel: MADT: Found IO APIC ID 18, Interrupt 24 at 0xfec01000 Jun 26 13:13:26 dilbert kernel: ioapic1: Changing APIC ID to 18 Jun 26 13:13:26 dilbert kernel: ioapic1: ver 0x21 maxredir 0x1f Jun 26 13:13:26 dilbert kernel: lapic: Routing NMI -> LINT1 Jun 26 13:13:26 dilbert kernel: lapic: LINT1 trigger: edge Jun 26 13:13:26 dilbert kernel: lapic: LINT1 polarity: high Jun 26 13:13:26 dilbert kernel: MADT: Interrupt override: source 0, irq 2 Jun 26 13:13:26 dilbert kernel: ioapic0: Routing IRQ 0 -> intpin 2 Jun 26 13:13:26 dilbert kernel: MADT: Interrupt override: source 9, irq 9 Jun 26 13:13:26 dilbert kernel: ioapic0: intpin 9 trigger: level Jun 26 13:13:26 dilbert kernel: ioapic0: intpin 9 polarity: low Jun 26 13:13:26 dilbert kernel: ioapic0 <Version 2.1> irqs 0-23 on motherboard Jun 26 13:13:26 dilbert kernel: ioapic1 <Version 2.1> irqs 24-55 on motherboard Jun 26 13:13:26 dilbert kernel: lapic: Divisor 2, Frequency 50001164 Hz Jun 26 13:13:26 dilbert kernel: cpu0 BSP: Jun 26 13:13:26 dilbert kernel: ID: 0x00000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #15 Launched! Jun 26 13:13:26 dilbert kernel: cpu15 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x0f000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #13 Launched! Jun 26 13:13:26 dilbert kernel: cpu13 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x0d000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #9 Launched! Jun 26 13:13:26 dilbert kernel: cpu9 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x09000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #7 Launched! Jun 26 13:13:26 dilbert kernel: cpu7 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x07000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #3 Launched! Jun 26 13:13:26 dilbert kernel: cpu3 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x03000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #8 Launched! Jun 26 13:13:26 dilbert kernel: cpu8 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x08000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #11 Launched! Jun 26 13:13:26 dilbert kernel: cpu11 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x0b000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #4 Launched! Jun 26 13:13:26 dilbert kernel: cpu4 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x04000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #2 Launched! Jun 26 13:13:26 dilbert kernel: cpu2 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x02000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #5 Launched! Jun 26 13:13:26 dilbert kernel: cpu5 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x05000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #1 Launched! Jun 26 13:13:26 dilbert kernel: cpu1 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x01000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #12 Launched! Jun 26 13:13:26 dilbert kernel: cpu12 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x0c000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #14 Launched! Jun 26 13:13:26 dilbert kernel: cpu14 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x0e000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #10 Launched! Jun 26 13:13:26 dilbert kernel: cpu10 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x0a000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: AP CPU #6 Launched! Jun 26 13:13:26 dilbert kernel: cpu6 AP: Jun 26 13:13:26 dilbert kernel: ID: 0x06000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff Jun 26 13:13:26 dilbert kernel: lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff Jun 26 13:13:26 dilbert kernel: timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400 Jun 26 13:13:26 dilbert kernel: AMD ext features: 0x00040007 Jun 26 13:13:26 dilbert kernel: AMD elvt0: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt1: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt2: 0x00010000 Jun 26 13:13:26 dilbert kernel: AMD elvt3: 0x00010000 Jun 26 13:13:26 dilbert kernel: SMP: passed TSC synchronization test Jun 26 13:13:26 dilbert kernel: TSC timecounter discards lower 1 bit(s) Jun 26 13:13:26 dilbert kernel: Timecounter "TSC-low" frequency 1500034875 Hz quality 1000 Jun 26 13:13:26 dilbert kernel: snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024] Jun 26 13:13:26 dilbert kernel: feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25 Jun 26 13:13:26 dilbert kernel: random: entropy device external interface
On 06/26/18 13:29, Konstantin Belousov wrote:> On Tue, Jun 26, 2018 at 11:31:26AM +0100, Pete French wrote: >>> On 06/18/2018 09:34, Pete French wrote: >>>> Preseumably in the slightly longer term these workarounds go into the >>>> actual kernel if it detects Ryzen ? >>> >>> Yes, Kostik said he would code this into the kernel after he gets enough >>> feedback. >> >> So, I've been running with the sysctl and cputl fixes from >> https://lists.freebsd.org/pipermail/freebsd-current/2018-June/069799.html >> for a couple of weeks now, with all the default settings back on (including >> SMT) and it now completely stable, so consider this one more point of feedbackSame here on FreeBSD monster 11.2-BETA2 FreeBSD 11.2-BETA2 #1 r334062: Tue May 22 23:46:29 CEST 2018 root at monster:/usr/obj/usr/src/sys/GENERIC amd64 with a Threadripper 1950X and % sudo x86info -a | grep Microcode Microcode patch level: 0x8001136 Without that script, the system would lockup up to 5-6 times a day. Now running without any lockup at all for 3 days, with all kinds of workload from idle to torture tests. Too early to tell, but it looks good for now. CPU: AMD Ryzen Threadripper 1950X 16-Core Processor (3393.71-MHz K8-class CPU) Origin="AuthenticAMD" Id=0x800f11 Family=0x17 Model=0x1 Stepping=1 Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA, CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE, POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> AMD Features2=0x35c233ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX> Structured Extended Features=0x209c01a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA> XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES> AMD Extended Feature Extensions ID EBX=0x1007<CLZERO,IRPerf,XSaveErPtr> SVM: (disabled in BIOS) NP,NRIP,VClean,AFlush,DAssist,NAsids=32768 TSC: P-state invariant, performance statistics Thanks, -cpghost. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3992 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20180630/6a46ff6b/attachment.bin>
> % sudo x86info -a | grep Microcode > Microcode patch level: 0x8001136 > > Without that script, the system would lockup up to 5-6 times a day. > Now running without any lockup at all for 3 days, with all kinds > of workload from idle to torture tests. Too early to tell, but it > looks good for now.This is interseting to me because (as per previous emial) I have tried *without* the script, and it seems stable to me with that too! root at dilbert:/home/petefrench # x86info -a | grep Microcode Microcode patch level: 0x8001137 So, I am running a slightly later microcode than you are - want to give that a try without the atch maybe ? Though I see its going into the kernel which makes me very happy, as I prefer stability over pretty much anything else on my machines :-) -pete.