From owner-freebsd-stable@freebsd.org Wed Jul 18 19:31:29 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78A23102F6BB for ; Wed, 18 Jul 2018 19:31:29 +0000 (UTC) (envelope-from dfrg@xsmail.com) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 249F4897CB for ; Wed, 18 Jul 2018 19:31:29 +0000 (UTC) (envelope-from dfrg@xsmail.com) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id E5A1D20A41 for ; Wed, 18 Jul 2018 15:31:20 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute2.internal (MEProxy); Wed, 18 Jul 2018 15:31:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xsmail.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=5h8J9KBYUck7xuPv3o8cRTKMYJ4+MXIp5VsWlFjk6Vw=; b=mYl2xGRu LtbQAus8bJM6St8d92F+FOzJSurEFlpLD8S+3+29964106T4/qc8bKanJcNIlnog 4RYZ0YYNyjm5Tc5dVc0kXE+j4qYiOcF4xjJQlDmJtS9ig/64a46Nk2Z9DjXhTBMl N2IjZg5xm4beOfNmJuCoGlPcIHfNi4yk6j1LnjRc3LKTkpIzaUIA4tB78d/3wXiP cHda1O6N9OO7MUs+cdDaPVYh+psah+i6HgrJ4tIlElHHqxE+yQZnlIoGB2oNF4ui tFMq6lAqwFHvrVqE/sdAgvK0FUmRMMqL43MPTN16ke/EImCeb3KYTE1G3H/PYahg d8gGudH7DPWlvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=5h8J9KBYUck7xuPv3o8cRTKMYJ4+M XIp5VsWlFjk6Vw=; b=ucWLkLs2YSI+E3Ta3p41dc1OU/QCUe7p0s+tp0LtiaylC UM4M2erPsodxABFnoLq9VwMVnoIPQxiS7ZOHklHWAwW19cwgOLIUcElJazGCe0EF isXycxyx1JaLhlJdMEtthS7zckiRWFXulVMJL0yPTW/qf01orIXjXGRZcn0BpBSj AR8EW9esMqv93QRSpnIuVSTe6XO3BHFF8IRtrxJpOWA8KWaMNH0HK8PObDjwm8dL kLH+zHFZ4pc7Elnl6rB1DPpm7cZ0FZMmXywzCfKuA7AdNBqgC5842bGWWc+0uqby +oJqgZqoUw7dShEahym7tXUieakK0xG6JY5AENTnw== X-ME-Proxy: X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 6773F4130; Wed, 18 Jul 2018 15:31:20 -0400 (EDT) Message-Id: <1531942280.1967142.1445262384.65DBC865@webmail.messagingengine.com> From: Dave Green To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-e74bb3a0 Date: Wed, 18 Jul 2018 20:31:20 +0100 Subject: Cannot set CPU frequency for 8th gen CPU X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2018 19:31:29 -0000 I have an 8th gen (i5-8400) processor installed in motherboard using the H370 chipset (Gigabyte H370 HD3) with factory default BIOS configuration running FreeBSD 11.2 amd64. Although the correct number of cores (6) and available frequencies are correctly detected only the lowest frequency is usable: # sysctl dev.cpu.0.freq_levels dev.cpu.0.freq_levels: 2801/65000 2800/65000 2700/61690 2500/55888 2400/52759 2200/47301 2100/44946 1900/39204 1800/37000 1700/34277 1500/29546 1400/27531 1200/22557 1100/20688 900/16549 800/14296 # sysctl dev.cpu.0.freq=2800 dev.cpu.0.freq: 800 -> 800 Accordingly powerd continues to try and raise the frequency in response to high system load but is unable to do so. If I disable 5 of the 6 cores in the BIOS then setting frequency as above is successful. Has this been reproduced and/or what are the next steps I should take to investigate? Attached is the obligatory dmesg which contains some complaints about ACPI firmware of unknown relevance? ---------- CPU: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (2808.23-MHz K8-class CPU) Origin="GenuineIntel" Id=0x906ea Family=0x6 Model=0x9e Stepping=10 Features=0xbfebfbff Features2=0x7ffafbbf AMD Features=0x2c100800 AMD Features2=0x121 Structured Extended Features=0x29c67af Structured Extended Features2=0x40000000 Structured Extended Features3=0xc000000 XSAVE Features=0xf VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics real memory = 17179869184 (16384 MB) avail memory = 16386461696 (15627 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 6 CPUs FreeBSD/SMP: 1 package(s) x 6 core(s) ioapic0 irqs 0-119 on motherboard SMP: AP CPU #3 Launched! SMP: AP CPU #1 Launched! SMP: AP CPU #5 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #4 Launched! Timecounter "TSC-low" frequency 1404113625 Hz quality 1000 random: entropy device external interface kbd1 at kbdmux0 netmap: loaded module module_register_init: MOD_LOAD (vesa, 0xffffffff80ff4550, 0) error 19 random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" nexus0 cryptosoft0: on motherboard aesni0: on motherboard acpi0: on motherboard ACPI Warning: Unsupported module-level executable opcode 0x70 at table offset 0x33CCD (20171214/psloop-344) ACPI Warning: Unsupported module-level executable opcode 0x70 at table offset 0x33CD6 (20171214/psloop-344) ACPI Warning: Unsupported module-level executable opcode 0x70 at table offset 0x343C1 (20171214/psloop-344) ACPI Warning: Unsupported module-level executable opcode 0x70 at table offset 0x343CA (20171214/psloop-344) ACPI Warning: Unsupported module-level executable opcode 0x70 at table offset 0x34AB5 (20171214/psloop-344) ACPI Warning: Unsupported module-level executable opcode 0x70 at table offset 0x34ABE (20171214/psloop-344) ACPI Warning: Unsupported module-level executable opcode 0x70 at table offset 0x351AA (20171214/psloop-344) ACPI Warning: Unsupported module-level executable opcode 0x70 at table offset 0x351B3 (20171214/psloop-344) ACPI Warning: Unsupported module-level executable opcode 0x70 at table offset 0x3589F (20171214/psloop-344) ACPI Warning: Unsupported module-level executable opcode 0x70 at table offset 0x358A8 (20171214/psloop-344) ACPI Warning: Unsupported module-level executable opcode 0x70 at table offset 0x35C52 (20171214/psloop-344) ACPI Warning: Unsupported module-level executable opcode 0x70 at table offset 0x35C5B (20171214/psloop-344) Firmware Error (ACPI): Failure looking up [\134_SB.PCI0.RP04.PXSX._SB.PCI0.RP05.PXSX], AE_NOT_FOUND (20171214/dswload2-312) ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20171214/psobject-371) ACPI Error: Method parse/execution failed \134_SB.PCI0.RP04.PXSX, AE_NOT_FOUND (20171214/psparse-677) Firmware Error (ACPI): Failure looking up [\134_SB.PCI0.RP08.PXSX._SB.PCI0.RP09.PXSX], AE_NOT_FOUND (20171214/dswload2-312) ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20171214/psobject-371) ACPI Error: Method parse/execution failed \134_SB.PCI0.RP08.PXSX, AE_NOT_FOUND (20171214/psparse-677) Firmware Error (ACPI): Failure looking up [\134_SB.PCI0.RP12.PXSX._SB.PCI0.RP13.PXSX], AE_NOT_FOUND (20171214/dswload2-312) ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20171214/psobject-371) ACPI Error: Method parse/execution failed \134_SB.PCI0.RP12.PXSX, AE_NOT_FOUND (20171214/psparse-677) Firmware Error (ACPI): Failure looking up [\134_SB.PCI0.RP05.PXSX.WIST], AE_NOT_FOUND (20171214/psargs-503) ACPI Error: Method parse/execution failed \134CNDP, AE_NOT_FOUND (20171214/psparse-677) ACPI Error: Method parse/execution failed \134, AE_NOT_FOUND (20171214/psparse-677) acpi0: Power Button (fixed) cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 cpu4: on acpi0 cpu5: on acpi0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 24000000 Hz quality 950 Event timer "HPET" frequency 24000000 Hz quality 550 Event timer "HPET1" frequency 24000000 Hz quality 440 Event timer "HPET2" frequency 24000000 Hz quality 440 atrtc0: port 0x70-0x77 irq 8 on acpi0 atrtc0: Warning: Couldn't map I/O. atrtc0: registered as a time-of-day clock, resolution 1.000000s Event timer "RTC" frequency 32768 Hz quality 0 attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pcib0: _OSC returned error 0x10 pci0: on pcib0 vgapci0: port 0x3000-0x303f mem 0x50000000-0x50ffffff,0x40000000-0x4fffffff at device 2.0 on pci0 vgapci0: Boot video device xhci0: mem 0x51320000-0x5132ffff at device 20.0 on pci0 xhci0: 32 bytes context size, 64-bit DMA usbus0 on xhci0 usbus0: 5.0Gbps Super Speed USB v3.0 pci0: at device 20.2 (no driver attached) pci0: at device 22.0 (no driver attached) ahci0: port 0x3070-0x3077,0x3060-0x3063,0x3040-0x305f mem 0x51334000-0x51335fff,0x51339000-0x513390ff,0x51338000-0x513387ff at device 23.0 on pci0 ahci0: AHCI v1.31 with 6 6Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ahcich2: at channel 2 on ahci0 ahcich3: at channel 3 on ahci0 ahcich4: at channel 4 on ahci0 ahcich5: at channel 5 on ahci0 ahciem0: on ahci0 pcib1: at device 27.0 on pci0 pci1: on pcib1 pcib2: at device 0.0 on pci1 pci2: on pcib2 pcib3: at device 27.4 on pci0 pci3: on pcib3 nvme0: mem 0x51210000-0x51213fff,0x51200000-0x5120ffff at device 0.0 on pci3 pcib4: at device 29.0 on pci0 pci4: on pcib4 nvme1: mem 0x51110000-0x51113fff,0x51100000-0x5110ffff at device 0.0 on pci4 isab0: at device 31.0 on pci0 isa0: on isab0 hdac0: mem 0x51330000-0x51333fff,0x51000000-0x510fffff at device 31.3 on pci0 pci0: at device 31.5 (no driver attached) em0: mem 0x51300000-0x5131ffff at device 31.6 on pci0 em0: Using an MSI interrupt em0: Ethernet address: e0:d5:5e:b2:72:a6 em0: netmap queues/slots: TX 1/1024, RX 1/1024 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_tz0: on acpi0 acpi_tz1: on acpi0 ppc1: port 0x378-0x37f irq 5 on acpi0 ppc1: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc1 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 acpi_syscontainer0: on acpi0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] ppc0: cannot reserve I/O port range est0: on cpu0 est1: on cpu1 est2: on cpu2 est3: on cpu3 est4: on cpu4 est5: on cpu5 ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec ugen0.1: <0x8086 XHCI root HUB> at usbus0 uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 nvd0: NVMe namespace nvd0: 13736MB (28131328 512 byte sectors) nvd1: NVMe namespace nvd1: 13736MB (28131328 512 byte sectors) hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 20,22,21,23 and 24,26 on hdaa0 pcm1: at nid 27 and 25 on hdaa0 pcm2: at nid 17 on hdaa0 hdacc1: at cad 2 on hdac0 hdaa1: at nid 1 on hdacc1 pcm3: at nid 3 on hdaa1 ses0 at ahciem0 bus 0 scbus6 target 0 lun 0 ses0: SEMB S-E-S 2.00 device ses0: SEMB SES Device ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-2 ATA SATA 3.x device ada0: Serial Number WD-WCC ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 1907729MB (3907029168 512 byte sectors) ada0: quirks=0x1<4K> ada1 at ahcich2 bus 0 scbus2 target 0 lun 0 ada1: ACS-2 ATA SATA 3.x device ada1: Serial Number WD-WCC ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 1907729MB (3907029168 512 byte sectors) ada1: quirks=0x1<4K> Trying to mount root from zfs:zroot/ROOT/default []... uhub0: 24 ports with 24 removable, self powered ugen0.2: at usbus0 GEOM_ELI: Device ada0p5.eli created. GEOM_ELI: Encryption: AES-XTS 256 GEOM_ELI: Crypto: hardware ugen0.3: at usbus0 ukbd0 on uhub0 ukbd0: on usbus0 kbd2 at ukbd0 GEOM_MIRROR: Device mirror/swap launched (2/2). random: unblocking device. GEOM_ELI: Device ada1p5.eli created. GEOM_ELI: Encryption: AES-XTS 256 GEOM_ELI: Crypto: hardware GEOM_ELI: Device mirror/swap.eli created. GEOM_ELI: Encryption: AES-XTS 128 GEOM_ELI: Crypto: hardware em0: link state changed to UP