kernel warning when open the lid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux |
Confirmed
|
Medium
|
|||
linux-signed-hwe-6.2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I always put my thinkpad neo 14 to idle, close the lid, but not sleep/suspend, when I open the lid and login, I can see below warning from kernel in journal. If my memory is correct, when kernel is still around 5.15 or previous hwe(might be 6.0), I just see the first message about psmouse, no kernel warning.
Oct 22 19:52:52 kernel: psmouse serio1: TrackPoint at isa0060/
Oct 22 19:52:52 kernel: ------------[ cut here ]------------
Oct 22 19:52:52 kernel: WARNING: CPU: 15 PID: 1674 at drivers/
Oct 22 19:52:52 kernel: Modules linked in: btrfs blake2b_generic xor raid6_pq ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs cpuid tls tcp_diag inet_diag pppoe pppox rfcomm veth nft_masq dummy bridge stp llc nvme_fabrics nf_conntrack_netbio
s_ns nf_conntrack_
nntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nf_tables libcrc32c nfnetlink cmac algif_hash algif_skcipher af_alg overlay bnep binfmt_misc zstd snd_ctl_led snd_soc_skl_hda_dsp snd_soc_
d_hda_codec_hdmi snd_hda_
Oct 22 19:52:52 kernel: soundwire_
d(O) irqbypass thinkpad_acpi iwlmvm drm_buddy snd_pcm crct10dif_pclmul nvram zlua(O) ttm polyval_clmulni polyval_generic snd_seq_midi drm_display_helper zavl(PO) mac80211 ghash_clmulni_intel snd_seq_midi_event cec sha512_ssse3 icp(PO) snd_rawmidi nls_iso8859_1 rc_core aesni_intel snd_seq processor_
sor_thermal_rfim syscopyarea cmdlinepart pmt_telemetry
Oct 22 19:52:52 kernel: rapl spi_nor snd intel_rapl_msr pmt_class input_leds processor_
t soundcore mei intel_rapl_common igen6_edac intel_vsec ledtrig_audio mac_hid int3403_thermal int3400_thermal intel_hid soc_button_array platform_profile int340x_
r parport_pc lz4 lz4_compress ppdev lp drm zram parport efi_pstore autofs4 nvme ucsi_acpi spi_intel_pci i2c_i801 xhci_pci typec_ucsi nvme_core video crc32_pclmul psmouse thunderbolt spi_intel i2c_smbus xhci_pci_renesas typec nvme_common wm
i pinctrl_tigerlake
Oct 22 19:52:52 kernel: CPU: 15 PID: 1674 Comm: power-profiles- Tainted: P W O 6.2.0-34-generic #34~22.04.1-Ubuntu
Oct 22 19:52:52 kernel: Hardware name: LENOVO 21DN001ACD/
Oct 22 19:52:52 kernel: RIP: 0010:platform_
Oct 22 19:52:52 kernel: Code: e7 e8 f6 bb 80 df 48 98 48 8b 55 e8 65 48 2b 14 25 28 00 00 00 75 33 48 83 c4 10 5b 41 5c 5d 31 d2 31 f6 31 ff c3 cc cc cc cc <0f> 0b 48 c7 c0 fb ff ff ff eb d3 48 c7 c7 60 61 54 c0 e8 6b 0e 36
Oct 22 19:52:52 kernel: RSP: 0018:ffffa5a5c6
Oct 22 19:52:52 kernel: RAX: 00000000ed0fbddb RBX: 0000000000000000 RCX: 0000000000000000
Oct 22 19:52:52 kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
Oct 22 19:52:52 kernel: RBP: ffffa5a5c635bd00 R08: ffff8cf841f7a880 R09: 0000000000000001
Oct 22 19:52:52 kernel: R10: 0000000000000000 R11: 0000000000000000 R12: ffff8cf9ddb43000
Oct 22 19:52:52 kernel: R13: 0000000000000001 R14: ffff8cf8426d40a0 R15: ffff8cf8426d4078
Oct 22 19:52:52 kernel: FS: 00007f11f27d98c
Oct 22 19:52:52 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 22 19:52:52 kernel: CR2: 000000c0005fd010 CR3: 000000010953a000 CR4: 0000000000750ee0
Oct 22 19:52:52 kernel: PKRU: 55555554
Oct 22 19:52:52 kernel: Call Trace:
Oct 22 19:52:52 kernel: <TASK>
Oct 22 19:52:52 kernel: ? show_regs+0x72/0x90
Oct 22 19:52:52 kernel: ? platform_
Oct 22 19:52:52 kernel: ? __warn+0x8d/0x160
Oct 22 19:52:52 kernel: ? platform_
Oct 22 19:52:52 kernel: ? report_
Oct 22 19:52:52 kernel: ? handle_
Oct 22 19:52:52 kernel: ? exc_invalid_
Oct 22 19:52:52 kernel: ? asm_exc_
Oct 22 19:52:52 kernel: ? platform_
Oct 22 19:52:52 kernel: kobj_attr_
Oct 22 19:52:52 kernel: sysfs_kf_
Oct 22 19:52:52 kernel: kernfs_
Oct 22 19:52:52 kernel: seq_read_
Oct 22 19:52:52 kernel: ? fsnotify_
Oct 22 19:52:52 kernel: ? fsnotify_
Oct 22 19:52:52 kernel: kernfs_
Oct 22 19:52:52 kernel: vfs_read+
Oct 22 19:52:52 kernel: ksys_read+0x67/0xf0
Oct 22 19:52:52 kernel: __x64_sys_
Oct 22 19:52:52 kernel: do_syscall_
Oct 22 19:52:52 kernel: ? exit_to_
Oct 22 19:52:52 kernel: ? syscall_
Oct 22 19:52:52 kernel: ? do_syscall_
Oct 22 19:52:52 kernel: ? do_syscall_
Oct 22 19:52:52 kernel: ? do_syscall_
Oct 22 19:52:52 kernel: ? do_syscall_
Oct 22 19:52:52 kernel: entry_SYSCALL_
Oct 22 19:52:52 kernel: RIP: 0033:0x7f11f2f14a0c
Oct 22 19:52:52 kernel: Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 bf f7 ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 3f c0 f7 ff 48
Oct 22 19:52:52 kernel: RSP: 002b:00007ffda5
Oct 22 19:52:52 kernel: RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f11f2f14a0c
Oct 22 19:52:52 kernel: RDX: 0000000000001000 RSI: 0000564a866eb720 RDI: 0000000000000009
Oct 22 19:52:52 kernel: RBP: 0000564a86685eb0 R08: 0000000000000000 R09: 0000000000001000
Oct 22 19:52:52 kernel: R10: 0000564a8667ca10 R11: 0000000000000246 R12: 00007ffda5aee908
Oct 22 19:52:52 kernel: R13: 0000000000000000 R14: 00007ffda5aee910 R15: 0000000000000009
Oct 22 19:52:52 kernel: </TASK>
Oct 22 19:52:52 kernel: ---[ end trace 0000000000000000 ]---
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-
ProcVersionSign
Uname: Linux 6.2.0-34-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Sun Oct 22 20:12:23 2023
InstallationDate: Installed on 2023-03-23 (212 days ago)
InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
SourcePackage: linux-signed-
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
- kernel warning when wake up computer + kernel warning when open the lid |
description: | updated |
Changed in linux: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Downstream report: /bugzilla. suse.com/ show_bug. cgi?id= 1215602
https:/
LKML link:
https://<email address hidden>/
according to logs, since 6.3 (up to 6.5.4 now), I repeatedly see: acpi/platform_ profile. c:74 profile_ show+0xb1/ 0x100 [platform_profile] 644bb80e3c1534d 801bf4cb36 21CRS0K83K, BIOS R22ET60W (1.30 ) 02/09/2023 profile_ show+0xb1/ 0x100 [platform_profile] b97db0 EFLAGS: 00010296 0(0000) GS:ffff895b9f10 0000(0000) knlGS:000000000 0000000 seq_show+ 0xab/0x100 iter+0x123/ 0x480 0x1b8/0x300
> WARNING: CPU: 14 PID: 962 at drivers/
> platform_
> Modules linked in: ccm michael_mic ...
> CPU: 14 PID: 962 Comm: power-profiles- Kdump: loaded Not tainted
> 6.5.4-6-default #1 openSUSE Tumbleweed (unreleased)
> dd37106c593be78
> Hardware name: LENOVO 21CRS0K83K/
> RIP: 0010:platform_
> Code: d0 a8 ...
> RSP: 0018:ffff9c1ac0
> RAX: 0000000000000000 RBX: 0000000000000000 RCX: 000000008fc35be0
> RDX: 0000000000000000 RSI: ffff9c1ac0b97db4 RDI: ffffffffc0a8b0a0
> RBP: ffff8955ca540000 R08: ffff895b9f1ed180 R09: ffff895559ea1bc0
> R10: 00000000031a400e R11: 000000000003f680 R12: ffff895b9f1ed180
> R13: ffff9c1ac0b97e50 R14: 0000000000000001 R15: ffff9c1ac0b97ee8
> FS: 00007f71b0e7190
> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 00007fe402ea3400 CR3: 000000012004c000 CR4: 0000000000750ee0
> PKRU: 55555554
> Call Trace:
> <TASK>
> sysfs_kf_
> seq_read_
> vfs_read+
It's: profile_ names)) ))
WARN_ON((profile < 0) || (profile >= ARRAY_SIZE(
So I put there one more print: >profile_ get);
dev_warn(dev, "profile=%d profile_get=%ps\n",
profile, cur_profile-
and I see: get=dytc_ profile_ get [thinkpad_acpi] get=dytc_ profile_ get [thinkpad_acpi] get=dytc_ profile_ get [thinkpad_acpi] get=dytc_ profile_ get [thinkpad_acpi] get=dytc_ profile_ get [thinkpad_acpi] get=dytc_ profile_ get [thinkpad_acpi] get=dytc_ profile_ get [thinkpad_acpi]
: profile=-1883022368 profile_
: profile=-1510173440 profile_
: profile=-1510173440 profile_
: profile=-966231712 profile_
: profile=-1578420592 profile_
: profile=-1578420592 profile_
: profile=-1578420592 profile_
I wonder about dev passed to dytc_profile_get() having empty name (nothing before colon above)? Is that expected?
Ah, convert_ dytc_to_ profile( )'s retval is not checked in dytc_profile_ refresh( ). Adding: platform/ x86/thinkpad_ acpi.c platform/ x86/thinkpad_ acpi.c refresh( void)
return;
--- a/drivers/
+++ b/drivers/
@@ -10418,7 +10418,14 @@ static void dytc_profile_
perfmode = (output >> DYTC_GET_MODE_BIT) & 0xF; dytc_to_ profile( funcmode, perfmode, &profile); dytc_to_ profile( funcmode, perfmode, &profile); capabilities & BIT(DYTC_FC_MMC)), capabilities & BIT(DYTC_FC_PSC)), get_available, funcmode, output, perfmode); profile) {
dytc_ current_ profile = profile;
platform_ profile_ notify( );
- convert_
+ err = convert_
+ if (err) {
+ pr_warn("%s: mmc=%u psc=%u mmc_get=%u funcmode=%d output=0x%x perfmode=%d\n",
+ __func__, !!(dytc_
+ !!(dytc_
+ dytc_mmc_
+ return;
+ }
if (profile != dytc_current_
fixes the warning, ...