intel / ipu6-drivers

152 stars 51 forks source link

Error when loading intel-ipu6 module #48

Open randomehro opened 1 year ago

randomehro commented 1 year ago

I am running 5.19.12-1-default on OpenSUSE Tumbleweed. My hardware is LENOVO 21CBCTO1WW/21CBCTO1WW, BIOS N3AET65W (1.30). I got an error when loading intel-ipu6 module (commit from 20220926) during boot:

Edit: Still the same problem with kernel 6.0.0 and the commit from 20221009

[    6.746457] intel-ipu6 intel-ipu: enabling device (0000 -> 0002)
[    6.748265] intel-ipu6 intel-ipu: Device 0x465d (rev: 0x4)
[    6.748301] intel-ipu6 intel-ipu: physical base address 0x603c000000
[    6.748305] intel-ipu6 intel-ipu: mapped as: 0x00000000496d1881
[    6.748422] intel-ipu6 intel-ipu: IPU in secure mode
[    6.748426] intel-ipu6 intel-ipu: IPU secure touch = 0x0
[    6.748428] intel-ipu6 intel-ipu: IPU camera mask = 0xff
[    6.754013] proc_thermal_pci 0000:00:04.0: enabling device (0000 -> 0002)
[    6.759019] intel_rapl_common: Found RAPL domain package
[    6.762885] intel-ipu6 intel-ipu: IPC reset done
[    6.762891] intel-ipu6 intel-ipu: cpd file name: intel/ipu6ep_fw.bin
[    6.763627] intel-ipu6 intel-ipu: FW version: 20220510
[    6.763955] BUG: kernel NULL pointer dereference, address: 0000000000000304
[    6.763962] #PF: supervisor read access in kernel mode
[    6.763966] #PF: error_code(0x0000) - not-present page
[    6.763969] PGD 0 P4D 0 
[    6.763975] Oops: 0000 [#1] PREEMPT SMP NOPTI
[    6.763981] CPU: 5 PID: 665 Comm: systemd-udevd Tainted: G     U  W  OE     5.19.12-1-default #1 openSUSE Tumbleweed 665b142383228b747d71fcd0f7280693267f8cd7
[    6.763988] Hardware name: LENOVO 21CBCTO1WW/21CBCTO1WW, BIOS N3AET65W (1.30 ) 08/02/2022
[    6.763991] RIP: 0010:ipu_pci_probe.cold+0x3f0/0x90e [intel_ipu6]
[    6.764023] Code: 48 89 fa 48 85 ff 0f 84 b8 00 00 00 48 8b bf 10 03 00 00 48 85 ff 0f 84 ba 00 00 00 e8 56 b6 ff ff 48 8b 43 18 48 85 c0 74 11 <48> 8b b8 10 03 00 00 48 85 ff 74 05 e8 3c b6 ff ff 48 8b 53 20 48
[    6.764028] RSP: 0018:ffffb71440747b58 EFLAGS: 00010282
[    6.764033] RAX: fffffffffffffff4 RBX: ffff88b6c6789828 RCX: 0000000000000000
[    6.764036] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[    6.764039] RBP: ffff88b9e81bb000 R08: ffffb71440747af0 R09: ffff88b6c3f425a0
[    6.764043] R10: 0000000000000001 R11: 0000000000000001 R12: ffff88b9e81bb0d0
[    6.764046] R13: ffffb71445000000 R14: 00000000fffffff4 R15: ffffb71445000000
[    6.764049] FS:  00007f2330946b00(0000) GS:ffff88ba0f540000(0000) knlGS:0000000000000000
[    6.764054] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.764057] CR2: 0000000000000304 CR3: 000000010b3e4002 CR4: 0000000000770ee0
[    6.764062] PKRU: 55555554
[    6.764064] Call Trace:
[    6.764069]  <TASK>
[    6.764076]  local_pci_probe+0x3e/0x80
[    6.764087]  pci_device_probe+0xc3/0x230
[    6.764094]  really_probe+0x1bf/0x390
[    6.764101]  __driver_probe_device+0xff/0x170
[    6.764106]  driver_probe_device+0x1f/0x90
[    6.764111]  __driver_attach+0xcf/0x1d0
[    6.764116]  ? __device_attach_driver+0x110/0x110
[    6.764121]  bus_for_each_dev+0x73/0xc0
[    6.764126]  bus_add_driver+0x160/0x210
[    6.764131]  driver_register+0x89/0xe0
[    6.764136]  ? 0xffffffffc0f83000
[    6.764140]  ipu_init+0x3b/0x1000 [intel_ipu6 47b5614a0b9b9e937a29eb4630298c70c28ff96d]
[    6.764161]  do_one_initcall+0x41/0x200
[    6.764169]  ? kmem_cache_alloc_trace+0x177/0x360
[    6.764177]  do_init_module+0x4a/0x1f0
[    6.764185]  __do_sys_finit_module+0xac/0x120
[    6.764192]  do_syscall_64+0x58/0x80
[    6.764200]  ? do_syscall_64+0x67/0x80
[    6.764206]  ? exit_to_user_mode_prepare+0x190/0x1f0
[    6.764211]  ? syscall_exit_to_user_mode+0x17/0x40
[    6.764216]  ? do_syscall_64+0x67/0x80
[    6.764221]  ? syscall_exit_to_user_mode+0x17/0x40
[    6.764225]  ? do_syscall_64+0x67/0x80
[    6.764230]  entry_SYSCALL_64_after_hwframe+0x63/0xcd
[    6.764237] RIP: 0033:0x7f23313128fd
[    6.764241] Code: 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e3 74 0d 00 f7 d8 64 89 01 48
[    6.764245] RSP: 002b:00007fff1e93fa38 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    6.764250] RAX: ffffffffffffffda RBX: 0000557837186240 RCX: 00007f23313128fd
[    6.764253] RDX: 0000000000000000 RSI: 00007f233187e05d RDI: 0000000000000006
[    6.764256] RBP: 00007f233187e05d R08: 0000000000000000 R09: 0000557836fb3cd0
[    6.764259] R10: 0000000000000006 R11: 0000000000000246 R12: 0000000000020000
[    6.764262] R13: 0000000000000000 R14: 000055783718af30 R15: 0000000000000000
[    6.764266]  </TASK>
[    6.764268] Modules linked in: processor_thermal_device_pci(+) processor_thermal_device processor_thermal_rfim processor_thermal_mbox processor_thermal_rapl fjes(-) acpi_cpufreq(-) intel_vsec pcc_cpufreq(-) intel_rapl_common intel_ipu6(OE+) i2c_dev igen6_edac thermal tiny_power_button button fan thinkpad_acpi ledtrig_audio platform_profile snd mei_vsc(OE) mei soundcore int3403_thermal int340x_thermal_zone soc_button_array ac ov2740(OE) v4l2_fwnode v4l2_async videodev mc intel_skl_int3472_tps68470 tps68470_regulator intel_skl_int3472_discrete intel_hid sparse_keymap int3400_thermal acpi_thermal_rel intel_pmc_core acpi_tad acpi_pad nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_tables ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_mangle iptable_raw vboxnetadp(O) iptable_security vboxnetflt(O)
[    6.764334]  nfnetlink rfkill ip6table_filter ip6_tables iptable_filter bpfilter vboxdrv(O) qrtr dmi_sysfs nls_iso8859_1 nls_cp437 vfat fat fuse configfs ip_tables x_tables ext4 mbcache jbd2 hid_sensor_custom hid_sensor_hub hid_generic intel_ishtp_hid i915 drm_buddy drm_display_helper crct10dif_pclmul xhci_pci crc32_pclmul xhci_pci_renesas crc32c_intel xhci_hcd cec ucsi_acpi nvme rc_core typec_ucsi intel_ish_ipc i2c_hid_acpi ghash_clmulni_intel aesni_intel crypto_simd cryptd serio_raw roles usbcore intel_ishtp nvme_core typec ttm wmi i2c_hid battery video pinctrl_tigerlake coretemp sg dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua msr efivarfs
[    6.764392] Unloaded tainted modules: acpi_cpufreq():1 fjes():1 pcc_cpufreq():1 acpi_cpufreq():1 fjes():1 pcc_cpufreq():1 acpi_cpufreq():1 fjes():1 pcc_cpufreq():1 acpi_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 fjes():1 acpi_cpufreq():1 pcc_cpufreq():1 fjes():1 pcc_cpufreq():1 acpi_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1
[    6.764460]  pcc_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 pcc_cpufreq():1 acpi_cpufreq():1 acpi_cpufreq():1
[    6.764479] CR2: 0000000000000304
[    6.764483] ---[ end trace 0000000000000000 ]---
[    6.764486] RIP: 0010:ipu_pci_probe.cold+0x3f0/0x90e [intel_ipu6]
[    6.764509] Code: 48 89 fa 48 85 ff 0f 84 b8 00 00 00 48 8b bf 10 03 00 00 48 85 ff 0f 84 ba 00 00 00 e8 56 b6 ff ff 48 8b 43 18 48 85 c0 74 11 <48> 8b b8 10 03 00 00 48 85 ff 74 05 e8 3c b6 ff ff 48 8b 53 20 48
[    6.764513] RSP: 0018:ffffb71440747b58 EFLAGS: 00010282
[    6.764516] RAX: fffffffffffffff4 RBX: ffff88b6c6789828 RCX: 0000000000000000
[    6.764519] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[    6.764522] RBP: ffff88b9e81bb000 R08: ffffb71440747af0 R09: ffff88b6c3f425a0
[    6.764525] R10: 0000000000000001 R11: 0000000000000001 R12: ffff88b9e81bb0d0
[    6.764527] R13: ffffb71445000000 R14: 00000000fffffff4 R15: ffffb71445000000
[    6.764531] FS:  00007f2330946b00(0000) GS:ffff88ba0f540000(0000) knlGS:0000000000000000
[    6.764535] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.764538] CR2: 0000000000000304 CR3: 000000010b3e4002 CR4: 0000000000770ee0
[    6.764541] PKRU: 55555554
yorik commented 11 months ago

And it finally works! The problem was introduced in https://github.com/umlaeute/v4l2loopback/commit/c7a5cd4c06b41370790eec3a2a9884b764330074, I had to patch v4l2-relayd correspondingly, I'll send it to upstream soon.

So now it works on Lenovo ThinkPad X1 gen 11, Debian/Sid, kernel 6.4.11

fhloston commented 10 months ago

So now it works on Lenovo ThinkPad X1 gen 11, Debian/Sid, kernel 6.4.11

Distro kernel without recompile? I just noticed, the debian wishlist bug with inclusion of CONFIG_INTEL_SKL_INT3472=m was closed successfully.

So it should be possible to use ipu6-dkms as is.

ChocolateLoverRaj commented 9 months ago

@fhloston I also get this error [ 16.503942] i2c i2c-INT3537:00: deferred probe pending. What are the exact steps (including which OS?) u used to get your webcam to work? I want to try the same steps to see if it works on my laptop.