Clock issues (CPU frequency, TSC skew, tsc_timecounter_init)

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Clock issues (CPU frequency, TSC skew, tsc_timecounter_init)

Andre Smagin
Hello.

I recently started having clock issues - on first cold boot, the
clock advances 1 minute every 3-4 actual seconds, which causes
keyboard input to go haywire. I immediately shutdown using the hardware
power button and reboot. Sometimes I manage to soft reboot via shell
(but typing is difficult due to insanely high repeat rate). In both
cases, the second boot works fine. I remember seeing some source
changes dealing with the CPU clock sync and I *think* my issues started
with snapshots around that time.

I am attaching two dmesges - one from good, one from bad session.
The main differences seem to be:

< cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4000.80 MHz, 15-02-00
> cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4001.94 MHz, 15-02-00

< TSC skew=73
< cpu1: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
> TSC skew=116
> cpu1: AMD FX(tm)-8350 Eight-Core Processor, 396.93 MHz, 15-02-00

< tsc_timecounter_init: TSC skew=73 observed drift=0
> tsc_timecounter_init: TSC skew=116 observed drift=0

< TSC skew=-10
< cpu2: AMD FX(tm)-8350 Eight-Core Processor, 4000.15 MHz, 15-02-00
> TSC skew=167
> cpu2: AMD FX(tm)-8350 Eight-Core Processor, 397.10 MHz, 15-02-00
...

-------------
Normal boot when everything seems to work:

OpenBSD 6.6-beta (GENERIC.MP) #241: Thu Aug 22 09:08:42 MDT 2019
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 34325725184 (32735MB)
avail mem = 33272758272 (31731MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f400 (52 entries)
bios0: vendor American Megatrends Inc. version "V1.15" date 10/31/2012
bios0: MSI MS-7640
acpi0 at bios0: ACPI 1.0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC OEMB HPET IVRS SSDT
acpi0: wakeup devices PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4) PC09(S4) PC0A(S4) PC0B(S4) PC0C(S4) PC0D(S4) SBAZ(S4) P0PC(S4) UHC1(S4) UHC2(S4) USB3(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4000.80 MHz, 15-02-00
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=0 observed drift=0
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 17 (application processor)
TSC skew=73
cpu1: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=73 observed drift=0
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 18 (application processor)
TSC skew=-10
cpu2: AMD FX(tm)-8350 Eight-Core Processor, 4000.15 MHz, 15-02-00
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-10 observed drift=0
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 19 (application processor)
TSC skew=-39
cpu3: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-39 observed drift=0
cpu3: smt 1, core 1, package 0
cpu4 at mainbus0: apid 20 (application processor)
TSC skew=-12
cpu4: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu4: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu4: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu4: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-12 observed drift=0
cpu4: smt 0, core 2, package 0
cpu5 at mainbus0: apid 21 (application processor)
TSC skew=-37
cpu5: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
cpu5: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu5: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu5: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu5: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-37 observed drift=0
cpu5: smt 1, core 2, package 0
cpu6 at mainbus0: apid 22 (application processor)
TSC skew=-184
cpu6: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
cpu6: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu6: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu6: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu6: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-184 observed drift=0
cpu6: smt 0, core 3, package 0
cpu7 at mainbus0: apid 23 (application processor)
TSC skew=-23
cpu7: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
cpu7: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu7: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu7: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu7: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-23 observed drift=0
cpu7: smt 1, core 3, package 0
ioapic0 at mainbus0: apid 24 pa 0xfec00000, version 21, 24 pins, can't remap
ioapic1 at mainbus0: apid 25 pa 0xfec20000, version 21, 32 pins, can't remap
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PC02)
acpiprt2 at acpi0: bus 7 (PC03)
acpiprt3 at acpi0: bus -1 (PC04)
acpiprt4 at acpi0: bus 6 (PC05)
acpiprt5 at acpi0: bus -1 (PC06)
acpiprt6 at acpi0: bus -1 (PC07)
acpiprt7 at acpi0: bus 4 (PC09)
acpiprt8 at acpi0: bus -1 (PC0A)
acpiprt9 at acpi0: bus -1 (PC0B)
acpiprt10 at acpi0: bus -1 (PC0C)
acpiprt11 at acpi0: bus -1 (PC0D)
acpiprt12 at acpi0: bus 3 (P0PC)
acpiprt13 at acpi0: bus 2 (PE20)
acpiprt14 at acpi0: bus 1 (PE21)
acpiprt15 at acpi0: bus -1 (PE22)
acpiprt16 at acpi0: bus -1 (PE23)
acpicpu0 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu2 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu3 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu4 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu5 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu6 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu7 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpipci0 at acpi0 PCI0: _OSC failed
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB
"PNP0C14" at acpi0 not configured
cpu0: 4000 MHz: speeds: 4000 3400 2800 2100 1400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "ATI RD890 Host" rev 0x02
"ATI SR5690 IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
ppb0 at pci0 dev 3 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci1 at ppb0 bus 7
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 6770" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 5700 Audio" rev 0x00: msi
azalia0: no supported codecs
ppb1 at pci0 dev 5 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci2 at ppb1 bus 6
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D (0x2800), msi, address 40:61:86:f2:9e:f4
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
ppb2 at pci0 dev 9 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci3 at ppb2 bus 4
xhci0 at pci3 dev 0 function 0 "NEC xHCI" rev 0x03: msi, xHCI 0.96
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "NEC xHCI root hub" rev 3.00/1.00 addr 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 24 int 19, AHCI 1.2
ahci0: port 0: 1.5Gb/s
ahci0: port 1: 1.5Gb/s
ahci0: port 2: 6.0Gb/s
ahci0: port 3: 6.0Gb/s
ahci0: port 4: 3.0Gb/s
scsibus1 at ahci0: 32 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, BD-RE WH14NS40, 1.03> ATAPI 5/cdrom removable
cd1 at scsibus1 targ 1 lun 0: <ATAPI, iHAS324 F, CL8E> ATAPI 5/cdrom removable
sd0 at scsibus1 targ 2 lun 0: <ATA, SAMSUNG SSD 830, CXM0> SCSI3 0/direct fixed naa.5002538043584d30
sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
sd1 at scsibus1 targ 3 lun 0: <ATA, KINGSTON SV300S3, 505A> SCSI3 0/direct fixed naa.50026b773a0278cd
sd1: 114473MB, 512 bytes/sector, 234441648 sectors, thin
sd2 at scsibus1 targ 4 lun 0: <ATA, ST3500830AS, 3.AF> SCSI3 0/direct fixed t10.ATA_ST3500830AS_9QG7Y592
sd2: 476940MB, 512 bytes/sector, 976773168 sectors
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x41: polling
iic0 at piixpm0
iic0: addr 0x20 01=0e 02=1d 03=2d 04=00 05=00 06=00 07=00 08=00 09=e4 0a=00 0b=00 0c=00 0d=00 0e=46 0f=96 10=00 11=00 12=00 13=00 14=00 15=00 16=00 17=9c 18=c0 19=40 1a=00 1b=00 1c=00 1d=00 1e=0c 1f=01 20=09 21=09 22=09 23=09 24=3b 3e=03 words 00=ff0e 01=0e1d 02=1d2d 03=2d00 04=0000 05=0000 06=0000 07=0000
spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800
spdmem1 at iic0 addr 0x51: 8GB DDR3 SDRAM PC3-12800
spdmem2 at iic0 addr 0x52: 8GB DDR3 SDRAM PC3-12800
spdmem3 at iic0 addr 0x53: 8GB DDR3 SDRAM PC3-12800
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 24 int 16
azalia1: codecs: Realtek/0x0889
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb3 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci4 at ppb3 bus 3
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ppb4 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00: msi
pci5 at ppb4 bus 2
ppb5 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
pci6 at ppb5 bus 1
jmb0 at pci6 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03
ahci1 at jmb0: apic 24 int 17, AHCI 1.0
scsibus2 at ahci1: 32 targets
pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide0: using apic 24 int 17 for native-PCI interrupt
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb3 at ehci2: USB revision 2.0
uhub3 at usb3 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 15/0xh Link Cfg" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 15/0xh Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 15/0xh DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 15/0xh Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 15/0xh CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 15/0xh Host" rev 0x00
usb4 at ohci0: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci1: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb6 at ohci2: USB revision 1.0
uhub6 at usb6 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb7 at ohci3: USB revision 1.0
uhub7 at usb7 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
vmm0 at mainbus0: SVM/RVI
uhidev0 at uhub4 port 5 configuration 1 interface 0 "Microsoft Comfort Mouse 6000" rev 2.00/1.44 addr 2
uhidev0: iclass 3/1, 28 report ids
ums0 at uhidev0 reportid 16: 5 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev0 reportid 18: input=0, output=0, feature=1
uhid1 at uhidev0 reportid 19: input=1, output=0, feature=0
uhid2 at uhidev0 reportid 22: input=4, output=0, feature=0
uhid3 at uhidev0 reportid 23: input=0, output=0, feature=1
uhid4 at uhidev0 reportid 24: input=0, output=0, feature=1
uhid5 at uhidev0 reportid 28: input=1, output=0, feature=0
uhidev1 at uhub5 port 1 configuration 1 interface 0 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev2 at uhub5 port 1 configuration 1 interface 1 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
uhidev2: iclass 3/1, 2 report ids
uhid6 at uhidev2 reportid 1: input=2, output=0, feature=0
uhid7 at uhidev2 reportid 2: input=1, output=0, feature=0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (35bb33af35f21faa.a) swap on sd0b dump on sd0b
initializing kernel modesetting (JUNIPER 0x1002:0x68BA 0x1682:0x3150 0x00).
radeondrm0: 1920x1080, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

-------------

Bad session, with ultra-fast clock:

