pstate

Bug #1855178 reported by Michael Mikowski
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

LSB Release: Ubuntu 19.10
Package: linux-image-5.3.0-23-generic
Hardware: System76 Galago Pro v4 (i7-8750H), Clevo-960rd (i7-9750H)

Expected results:
CPU should be governed by Intel P-State and should normally idle between 400 and 800 MHz when not loaded.

Actual results:
After update, CPU frequency remains pegged at maximum at all times. This sucks battery life and overheats the laptop.

Steps to reproduce:
1. Install Ubuntu 19.10 from official media. Kernel installed will be 5.3.0-18-generic
2. Check CPU frequencies. They will typically idle around 800MHz. Loading the system will spike to max frequencies (4.5 for 9750H, 4.2 for 8750H).
3. Upgrade system. Kernel will update to 5.3.0-23-generic
4. Reboot.
5. Monitor CPU frequencies again. This time, all core will remain at max frequencies.

Additional information:

1. Geekbench v4 multi-core scores are cut in half (26K vs 13K) after update. Single-core scores drop around 20%. This does not occur in 19.04 or 18.04. Confirmed on multiple 960rd systems.
2. linux-image-5.3.0-19-generic is also confirmed
3. We suspect that all kernels images after 5.3.0-18 have this bug
4
. We are not sure how much hardware is affected. At present, only the 8750/9750H CPUs are confirmed.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: kubuntu 2017 F.... pulseaudio
 /dev/snd/controlC1: kubuntu 2017 F.... pulseaudio
CurrentDesktop: KDE
DistroRelease: Ubuntu 19.10
InstallationDate: Installed on 2019-11-18 (16 days ago)
InstallationMedia: Kubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
MachineType: Notebook P95_96_97Ex,Rx
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.3.0-23-generic root=/dev/mapper/vgkubuntu-root ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.3.0-23.25-generic 5.3.7
RelatedPackageVersions:
 linux-restricted-modules-5.3.0-23-generic N/A
 linux-backports-modules-5.3.0-23-generic N/A
 linux-firmware 1.183.2
Tags: eoan
Uname: Linux 5.3.0-23-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 10/01/2019
dmi.bios.vendor: INSYDE Corp.
dmi.bios.version: 1.07.13NS1
dmi.board.asset.tag: Tag 12345
dmi.board.name: P95_96_97Ex,Rx
dmi.board.vendor: Notebook
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Notebook
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnINSYDECorp.:bvr1.07.13NS1:bd10/01/2019:svnNotebook:pnP95_96_97Ex,Rx:pvrNotApplicable:rvnNotebook:rnP95_96_97Ex,Rx:rvrNotApplicable:cvnNotebook:ct10:cvrN/A:
dmi.product.family: Not Applicable
dmi.product.name: P95_96_97Ex,Rx
dmi.product.sku: Not Applicable
dmi.product.version: Not Applicable
dmi.sys.vendor: Notebook
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: kubuntu 1949 F.... pulseaudio
 /dev/snd/controlC1: kubuntu 1949 F.... pulseaudio
CurrentDesktop: KDE
DistroRelease: Ubuntu 19.10
InstallationDate: Installed on 2019-11-18 (16 days ago)
InstallationMedia: Kubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
MachineType: Notebook P95_96_97Ex,Rx
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.3.0-24-generic root=/dev/mapper/vgkubuntu-root ro quiet splash
ProcVersionSignature: Ubuntu 5.3.0-24.26-generic 5.3.10
RelatedPackageVersions:
 linux-restricted-modules-5.3.0-24-generic N/A
 linux-backports-modules-5.3.0-24-generic N/A
 linux-firmware 1.183.2
