Hi Stefan, > > > But why didn't you applied the series which was actually applied to mainline? > > > Did you apply the rest of Phil's DT series as mentioned in the cover letter? > > > > I'm fairly certain I have Phil's "Improve VCHIQ cache line size > > handling" patch series applied if that's the one you mean, I will > > check (I'm currently dealing with 4 different kernels for maintenance > > so I'm sorry if my memory isn't exact). > > That's correct. Btw you will need a recent raspberrypi-firmware (iirc since 10/2018), too. For reference I was using 1ea8781 from 18/12/2018, I noticed there's a new one that fixes colour issues with the cameres. Given I couldn't work out exactly which random patch set I had for the test kernel I've now moved to a 4.20.1 with cacheline and this patch series. I still get the same series of crash there from just running qv4l2. I get a blank OpenGL window (could be something unrelated with the vc4 driver), and the same issue with cheese. [ 74.723451] bcm2835_audio bcm2835_audio: vchi message timeout, msg=5 [ 118.512917] bcm2835-v4l2: Failed enabling camera, ret -2 [ 118.518379] bcm2835-v4l2: Failed to enable camera [ 118.523228] ------------[ cut here ]------------ [ 118.528002] WARNING: CPU: 3 PID: 1470 at drivers/media/common/videobuf2/videobuf2-core.c:1471 vb2_start_streaming+0xb4/0x12c [videobuf2_common] [ 118.541098] Modules linked in: fuse ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ebtable_nat ip6table_nat nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_set nfnetlink ebtable_filter ebtables cmac ip6table_filter ip6_tables bnep sunrpc vfat fat vc4 snd_soc_core ac97_bus bcm2835_v4l2(C) snd_pcm_dmaengine snd_bcm2835(C) videobuf2_vmalloc snd_seq videobuf2_memops videobuf2_v4l2 snd_seq_device videobuf2_common snd_pcm v4l2_common videodev snd_timer snd media brcmfmac soundcore drm_kms_helper brcmutil drm hci_uart cfg80211 fb_sys_fops btqca syscopyarea btbcm joydev sysfillrect btintel sysimgblt bluetooth raspberrypi_hwmon ecdh_generic rfkill bcm2835_thermal bcm2835_rng bcm2835_wdt vchiq(C) leds_gpio cpufreq_dt lz4 lz4_compress zram hid_logitech_hidpp hid_logitech_dj smsc95xx usbnet mii mmc_block dwc2 sdhci_iproc sdhci_pltfm udc_core [ 118.541261] gpio_raspberrypi_exp crc32_arm_ce sdhci pwm_bcm2835 bcm2835 i2c_bcm2835 bcm2835_dma phy_generic [ 118.639009] CPU: 3 PID: 1470 Comm: qv4l2 Tainted: G C 4.20.1-200.fc29.armv7hl #1 [ 118.647828] Hardware name: BCM2835 [ 118.651296] [<c03127a4>] (unwind_backtrace) from [<c030cbf0>] (show_stack+0x18/0x1c) [ 118.659156] [<c030cbf0>] (show_stack) from [<c0b14f80>] (dump_stack+0x80/0xa0) [ 118.666488] [<c0b14f80>] (dump_stack) from [<c03507b4>] (__warn+0xdc/0xf8) [ 118.673466] [<c03507b4>] (__warn) from [<c0350b28>] (warn_slowpath_null+0x40/0x4c) [ 118.681168] [<c0350b28>] (warn_slowpath_null) from [<bf70a2d4>] (vb2_start_streaming+0xb4/0x12c [videobuf2_common]) [ 118.691810] [<bf70a2d4>] (vb2_start_streaming [videobuf2_common]) from [<bf70b78c>] (vb2_core_streamon+0x110/0x138 [videobuf2_common]) [ 118.704152] [<bf70b78c>] (vb2_core_streamon [videobuf2_common]) from [<bf6aaa34>] (__video_do_ioctl+0x35c/0x494 [videodev]) [ 118.715546] [<bf6aaa34>] (__video_do_ioctl [videodev]) from [<bf6ab19c>] (video_usercopy+0x508/0x5d4 [videodev]) [ 118.725923] [<bf6ab19c>] (video_usercopy [videodev]) from [<c04ffae8>] (vfs_ioctl+0x28/0x3c) [ 118.734487] [<c04ffae8>] (vfs_ioctl) from [<c0500308>] (do_vfs_ioctl+0x8c/0x838) [ 118.741990] [<c0500308>] (do_vfs_ioctl) from [<c0500b0c>] (ksys_ioctl+0x58/0x74) [ 118.749495] [<c0500b0c>] (ksys_ioctl) from [<c0301000>] (ret_fast_syscall+0x0/0x54) [ 118.757259] Exception stack(0xd940dfa8 to 0xd940dff0) [ 118.762382] dfa0: d47c8700 b5f1e000 0000000c 40045612 befb42a0 00000001 [ 118.770678] dfc0: d47c8700 b5f1e000 40045612 00000036 b5e81e40 0000000c b6f41508 00000000 [ 118.778970] dfe0: befb42a0 befb4290 b5f07804 b5bdb1f0 [ 118.784155] ---[ end trace 4c04f89544a1aee9 ]--- [ 132.329586] bcm2835-v4l2: Failed enabling camera, ret -2 [ 132.335008] bcm2835-v4l2: Failed to enable camera [ 132.339826] ------------[ cut here ]------------ [ 132.344555] WARNING: CPU: 3 PID: 1470 at drivers/media/common/videobuf2/videobuf2-core.c:1471 vb2_start_streaming+0xb4/0x12c [videobuf2_common] [ 132.357629] Modules linked in: fuse ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ebtable_nat ip6table_nat nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_set nfnetlink ebtable_filter ebtables cmac ip6table_filter ip6_tables bnep sunrpc vfat fat vc4 snd_soc_core ac97_bus bcm2835_v4l2(C) snd_pcm_dmaengine snd_bcm2835(C) videobuf2_vmalloc snd_seq videobuf2_memops videobuf2_v4l2 snd_seq_device videobuf2_common snd_pcm v4l2_common videodev snd_timer snd media brcmfmac soundcore drm_kms_helper brcmutil drm hci_uart cfg80211 fb_sys_fops btqca syscopyarea btbcm joydev sysfillrect btintel sysimgblt bluetooth raspberrypi_hwmon ecdh_generic rfkill bcm2835_thermal bcm2835_rng bcm2835_wdt vchiq(C) leds_gpio cpufreq_dt lz4 lz4_compress zram hid_logitech_hidpp hid_logitech_dj smsc95xx usbnet mii mmc_block dwc2 sdhci_iproc sdhci_pltfm udc_core [ 132.357792] gpio_raspberrypi_exp crc32_arm_ce sdhci pwm_bcm2835 bcm2835 i2c_bcm2835 bcm2835_dma phy_generic [ 132.455510] CPU: 3 PID: 1470 Comm: qv4l2 Tainted: G WC 4.20.1-200.fc29.armv7hl #1 [ 132.464329] Hardware name: BCM2835 [ 132.467798] [<c03127a4>] (unwind_backtrace) from [<c030cbf0>] (show_stack+0x18/0x1c) [ 132.475658] [<c030cbf0>] (show_stack) from [<c0b14f80>] (dump_stack+0x80/0xa0) [ 132.482986] [<c0b14f80>] (dump_stack) from [<c03507b4>] (__warn+0xdc/0xf8) [ 132.489962] [<c03507b4>] (__warn) from [<c0350b28>] (warn_slowpath_null+0x40/0x4c) [ 132.497663] [<c0350b28>] (warn_slowpath_null) from [<bf70a2d4>] (vb2_start_streaming+0xb4/0x12c [videobuf2_common]) [ 132.508273] [<bf70a2d4>] (vb2_start_streaming [videobuf2_common]) from [<bf70b78c>] (vb2_core_streamon+0x110/0x138 [videobuf2_common]) [ 132.520619] [<bf70b78c>] (vb2_core_streamon [videobuf2_common]) from [<bf6aaa34>] (__video_do_ioctl+0x35c/0x494 [videodev]) [ 132.532012] [<bf6aaa34>] (__video_do_ioctl [videodev]) from [<bf6ab19c>] (video_usercopy+0x508/0x5d4 [videodev]) [ 132.542387] [<bf6ab19c>] (video_usercopy [videodev]) from [<c04ffae8>] (vfs_ioctl+0x28/0x3c) [ 132.550949] [<c04ffae8>] (vfs_ioctl) from [<c0500308>] (do_vfs_ioctl+0x8c/0x838) [ 132.558452] [<c0500308>] (do_vfs_ioctl) from [<c0500b0c>] (ksys_ioctl+0x58/0x74) [ 132.565956] [<c0500b0c>] (ksys_ioctl) from [<c0301000>] (ret_fast_syscall+0x0/0x54) [ 132.573718] Exception stack(0xd940dfa8 to 0xd940dff0) [ 132.578838] dfa0: d47c8700 b5f1e000 0000000c 40045612 befb4368 00000001 [ 132.587132] dfc0: d47c8700 b5f1e000 40045612 00000036 b5e81e40 0000000c b6f41508 00000000 [ 132.595424] dfe0: befb4368 befb4358 b5f07804 b5bdb1f0 [ 132.600568] ---[ end trace 4c04f89544a1aeea ]--- [ 155.048886] list_add corruption. prev->next should be next (ea7793e0), but was 00000000. (prev=d97cde78). [ 155.058671] ------------[ cut here ]------------ [ 155.063361] kernel BUG at lib/list_debug.c:28! [ 155.067864] Internal error: Oops - BUG: 0 [#1] SMP ARM [ 155.073071] Modules linked in: fuse ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ebtable_nat ip6table_nat nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat_ipv4 nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_set nfnetlink ebtable_filter ebtables cmac ip6table_filter ip6_tables bnep sunrpc vfat fat vc4 snd_soc_core ac97_bus bcm2835_v4l2(C) snd_pcm_dmaengine snd_bcm2835(C) videobuf2_vmalloc snd_seq videobuf2_memops videobuf2_v4l2 snd_seq_device videobuf2_common snd_pcm v4l2_common videodev snd_timer snd media brcmfmac soundcore drm_kms_helper brcmutil drm hci_uart cfg80211 fb_sys_fops btqca syscopyarea btbcm joydev sysfillrect btintel sysimgblt bluetooth raspberrypi_hwmon ecdh_generic rfkill bcm2835_thermal bcm2835_rng bcm2835_wdt vchiq(C) leds_gpio cpufreq_dt lz4 lz4_compress zram hid_logitech_hidpp hid_logitech_dj smsc95xx usbnet mii mmc_block dwc2 sdhci_iproc sdhci_pltfm udc_core [ 155.073205] gpio_raspberrypi_exp crc32_arm_ce sdhci pwm_bcm2835 bcm2835 i2c_bcm2835 bcm2835_dma phy_generic [ 155.170889] CPU: 1 PID: 1470 Comm: qv4l2 Tainted: G WC 4.20.1-200.fc29.armv7hl #1 [ 155.179708] Hardware name: BCM2835 [ 155.183162] PC is at __list_add_valid+0x44/0x84 [ 155.187754] LR is at __list_add_valid+0x44/0x84 [ 155.192344] pc : [<c069bec0>] lr : [<c069bec0>] psr: 600f0093 [ 155.198694] sp : d940dda0 ip : 00000000 fp : 00000001 [ 155.203988] r10: 600f0013 r9 : ea7793e0 r8 : ea7793e8 [ 155.209282] r7 : d9534c00 r6 : d9534e78 r5 : d97cde78 r4 : ea779358 [ 155.215898] r3 : ef74fcb0 r2 : 2e60e000 r1 : ef74c548 r0 : 0000005d [ 155.222516] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none [ 155.229837] Control: 10c5383d Table: 1944c06a DAC: 00000051 [ 155.235661] Process qv4l2 (pid: 1470, stack limit = 0x56c02967) [ 155.241661] Stack: (0xd940dda0 to 0xd940e000) [ 155.246079] dda0: ea779358 bf7ab20c ede0a800 d9534c00 ede0ae24 bf6a6a08 ede0ab80 d940de78 [ 155.254373] ddc0: bf6c3200 bf7a622c d9534c00 00000000 00000001 ede0ad28 d9534c00 bf70a278 [ 155.262667] dde0: ede0ad28 00000000 ede0a858 bf6a6a08 ede0ab80 bf70b78c 40045612 bf6aaa34 [ 155.270961] de00: d940de2c c04babdc ef8cfd24 bf7ac1f4 df58fc00 00000000 e9587240 df58fc00 [ 155.279256] de20: c124f850 00000004 d940de7c c04c0b90 d940de78 c031691c d940de78 00000000 [ 155.287549] de40: d940de78 00000000 bf6aa6d8 40045612 00000000 00000004 00000000 bf6ab19c [ 155.295843] de60: 0007ffff 00000000 00000000 befb4368 e9587240 00000001 00000001 00000001 [ 155.304136] de80: 00000000 00002003 00000000 00000000 00000000 00000000 00000000 00000000 [ 155.312429] dea0: 00000000 00000000 00000001 00240000 000c0000 00000000 00000000 00000000 [ 155.320723] dec0: 00002000 00000000 ac2ef000 e535ae40 e95c6198 e95c6190 ac2ef000 c049bad0 [ 155.329019] dee0: 00000001 00000003 000c0000 c0b2a8b4 00000000 c0b2a8b4 c2ee6570 befb4368 [ 155.337315] df00: c2ee6570 e9587240 40045612 befb4368 0000000c 00000036 00000000 c04ffae8 [ 155.345612] df20: befb4368 c0500308 00000001 00000056 00000012 d940df48 00000001 ef2ac910 [ 155.353908] df40: c29c4660 d9405612 d940df0b d940df3c 00400100 00000000 d940df58 c126ab28 [ 155.362204] df60: e9587240 40045612 00000000 e9587240 e9587241 40045612 befb4368 0000000c [ 155.370500] df80: 00000036 c0500b0c d47c8700 b5f1e000 40045612 00000036 c0301204 d940c000 [ 155.378797] dfa0: 00000036 c0301000 d47c8700 b5f1e000 0000000c 40045612 befb4368 00000001 [ 155.387093] dfc0: d47c8700 b5f1e000 40045612 00000036 b5e81e40 0000000c b6f41508 00000000 [ 155.395386] dfe0: befb4368 befb4358 b5f07804 b5bdb1f0 400f0010 0000000c 00000000 00000000 [ 155.403716] [<c069bec0>] (__list_add_valid) from [<bf7ab20c>] (vchiq_mmal_submit_buffer+0x4c/0x74 [bcm2835_v4l2]) [ 155.414189] [<bf7ab20c>] (vchiq_mmal_submit_buffer [bcm2835_v4l2]) from [<bf7a622c>] (buffer_queue+0x58/0x90 [bcm2835_v4l2]) [ 155.425602] [<bf7a622c>] (buffer_queue [bcm2835_v4l2]) from [<bf70a278>] (vb2_start_streaming+0x58/0x12c [videobuf2_common]) [ 155.437005] [<bf70a278>] (vb2_start_streaming [videobuf2_common]) from [<bf70b78c>] (vb2_core_streamon+0x110/0x138 [videobuf2_common]) [ 155.449348] [<bf70b78c>] (vb2_core_streamon [videobuf2_common]) from [<bf6aaa34>] (__video_do_ioctl+0x35c/0x494 [videodev]) [ 155.460740] [<bf6aaa34>] (__video_do_ioctl [videodev]) from [<bf6ab19c>] (video_usercopy+0x508/0x5d4 [videodev]) [ 155.471115] [<bf6ab19c>] (video_usercopy [videodev]) from [<c04ffae8>] (vfs_ioctl+0x28/0x3c) [ 155.479680] [<c04ffae8>] (vfs_ioctl) from [<c0500308>] (do_vfs_ioctl+0x8c/0x838) [ 155.487184] [<c0500308>] (do_vfs_ioctl) from [<c0500b0c>] (ksys_ioctl+0x58/0x74) [ 155.494689] [<c0500b0c>] (ksys_ioctl) from [<c0301000>] (ret_fast_syscall+0x0/0x54) [ 155.502451] Exception stack(0xd940dfa8 to 0xd940dff0) [ 155.507573] dfa0: d47c8700 b5f1e000 0000000c 40045612 befb4368 00000001 [ 155.515866] dfc0: d47c8700 b5f1e000 40045612 00000036 b5e81e40 0000000c b6f41508 00000000 [ 155.524160] dfe0: befb4368 befb4358 b5f07804 b5bdb1f0 [ 155.529283] Code: e59f0040 e1a02001 e1a0100c ebf448dd (e7f001f2) [ 155.535464] ---[ end trace 4c04f89544a1aeeb ]--- > > > > I basically get the same crash for both options. Desktop is > > > > LXDE on 32 bit Fedora 29. > > > > > > > > I've not yet tried with 5.0-rc1 but it looks like it has this patch > > > > series and some other bits for the vchiq drivers in staging. > > > > > > Please try 5.0-rc1 which would be more helpful. > > > > Yes, it's on my list. I get difference results with 5.0-rc1 but neither of the above apps work either, will follow up based on the rest of the thread there. _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel