Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fwup causing i2c-ch341 driver to crash #14

Open
axet opened this issue May 11, 2024 · 0 comments
Open

fwup causing i2c-ch341 driver to crash #14

axet opened this issue May 11, 2024 · 0 comments

Comments

@axet
Copy link

axet commented May 11, 2024

modprobe i2c_ch341_usb
install fwup 1.9

[  106.500327] i2c-ch341-usb 1-3:1.0: ch341_cfg_probe: output gpio0 gpio=0 irq=0 
[  106.500338] i2c-ch341-usb 1-3:1.0: ch341_cfg_probe: output gpio1 gpio=1 irq=1 
[  106.500342] i2c-ch341-usb 1-3:1.0: ch341_cfg_probe: output gpio2 gpio=2 irq=2 
[  106.500345] i2c-ch341-usb 1-3:1.0: ch341_cfg_probe: output gpio3 gpio=3 irq=3 
[  106.500348] i2c-ch341-usb 1-3:1.0: ch341_cfg_probe: input  gpio4 gpio=4 irq=4 (hwirq)
[  106.500351] i2c-ch341-usb 1-3:1.0: ch341_cfg_probe: input  gpio5 gpio=5 irq=5 
[  106.500355] i2c-ch341-usb 1-3:1.0: ch341_cfg_probe: input  gpio6 gpio=6 irq=6 
[  106.500359] i2c-ch341-usb 1-3:1.0: ch341_cfg_probe: input  gpio7 gpio=7 irq=7 
[  106.500418] i2c-ch341-usb 1-3:1.0: ch341_i2c_probe: created i2c device /dev/i2c-7
[  106.500424] i2c-ch341-usb 1-3:1.0: ch341_i2c_set_speed: Change i2c bus speed to 100 kbps
[  106.500580] BUG: kernel NULL pointer dereference, address: 00000000000000ac
[  106.500584] #PF: supervisor read access in kernel mode
[  106.500587] #PF: error_code(0x0000) - not-present page
[  106.500590] PGD 0 P4D 0 
[  106.500594] Oops: 0000 [#1] PREEMPT SMP NOPTI
[  106.500599] CPU: 1 PID: 152 Comm: kworker/1:2 Tainted: G           OE      6.7.12-amd64 #1  Debian 6.7.12-1
[  106.500604] Hardware name: ASUSTeK COMPUTER INC. Vivobook_ASUSLaptop M3500QA_M3500QA/M3500QA, BIOS M3500QA.312 05/25/2023
[  106.500607] Workqueue: usb_hub_wq hub_event [usbcore]
[  106.500649] RIP: 0010:gpio_name_to_desc+0x5c/0x130
[  106.500658] Code: 8b 05 e8 d8 6a 01 48 8d 88 70 fc ff ff 48 89 4c 24 08 48 3d a0 66 99 8a 0f 84 a1 00 00 00 48 8b 44 24 08 48 8b 90 68 03 00 00 <44> 0f b7 a2 ac 00 00 00 66 45 85 e4 74 63 4c 8b 6a 08 45 31 f6 31
[  106.500662] RSP: 0018:ffffb294c06737a0 EFLAGS: 00010087
[  106.500666] RAX: ffff8f3fb399a800 RBX: 0000000000000100 RCX: ffff8f3fb399a800
[  106.500668] RDX: 0000000000000000 RSI: ffffffff8a088fde RDI: 0000000000000000
[  106.500671] RBP: ffff8f3e80f0c858 R08: ffffffff8a9966a0 R09: ffff8f3e86d57da8
[  106.500673] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000100
[  106.500675] R13: ffff8f3e80f1a000 R14: 0000000000002800 R15: ffff8f3e8149e7d8
[  106.500677] FS:  0000000000000000(0000) GS:ffff8f418e640000(0000) knlGS:0000000000000000
[  106.500680] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  106.500683] CR2: 00000000000000ac CR3: 00000003e0820000 CR4: 0000000000750ef0
[  106.500685] PKRU: 55555554
[  106.500687] Call Trace:
[  106.500690]  <TASK>
[  106.500694]  ? __die+0x23/0x70
[  106.500702]  ? page_fault_oops+0x171/0x4e0
[  106.500710]  ? exc_page_fault+0x7f/0x180
[  106.500716]  ? asm_exc_page_fault+0x26/0x30
[  106.500723]  ? gpio_name_to_desc+0x5c/0x130
[  106.500732]  gpiochip_add_data_with_key+0x54b/0x1050
[  106.500737]  ? __irq_get_desc_lock+0x55/0x90
[  106.500744]  ? __irq_put_desc_unlock+0x1c/0x50
[  106.500750]  ch341_usb_probe+0x4fe/0x9a0 [i2c_ch341_usb]
[  106.500761]  usb_probe_interface+0xe3/0x2f0 [usbcore]
[  106.500799]  really_probe+0x19b/0x3e0
[  106.500806]  ? __pfx___device_attach_driver+0x10/0x10
[  106.500811]  __driver_probe_device+0x78/0x160
[  106.500816]  driver_probe_device+0x1f/0x90
[  106.500820]  __device_attach_driver+0x89/0x110
[  106.500825]  bus_for_each_drv+0x92/0xf0
[  106.500829]  __device_attach+0xb2/0x1b0
[  106.500834]  bus_probe_device+0x8d/0xa0
[  106.500838]  device_add+0x698/0x8a0
[  106.500843]  ? queue_work_on+0x3b/0x50
[  106.500849]  usb_set_configuration+0x5f3/0x960 [usbcore]
[  106.500887]  usb_generic_driver_probe+0x5c/0x90 [usbcore]
[  106.500924]  usb_probe_device+0x3a/0x110 [usbcore]
[  106.500958]  really_probe+0x19b/0x3e0
[  106.500963]  ? __pfx___device_attach_driver+0x10/0x10
[  106.500967]  __driver_probe_device+0x78/0x160
[  106.500972]  driver_probe_device+0x1f/0x90
[  106.500976]  __device_attach_driver+0x89/0x110
[  106.500980]  bus_for_each_drv+0x92/0xf0
[  106.500984]  __device_attach+0xb2/0x1b0
[  106.500988]  bus_probe_device+0x8d/0xa0
[  106.500992]  device_add+0x698/0x8a0
[  106.500998]  usb_new_device+0x41c/0x500 [usbcore]
[  106.501036]  hub_event+0x124e/0x1bf0 [usbcore]
[  106.501070]  ? __schedule+0x3e2/0xb20
[  106.501078]  process_one_work+0x17c/0x350
[  106.501083]  worker_thread+0x27b/0x3a0
[  106.501089]  ? __pfx_worker_thread+0x10/0x10
[  106.501093]  kthread+0xe5/0x120
[  106.501097]  ? __pfx_kthread+0x10/0x10
[  106.501100]  ret_from_fork+0x31/0x50
[  106.501107]  ? __pfx_kthread+0x10/0x10
[  106.501109]  ret_from_fork_asm+0x1b/0x30
[  106.501118]  </TASK>
[  106.501119] Modules linked in: i2c_ch341_usb(OE) ctr ccm rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device qrtr cmac algif_hash algif_skcipher af_alg bnep binfmt_misc nls_ascii nls_cp437 vfat fat amdgpu iwlmvm mac80211 btusb btrtl btintel btbcm btmtk libarc4 bluetooth iwlwifi intel_rapl_msr sha3_generic intel_rapl_common cfg80211 jitterentropy_rng joydev snd_sof_amd_rembrandt drbg snd_sof_amd_acp asus_nb_wmi ansi_cprng snd_sof_pci asus_wmi snd_sof_xtensa_dsp edac_mce_amd sparse_keymap ecdh_generic platform_profile snd_sof kvm_amd uvcvideo snd_hda_codec_realtek drm_exec amdxcp drm_buddy snd_sof_utils snd_hda_codec_generic gpu_sched videobuf2_vmalloc uvc kvm snd_soc_core ledtrig_audio snd_hda_codec_hdmi drm_suballoc_helper videobuf2_memops snd_hda_intel videobuf2_v4l2 snd_compress drm_display_helper snd_pcm_dmaengine videodev snd_hda_codec snd_intel_dspcfg cec snd_intel_sdw_acpi snd_pci_ps rc_core irqbypass snd_rpl_pci_acp6x bfq snd_hda_core drm_ttm_helper videobuf2_common snd_pci_acp6x ttm rapl snd_hwdep
[  106.501192]  snd_pci_acp5x ecc mc crc16 pcspkr drm_kms_helper snd_pcm sg wmi_bmof snd_timer snd_rn_pci_acp3x snd_acp_config sp5100_tco snd snd_soc_acpi i2c_algo_bit ccp k10temp rfkill watchdog snd_pci_acp3x soundcore ac button amd_pmc evdev hid_multitouch serio_raw cuse msr parport_pc ppdev lp parport nvme_fabrics loop efi_pstore configfs nfnetlink zram efivarfs ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq libcrc32c crc32c_generic sd_mod uas usb_storage dm_crypt dm_mod ahci crc32_pclmul hid_generic nvme libahci crc32c_intel xhci_pci i2c_hid_acpi libata xhci_hcd i2c_hid nvme_core ghash_clmulni_intel drm t10_pi sha512_ssse3 scsi_mod usbcore sha512_generic crc64_rocksoft_generic sha256_ssse3 crc64_rocksoft crc_t10dif sha1_ssse3 crct10dif_generic video crct10dif_pclmul crc64 i2c_piix4 scsi_common usb_common crct10dif_common hid battery wmi aesni_intel crypto_simd cryptd
[  106.501267] CR2: 00000000000000ac
[  106.501270] ---[ end trace 0000000000000000 ]---
[  106.619746] RIP: 0010:gpio_name_to_desc+0x5c/0x130
[  106.619749] Code: 8b 05 e8 d8 6a 01 48 8d 88 70 fc ff ff 48 89 4c 24 08 48 3d a0 66 99 8a 0f 84 a1 00 00 00 48 8b 44 24 08 48 8b 90 68 03 00 00 <44> 0f b7 a2 ac 00 00 00 66 45 85 e4 74 63 4c 8b 6a 08 45 31 f6 31
[  106.619751] RSP: 0018:ffffb294c06737a0 EFLAGS: 00010087
[  106.619752] RAX: ffff8f3fb399a800 RBX: 0000000000000100 RCX: ffff8f3fb399a800
[  106.619753] RDX: 0000000000000000 RSI: ffffffff8a088fde RDI: 0000000000000000
[  106.619754] RBP: ffff8f3e80f0c858 R08: ffffffff8a9966a0 R09: ffff8f3e86d57da8
[  106.619755] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000100
[  106.619756] R13: ffff8f3e80f1a000 R14: 0000000000002800 R15: ffff8f3e8149e7d8
[  106.619756] FS:  0000000000000000(0000) GS:ffff8f418e640000(0000) knlGS:0000000000000000
[  106.619757] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  106.619758] CR2: 00000000000000ac CR3: 0000000180880000 CR4: 0000000000750ef0
[  106.619759] PKRU: 55555554
[  106.619761] note: kworker/1:2[152] exited with irqs disabled
[  106.619781] note: kworker/1:2[152] exited with preempt_count 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant