WARNING: CPU: 1 PID: 0 at arch/x86/mm/tlb.c:245 initialize_tlbstate_and_flush+0x6a/0x100

From: Jens Axboe
Date: Wed Sep 13 2017 - 12:12:07 EST


Hi,

I get this new warning when I suspend/resume my gen4 x1 laptop running
current -git. Looks like this commit is the problematic one:

commit 72c0098d92cedb11c7e0151e84918840a4e96b31
Author: Andy Lutomirski <luto@xxxxxxxxxx>
Date: Wed Sep 6 19:54:53 2017 -0700

x86/mm: Reinitialize TLB state on hotplug and resume

Full trace:

[13570.177554] x86: Booting SMP configuration:
[13570.177558] smpboot: Booting Node 0 Processor 1 APIC 0x2
[13570.186919] ------------[ cut here ]------------
[13570.186942] WARNING: CPU: 1 PID: 0 at arch/x86/mm/tlb.c:245 initialize_tlbstate_and_flush+0x6a/0x100
[13570.186945] Modules linked in: rfcomm fuse ctr ccm arc4 bnep snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic snd_hda_intel snd_hda_codec binfmt_misc iwlmvm snd_hwdep snd_hda_core mac80211 snd_pcm nls_iso8859_1 snd_seq_midi nls_cp437 snd_seq_midi_event x86_pkg_temp_thermal vfat fat iwlwifi snd_rawmidi intel_powerclamp kvm_intel snd_seq kvm btusb uvcvideo btintel bluetooth snd_seq_device irqbypass snd_timer videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 snd videobuf2_core aesni_intel videodev aes_x86_64 crypto_simd cryptd glue_helper ecdh_generic cfg80211 soundcore hid_generic usbhid hid i915 psmouse e1000e ptp pps_core xhci_pci xhci_hcd intel_gtt
[13570.187074] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G U W 4.13.0+ #109
[13570.187077] Hardware name: LENOVO 20FBCTO1WW/20FBCTO1WW, BIOS N1FET54W (1.28 ) 08/10/2017
[13570.187082] task: ffff88042e983900 task.stack: ffff88042e99c000
[13570.187093] RIP: 0010:initialize_tlbstate_and_flush+0x6a/0x100
[13570.187097] RSP: 0000:ffff88042e99feb0 EFLAGS: 00010046
[13570.187103] RAX: 00000000000000a0 RBX: 0000000000000001 RCX: ffffffff81a5c900
[13570.187107] RDX: 0000000002a09000 RSI: 0000000002a09000 RDI: 0000000000000000
[13570.187110] RBP: ffff88042e99feb0 R08: 0000000001000000 R09: 000000000000007f
[13570.187113] R10: ffff88042e560000 R11: 0000000000000000 R12: ffff880441497540
[13570.187117] R13: ffff88042e983900 R14: ffff88044148c3e0 R15: 0000000000000001
[13570.187122] FS: 0000000000000000(0000) GS:ffff880441480000(0000) knlGS:0000000000000000
[13570.187126] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13570.187129] CR2: 0000000000000000 CR3: 0000000002a09000 CR4: 00000000000000a0
[13570.187132] Call Trace:
[13570.187150] cpu_init+0x1e8/0x490
[13570.187160] ? arch_cpu_idle_dead+0xf/0x20
[13570.187168] start_secondary+0xa/0x100
[13570.187173] ? start_secondary+0xa/0x100
[13570.187186] secondary_startup_64+0xa5/0xa5
[13570.187191] Code: 00 00 4c 01 c0 48 39 c6 0f 85 92 00 00 00 48 8b 05 30 9b a8 00 a9 00 00 02 00 74 11 65 48 8b 05 4d ea fc 7e a9 00 00 02 00 75 02 <0f> ff 48 81 e2 00 f0 ff ff 0f 22 da 65 66 c7 05 28 ea fc 7e 00
[13570.187299] ---[ end trace bb794a6054f8e764 ]---
[13570.188170] cache: parent cpu1 should not be sleeping
[13570.188799] CPU1 is up


--
Jens Axboe