intel / ipu6-drivers

152 stars 50 forks source link

driver crashed: load of value 64 is not a valid value for type '_Bool' #155

Open rafaelvanoni opened 1 year ago

rafaelvanoni commented 1 year ago

Webcam crashed in the middle of a gmeet call with the following stack trace

[78232.682686] ================================================================================
[78232.682699] UBSAN: invalid-load in /build/linux-hwe-5.15-iVrvVD/linux-hwe-5.15-5.15.0/include/linux/dma-buf-map.h:224:9
[78232.682707] load of value 64 is not a valid value for type '_Bool'
[78232.682712] CPU: 4 PID: 1277 Comm: camerasrc0:src Tainted: G           O      5.15.0-76-generic #83~20.04.1-Ubuntu
[78232.682719] Hardware name: Dell Inc. XPS 9320/07R0Y2, BIOS 2.2.1 04/17/2023
[78232.682722] Call Trace:
[78232.682726]  <TASK>
[78232.682731]  dump_stack_lvl+0x4a/0x63
[78232.682743]  dump_stack+0x10/0x16
[78232.682746]  ubsan_epilogue+0x9/0x36
[78232.682753]  __ubsan_handle_load_invalid_value.cold+0x44/0x49
[78232.682761]  dma_buf_vmap.cold+0x38/0x3d
[78232.682770]  ipu_psys_mapbuf_locked+0x17c/0x450 [intel_ipu6_psys]
[78232.682784]  ? __mod_lruvec_page_state+0x6b/0xb0
[78232.682794]  ipu_psys_ioctl+0x14c/0x4f0 [intel_ipu6_psys]
[78232.682804]  ? _copy_to_user+0x20/0x30
[78232.682813]  ? ipu_psys_ioctl+0x362/0x4f0 [intel_ipu6_psys]
[78232.682823]  ? __fget_light+0xdc/0x110
[78232.682829]  __x64_sys_ioctl+0x92/0xd0
[78232.682834]  do_syscall_64+0x59/0xc0
[78232.682842]  ? do_syscall_64+0x69/0xc0
[78232.682847]  ? exit_to_user_mode_prepare+0x3d/0x1c0
[78232.682854]  ? do_user_addr_fault+0x1e0/0x660
[78232.682861]  ? irqentry_exit_to_user_mode+0x9/0x20
[78232.682866]  ? irqentry_exit+0x1d/0x30
[78232.682869]  ? exc_page_fault+0x89/0x170
[78232.682873]  entry_SYSCALL_64_after_hwframe+0x61/0xcb
[78232.682880] RIP: 0033:0x7f7dcdb363ab
[78232.682886] Code: 0f 1e fa 48 8b 05 e5 7a 0d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b5 7a 0d 00 f7 d8 64 89 01 48
[78232.682891] RSP: 002b:00007f7dc7ffe2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[78232.682899] RAX: ffffffffffffffda RBX: 00007f7dbc0b77a0 RCX: 00007f7dcdb363ab
[78232.682902] RDX: 000000000000001f RSI: 00000000c0044102 RDI: 000000000000001e
[78232.682906] RBP: 00007f7dbca49420 R08: 0000000000000000 R09: 000000000000007c
[78232.682908] R10: 00007f7dc7ffe170 R11: 0000000000000246 R12: 0000000000000000
[78232.682911] R13: 00007f7dbca492e0 R14: 00007f7dc7ffe3bc R15: 00007f7dc7ffe480
[78232.682917]  </TASK>
[78232.682919] ================================================================================
[78232.695333] intel-ipu6-isys intel-ipu6-isys0: stream on ov01a10 3-0036
[78233.607600] intel-ipu6-isys intel-ipu6-isys0: stream off ov01a10 3-0036
[78233.850644] intel-ipu6-isys intel-ipu6-isys0: stream on ov01a10 3-0036
[78668.914794] Fence expiration time out i915-0000:00:02.0:brave[3533]:480800!
[78668.915135] Fence expiration time out i915-0000:00:02.0:brave[3533]:4807fe!
[78679.891697] Asynchronous wait on fence 0000:00:02.0:gnome-shell[2251]:227866 timed out (hint:intel_atomic_commit_ready [i915])
[78684.007758] i915 0000:00:02.0: [drm] GPU HANG: ecode 12:1:85dffffb, in brave [3533]
[78684.007833] i915 0000:00:02.0: [drm] Resetting chip for stopped heartbeat on rcs0
[78684.008036] i915 0000:00:02.0: [drm] brave[3533] context reset due to GPU hang
[78684.012787] i915 0000:00:02.0: [drm] GuC firmware i915/adlp_guc_62.0.3.bin version 62.0 submission:enabled
[78684.012793] i915 0000:00:02.0: [drm] GuC SLPC: enabled
[78684.012794] i915 0000:00:02.0: [drm] HuC firmware i915/tgl_huc_7.9.3.bin version 7.9 authenticated:yes

Not sure which additional info might be helpful here, besides the basics. Let me know what else would help.

$ uname -a
Linux kelp 5.15.0-76-generic #83~20.04.1-Ubuntu SMP Wed Jun 21 20:23:31 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ dpkg -l | grep ipu6
592:ii  libcamhal-ipu6ep-common                    0~git202204151018.5bc81d1~ubuntu20.04.3   all          HAL library for MIPI camera through Intel IPU6 - common files
593:ii  libcamhal-ipu6ep0                          0~git202204151018.5bc81d1~ubuntu20.04.3   amd64        HAL library for MIPI camera through Intel IPU6
888:ii  libipu6ep                                  0~git202204010644.0797f74-1~ubuntu20.04.1 amd64        API for Intel IPU6 camera on Intel Alder Lake platform
1433:ii  oem-fix-cam-intel-mipi-ipu6-common         5                                         all          Configs for Intel MIPI IPU6 Camara
1434:ii  oem-fix-cam-intel-mipi-ipu6ep              5                                         all          Metapackage to enable Intel MIPI IPU6ep Camera