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

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1943103

Title:
  Kernel 5.4.0-84 Graphical Issues and Overheating

Status in linux package in Ubuntu:
  Confirmed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1943103/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to