Kernel 5.4.0-84 Graphical Issues and Overheating

Bug #1943103 reported by Jayden Cortez
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

> Windows are glitchy and laptop is overheating.

cat /proc/version_signature:
Ubuntu 5.4.0-84.94-generic 5.4.133

sudo lspci -vnvn:
[Log Attached]
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.18
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: knj 6145 F.... pulseaudio
CasperMD5CheckResult: skip
DistroRelease: Linux Mint 20.2
InstallationDate: Installed on 2021-08-16 (24 days ago)
InstallationMedia: Linux Mint 20.2 "Uma" - Release amd64 20210703
MachineType: LENOVO 82A1
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=en_PH:en
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_PH.UTF-8
 SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-84-generic root=UUID=bf191557-7167-4211-a91d-d9ef3b7412f1 ro quiet splash
ProcVersionSignature: Ubuntu 5.4.0-84.94-generic 5.4.133
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-84-generic N/A
 linux-backports-modules-5.4.0-84-generic N/A
 linux-firmware 1.187.16
Tags: uma
Uname: Linux 5.4.0-84-generic x86_64
UnreportableReason: This report is about a package that is not installed.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: False
dmi.bios.date: 01/14/2021
dmi.bios.vendor: LENOVO
dmi.bios.version: DHCN31WW
dmi.board.asset.tag: ���������������
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40709 WIN
dmi.chassis.asset.tag: ���������������
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Yoga Slim 7 14IIL05
dmi.modalias: dmi:bvnLENOVO:bvrDHCN31WW:bd01/14/2021:svnLENOVO:pn82A1:pvrYogaSlim714IIL05:rvnLENOVO:rnLNVNB161216:rvrSDK0J40709WIN:cvnLENOVO:ct10:cvrYogaSlim714IIL05:
dmi.product.family: Yoga Slim 7 14IIL05
dmi.product.name: 82A1
dmi.product.sku: LENOVO_MT_82A1_BU_idea_FM_Yoga Slim 7 14IIL05
dmi.product.version: Yoga Slim 7 14IIL05
dmi.sys.vendor: LENOVO

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote :
tags: added: kernel-bug
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 1943103

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
Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected uma
description: updated
Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : CRDA.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : IwConfig.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : Lspci.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : Lspci-vt.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : Lsusb.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : Lsusb-t.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : Lsusb-v.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : ProcModules.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : RfKill.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : UdevDb.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : WifiSyslog.txt

apport information

Revision history for this message
Jayden Cortez (jayden-cortez-deactivatedaccount) wrote : acpidump.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Piotr Filiciak (lenz1111) wrote :

I can confirm overheating on HP ZBook 17 G6/860C, BIOS R92 Ver. 01.05.04 06/03/2020 with Ubuntu 5.4.0-84.94-generic kernel.

The problem occurs because of commit:
---
thermal/drivers/int340x/processor_thermal: Fix tcc setting
BugLink: https://bugs.launchpad.net/bugs/1938713

commit fe6a6de6692e7f7159c1ff42b07ecd737df712b4 upstream.

The following fixes are done for tcc sysfs interface:
- TCC is 6 bits only from bit 29-24
- TCC of 0 is valid
- When BIT(31) is set, this register is read only
- Check for invalid tcc value
- Error for negative values
---
diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
index 89a0153..576523d 100644
--- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
+++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
@@ -150,24 +150,27 @@ static ssize_t tcc_offset_degree_celsius_show(struct device *dev,
  if (err)
   return err;

- val = (val >> 24) & 0xff;
+ val = (val >> 24) & 0x3f;
  return sprintf(buf, "%d\n", (int)val);
 }

-static int tcc_offset_update(int tcc)
+static int tcc_offset_update(unsigned int tcc)
 {
  u64 val;
  int err;

- if (!tcc)
+ if (tcc > 63)
   return -EINVAL;

Previous version ignored tcc==0, now it is valid value! In my case during boot Ubuntu execute tcc_offset_update(0). Previous version ignored this value and (I suppose) it used value set by BIOS (in my case 2). When CPUs are fully loaded (for example when compiling kernel) my laptop is shutting down immediately to prevent overheating (on 5.4.0-81-generic works fine).

It can be fixed manually by:
echo 2 | sudo tee /sys/devices/pci0000:00/0000:00:04.0/tcc_offset_degree_celsius

Revision history for this message
Piotr Filiciak (lenz1111) wrote :

dmesg for kernel 5.4.0-84-generic

Revision history for this message
Piotr Filiciak (lenz1111) wrote :

dmesg for kernel 5.4.0-81-generic

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

Piotr,
Does mainline kernel have this issue?

Revision history for this message
Piotr Filiciak (lenz1111) wrote :

Mainline kernel had this issue - but it was resolved by patch:
https://github.com/torvalds/linux/commit/8b4bd256674720709a9d858a219fcac6f2f253b5#diff-fa93c4ecc9ca98e9a9a7895c81c1965a1732bc6928e2edf74734a5638215f794

Can you apply that patch for Ubuntu kernels 5.4.0-x?

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

Since it's in upstream stable kernel, it will be automatically included in later Ubuntu kernels.

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.