You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This release (d4945b3b77d29cc5bb3777734422c048c1f1d003 ) broke motion for me. Got kernel panics. Motion stated in the grey screen (video served on 8080) that it was unable to open device (/dev/video0). Validated that device existed and motion log did not mention issues with device, it said that it was unable to use the video format (8). Running rasbian on an un-overclocked (non-overclocked?) rPi v2. Everything updated / upgraded. Using the pi camera module. Rolled back and everything worked fine, but I'm happy to roll back forward to break it again and do some debugging, just let me know if I can help. Rolled back to 19debde. Apologies if this is the wrong place to put this.
Please provide logs of the kernel panic text.
Motion can be a pain to set up, so it would be useful to avoid wasting time having to try to get it running before getting anything useful.
@ifermon I believe this update included vchiq changes to both kernel and firmware.
Can you test with latest kernel, but previous firmware?
(e.g. update to latest firmware, then overwrite start*.elf and fixup*.dat from the previous firmware)
That will narrow down the issue to gpu firmware or kernel.
I will do that. It will have to wait until Monday.
On Sat, Jul 11, 2015 at 11:04 AM popcornmix notifications-at-github.com
|github-ifermon| 3zaiib4g4t@sneakemail.com wrote:
@ifermonhttps://github.com/ifermon I believe this update included
vchiq changes to both kernel and firmware.
Can you test with latest kernel, but previous firmware?
(e.g. update to latest firmware, then overwrite start_.elf and fixup_.dat
from the previous firmware)
That will narrow down the issue to gpu firmware or kernel.
—
Reply to this email directly or view it on GitHub #1055 (comment)..
I'm not sure whether reverting just the firmware will help too much. Phil's commit text on 5d5a5ce says that the firmware added a DT entry to say that it supported the new mechanism, and the kernel changes only activated if it found this.
It might exclude a silly error, but not sure it will really narrow down the issue.
Just reproduced. HEAD/d4945b3 fails, but 19debde is OK, so it does look like the VCHIQ change.
Setting up the driver with v4l2-ctl -v width=1280,height=720,pixelformat=YU12 works fine, but starting streaming with v4l2-ctl --stream-mmap=3 --stream-count=100 --stream-to=/dev/null has caused a kernel oops due to a paging request. Call stack is showing it in ieee80211_phy0: rt2x00usb_vendor_request (yes, I'm using wifi), but I suspect it's a memory trample.
The system does recover though on ctrl-C, though throws the videobuf2_core warning due to not cleaning up all buffers properly (issue already logged, but not had a chance to investigate).
I will try with the previous firmware and current kernel, but as I commented above, I think that will just disable the kernel changes.
Testing raspistillyuv may also be useful as that will start throwing around large buffers via bulk receives, so I'll give that a go.
edit: MMAL is wedged after the kernel oops. Will check with the debugger what has happened there.
Yup. I'm just looking at the diffs to see what changed and how messy latest firmware with old kernel could be.
Sounds like a rogue memcpy at the moment though, at a guess on fully aligned transfers (original issue was with H264 which are random length transfers. YU12 will be nicely aligned)
At this point, is there anything I can do to help? It sounds like you've already been able to recreate the issue. I'd like to help, but my C skills are weak at best. No way could I find a memory leak in a driver. But if you want me to do some other tests or get some logs then please let me know. I'd also be happy to test a fix - I can do builds.
Activity
kernel: bcm2835-sdhost: Clear HBLC for PIO mode
6by9 commentedon Jul 10, 2015
Please provide logs of the kernel panic text.
Motion can be a pain to set up, so it would be useful to avoid wasting time having to try to get it running before getting anything useful.
6by9 commentedon Jul 11, 2015
@pelwell This is likely to be linked to the VCHIQ changes :-(
popcornmix commentedon Jul 11, 2015
@ifermon I believe this update included vchiq changes to both kernel and firmware.
Can you test with latest kernel, but previous firmware?
(e.g. update to latest firmware, then overwrite
start*.elfandfixup*.datfrom the previous firmware)That will narrow down the issue to gpu firmware or kernel.
ifermon commentedon Jul 11, 2015
I will do that. It will have to wait until Monday.
On Sat, Jul 11, 2015 at 11:04 AM popcornmix notifications-at-github.com
|github-ifermon| 3zaiib4g4t@sneakemail.com wrote:
6by9 commentedon Jul 12, 2015
I'm not sure whether reverting just the firmware will help too much. Phil's commit text on 5d5a5ce says that the firmware added a DT entry to say that it supported the new mechanism, and the kernel changes only activated if it found this.
It might exclude a silly error, but not sure it will really narrow down the issue.
The V4L2 driver does some flushing itself, so it's possible that is interfering with the new flushing. Not convinced though as the logs quoted on https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=62364&start=350#p787559 appear to show it being the setup phase failing (no reports of kernel panics).
I'll try to do some testing this afternoon/evening. Seeing whether the steps in the first entry of https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=62364 work for basic capturing would be a start.
6by9 commentedon Jul 13, 2015
Just reproduced. HEAD/d4945b3 fails, but 19debde is OK, so it does look like the VCHIQ change.
Setting up the driver with
v4l2-ctl -v width=1280,height=720,pixelformat=YU12works fine, but starting streaming withv4l2-ctl --stream-mmap=3 --stream-count=100 --stream-to=/dev/nullhas caused a kernel oops due to a paging request. Call stack is showing it in ieee80211_phy0: rt2x00usb_vendor_request (yes, I'm using wifi), but I suspect it's a memory trample.The system does recover though on ctrl-C, though throws the videobuf2_core warning due to not cleaning up all buffers properly (issue already logged, but not had a chance to investigate).
I will try with the previous firmware and current kernel, but as I commented above, I think that will just disable the kernel changes.
Testing raspistillyuv may also be useful as that will start throwing around large buffers via bulk receives, so I'll give that a go.
edit: MMAL is wedged after the kernel oops. Will check with the debugger what has happened there.
popcornmix commentedon Jul 13, 2015
There were actual vchiq changes to firmware, as well as the DT changes.
So using latest firmware without latest kernel may be a valid test.
6by9 commentedon Jul 13, 2015
Yup. I'm just looking at the diffs to see what changed and how messy latest firmware with old kernel could be.
Sounds like a rogue memcpy at the moment though, at a guess on fully aligned transfers (original issue was with H264 which are random length transfers. YU12 will be nicely aligned)
6by9 commentedon Jul 13, 2015
Not got any further in testing this, and need to work on something else again now.
raspiyuv seems happy at 640x480, so alignment may be a red herring.
pelwell commentedon Jul 13, 2015
I'm just finishing up another issue, so I can pick this up.
ifermon commentedon Jul 13, 2015
At this point, is there anything I can do to help? It sounds like you've already been able to recreate the issue. I'd like to help, but my C skills are weak at best. No way could I find a memory leak in a driver. But if you want me to do some other tests or get some logs then please let me know. I'd also be happy to test a fix - I can do builds.
pelwell commentedon Jul 13, 2015
Thanks for the offer, but with a reliable way to reproduce this (6by9's v4l2-ctl command) it shouldn't take long to fix.
vchiq_arm: Sort out the vmalloc case
vchiq_arm: Sort out the vmalloc case
162 remaining items
bcm2708 vchiq driver
bcm2708 vchiq driver
bcm2708 vchiq driver
bcm2708 vchiq driver
bcm2708 vchiq driver
bcm2708 vchiq driver
bcm2708 vchiq driver
bcm2708 vchiq driver
bcm2708 vchiq driver
bcm2708 vchiq driver
bcm2708 vchiq driver
bcm2708 vchiq driver
staging: add bcm2708 vchiq driver
bcm2708 vchiq driver
staging: add bcm2708 vchiq driver