OpenBSD 6.6-beta (GENERIC.MP) #241: Thu Aug 22 09:08:42 MDT 2019
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 34325725184 (32735MB)
avail mem = 33272745984 (31731MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f400 (52 entries)
bios0: vendor American Megatrends Inc. version "V1.15" date 10/31/2012
bios0: MSI MS-7640
acpi0 at bios0: ACPI 1.0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC OEMB HPET IVRS SSDT
acpi0: wakeup devices PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4) PC09(S4) PC0A(S4) PC0B(S4) PC0C(S4) PC0D(S4) SBAZ(S4) P0PC(S4) UHC1(S4) UHC2(S4) USB3(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4001.94 MHz, 15-02-00
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=0 observed drift=0
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 17 (application processor)
TSC skew=116
cpu1: AMD FX(tm)-8350 Eight-Core Processor, 396.93 MHz, 15-02-00
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=116 observed drift=0
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 18 (application processor)
TSC skew=167
cpu2: AMD FX(tm)-8350 Eight-Core Processor, 397.10 MHz, 15-02-00
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=167 observed drift=0
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 19 (application processor)
TSC skew=94
cpu3: AMD FX(tm)-8350 Eight-Core Processor, 397.09 MHz, 15-02-00
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=94 observed drift=0
cpu3: smt 1, core 1, package 0
cpu4 at mainbus0: apid 20 (application processor)
TSC skew=171
cpu4: AMD FX(tm)-8350 Eight-Core Processor, 396.69 MHz, 15-02-00
cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu4: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu4: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu4: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=171 observed drift=0
cpu4: smt 0, core 2, package 0
cpu5 at mainbus0: apid 21 (application processor)
TSC skew=-22
cpu5: AMD FX(tm)-8350 Eight-Core Processor, 396.69 MHz, 15-02-00
cpu5: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu5: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu5: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu5: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-22 observed drift=0
cpu5: smt 1, core 2, package 0
cpu6 at mainbus0: apid 22 (application processor)
TSC skew=146
cpu6: AMD FX(tm)-8350 Eight-Core Processor, 397.09 MHz, 15-02-00
cpu6: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu6: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu6: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu6: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=146 observed drift=0
cpu6: smt 0, core 3, package 0
cpu7 at mainbus0: apid 23 (application processor)
TSC skew=-45
cpu7: AMD FX(tm)-8350 Eight-Core Processor, 397.08 MHz, 15-02-00
cpu7: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu7: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu7: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu7: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-45 observed drift=0
cpu7: smt 1, core 3, package 0
ioapic0 at mainbus0: apid 24 pa 0xfec00000, version 21, 24 pins, can't remap
ioapic1 at mainbus0: apid 25 pa 0xfec20000, version 21, 32 pins, can't remap
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PC02)
acpiprt2 at acpi0: bus 7 (PC03)
acpiprt3 at acpi0: bus -1 (PC04)
acpiprt4 at acpi0: bus 6 (PC05)
acpiprt5 at acpi0: bus -1 (PC06)
acpiprt6 at acpi0: bus -1 (PC07)
acpiprt7 at acpi0: bus 4 (PC09)
acpiprt8 at acpi0: bus -1 (PC0A)
acpiprt9 at acpi0: bus -1 (PC0B)
acpiprt10 at acpi0: bus -1 (PC0C)
acpiprt11 at acpi0: bus -1 (PC0D)
acpiprt12 at acpi0: bus 3 (P0PC)
acpiprt13 at acpi0: bus 2 (PE20)
acpiprt14 at acpi0: bus 1 (PE21)
acpiprt15 at acpi0: bus -1 (PE22)
acpiprt16 at acpi0: bus -1 (PE23)
acpicpu0 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu2 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu3 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu4 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu5 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu6 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu7 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpipci0 at acpi0 PCI0: _OSC failed
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB
"PNP0C14" at acpi0 not configured
cpu0: 4001 MHz: speeds: 4000 3400 2800 2100 1400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "ATI RD890 Host" rev 0x02
"ATI SR5690 IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
ppb0 at pci0 dev 3 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci1 at ppb0 bus 7
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 6770" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 5700 Audio" rev 0x00: msi
azalia0: no supported codecs
ppb1 at pci0 dev 5 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci2 at ppb1 bus 6
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D (0x2800), msi, address 40:61:86:f2:9e:f4
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
ppb2 at pci0 dev 9 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci3 at ppb2 bus 4
xhci0 at pci3 dev 0 function 0 "NEC xHCI" rev 0x03: msi, xHCI 0.96
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "NEC xHCI root hub" rev 3.00/1.00 addr 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 24 int 19, AHCI 1.2
ahci0: port 0: 1.5Gb/s
ahci0: port 1: 1.5Gb/s
ahci0: port 2: 6.0Gb/s
ahci0: port 3: 6.0Gb/s
ahci0: port 4: 3.0Gb/s
scsibus1 at ahci0: 32 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, BD-RE WH14NS40, 1.03> ATAPI 5/cdrom removable
cd1 at scsibus1 targ 1 lun 0: <ATAPI, iHAS324 F, CL8E> ATAPI 5/cdrom removable
sd0 at scsibus1 targ 2 lun 0: <ATA, SAMSUNG SSD 830, CXM0> SCSI3 0/direct fixed naa.5002538043584d30
sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
sd1 at scsibus1 targ 3 lun 0: <ATA, KINGSTON SV300S3, 505A> SCSI3 0/direct fixed naa.50026b773a0278cd
sd1: 114473MB, 512 bytes/sector, 234441648 sectors, thin
sd2 at scsibus1 targ 4 lun 0: <ATA, ST3500830AS, 3.AF> SCSI3 0/direct fixed t10.ATA_ST3500830AS_9QG7Y592
sd2: 476940MB, 512 bytes/sector, 976773168 sectors
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x41: polling
iic0 at piixpm0
iic0: addr 0x20 01=0e 02=1d 03=2d 04=00 05=00 06=00 07=00 08=00 09=e4 0a=00 0b=00 0c=00 0d=00 0e=3f 0f=96 10=00 11=00 12=00 13=00 14=00 15=00 16=00 17=9c 18=c0 19=40 1a=00 1b=00 1c=00 1d=00 1e=0c 1f=01 20=09 21=09 22=09 23=09 24=3b 3e=03 words 00=ff0e 01=0e1d 02=1d2d 03=2d00 04=0000 05=0000 06=0000 07=0000
spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800
spdmem1 at iic0 addr 0x51: 8GB DDR3 SDRAM PC3-12800
spdmem2 at iic0 addr 0x52: 8GB DDR3 SDRAM PC3-12800
spdmem3 at iic0 addr 0x53: 8GB DDR3 SDRAM PC3-12800
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 24 int 16
azalia1: codecs: Realtek/0x0889
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb3 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci4 at ppb3 bus 3
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ppb4 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00: msi
pci5 at ppb4 bus 2
ppb5 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
pci6 at ppb5 bus 1
jmb0 at pci6 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03
ahci1 at jmb0: apic 24 int 17, AHCI 1.0
scsibus2 at ahci1: 32 targets
pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide0: using apic 24 int 17 for native-PCI interrupt
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb3 at ehci2: USB revision 2.0
uhub3 at usb3 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 15/0xh Link Cfg" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 15/0xh Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 15/0xh DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 15/0xh Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 15/0xh CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 15/0xh Host" rev 0x00
usb4 at ohci0: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci1: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb6 at ohci2: USB revision 1.0
uhub6 at usb6 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb7 at ohci3: USB revision 1.0
uhub7 at usb7 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
vmm0 at mainbus0: SVM/RVI
uhidev0 at uhub4 port 5 configuration 1 interface 0 "Microsoft Comfort Mouse 6000" rev 2.00/1.44 addr 2
uhidev0: iclass 3/1, 28 report ids
ums0 at uhidev0 reportid 16: 5 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev0 reportid 18: input=0, output=0, feature=1
uhid1 at uhidev0 reportid 19: input=1, output=0, feature=0
uhid2 at uhidev0 reportid 22: input=4, output=0, feature=0
uhid3 at uhidev0 reportid 23: input=0, output=0, feature=1
uhid4 at uhidev0 reportid 24: input=0, output=0, feature=1
uhid5 at uhidev0 reportid 28: input=1, output=0, feature=0
uhidev1 at uhub5 port 1 configuration 1 interface 0 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev2 at uhub5 port 1 configuration 1 interface 1 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
uhidev2: iclass 3/1, 2 report ids
uhid6 at uhidev2 reportid 1: input=2, output=0, feature=0
uhid7 at uhidev2 reportid 2: input=1, output=0, feature=0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (35bb33af35f21faa.a) swap on sd0b dump on sd0b
initializing kernel modesetting (JUNIPER 0x1002:0x68BA 0x1682:0x3150 0x00).
radeondrm0: 1920x1080, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)


Reply | Threaded
Open this post in threaded view
|

Re: Clock issues (CPU frequency, TSC skew, tsc_timecounter_init)

Mark Patruck
I also saw high process utilization issues wrt net/zabbix here and after
going back via cvs (-D "3 weeks ago", -D "2 weeks ago", ...) i found the
problematic change (1) and already contacted pirofti@

For me it helps to build a kernel w/o this commit or set
"kernel.timecounter.hardware" from "tsc" back to "acpihpet0" via
/etc/sysctl.conf or directly while the system is running.
  (1) https://marc.info/?l=openbsd-cvs&m=156536401524562&w=2


On 8/24/19 2:33 AM, Andre Smagin wrote:

