Kernel Error IRQ

Bug #1873673 reported by Pablo Catalina
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Lenovo p52 with Thunderbolt dock (2 HDMIs - one connected, few USBs 3.0 - one with an external HD connected, and one USB-C)

I noted that the mouse and keyboard using one Logitech Unifying receiver (connected through USB on the Laptop, not dock) started to jump over the screen and responded bad. I noted on dmesg the following error:

[ 464.663455] ------------[ cut here ]------------
[ 464.663483] irq 160 handler irq_default_primary_handler+0x0/0x10 enabled interrupts
[ 464.663499] WARNING: CPU: 4 PID: 318 at kernel/irq/handle.c:152 __handle_irq_event_percpu+0x1a7/0x1b0
[ 464.663500] Modules linked in: snd_usb_audio snd_usbmidi_lib ccm cdc_ether usbnet r8152 mii rfcomm cmac algif_hash algif_skcipher af_alg bnep typec_displayport nvidia_uvm(O) nvidia_drm(PO) nvidia_modeset(PO) binfmt_misc mei_hdcp nls_iso8859_1 intel_rapl_msr nvidia(PO) snd_sof_pci snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_intel_hda snd_sof_intel_byt snd_hda_codec_hdmi snd_sof_intel_ipc snd_sof uvcvideo x86_pkg_temp_thermal intel_powerclamp snd_sof_xtensa_dsp coretemp iwlmvm btusb snd_hda_ext_core videobuf2_vmalloc btrtl btbcm videobuf2_memops btintel snd_soc_acpi_intel_match videobuf2_v4l2 snd_soc_acpi kvm_intel snd_hda_codec_realtek videobuf2_common mac80211 snd_hda_codec_generic videodev bluetooth libarc4 snd_soc_core mc kvm joydev intel_cstate snd_compress intel_rapl_perf ac97_bus snd_pcm_dmaengine ecdh_generic ecc snd_hda_intel snd_intel_dspcfg snd_seq_midi input_leds snd_seq_midi_event thinkpad_acpi snd_hda_codec iwlwifi rtsx_pci_ms snd_hda_core wmi_bmof serio_raw snd_rawmidi
[ 464.663564] elan_i2c memstick nvram snd_hwdep 8250_dw intel_wmi_thunderbolt ledtrig_audio mei_me snd_pcm snd_seq cfg80211 mei processor_thermal_device ipmi_devintf snd_seq_device intel_rapl_common ipmi_msghandler snd_timer intel_soc_dts_iosf intel_pch_thermal ucsi_acpi typec_ucsi snd typec soundcore int3403_thermal int340x_thermal_zone int3400_thermal mac_hid acpi_pad acpi_thermal_rel sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 dm_crypt wacom hid_logitech_hidpp hid_logitech_dj hid_generic usbhid hid i915 crct10dif_pclmul crc32_pclmul ghash_clmulni_intel i2c_algo_bit drm_kms_helper nvme rtsx_pci_sdmmc syscopyarea sysfillrect sysimgblt aesni_intel fb_sys_fops crypto_simd cryptd glue_helper psmouse intel_lpss_pci e1000e drm thunderbolt i2c_i801 nvme_core rtsx_pci intel_lpss idma64 virt_dma wmi pinctrl_cannonlake video pinctrl_intel
[ 464.663627] CPU: 4 PID: 318 Comm: irq/16-i801_smb Tainted: P O 5.4.0-24-lowlatency #28-Ubuntu
[ 464.663630] Hardware name: LENOVO 20MAS0DF03/20MAS0DF03, BIOS N2CET50W (1.33 ) 01/15/2020
[ 464.663637] RIP: 0010:__handle_irq_event_percpu+0x1a7/0x1b0
[ 464.663641] Code: 48 0f ba 6b 40 01 0f 82 fd fe ff ff e9 87 02 00 00 48 8b 13 44 89 e6 48 c7 c7 30 58 36 bb c6 05 99 5a 6f 01 01 e8 a4 9a f8 ff <0f> 0b eb c5 0f 1f 44 00 00 0f 1f 44 00 00 55 48 89 e5 41 55 41 54
[ 464.663643] RSP: 0018:ffffb37a40557d68 EFLAGS: 00010286
[ 464.663647] RAX: 0000000000000000 RBX: ffff97bd37c54200 RCX: 0000000000000006
[ 464.663649] RDX: 0000000000000007 RSI: 0000000000000096 RDI: ffff97bd3c1178c0
[ 464.663651] RBP: ffffb37a40557da0 R08: 0000000000000001 R09: 000000000000054d
[ 464.663653] R10: 000000000001eb4c R11: 0000000000000004 R12: 00000000000000a0
[ 464.663655] R13: 0000000000000000 R14: ffff97bd3825c700 R15: 0000000000000002
[ 464.663658] FS: 0000000000000000(0000) GS:ffff97bd3c100000(0000) knlGS:0000000000000000
[ 464.663661] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 464.663663] CR2: 000022850c710ba0 CR3: 000000052100a005 CR4: 00000000003606e0
[ 464.663665] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 464.663667] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 464.663669] Call Trace:
[ 464.663680] ? irq_finalize_oneshot.part.0+0xe0/0xe0
[ 464.663686] handle_irq_event_percpu+0x33/0x80
[ 464.663692] handle_irq_event+0x39/0x58
[ 464.663697] handle_simple_irq+0x6f/0xa0
[ 464.663703] generic_handle_irq+0x28/0x40
[ 464.663709] i2c_handle_smbus_host_notify+0x28/0x40
[ 464.663717] i801_isr+0x1ee/0x300 [i2c_i801]
[ 464.663724] irq_forced_thread_fn+0x33/0x80
[ 464.663729] irq_thread+0xda/0x170
[ 464.663736] ? wake_threads_waitq+0x30/0x30
[ 464.663741] kthread+0x104/0x140
[ 464.663747] ? irq_thread_check_affinity+0xe0/0xe0
[ 464.663750] ? kthread_park+0x90/0x90
[ 464.663757] ret_from_fork+0x35/0x40
[ 464.663763] ---[ end trace 73ff5361b8214bea ]---