Tags: eoan
Uname: Linux 5.3.0-24-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 10/01/2019
dmi.bios.vendor: INSYDE Corp.
dmi.bios.version: 1.07.13NS1
dmi.board.asset.tag: Tag 12345
dmi.board.name: P95_96_97Ex,Rx
dmi.board.vendor: Notebook
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Notebook
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnINSYDECorp.:bvr1.07.13NS1:bd10/01/2019:svnNotebook:pnP95_96_97Ex,Rx:pvrNotApplicable:rvnNotebook:rnP95_96_97Ex,Rx:rvrNotApplicable:cvnNotebook:ct10:cvrN/A:
dmi.product.family: Not Applicable
dmi.product.name: P95_96_97Ex,Rx
dmi.product.sku: Not Applicable
dmi.product.version: Not Applicable
dmi.sys.vendor: Notebook

Revision history for this message
Michael Mikowski (kfocus) wrote :

Not sure if this is correct. Cannot find reference to linux-image-generic.

These problems are confirmed using linux-image-lowlatency (v. 5.3.0-23)

affects: powertop (Ubuntu) → linux-meta (Ubuntu)
affects: linux-meta (Ubuntu) → linux (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1855178

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: eoan
Revision history for this message
Michael Mikowski (kfocus) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Michael Mikowski (kfocus) wrote : CRDA.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : IwConfig.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : Lspci.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : Lsusb.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : ProcEnviron.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : ProcModules.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : PulseList.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : RfKill.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : UdevDb.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : WifiSyslog.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote :

I have added the app-port information. Here is the package information.

Description: Signed kernel image generic
 A kernel image for generic. This version of it is signed with Canonical's UEFI/Opal signing key.

uname -a
Linux p960rd 5.3.0-23-generic #25-Ubuntu SMP Tue Nov 12 09:22:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

I have checked the system information. You can see from ProcCpuinfo.txt that the CPU on this idle system exceeds 4.1GHz for many cores, and the number only continues to creep up. As I type this, the average has now crept above 4.3GHz as shown below.

processor : 11
vendor_id : GenuineIntel
cpu family : 6
model : 158
model name : Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
stepping : 10
microcode : 0xc6
cpu MHz : 4313.611
cache size : 12288 KB
physical id : 0
siblings : 12
core id : 5
cpu cores : 6
apicid : 11
initial apicid : 11
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips : 5199.98
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Michael Mikowski (kfocus) wrote :

This may be orthogonal, but my hunch is it is not.

Geekbench scores are 4435 / 13480. https://browser.geekbench.com/v4/cpu/15000249
An 18.04 system runs 5650 / 23987. https://browser.geekbench.com/v4/cpu/14996458

This is 125% single core, and 178% multi-core. Multi-core can approach in 18.04 can reach 26K.

Revision history for this message
Michael Mikowski (kfocus) wrote :

Confirmed issue with latest updates. CPU remains pegged at 4.3GHz.

uname -svr
Linux 5.3.0-24-generic #26-Ubuntu SMP Thu Nov 14 01:33:18 UTC 2019

description: updated
Revision history for this message
Michael Mikowski (kfocus) wrote : AlsaInfo.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : CRDA.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : IwConfig.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : Lspci.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : Lsusb.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : ProcEnviron.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : ProcModules.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : PulseList.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : RfKill.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : UdevDb.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote : WifiSyslog.txt

apport information

Revision history for this message
Michael Mikowski (kfocus) wrote :

Please notice I incorrectly stated the System 76 model as the Galago Pro. This is the ORYX PRO with the Core i7-8750H. This is the first slim model (not sure the version). I also have the 4-core prior version, however I haven't yet had a chance to test.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Please test latest mainline kernel:
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5/

Revision history for this message
Michael Mikowski (kfocus) wrote :

> Kai-Heng Feng (kaihengfeng) wrote on 2020-02-04:
> https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5/

I will be testing this on newer kernels soon and will report back.

At this stage, I believe it is important for both 18.04 and 20.04 LTS releases. The interim 18.10/19.04/19.10 releases are all expired or expiring relatively soon, and 20.04 LTS will need this fix IMO, and that means a 5.4 kernel unless something changes.

I have both the i7-8750H and i7-9750 models and will test on both. Thank you!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.