> Hello.
>
> I recently started having clock issues - on first cold boot, the
> clock advances 1 minute every 3-4 actual seconds, which causes
> keyboard input to go haywire. I immediately shutdown using the hardware
> power button and reboot. Sometimes I manage to soft reboot via shell
> (but typing is difficult due to insanely high repeat rate). In both
> cases, the second boot works fine. I remember seeing some source
> changes dealing with the CPU clock sync and I *think* my issues started
> with snapshots around that time.
>
> I am attaching two dmesges - one from good, one from bad session.
> The main differences seem to be:
>
> < cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4000.80 MHz, 15-02-00
>> cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4001.94 MHz, 15-02-00
>
> < TSC skew=73
> < cpu1: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
>> TSC skew=116
>> cpu1: AMD FX(tm)-8350 Eight-Core Processor, 396.93 MHz, 15-02-00
>
> < tsc_timecounter_init: TSC skew=73 observed drift=0
>> tsc_timecounter_init: TSC skew=116 observed drift=0
>
> < TSC skew=-10
> < cpu2: AMD FX(tm)-8350 Eight-Core Processor, 4000.15 MHz, 15-02-00
>> TSC skew=167
>> cpu2: AMD FX(tm)-8350 Eight-Core Processor, 397.10 MHz, 15-02-00
> ...
>
> -------------
> Normal boot when everything seems to work:
>
> OpenBSD 6.6-beta (GENERIC.MP) #241: Thu Aug 22 09:08:42 MDT 2019
>      [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 34325725184 (32735MB)
> avail mem = 33272758272 (31731MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f400 (52 entries)
> bios0: vendor American Megatrends Inc. version "V1.15" date 10/31/2012
> bios0: MSI MS-7640
> acpi0 at bios0: ACPI 1.0
> acpi0: sleep states S0 S1 S4 S5
> acpi0: tables DSDT FACP APIC MCFG SLIC OEMB HPET IVRS SSDT
> acpi0: wakeup devices PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4) PC09(S4) PC0A(S4) PC0B(S4) PC0C(S4) PC0D(S4) SBAZ(S4) P0PC(S4) UHC1(S4) UHC2(S4) USB3(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 16 (boot processor)
> cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4000.80 MHz, 15-02-00
> cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=0 observed drift=0
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 200MHz
> cpu0: mwait min=64, max=64, IBE
> cpu1 at mainbus0: apid 17 (application processor)
> TSC skew=73
> cpu1: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
> cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=73 observed drift=0
> cpu1: smt 1, core 0, package 0
> cpu2 at mainbus0: apid 18 (application processor)
> TSC skew=-10
> cpu2: AMD FX(tm)-8350 Eight-Core Processor, 4000.15 MHz, 15-02-00
> cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=-10 observed drift=0
> cpu2: smt 0, core 1, package 0
> cpu3 at mainbus0: apid 19 (application processor)
> TSC skew=-39
> cpu3: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
> cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=-39 observed drift=0
> cpu3: smt 1, core 1, package 0
> cpu4 at mainbus0: apid 20 (application processor)
> TSC skew=-12
> cpu4: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
> cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu4: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu4: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu4: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=-12 observed drift=0
> cpu4: smt 0, core 2, package 0
> cpu5 at mainbus0: apid 21 (application processor)
> TSC skew=-37
> cpu5: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
> cpu5: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu5: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu5: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu5: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=-37 observed drift=0
> cpu5: smt 1, core 2, package 0
> cpu6 at mainbus0: apid 22 (application processor)
> TSC skew=-184
> cpu6: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
> cpu6: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu6: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu6: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu6: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=-184 observed drift=0
> cpu6: smt 0, core 3, package 0
> cpu7 at mainbus0: apid 23 (application processor)
> TSC skew=-23
> cpu7: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
> cpu7: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu7: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu7: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu7: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=-23 observed drift=0
> cpu7: smt 1, core 3, package 0
> ioapic0 at mainbus0: apid 24 pa 0xfec00000, version 21, 24 pins, can't remap
> ioapic1 at mainbus0: apid 25 pa 0xfec20000, version 21, 32 pins, can't remap
> acpimcfg0 at acpi0
> acpimcfg0: addr 0xe0000000, bus 0-255
> acpihpet0 at acpi0: 14318180 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (PC02)
> acpiprt2 at acpi0: bus 7 (PC03)
> acpiprt3 at acpi0: bus -1 (PC04)
> acpiprt4 at acpi0: bus 6 (PC05)
> acpiprt5 at acpi0: bus -1 (PC06)
> acpiprt6 at acpi0: bus -1 (PC07)
> acpiprt7 at acpi0: bus 4 (PC09)
> acpiprt8 at acpi0: bus -1 (PC0A)
> acpiprt9 at acpi0: bus -1 (PC0B)
> acpiprt10 at acpi0: bus -1 (PC0C)
> acpiprt11 at acpi0: bus -1 (PC0D)
> acpiprt12 at acpi0: bus 3 (P0PC)
> acpiprt13 at acpi0: bus 2 (PE20)
> acpiprt14 at acpi0: bus 1 (PE21)
> acpiprt15 at acpi0: bus -1 (PE22)
> acpiprt16 at acpi0: bus -1 (PE23)
> acpicpu0 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu1 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu2 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu3 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu4 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu5 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu6 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu7 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpipci0 at acpi0 PCI0: _OSC failed
> acpicmos0 at acpi0
> acpibtn0 at acpi0: PWRB
> "PNP0C14" at acpi0 not configured
> cpu0: 4000 MHz: speeds: 4000 3400 2800 2100 1400 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "ATI RD890 Host" rev 0x02
> "ATI SR5690 IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
> ppb0 at pci0 dev 3 function 0 "ATI SR5690 PCIE" rev 0x00: msi
> pci1 at ppb0 bus 7
> radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 6770" rev 0x00
> drm0 at radeondrm0
> radeondrm0: msi
> azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 5700 Audio" rev 0x00: msi
> azalia0: no supported codecs
> ppb1 at pci0 dev 5 function 0 "ATI SR5690 PCIE" rev 0x00: msi
> pci2 at ppb1 bus 6
> re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D (0x2800), msi, address 40:61:86:f2:9e:f4
> rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
> ppb2 at pci0 dev 9 function 0 "ATI SR5690 PCIE" rev 0x00: msi
> pci3 at ppb2 bus 4
> xhci0 at pci3 dev 0 function 0 "NEC xHCI" rev 0x03: msi, xHCI 0.96
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "NEC xHCI root hub" rev 3.00/1.00 addr 1
> ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 24 int 19, AHCI 1.2
> ahci0: port 0: 1.5Gb/s
> ahci0: port 1: 1.5Gb/s
> ahci0: port 2: 6.0Gb/s
> ahci0: port 3: 6.0Gb/s
> ahci0: port 4: 3.0Gb/s
> scsibus1 at ahci0: 32 targets
> cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, BD-RE WH14NS40, 1.03> ATAPI 5/cdrom removable
> cd1 at scsibus1 targ 1 lun 0: <ATAPI, iHAS324 F, CL8E> ATAPI 5/cdrom removable
> sd0 at scsibus1 targ 2 lun 0: <ATA, SAMSUNG SSD 830, CXM0> SCSI3 0/direct fixed naa.5002538043584d30
> sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
> sd1 at scsibus1 targ 3 lun 0: <ATA, KINGSTON SV300S3, 505A> SCSI3 0/direct fixed naa.50026b773a0278cd
> sd1: 114473MB, 512 bytes/sector, 234441648 sectors, thin
> sd2 at scsibus1 targ 4 lun 0: <ATA, ST3500830AS, 3.AF> SCSI3 0/direct fixed t10.ATA_ST3500830AS_9QG7Y592
> sd2: 476940MB, 512 bytes/sector, 976773168 sectors
> ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
> ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
> usb1 at ehci0: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
> ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
> ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
> usb2 at ehci1: USB revision 2.0
> uhub2 at usb2 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
> piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x41: polling
> iic0 at piixpm0
> iic0: addr 0x20 01=0e 02=1d 03=2d 04=00 05=00 06=00 07=00 08=00 09=e4 0a=00 0b=00 0c=00 0d=00 0e=46 0f=96 10=00 11=00 12=00 13=00 14=00 15=00 16=00 17=9c 18=c0 19=40 1a=00 1b=00 1c=00 1d=00 1e=0c 1f=01 20=09 21=09 22=09 23=09 24=3b 3e=03 words 00=ff0e 01=0e1d 02=1d2d 03=2d00 04=0000 05=0000 06=0000 07=0000
> spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800
> spdmem1 at iic0 addr 0x51: 8GB DDR3 SDRAM PC3-12800
> spdmem2 at iic0 addr 0x52: 8GB DDR3 SDRAM PC3-12800
> spdmem3 at iic0 addr 0x53: 8GB DDR3 SDRAM PC3-12800
> azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 24 int 16
> azalia1: codecs: Realtek/0x0889
> audio0 at azalia1
> pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
> ppb3 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
> pci4 at ppb3 bus 3
> ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
> ppb4 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00: msi
> pci5 at ppb4 bus 2
> ppb5 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
> pci6 at ppb5 bus 1
> jmb0 at pci6 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03
> ahci1 at jmb0: apic 24 int 17, AHCI 1.0
> scsibus2 at ahci1: 32 targets
> pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to native-PCI
> pciide0: using apic 24 int 17 for native-PCI interrupt
> pciide0: channel 0 disabled (no drives)
> pciide0: channel 1 disabled (no drives)
> ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
> ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
> usb3 at ehci2: USB revision 2.0
> uhub3 at usb3 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
> pchb1 at pci0 dev 24 function 0 "AMD AMD64 15/0xh Link Cfg" rev 0x00
> pchb2 at pci0 dev 24 function 1 "AMD AMD64 15/0xh Address Map" rev 0x00
> pchb3 at pci0 dev 24 function 2 "AMD AMD64 15/0xh DRAM Cfg" rev 0x00
> km0 at pci0 dev 24 function 3 "AMD AMD64 15/0xh Misc Cfg" rev 0x00
> pchb4 at pci0 dev 24 function 4 "AMD AMD64 15/0xh CPU Power" rev 0x00
> pchb5 at pci0 dev 24 function 5 "AMD AMD64 15/0xh Host" rev 0x00
> usb4 at ohci0: USB revision 1.0
> uhub4 at usb4 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
> usb5 at ohci1: USB revision 1.0
> uhub5 at usb5 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> usb6 at ohci2: USB revision 1.0
> uhub6 at usb6 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
> usb7 at ohci3: USB revision 1.0
> uhub7 at usb7 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
> vmm0 at mainbus0: SVM/RVI
> uhidev0 at uhub4 port 5 configuration 1 interface 0 "Microsoft Comfort Mouse 6000" rev 2.00/1.44 addr 2
> uhidev0: iclass 3/1, 28 report ids
> ums0 at uhidev0 reportid 16: 5 buttons, Z and W dir
> wsmouse0 at ums0 mux 0
> uhid0 at uhidev0 reportid 18: input=0, output=0, feature=1
> uhid1 at uhidev0 reportid 19: input=1, output=0, feature=0
> uhid2 at uhidev0 reportid 22: input=4, output=0, feature=0
> uhid3 at uhidev0 reportid 23: input=0, output=0, feature=1
> uhid4 at uhidev0 reportid 24: input=0, output=0, feature=1
> uhid5 at uhidev0 reportid 28: input=1, output=0, feature=0
> uhidev1 at uhub5 port 1 configuration 1 interface 0 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
> uhidev1: iclass 3/1
> ukbd0 at uhidev1: 8 variable keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> uhidev2 at uhub5 port 1 configuration 1 interface 1 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
> uhidev2: iclass 3/1, 2 report ids
> uhid6 at uhidev2 reportid 1: input=2, output=0, feature=0
> uhid7 at uhidev2 reportid 2: input=1, output=0, feature=0
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> root on sd0a (35bb33af35f21faa.a) swap on sd0b dump on sd0b
> initializing kernel modesetting (JUNIPER 0x1002:0x68BA 0x1682:0x3150 0x00).
> radeondrm0: 1920x1080, 32bpp
> wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
> wskbd1: connecting to wsdisplay0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
>
> -------------
>
> Bad session, with ultra-fast clock:
>
> OpenBSD 6.6-beta (GENERIC.MP) #241: Thu Aug 22 09:08:42 MDT 2019
>      [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 34325725184 (32735MB)
> avail mem = 33272745984 (31731MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f400 (52 entries)
> bios0: vendor American Megatrends Inc. version "V1.15" date 10/31/2012
> bios0: MSI MS-7640
> acpi0 at bios0: ACPI 1.0
> acpi0: sleep states S0 S1 S4 S5
> acpi0: tables DSDT FACP APIC MCFG SLIC OEMB HPET IVRS SSDT
> acpi0: wakeup devices PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4) PC09(S4) PC0A(S4) PC0B(S4) PC0C(S4) PC0D(S4) SBAZ(S4) P0PC(S4) UHC1(S4) UHC2(S4) USB3(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 16 (boot processor)
> cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4001.94 MHz, 15-02-00
> cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=0 observed drift=0
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 200MHz
> cpu0: mwait min=64, max=64, IBE
> cpu1 at mainbus0: apid 17 (application processor)
> TSC skew=116
> cpu1: AMD FX(tm)-8350 Eight-Core Processor, 396.93 MHz, 15-02-00
> cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=116 observed drift=0
> cpu1: smt 1, core 0, package 0
> cpu2 at mainbus0: apid 18 (application processor)
> TSC skew=167
> cpu2: AMD FX(tm)-8350 Eight-Core Processor, 397.10 MHz, 15-02-00
> cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=167 observed drift=0
> cpu2: smt 0, core 1, package 0
> cpu3 at mainbus0: apid 19 (application processor)
> TSC skew=94
> cpu3: AMD FX(tm)-8350 Eight-Core Processor, 397.09 MHz, 15-02-00
> cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=94 observed drift=0
> cpu3: smt 1, core 1, package 0
> cpu4 at mainbus0: apid 20 (application processor)
> TSC skew=171
> cpu4: AMD FX(tm)-8350 Eight-Core Processor, 396.69 MHz, 15-02-00
> cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu4: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu4: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu4: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=171 observed drift=0
> cpu4: smt 0, core 2, package 0
> cpu5 at mainbus0: apid 21 (application processor)
> TSC skew=-22
> cpu5: AMD FX(tm)-8350 Eight-Core Processor, 396.69 MHz, 15-02-00
> cpu5: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu5: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu5: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu5: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=-22 observed drift=0
> cpu5: smt 1, core 2, package 0
> cpu6 at mainbus0: apid 22 (application processor)
> TSC skew=146
> cpu6: AMD FX(tm)-8350 Eight-Core Processor, 397.09 MHz, 15-02-00
> cpu6: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu6: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu6: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu6: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=146 observed drift=0
> cpu6: smt 0, core 3, package 0
> cpu7 at mainbus0: apid 23 (application processor)
> TSC skew=-45
> cpu7: AMD FX(tm)-8350 Eight-Core Processor, 397.08 MHz, 15-02-00
> cpu7: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
> cpu7: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
> cpu7: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
> cpu7: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
> tsc_timecounter_init: TSC skew=-45 observed drift=0
> cpu7: smt 1, core 3, package 0
> ioapic0 at mainbus0: apid 24 pa 0xfec00000, version 21, 24 pins, can't remap
> ioapic1 at mainbus0: apid 25 pa 0xfec20000, version 21, 32 pins, can't remap
> acpimcfg0 at acpi0
> acpimcfg0: addr 0xe0000000, bus 0-255
> acpihpet0 at acpi0: 14318180 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (PC02)
> acpiprt2 at acpi0: bus 7 (PC03)
> acpiprt3 at acpi0: bus -1 (PC04)
> acpiprt4 at acpi0: bus 6 (PC05)
> acpiprt5 at acpi0: bus -1 (PC06)
> acpiprt6 at acpi0: bus -1 (PC07)
> acpiprt7 at acpi0: bus 4 (PC09)
> acpiprt8 at acpi0: bus -1 (PC0A)
> acpiprt9 at acpi0: bus -1 (PC0B)
> acpiprt10 at acpi0: bus -1 (PC0C)
> acpiprt11 at acpi0: bus -1 (PC0D)
> acpiprt12 at acpi0: bus 3 (P0PC)
> acpiprt13 at acpi0: bus 2 (PE20)
> acpiprt14 at acpi0: bus 1 (PE21)
> acpiprt15 at acpi0: bus -1 (PE22)
> acpiprt16 at acpi0: bus -1 (PE23)
> acpicpu0 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu1 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu2 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu3 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu4 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu5 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu6 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpicpu7 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
> acpipci0 at acpi0 PCI0: _OSC failed
> acpicmos0 at acpi0
> acpibtn0 at acpi0: PWRB
> "PNP0C14" at acpi0 not configured
> cpu0: 4001 MHz: speeds: 4000 3400 2800 2100 1400 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "ATI RD890 Host" rev 0x02
> "ATI SR5690 IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
> ppb0 at pci0 dev 3 function 0 "ATI SR5690 PCIE" rev 0x00: msi
> pci1 at ppb0 bus 7
> radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 6770" rev 0x00
> drm0 at radeondrm0
> radeondrm0: msi
> azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 5700 Audio" rev 0x00: msi
> azalia0: no supported codecs
> ppb1 at pci0 dev 5 function 0 "ATI SR5690 PCIE" rev 0x00: msi
> pci2 at ppb1 bus 6
> re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D (0x2800), msi, address 40:61:86:f2:9e:f4
> rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
> ppb2 at pci0 dev 9 function 0 "ATI SR5690 PCIE" rev 0x00: msi
> pci3 at ppb2 bus 4
> xhci0 at pci3 dev 0 function 0 "NEC xHCI" rev 0x03: msi, xHCI 0.96
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "NEC xHCI root hub" rev 3.00/1.00 addr 1
> ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 24 int 19, AHCI 1.2
> ahci0: port 0: 1.5Gb/s
> ahci0: port 1: 1.5Gb/s
> ahci0: port 2: 6.0Gb/s
> ahci0: port 3: 6.0Gb/s
> ahci0: port 4: 3.0Gb/s
> scsibus1 at ahci0: 32 targets
> cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, BD-RE WH14NS40, 1.03> ATAPI 5/cdrom removable
> cd1 at scsibus1 targ 1 lun 0: <ATAPI, iHAS324 F, CL8E> ATAPI 5/cdrom removable
> sd0 at scsibus1 targ 2 lun 0: <ATA, SAMSUNG SSD 830, CXM0> SCSI3 0/direct fixed naa.5002538043584d30
> sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
> sd1 at scsibus1 targ 3 lun 0: <ATA, KINGSTON SV300S3, 505A> SCSI3 0/direct fixed naa.50026b773a0278cd
> sd1: 114473MB, 512 bytes/sector, 234441648 sectors, thin
> sd2 at scsibus1 targ 4 lun 0: <ATA, ST3500830AS, 3.AF> SCSI3 0/direct fixed t10.ATA_ST3500830AS_9QG7Y592
> sd2: 476940MB, 512 bytes/sector, 976773168 sectors
> ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
> ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
> usb1 at ehci0: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
> ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
> ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
> usb2 at ehci1: USB revision 2.0
> uhub2 at usb2 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
> piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x41: polling
> iic0 at piixpm0
> iic0: addr 0x20 01=0e 02=1d 03=2d 04=00 05=00 06=00 07=00 08=00 09=e4 0a=00 0b=00 0c=00 0d=00 0e=3f 0f=96 10=00 11=00 12=00 13=00 14=00 15=00 16=00 17=9c 18=c0 19=40 1a=00 1b=00 1c=00 1d=00 1e=0c 1f=01 20=09 21=09 22=09 23=09 24=3b 3e=03 words 00=ff0e 01=0e1d 02=1d2d 03=2d00 04=0000 05=0000 06=0000 07=0000
> spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800
> spdmem1 at iic0 addr 0x51: 8GB DDR3 SDRAM PC3-12800
> spdmem2 at iic0 addr 0x52: 8GB DDR3 SDRAM PC3-12800
> spdmem3 at iic0 addr 0x53: 8GB DDR3 SDRAM PC3-12800
> azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 24 int 16
> azalia1: codecs: Realtek/0x0889
> audio0 at azalia1
> pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
> ppb3 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
> pci4 at ppb3 bus 3
> ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
> ppb4 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00: msi
> pci5 at ppb4 bus 2
> ppb5 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
> pci6 at ppb5 bus 1
> jmb0 at pci6 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03
> ahci1 at jmb0: apic 24 int 17, AHCI 1.0
> scsibus2 at ahci1: 32 targets
> pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to native-PCI
> pciide0: using apic 24 int 17 for native-PCI interrupt
> pciide0: channel 0 disabled (no drives)
> pciide0: channel 1 disabled (no drives)
> ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
> ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
> usb3 at ehci2: USB revision 2.0
> uhub3 at usb3 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
> pchb1 at pci0 dev 24 function 0 "AMD AMD64 15/0xh Link Cfg" rev 0x00
> pchb2 at pci0 dev 24 function 1 "AMD AMD64 15/0xh Address Map" rev 0x00
> pchb3 at pci0 dev 24 function 2 "AMD AMD64 15/0xh DRAM Cfg" rev 0x00
> km0 at pci0 dev 24 function 3 "AMD AMD64 15/0xh Misc Cfg" rev 0x00
> pchb4 at pci0 dev 24 function 4 "AMD AMD64 15/0xh CPU Power" rev 0x00
> pchb5 at pci0 dev 24 function 5 "AMD AMD64 15/0xh Host" rev 0x00
> usb4 at ohci0: USB revision 1.0
> uhub4 at usb4 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
> usb5 at ohci1: USB revision 1.0
> uhub5 at usb5 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> usb6 at ohci2: USB revision 1.0
> uhub6 at usb6 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
> usb7 at ohci3: USB revision 1.0
> uhub7 at usb7 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
> vmm0 at mainbus0: SVM/RVI
> uhidev0 at uhub4 port 5 configuration 1 interface 0 "Microsoft Comfort Mouse 6000" rev 2.00/1.44 addr 2
> uhidev0: iclass 3/1, 28 report ids
> ums0 at uhidev0 reportid 16: 5 buttons, Z and W dir
> wsmouse0 at ums0 mux 0
> uhid0 at uhidev0 reportid 18: input=0, output=0, feature=1
> uhid1 at uhidev0 reportid 19: input=1, output=0, feature=0
> uhid2 at uhidev0 reportid 22: input=4, output=0, feature=0
> uhid3 at uhidev0 reportid 23: input=0, output=0, feature=1
> uhid4 at uhidev0 reportid 24: input=0, output=0, feature=1
> uhid5 at uhidev0 reportid 28: input=1, output=0, feature=0
> uhidev1 at uhub5 port 1 configuration 1 interface 0 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
> uhidev1: iclass 3/1
> ukbd0 at uhidev1: 8 variable keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> uhidev2 at uhub5 port 1 configuration 1 interface 1 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
> uhidev2: iclass 3/1, 2 report ids
> uhid6 at uhidev2 reportid 1: input=2, output=0, feature=0
> uhid7 at uhidev2 reportid 2: input=1, output=0, feature=0
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> root on sd0a (35bb33af35f21faa.a) swap on sd0b dump on sd0b
> initializing kernel modesetting (JUNIPER 0x1002:0x68BA 0x1682:0x3150 0x00).
> radeondrm0: 1920x1080, 32bpp
> wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
> wskbd1: connecting to wsdisplay0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
>
>

--
Mark Patruck ( mark at wrapped.cx )
GPG key 0xF2865E51 / 187F F6D3 EE04 1DCE 1C74  F644 0D3C F66F F286 5E51

https://www.wrapped.cx

Reply | Threaded
Open this post in threaded view
|

Re: Clock issues (CPU frequency, TSC skew, tsc_timecounter_init)

Paul Irofti-4
In reply to this post by Andre Smagin
> I am attaching two dmesges - one from good, one from bad session.
> The main differences seem to be:
>
> < cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4000.80 MHz, 15-02-00
> > cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4001.94 MHz, 15-02-00
>
> < TSC skew=73
> < cpu1: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
> > TSC skew=116
> > cpu1: AMD FX(tm)-8350 Eight-Core Processor, 396.93 MHz, 15-02-00
>
> < tsc_timecounter_init: TSC skew=73 observed drift=0
> > tsc_timecounter_init: TSC skew=116 observed drift=0
>
> < TSC skew=-10
> < cpu2: AMD FX(tm)-8350 Eight-Core Processor, 4000.15 MHz, 15-02-00
> > TSC skew=167
> > cpu2: AMD FX(tm)-8350 Eight-Core Processor, 397.10 MHz, 15-02-00
> ...

Hi,

Thank you for the report.

Why is cpu0 running at 4000MHz and the rest of the cpu's at 400MHz in
the bad session? How did you get in that scenario?

I will come back with a diff to test later on.

Paul

Reply | Threaded
Open this post in threaded view
|

Re: Clock issues (CPU frequency, TSC skew, tsc_timecounter_init)

Paul Irofti-4
In reply to this post by Andre Smagin
Hi,

Can you guys test this diff for me and let me know what happens or if it
fixes your issue?

This is supposed to be applied on top of a clean current source tree.


Thank you,
Paul


Index: arch/amd64/amd64/tsc.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/amd64/tsc.c,v
retrieving revision 1.13
diff -u -p -u -p -r1.13 tsc.c
--- arch/amd64/amd64/tsc.c 9 Aug 2019 15:20:05 -0000 1.13
+++ arch/amd64/amd64/tsc.c 25 Aug 2019 15:25:40 -0000
@@ -210,7 +210,7 @@ cpu_recalibrate_tsc(struct timecounter *
 uint
 tsc_get_timecount(struct timecounter *tc)
 {
- return rdtsc() + curcpu()->ci_tsc_skew;
+ return rdtsc();
 }
 
 void
Index: arch/amd64/include/cpufunc.h
===================================================================
RCS file: /cvs/src/sys/arch/amd64/include/cpufunc.h,v
retrieving revision 1.34
diff -u -p -u -p -r1.34 cpufunc.h
--- arch/amd64/include/cpufunc.h 28 Jun 2019 21:54:05 -0000 1.34
+++ arch/amd64/include/cpufunc.h 25 Aug 2019 15:25:40 -0000
@@ -283,13 +283,14 @@ mfence(void)
 }
 
 static __inline u_int64_t
-rdtsc(void)
+rdtsc_(void)
 {
  uint32_t hi, lo;
 
  __asm volatile("rdtsc" : "=d" (hi), "=a" (lo));
  return (((uint64_t)hi << 32) | (uint64_t) lo);
 }
+#define rdtsc() (rdtsc_() + curcpu()->ci_tsc_skew)
 
 static __inline u_int64_t
 rdpmc(u_int pmc)
Index: arch/amd64/include/pctr.h
===================================================================
RCS file: /cvs/src/sys/arch/amd64/include/pctr.h,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 pctr.h
--- arch/amd64/include/pctr.h 25 Mar 2019 18:48:12 -0000 1.6
+++ arch/amd64/include/pctr.h 25 Aug 2019 15:25:40 -0000
@@ -51,7 +51,7 @@ struct pctrst {
 
 #define _PATH_PCTR "/dev/pctr"
 
-#define rdtsc() \
+#define rdtsc1() \
 ({ \
  u_int32_t hi, lo; \
  __asm volatile("rdtsc" : "=d" (hi), "=a" (lo)); \

prx
Reply | Threaded
Open this post in threaded view
|

Re: Clock issues (CPU frequency, TSC skew, tsc_timecounter_init)

prx
Hi,
Patch applied.
After a ``reboot``, everything seems fine.
Then I shut down the system with "shutdown -hp now". After a few minute,
I restart the computer, and the issue is still here.

* Paul Irofti <[hidden email]> le [25-08-2019 18:33:18 +0300]:

> Hi,
>
> Can you guys test this diff for me and let me know what happens or if it
> fixes your issue?
>
> This is supposed to be applied on top of a clean current source tree.
>
>
> Thank you,
> Paul
>
>
> Index: arch/amd64/amd64/tsc.c
> ===================================================================
> RCS file: /cvs/src/sys/arch/amd64/amd64/tsc.c,v
> retrieving revision 1.13
> diff -u -p -u -p -r1.13 tsc.c
> --- arch/amd64/amd64/tsc.c 9 Aug 2019 15:20:05 -0000 1.13
> +++ arch/amd64/amd64/tsc.c 25 Aug 2019 15:25:40 -0000
> @@ -210,7 +210,7 @@ cpu_recalibrate_tsc(struct timecounter *
>  uint
>  tsc_get_timecount(struct timecounter *tc)
>  {
> - return rdtsc() + curcpu()->ci_tsc_skew;
> + return rdtsc();
>  }
>  
>  void
> Index: arch/amd64/include/cpufunc.h
> ===================================================================
> RCS file: /cvs/src/sys/arch/amd64/include/cpufunc.h,v
> retrieving revision 1.34
> diff -u -p -u -p -r1.34 cpufunc.h
> --- arch/amd64/include/cpufunc.h 28 Jun 2019 21:54:05 -0000 1.34
> +++ arch/amd64/include/cpufunc.h 25 Aug 2019 15:25:40 -0000
> @@ -283,13 +283,14 @@ mfence(void)
>  }
>  
>  static __inline u_int64_t
> -rdtsc(void)
> +rdtsc_(void)
>  {
>   uint32_t hi, lo;
>  
>   __asm volatile("rdtsc" : "=d" (hi), "=a" (lo));
>   return (((uint64_t)hi << 32) | (uint64_t) lo);
>  }
> +#define rdtsc() (rdtsc_() + curcpu()->ci_tsc_skew)
>  
>  static __inline u_int64_t
>  rdpmc(u_int pmc)
> Index: arch/amd64/include/pctr.h
> ===================================================================
> RCS file: /cvs/src/sys/arch/amd64/include/pctr.h,v
> retrieving revision 1.6
> diff -u -p -u -p -r1.6 pctr.h
> --- arch/amd64/include/pctr.h 25 Mar 2019 18:48:12 -0000 1.6
> +++ arch/amd64/include/pctr.h 25 Aug 2019 15:25:40 -0000
> @@ -51,7 +51,7 @@ struct pctrst {
>  
>  #define _PATH_PCTR "/dev/pctr"
>  
> -#define rdtsc() \
> +#define rdtsc1() \
>  ({ \
>   u_int32_t hi, lo; \
>   __asm volatile("rdtsc" : "=d" (hi), "=a" (lo)); \

--
    prx

Reply | Threaded
Open this post in threaded view
|

Re: Clock issues (CPU frequency, TSC skew, tsc_timecounter_init)

Mark Kettenis
> Date: Sun, 25 Aug 2019 18:55:50 +0200
> From: prx <[hidden email]>
>
> Hi,
> Patch applied.
> After a ``reboot``, everything seems fine.
> Then I shut down the system with "shutdown -hp now". After a few minute,
> I restart the computer, and the issue is still here.
>

Here is a diff that might make more of a difference.

It isn't entirely clear what causes the non-primary CPUs to show that
bogus clock frequency.  And this diff probably won't help fixing that.
But it should stop is from going through the timecounter
initialization logic multiple times with a wrong CPU clock frequency.

This diff isn't quite right yet.  The drift stuff is effectively
bypassed this way.  But it doesn't work with the current code either
since changing the quality of a timecounter after tc_init() has been
called is pointless.

Can you test this diff on your machine?


Index: arch/amd64/amd64/tsc.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/amd64/tsc.c,v
retrieving revision 1.13
diff -u -p -r1.13 tsc.c
--- arch/amd64/amd64/tsc.c 9 Aug 2019 15:20:05 -0000 1.13
+++ arch/amd64/amd64/tsc.c 25 Aug 2019 20:59:47 -0000
@@ -216,7 +216,11 @@ tsc_get_timecount(struct timecounter *tc
 void
 tsc_timecounter_init(struct cpu_info *ci, uint64_t cpufreq)
 {
- if (!(ci->ci_flags & CPUF_CONST_TSC) ||
+ printf("%s: TSC skew=%lld observed drift=%lld\n", __func__,
+    (long long)ci->ci_tsc_skew, (long long)tsc_drift_observed);
+
+ if (!(ci->ci_flags & CPUF_PRIMARY) ||
+    !(ci->ci_flags & CPUF_CONST_TSC) ||
     !(ci->ci_flags & CPUF_INVAR_TSC))
  return;
 
@@ -241,11 +245,7 @@ tsc_timecounter_init(struct cpu_info *ci
  tsc_is_invariant = 0;
  }
 
- printf("%s: TSC skew=%lld observed drift=%lld\n", __func__,
-    (long long)ci->ci_tsc_skew, (long long)tsc_drift_observed);
-
- if (ci->ci_flags & CPUF_PRIMARY)
- tc_init(&tsc_timecounter);
+ tc_init(&tsc_timecounter);
 }
 
 /*


Reply | Threaded
Open this post in threaded view
|

Re: Clock issues (CPU frequency, TSC skew, tsc_timecounter_init)

Andre Smagin
In reply to this post by Paul Irofti-4
On Sun, 25 Aug 2019 18:04:15 +0300
Paul Irofti <[hidden email]> wrote:

> > I am attaching two dmesges - one from good, one from bad session.
> > The main differences seem to be:
> >
> > < cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4000.80 MHz, 15-02-00
> > > cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4001.94 MHz, 15-02-00
> >
> > < TSC skew=73
> > < cpu1: AMD FX(tm)-8350 Eight-Core Processor, 4000.16 MHz, 15-02-00
> > > TSC skew=116
> > > cpu1: AMD FX(tm)-8350 Eight-Core Processor, 396.93 MHz, 15-02-00
> >
> > < tsc_timecounter_init: TSC skew=73 observed drift=0
>
> Hi,
>
> Thank you for the report.
>
> Why is cpu0 running at 4000MHz and the rest of the cpu's at 400MHz in
> the bad session? How did you get in that scenario?
>
> I will come back with a diff to test later on.
>
> Paul
>

Hello Paul,

It seems that the issue only happens when the CPU is physically cold,
on the first boot when I come back from work after 12 hours or in the
morning. After the first boot and first reboot, I cannot reproduce the
strange CPU frequency anymore. I tried unplugging the computer,
discharging the capacitors, leaving it off for 5 minutes - it still
boots normally. When I got home from work today, I interrupted the
first boot half-way by hard reboot and got slightly different "bad"
dmesg (with clock going fast, but not as fast as usually):

cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4000.62 MHz, 15-02-00
cpu1: AMD FX(tm)-8350 Eight-Core Processor, 1196.97 MHz, 15-02-00
(full dmesg below)

It's like the other cores power up at higher frequency when they
are "warm". Sorry for the very non-technical description.

I compiled a kernel with Mark's diff and will try to test it tomorrow
morning on the first boot which is usually guaranteed bad.

Perhaps it is some power saving setting in BIOS that I should
check or change. Have been using this desktop for almost ten years
now and worked fine until now, may be a hardware problem since it
is getting old.

Thank you for looking into this!


OpenBSD 6.6-beta (GENERIC.MP) #241: Thu Aug 22 09:08:42 MDT 2019
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 34325725184 (32735MB)
avail mem = 33272745984 (31731MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f400 (52 entries)
bios0: vendor American Megatrends Inc. version "V1.15" date 10/31/2012
bios0: MSI MS-7640
acpi0 at bios0: ACPI 1.0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC OEMB HPET IVRS SSDT
acpi0: wakeup devices PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4) PC09(S4) PC0A(S4) PC0B(S4) PC0C(S4) PC0D(S4) SBAZ(S4) P0PC(S4) UHC1(S4) UHC2(S4) USB3(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4000.62 MHz, 15-02-00
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=0 observed drift=0
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 17 (application processor)
TSC skew=96
cpu1: AMD FX(tm)-8350 Eight-Core Processor, 1196.97 MHz, 15-02-00
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=96 observed drift=0
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 18 (application processor)
TSC skew=188
cpu2: AMD FX(tm)-8350 Eight-Core Processor, 1197.12 MHz, 15-02-00
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=188 observed drift=0
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 19 (application processor)
TSC skew=128
cpu3: AMD FX(tm)-8350 Eight-Core Processor, 1197.12 MHz, 15-02-00
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=128 observed drift=0
cpu3: smt 1, core 1, package 0
cpu4 at mainbus0: apid 20 (application processor)
TSC skew=12
cpu4: AMD FX(tm)-8350 Eight-Core Processor, 1197.11 MHz, 15-02-00
cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu4: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu4: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu4: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=12 observed drift=0
cpu4: smt 0, core 2, package 0
cpu5 at mainbus0: apid 21 (application processor)
TSC skew=176
cpu5: AMD FX(tm)-8350 Eight-Core Processor, 1196.72 MHz, 15-02-00
cpu5: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu5: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu5: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu5: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=176 observed drift=0
cpu5: smt 1, core 2, package 0
cpu6 at mainbus0: apid 22 (application processor)
TSC skew=13
cpu6: AMD FX(tm)-8350 Eight-Core Processor, 1197.10 MHz, 15-02-00
cpu6: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu6: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu6: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu6: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=13 observed drift=0
cpu6: smt 0, core 3, package 0
cpu7 at mainbus0: apid 23 (application processor)
TSC skew=104
cpu7: AMD FX(tm)-8350 Eight-Core Processor, 1196.71 MHz, 15-02-00
cpu7: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu7: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu7: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu7: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=104 observed drift=0
cpu7: smt 1, core 3, package 0
ioapic0 at mainbus0: apid 24 pa 0xfec00000, version 21, 24 pins, can't remap
ioapic1 at mainbus0: apid 25 pa 0xfec20000, version 21, 32 pins, can't remap
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PC02)
acpiprt2 at acpi0: bus 7 (PC03)
acpiprt3 at acpi0: bus -1 (PC04)
acpiprt4 at acpi0: bus 6 (PC05)
acpiprt5 at acpi0: bus -1 (PC06)
acpiprt6 at acpi0: bus -1 (PC07)
acpiprt7 at acpi0: bus 4 (PC09)
acpiprt8 at acpi0: bus -1 (PC0A)
acpiprt9 at acpi0: bus -1 (PC0B)
acpiprt10 at acpi0: bus -1 (PC0C)
acpiprt11 at acpi0: bus -1 (PC0D)
acpiprt12 at acpi0: bus 3 (P0PC)
acpiprt13 at acpi0: bus 2 (PE20)
acpiprt14 at acpi0: bus 1 (PE21)
acpiprt15 at acpi0: bus -1 (PE22)
acpiprt16 at acpi0: bus -1 (PE23)
acpicpu0 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu2 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu3 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu4 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu5 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu6 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu7 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpipci0 at acpi0 PCI0: _OSC failed
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB
"PNP0C14" at acpi0 not configured
cpu0: 4000 MHz: speeds: 4000 3400 2800 2100 1400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "ATI RD890 Host" rev 0x02
"ATI SR5690 IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
ppb0 at pci0 dev 3 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci1 at ppb0 bus 7
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 6770" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 5700 Audio" rev 0x00: msi
azalia0: no supported codecs
ppb1 at pci0 dev 5 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci2 at ppb1 bus 6
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D (0x2800), msi, address 40:61:86:f2:9e:f4
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
ppb2 at pci0 dev 9 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci3 at ppb2 bus 4
xhci0 at pci3 dev 0 function 0 "NEC xHCI" rev 0x03: msi, xHCI 0.96
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "NEC xHCI root hub" rev 3.00/1.00 addr 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 24 int 19, AHCI 1.2
ahci0: port 0: 1.5Gb/s
ahci0: port 1: 1.5Gb/s
ahci0: port 2: 6.0Gb/s
ahci0: port 3: 6.0Gb/s
ahci0: port 4: 3.0Gb/s
scsibus1 at ahci0: 32 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, BD-RE WH14NS40, 1.03> ATAPI 5/cdrom removable
cd1 at scsibus1 targ 1 lun 0: <ATAPI, iHAS324 F, CL8E> ATAPI 5/cdrom removable
sd0 at scsibus1 targ 2 lun 0: <ATA, SAMSUNG SSD 830, CXM0> SCSI3 0/direct fixed naa.5002538043584d30
sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
sd1 at scsibus1 targ 3 lun 0: <ATA, KINGSTON SV300S3, 505A> SCSI3 0/direct fixed naa.50026b773a0278cd
sd1: 114473MB, 512 bytes/sector, 234441648 sectors, thin
sd2 at scsibus1 targ 4 lun 0: <ATA, ST3500830AS, 3.AF> SCSI3 0/direct fixed t10.ATA_ST3500830AS_9QG7Y592
sd2: 476940MB, 512 bytes/sector, 976773168 sectors
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x41: polling
iic0 at piixpm0
iic0: addr 0x20 01=0e 02=1d 03=2d 04=00 05=00 06=00 07=00 08=00 09=e4 0a=00 0b=00 0c=00 0d=00 0e=40 0f=96 10=00 11=00 12=00 13=00 14=00 15=00 16=00 17=9c 18=c0 19=40 1a=00 1b=00 1c=00 1d=00 1e=0c 1f=01 20=09 21=09 22=09 23=09 24=3b 3e=03 words 00=ff0e 01=0e1d 02=1d2d 03=2d00 04=0000 05=0000 06=0000 07=0000
spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800
spdmem1 at iic0 addr 0x51: 8GB DDR3 SDRAM PC3-12800
spdmem2 at iic0 addr 0x52: 8GB DDR3 SDRAM PC3-12800
spdmem3 at iic0 addr 0x53: 8GB DDR3 SDRAM PC3-12800
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 24 int 16
azalia1: codecs: Realtek/0x0889
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb3 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci4 at ppb3 bus 3
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ppb4 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00: msi
pci5 at ppb4 bus 2
ppb5 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
pci6 at ppb5 bus 1
jmb0 at pci6 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03
ahci1 at jmb0: apic 24 int 17, AHCI 1.0
scsibus2 at ahci1: 32 targets
pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide0: using apic 24 int 17 for native-PCI interrupt
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb3 at ehci2: USB revision 2.0
uhub3 at usb3 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 15/0xh Link Cfg" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 15/0xh Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 15/0xh DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 15/0xh Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 15/0xh CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 15/0xh Host" rev 0x00
usb4 at ohci0: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci1: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb6 at ohci2: USB revision 1.0
uhub6 at usb6 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb7 at ohci3: USB revision 1.0
uhub7 at usb7 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
vmm0 at mainbus0: SVM/RVI
uhidev0 at uhub4 port 5 configuration 1 interface 0 "Microsoft Comfort Mouse 6000" rev 2.00/1.44 addr 2
uhidev0: iclass 3/1, 28 report ids
ums0 at uhidev0 reportid 16: 5 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev0 reportid 18: input=0, output=0, feature=1
uhid1 at uhidev0 reportid 19: input=1, output=0, feature=0
uhid2 at uhidev0 reportid 22: input=4, output=0, feature=0
uhid3 at uhidev0 reportid 23: input=0, output=0, feature=1
uhid4 at uhidev0 reportid 24: input=0, output=0, feature=1
uhid5 at uhidev0 reportid 28: input=1, output=0, feature=0
uhidev1 at uhub5 port 1 configuration 1 interface 0 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev2 at uhub5 port 1 configuration 1 interface 1 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
uhidev2: iclass 3/1, 2 report ids
uhid6 at uhidev2 reportid 1: input=2, output=0, feature=0
uhid7 at uhidev2 reportid 2: input=1, output=0, feature=0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (35bb33af35f21faa.a) swap on sd0b dump on sd0b
initializing kernel modesetting (JUNIPER 0x1002:0x68BA 0x1682:0x3150 0x00).
radeondrm0: 1920x1080, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

Reply | Threaded
Open this post in threaded view
|

Re: Clock issues (CPU frequency, TSC skew, tsc_timecounter_init)

Andre Smagin
In reply to this post by Mark Kettenis
On Sun, 25 Aug 2019 23:00:34 +0200 (CEST)
Mark Kettenis <[hidden email]> wrote:

> Here is a diff that might make more of a difference.
>
> It isn't entirely clear what causes the non-primary CPUs to show that
> bogus clock frequency.  And this diff probably won't help fixing that.

Hello Mark,

I booted the kernel with your diff first thing in the morning, but,
unfortunately, did not get the bogus CPU frequency issue that time -
all CPUs were at 4000MHz. I turned the computer off for about an hour
and tried patched kernel again - this time secondary CPUs were at
2397.17 MHz, but the system clock seems to be fine and no keyboard
auto-repeat issues.

dmesg:

OpenBSD 6.6-beta (GENERIC.MP) #0: Sun Aug 25 22:02:34 EDT 2019
    [hidden email]:/build/openbsd/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 34325725184 (32735MB)
avail mem = 33272754176 (31731MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f400 (52 entries)
bios0: vendor American Megatrends Inc. version "V1.15" date 10/31/2012
bios0: MSI MS-7640
acpi0 at bios0: ACPI 1.0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC OEMB HPET IVRS SSDT
acpi0: wakeup devices PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4) PC09(S4) PC0A(S4) PC0B(S4) PC0C(S4) PC0D(S4) SBAZ(S4) P0PC(S4) UHC1(S4) UHC2(S4) USB3(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4002.01 MHz, 15-02-00
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=0 observed drift=0
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 17 (application processor)
TSC skew=-961
cpu1: AMD FX(tm)-8350 Eight-Core Processor, 2396.62 MHz, 15-02-00
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-961 observed drift=0
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 18 (application processor)
TSC skew=-23
cpu2: AMD FX(tm)-8350 Eight-Core Processor, 2397.17 MHz, 15-02-00
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-23 observed drift=0
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 19 (application processor)
TSC skew=-39
cpu3: AMD FX(tm)-8350 Eight-Core Processor, 2396.76 MHz, 15-02-00
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-39 observed drift=0
cpu3: smt 1, core 1, package 0
cpu4 at mainbus0: apid 20 (application processor)
TSC skew=-4
cpu4: AMD FX(tm)-8350 Eight-Core Processor, 2397.15 MHz, 15-02-00
cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu4: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu4: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu4: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-4 observed drift=0
cpu4: smt 0, core 2, package 0
cpu5 at mainbus0: apid 21 (application processor)
TSC skew=-56
cpu5: AMD FX(tm)-8350 Eight-Core Processor, 2396.76 MHz, 15-02-00
cpu5: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu5: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu5: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu5: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-56 observed drift=0
cpu5: smt 1, core 2, package 0
cpu6 at mainbus0: apid 22 (application processor)
TSC skew=-4
cpu6: AMD FX(tm)-8350 Eight-Core Processor, 2397.13 MHz, 15-02-00
cpu6: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu6: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu6: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu6: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-4 observed drift=0
cpu6: smt 0, core 3, package 0
cpu7 at mainbus0: apid 23 (application processor)
TSC skew=-33
cpu7: AMD FX(tm)-8350 Eight-Core Processor, 2396.77 MHz, 15-02-00
cpu7: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu7: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu7: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu7: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-33 observed drift=0
cpu7: smt 1, core 3, package 0
ioapic0 at mainbus0: apid 24 pa 0xfec00000, version 21, 24 pins, can't remap
ioapic1 at mainbus0: apid 25 pa 0xfec20000, version 21, 32 pins, can't remap
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PC02)
acpiprt2 at acpi0: bus 7 (PC03)
acpiprt3 at acpi0: bus -1 (PC04)
acpiprt4 at acpi0: bus 6 (PC05)
acpiprt5 at acpi0: bus -1 (PC06)
acpiprt6 at acpi0: bus -1 (PC07)
acpiprt7 at acpi0: bus 4 (PC09)
acpiprt8 at acpi0: bus -1 (PC0A)
acpiprt9 at acpi0: bus -1 (PC0B)
acpiprt10 at acpi0: bus -1 (PC0C)
acpiprt11 at acpi0: bus -1 (PC0D)
acpiprt12 at acpi0: bus 3 (P0PC)
acpiprt13 at acpi0: bus 2 (PE20)
acpiprt14 at acpi0: bus 1 (PE21)
acpiprt15 at acpi0: bus -1 (PE22)
acpiprt16 at acpi0: bus -1 (PE23)
acpicpu0 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu2 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu3 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu4 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu5 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu6 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu7 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpipci0 at acpi0 PCI0: _OSC failed
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB
"PNP0C14" at acpi0 not configured
cpu0: 4002 MHz: speeds: 4000 3400 2800 2100 1400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "ATI RD890 Host" rev 0x02
"ATI SR5690 IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
ppb0 at pci0 dev 3 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci1 at ppb0 bus 7
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 6770" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 5700 Audio" rev 0x00: msi
azalia0: no supported codecs
ppb1 at pci0 dev 5 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci2 at ppb1 bus 6
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D (0x2800), msi, address 40:61:86:f2:9e:f4
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
ppb2 at pci0 dev 9 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci3 at ppb2 bus 4
xhci0 at pci3 dev 0 function 0 "NEC xHCI" rev 0x03: msi, xHCI 0.96
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "NEC xHCI root hub" rev 3.00/1.00 addr 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 24 int 19, AHCI 1.2
ahci0: port 0: 1.5Gb/s
ahci0: port 1: 1.5Gb/s
ahci0: port 2: 6.0Gb/s
ahci0: port 3: 6.0Gb/s
ahci0: port 4: 3.0Gb/s
scsibus1 at ahci0: 32 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, BD-RE WH14NS40, 1.03> ATAPI 5/cdrom removable
cd1 at scsibus1 targ 1 lun 0: <ATAPI, iHAS324 F, CL8E> ATAPI 5/cdrom removable
sd0 at scsibus1 targ 2 lun 0: <ATA, SAMSUNG SSD 830, CXM0> SCSI3 0/direct fixed naa.5002538043584d30
sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
sd1 at scsibus1 targ 3 lun 0: <ATA, KINGSTON SV300S3, 505A> SCSI3 0/direct fixed naa.50026b773a0278cd
sd1: 114473MB, 512 bytes/sector, 234441648 sectors, thin
sd2 at scsibus1 targ 4 lun 0: <ATA, ST3500830AS, 3.AF> SCSI3 0/direct fixed t10.ATA_ST3500830AS_9QG7Y592
sd2: 476940MB, 512 bytes/sector, 976773168 sectors
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x41: polling
iic0 at piixpm0
iic0: addr 0x20 01=0e 02=1d 03=2d 04=00 05=00 06=00 07=00 08=00 09=e4 0a=00 0b=00 0c=00 0d=00 0e=3d 0f=96 10=00 11=00 12=00 13=00 14=00 15=00 16=00 17=9c 18=c0 19=40 1a=00 1b=00 1c=00 1d=00 1e=0c 1f=01 20=09 21=09 22=09 23=09 24=3b 3e=03 words 00=ff0e 01=0e1d 02=1d2d 03=2d00 04=0000 05=0000 06=0000 07=0000
spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800
spdmem1 at iic0 addr 0x51: 8GB DDR3 SDRAM PC3-12800
spdmem2 at iic0 addr 0x52: 8GB DDR3 SDRAM PC3-12800
spdmem3 at iic0 addr 0x53: 8GB DDR3 SDRAM PC3-12800
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 24 int 16
azalia1: codecs: Realtek/0x0889
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb3 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci4 at ppb3 bus 3
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ppb4 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00: msi
pci5 at ppb4 bus 2
ppb5 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
pci6 at ppb5 bus 1
jmb0 at pci6 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03
ahci1 at jmb0: apic 24 int 17, AHCI 1.0
scsibus2 at ahci1: 32 targets
pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide0: using apic 24 int 17 for native-PCI interrupt
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb3 at ehci2: USB revision 2.0
uhub3 at usb3 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 15/0xh Link Cfg" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 15/0xh Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 15/0xh DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 15/0xh Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 15/0xh CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 15/0xh Host" rev 0x00
usb4 at ohci0: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci1: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb6 at ohci2: USB revision 1.0
uhub6 at usb6 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb7 at ohci3: USB revision 1.0
uhub7 at usb7 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
vmm0 at mainbus0: SVM/RVI
uhidev0 at uhub4 port 5 configuration 1 interface 0 "Microsoft Comfort Mouse 6000" rev 2.00/1.44 addr 2
uhidev0: iclass 3/1, 28 report ids
ums0 at uhidev0 reportid 16: 5 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev0 reportid 18: input=0, output=0, feature=1
uhid1 at uhidev0 reportid 19: input=1, output=0, feature=0
uhid2 at uhidev0 reportid 22: input=4, output=0, feature=0
uhid3 at uhidev0 reportid 23: input=0, output=0, feature=1
uhid4 at uhidev0 reportid 24: input=0, output=0, feature=1
uhid5 at uhidev0 reportid 28: input=1, output=0, feature=0
uhidev1 at uhub5 port 1 configuration 1 interface 0 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev2 at uhub5 port 1 configuration 1 interface 1 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
uhidev2: iclass 3/1, 2 report ids
uhid6 at uhidev2 reportid 1: input=2, output=0, feature=0
uhid7 at uhidev2 reportid 2: input=1, output=0, feature=0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (35bb33af35f21faa.a) swap on sd0b dump on sd0b
initializing kernel modesetting (JUNIPER 0x1002:0x68BA 0x1682:0x3150 0x00).
radeondrm0: 1920x1080, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

Reply | Threaded
Open this post in threaded view
|

Re: Clock issues (CPU frequency, TSC skew, tsc_timecounter_init)

Mark Patruck
In reply to this post by Paul Irofti-4
Although /cvs/src/sys/arch/amd64/include/pctr.h has changed meanwhile,
i've tested with your diff and also tried the one from kettenis@.

I still see the same error with both. net/zabbix still shows a high
process utilization every 15-30 minutes. And again...as soon as i switch

kern.timecounter.hardware: tsc -> acpihpet0

it works fine.

On 8/25/19 5:33 PM, Paul Irofti wrote:

> Hi,
>
> Can you guys test this diff for me and let me know what happens or if it
> fixes your issue?
>
> This is supposed to be applied on top of a clean current source tree.
>
>
> Thank you,
> Paul
>
>
> Index: arch/amd64/amd64/tsc.c
> ===================================================================
> RCS file: /cvs/src/sys/arch/amd64/amd64/tsc.c,v
> retrieving revision 1.13
> diff -u -p -u -p -r1.13 tsc.c
> --- arch/amd64/amd64/tsc.c 9 Aug 2019 15:20:05 -0000 1.13
> +++ arch/amd64/amd64/tsc.c 25 Aug 2019 15:25:40 -0000
> @@ -210,7 +210,7 @@ cpu_recalibrate_tsc(struct timecounter *
>   uint
>   tsc_get_timecount(struct timecounter *tc)
>   {
> - return rdtsc() + curcpu()->ci_tsc_skew;
> + return rdtsc();
>   }
>  
>   void
> Index: arch/amd64/include/cpufunc.h
> ===================================================================
> RCS file: /cvs/src/sys/arch/amd64/include/cpufunc.h,v
> retrieving revision 1.34
> diff -u -p -u -p -r1.34 cpufunc.h
> --- arch/amd64/include/cpufunc.h 28 Jun 2019 21:54:05 -0000 1.34
> +++ arch/amd64/include/cpufunc.h 25 Aug 2019 15:25:40 -0000
> @@ -283,13 +283,14 @@ mfence(void)
>   }
>  
>   static __inline u_int64_t
> -rdtsc(void)
> +rdtsc_(void)
>   {
>   uint32_t hi, lo;
>  
>   __asm volatile("rdtsc" : "=d" (hi), "=a" (lo));
>   return (((uint64_t)hi << 32) | (uint64_t) lo);
>   }
> +#define rdtsc() (rdtsc_() + curcpu()->ci_tsc_skew)
>  
>   static __inline u_int64_t
>   rdpmc(u_int pmc)
> Index: arch/amd64/include/pctr.h
> ===================================================================
> RCS file: /cvs/src/sys/arch/amd64/include/pctr.h,v
> retrieving revision 1.6
> diff -u -p -u -p -r1.6 pctr.h
> --- arch/amd64/include/pctr.h 25 Mar 2019 18:48:12 -0000 1.6
> +++ arch/amd64/include/pctr.h 25 Aug 2019 15:25:40 -0000
> @@ -51,7 +51,7 @@ struct pctrst {
>  
>   #define _PATH_PCTR "/dev/pctr"
>  
> -#define rdtsc() \
> +#define rdtsc1() \
>   ({ \
>   u_int32_t hi, lo; \
>   __asm volatile("rdtsc" : "=d" (hi), "=a" (lo)); \
>

--
Mark Patruck ( mark at wrapped.cx )
GPG key 0xF2865E51 / 187F F6D3 EE04 1DCE 1C74  F644 0D3C F66F F286 5E51

https://www.wrapped.cx

Reply | Threaded
Open this post in threaded view
|

Re: Clock issues (CPU frequency, TSC skew, tsc_timecounter_init)

Andre Smagin
In reply to this post by Andre Smagin
Additional dmesg with Mark's diff and secondary CPU frequencies as low
as they get. The diff makes a difference - no issues that I can see
with system clock.


OpenBSD 6.6-beta (GENERIC.MP) #0: Sun Aug 25 22:02:34 EDT 2019
    [hidden email]:/build/openbsd/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 34325725184 (32735MB)
avail mem = 33272754176 (31731MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f400 (52 entries)
bios0: vendor American Megatrends Inc. version "V1.15" date 10/31/2012
bios0: MSI MS-7640
acpi0 at bios0: ACPI 1.0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC OEMB HPET IVRS SSDT
acpi0: wakeup devices PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4) PC09(S4) PC0A(S4) PC0B(S4) PC0C(S4) PC0D(S4) SBAZ(S4) P0PC(S4) UHC1(S4) UHC2(S4) USB3(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD FX(tm)-8350 Eight-Core Processor, 4000.76 MHz, 15-02-00
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=0 observed drift=0
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 17 (application processor)
TSC skew=-387
cpu1: AMD FX(tm)-8350 Eight-Core Processor, 396.51 MHz, 15-02-00
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-387 observed drift=0
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 18 (application processor)
TSC skew=-22
cpu2: AMD FX(tm)-8350 Eight-Core Processor, 396.67 MHz, 15-02-00
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-22 observed drift=0
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 19 (application processor)
TSC skew=-28
cpu3: AMD FX(tm)-8350 Eight-Core Processor, 396.66 MHz, 15-02-00
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-28 observed drift=0
cpu3: smt 1, core 1, package 0
cpu4 at mainbus0: apid 20 (application processor)
TSC skew=-25
cpu4: AMD FX(tm)-8350 Eight-Core Processor, 396.70 MHz, 15-02-00
cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu4: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu4: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu4: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-25 observed drift=0
cpu4: smt 0, core 2, package 0
cpu5 at mainbus0: apid 21 (application processor)
TSC skew=-51
cpu5: AMD FX(tm)-8350 Eight-Core Processor, 396.70 MHz, 15-02-00
cpu5: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu5: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu5: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu5: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-51 observed drift=0
cpu5: smt 1, core 2, package 0
cpu6 at mainbus0: apid 22 (application processor)
TSC skew=-18
cpu6: AMD FX(tm)-8350 Eight-Core Processor, 397.08 MHz, 15-02-00
cpu6: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu6: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu6: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu6: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-18 observed drift=0
cpu6: smt 0, core 3, package 0
cpu7 at mainbus0: apid 23 (application processor)
TSC skew=0
cpu7: AMD FX(tm)-8350 Eight-Core Processor, 397.10 MHz, 15-02-00
cpu7: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu7: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu7: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu7: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=0 observed drift=0
cpu7: smt 1, core 3, package 0
ioapic0 at mainbus0: apid 24 pa 0xfec00000, version 21, 24 pins, can't remap
ioapic1 at mainbus0: apid 25 pa 0xfec20000, version 21, 32 pins, can't remap
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PC02)
acpiprt2 at acpi0: bus 7 (PC03)
acpiprt3 at acpi0: bus -1 (PC04)
acpiprt4 at acpi0: bus 6 (PC05)
acpiprt5 at acpi0: bus -1 (PC06)
acpiprt6 at acpi0: bus -1 (PC07)
acpiprt7 at acpi0: bus 4 (PC09)
acpiprt8 at acpi0: bus -1 (PC0A)
acpiprt9 at acpi0: bus -1 (PC0B)
acpiprt10 at acpi0: bus -1 (PC0C)
acpiprt11 at acpi0: bus -1 (PC0D)
acpiprt12 at acpi0: bus 3 (P0PC)
acpiprt13 at acpi0: bus 2 (PE20)
acpiprt14 at acpi0: bus 1 (PE21)
acpiprt15 at acpi0: bus -1 (PE22)
acpiprt16 at acpi0: bus -1 (PE23)
acpicpu0 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu2 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu3 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu4 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu5 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu6 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpicpu7 at acpi0: C2(0@100 io@0x815), C1(@1 halt!), PSS
acpipci0 at acpi0 PCI0: _OSC failed
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB
"PNP0C14" at acpi0 not configured
cpu0: 4000 MHz: speeds: 4000 3400 2800 2100 1400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "ATI RD890 Host" rev 0x02
"ATI SR5690 IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
ppb0 at pci0 dev 3 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci1 at ppb0 bus 7
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 6770" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 5700 Audio" rev 0x00: msi
azalia0: no supported codecs
ppb1 at pci0 dev 5 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci2 at ppb1 bus 6
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D (0x2800), msi, address 40:61:86:f2:9e:f4
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
ppb2 at pci0 dev 9 function 0 "ATI SR5690 PCIE" rev 0x00: msi
pci3 at ppb2 bus 4
xhci0 at pci3 dev 0 function 0 "NEC xHCI" rev 0x03: msi, xHCI 0.96
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "NEC xHCI root hub" rev 3.00/1.00 addr 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 24 int 19, AHCI 1.2
ahci0: port 0: 1.5Gb/s
ahci0: port 1: 1.5Gb/s
ahci0: port 2: 6.0Gb/s
ahci0: port 3: 6.0Gb/s
ahci0: port 4: 3.0Gb/s
scsibus1 at ahci0: 32 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, BD-RE WH14NS40, 1.03> ATAPI 5/cdrom removable
cd1 at scsibus1 targ 1 lun 0: <ATAPI, iHAS324 F, CL8E> ATAPI 5/cdrom removable
sd0 at scsibus1 targ 2 lun 0: <ATA, SAMSUNG SSD 830, CXM0> SCSI3 0/direct fixed naa.5002538043584d30
sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
sd1 at scsibus1 targ 3 lun 0: <ATA, KINGSTON SV300S3, 505A> SCSI3 0/direct fixed naa.50026b773a0278cd
sd1: 114473MB, 512 bytes/sector, 234441648 sectors, thin
sd2 at scsibus1 targ 4 lun 0: <ATA, ST3500830AS, 3.AF> SCSI3 0/direct fixed t10.ATA_ST3500830AS_9QG7Y592
sd2: 476940MB, 512 bytes/sector, 976773168 sectors
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x41: polling
iic0 at piixpm0
iic0: addr 0x20 01=0e 02=1d 03=2d 04=00 05=00 06=00 07=00 08=00 09=e4 0a=00 0b=00 0c=00 0d=00 0e=3d 0f=96 10=00 11=00 12=00 13=00 14=00 15=00 16=00 17=9c 18=c0 19=40 1a=00 1b=00 1c=00 1d=00 1e=0c 1f=01 20=09 21=09 22=09 23=09 24=3b 3e=03 words 00=ff0e 01=0e1d 02=1d2d 03=2d00 04=0000 05=0000 06=0000 07=0000
spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800
spdmem1 at iic0 addr 0x51: 8GB DDR3 SDRAM PC3-12800
spdmem2 at iic0 addr 0x52: 8GB DDR3 SDRAM PC3-12800
spdmem3 at iic0 addr 0x53: 8GB DDR3 SDRAM PC3-12800
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 24 int 16
azalia1: codecs: Realtek/0x0889
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb3 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci4 at ppb3 bus 3
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ppb4 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00: msi
pci5 at ppb4 bus 2
ppb5 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
pci6 at ppb5 bus 1
jmb0 at pci6 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03
ahci1 at jmb0: apic 24 int 17, AHCI 1.0
scsibus2 at ahci1: 32 targets
pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide0: using apic 24 int 17 for native-PCI interrupt
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 24 int 18, version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 24 int 17
usb3 at ehci2: USB revision 2.0
uhub3 at usb3 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 15/0xh Link Cfg" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 15/0xh Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 15/0xh DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 15/0xh Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 15/0xh CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 15/0xh Host" rev 0x00
usb4 at ohci0: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci1: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb6 at ohci2: USB revision 1.0
uhub6 at usb6 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb7 at ohci3: USB revision 1.0
uhub7 at usb7 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 addr 1
vmm0 at mainbus0: SVM/RVI
uhidev0 at uhub4 port 5 configuration 1 interface 0 "Microsoft Comfort Mouse 6000" rev 2.00/1.44 addr 2
uhidev0: iclass 3/1, 28 report ids
ums0 at uhidev0 reportid 16: 5 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev0 reportid 18: input=0, output=0, feature=1
uhid1 at uhidev0 reportid 19: input=1, output=0, feature=0
uhid2 at uhidev0 reportid 22: input=4, output=0, feature=0
uhid3 at uhidev0 reportid 23: input=0, output=0, feature=1
uhid4 at uhidev0 reportid 24: input=0, output=0, feature=1
uhid5 at uhidev0 reportid 28: input=1, output=0, feature=0
uhidev1 at uhub5 port 1 configuration 1 interface 0 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev2 at uhub5 port 1 configuration 1 interface 1 "KB Multimedia keyboard" rev 1.10/1.01 addr 2
uhidev2: iclass 3/1, 2 report ids
uhid6 at uhidev2 reportid 1: input=2, output=0, feature=0
uhid7 at uhidev2 reportid 2: input=1, output=0, feature=0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (35bb33af35f21faa.a) swap on sd0b dump on sd0b
initializing kernel modesetting (JUNIPER 0x1002:0x68BA 0x1682:0x3150 0x00).
radeondrm0: 1920x1080, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)