NOTES: Ubuntu Focal just installed, enabled the thunderbolt and allow it (I had to poweroff the laptop, otherwise the External displays connected to the Thunderbolt did not work)

NOTE: The mouse is still making jumps and does not respond when I perform a file transfer from the Dock USB external drive (big files that take long to copy).

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-5.4.0-24-lowlatency 5.4.0-24.28
ProcVersionSignature: Ubuntu 5.4.0-24.28-lowlatency 5.4.30
Uname: Linux 5.4.0-24-lowlatency x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: pcatalin 1433 F.... pulseaudio
 /dev/snd/controlC1: pcatalin 1433 F.... pulseaudio
 /dev/snd/controlC0: pcatalin 1433 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sun Apr 19 18:15:53 2020
InstallationDate: Installed on 2020-04-19 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200417)
MachineType: LENOVO 20MAS0DF03
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.4.0-24-lowlatency root=/dev/mapper/vgubuntu-root ro quiet splash
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-24-lowlatency N/A
 linux-backports-modules-5.4.0-24-lowlatency N/A
 linux-firmware 1.187
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/15/2020
dmi.bios.vendor: LENOVO
dmi.bios.version: N2CET50W (1.33 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20MAS0DF03
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrN2CET50W(1.33):bd01/15/2020:svnLENOVO:pn20MAS0DF03:pvrThinkPadP52:rvnLENOVO:rn20MAS0DF03:rvrNotDefined:cvnLENOVO:ct10:cvrNone:
dmi.product.family: ThinkPad P52
dmi.product.name: 20MAS0DF03
dmi.product.sku: LENOVO_MT_20MA_BU_Think_FM_ThinkPad P52
dmi.product.version: ThinkPad P52
dmi.sys.vendor: LENOVO

Revision history for this message
Pablo Catalina (xkill) wrote :
Revision history for this message
Pablo Catalina (xkill) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Pablo Catalina (xkill) wrote :
  • syslog Edit (125.9 KiB, application/octet-stream)
Revision history for this message
Sultan Alsawaf (kerneltoast) wrote :

I think i801_isr needs to be marked with IRQF_NO_THREAD. Please try this kernel and see if it fixes the problem: https://kernel.ubuntu.com/~sultan/i801-lp1873673/

Revision history for this message
post-factum (post-factum) wrote :

So, Pablo, does this work?

===
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index a9c03f5c3482..e2863fbca13f 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -1868,7 +1868,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id)
   init_waitqueue_head(&priv->waitq);

   err = devm_request_irq(&dev->dev, dev->irq, i801_isr,
- IRQF_SHARED,
+ IRQF_SHARED | IRQF_NO_THREAD,
            dev_driver_string(&dev->dev), priv);
   if (err) {
    dev_err(&dev->dev, "Failed to allocate irq %d: %d\n",
===

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.