本帖最后由 kris_fei 于 2015-5-29 08:45 编辑
正常情况下可以reboot成功,但是当我播放了视频之后,reboot就会hang住。
难道watchdog的reset会受video play的影响吗?
播放的视频log如下:
~ # cd /media/player/
/media/player # ./testplayer 0 4.mp4
*****************************************************
* SGPlayer version: 0.1.3580
* Major number: 0
* Minor number: 1
* Build(SVN) revision: r3580
* Building time: Mar 24 2015, 08:29:30
*****************************************************
+++ start playing media
decode_init: VPU decode h264 init. ====>
[ 22.722552] No such IOCTL, cmd is 22032
[ 22.727209] No such IOCTL, cmd is 22032
[INFO] Product Info: i.MX6Q/D/S
vpu lib version : major.minor.rel=5.4.16
vpu fw version : major.minor.rel_rcode=2.1.9_r36350
vpu wrapper version : major.minor.rel=1.0.46: VPUWRAPPER_ARM_LINUX Build on May 26 2015 14:18:37
[INFO] bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable 0
decode_frame: ====VPU decode h264 start====.
normal mode
[ERR] rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR] rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR] rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR] rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR] rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR] rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR] rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR] rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
[ERR] rd 0x1a800000, rd reg 0x1a801ee3, wr 0x1a801ee3, wr reg 0x1a801ee3, idx 0, idx reg 0
//此处省略N多一样的log.
VPU_DEC_OUTPUT_EOS
====end decode_frame====
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu [ 20.556111] VPU blocking: timeout.
dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure:[ 20.589244] No such IOCTL, cmd is 22032
ret=1
decode_frame: vpu reset[ 20.594883] No such IOCTL, cmd is 22032
: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_frame: ====VPU decode h264 start====.
normal mode
DecodeLoop: vpu dec buf failure: ret=1
decode_frame: vpu reset: handle=0x319E0
[INFO] vpu_SWReset
decode_end: VPU decode h264 end. <====
decode_end: vpu flush failure: ret=1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '(null)':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.48.100
Duration: 00:07:07.31, start: 0.023220, bitrate: 1119 kb/s
Stream #0.0(und): Video: vpu, yuv420p, 1280x720, 998 kb/s, 25 fps, 12800 tbn (default)
Stream #0.1(und): Audio: aac, 44100 Hz, stereo, fltp, 114 kb/s (default)
decode_init: VPU decode h264 init. ====>
[INFO] Product Info: i.MX6Q/D/S
vpu lib version : major.minor.rel=5.4.16
vpu fw version : major.minor.rel_rcode=2.1.9_r36350
vpu wrapper version : major.minor.rel=1.0.46: VPUWRAPPER_ARM_LINUX Build on May 26 2015 14:18:37
[INFO] bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable 0
Audio Format: 32 Float Planar
+++ AudioOutput - set rate near: 44100
+++ AudioOutput - set channels: 2
+++ AudioOutput - set sample format: 14
+++ AudioOutput - set access type: 4
+++ AudioOutput - set period size: 4
+++ AudioOutput - set buffer size: 4096
*** WARNING: audio device does NOT support direct pause!
+++ The default buffer size is 4096/frames
*** VideoPlayer the volume is set to: 110
[INFO] Product Info: i.MX6Q/D/S
VPU firmware version: 2.1.9_r36350
VPU library version: 5.4.16
[INFO] bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable 0
[WARN] VPU iram is less than needed, some parts don't use iram
H.264 Profile: 100 Level: 31 Interlace: 0
aspect_ratio_idc: 1
Decoder: width = 1280, height = 720, frameRateRes = 50, frameRateDiv = 1, count = 6
MinFbCount: 6, FbCount: 8
*** ffmpeg codecctx width: 1280, height: 720; aligned picwidth: 1280, picheight: 720
VPU doesn't have picture to be displayed.
outinfo.indexFrameDisplay = -3
VPU doesn't have picture to be displayed.
outinfo.indexFrameDisplay = -3
VPU doesn't have picture to be displayed.
outinfo.indexFrameDisplay = -3
VPU doesn't have picture to be displayed.
outinfo.indexFrameDisplay = -3
/media/player #
/media/player #
/media/player #
/media/player # reboot
The system is going down NOW!
Sent SIGTERM to all processes
Terminated
/media/player # [ 23.279854] ipu_init_sync_panel: disp=0, pixel_clk=51200000 50285714
[ 23.286355] Calling CRDA for country: CN
[ 23.291345] Regulatory domain changed to country: CN
[ 23.291360] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 23.291381] (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 23.291399] (5735000 KHz - 5835000 KHz @ 40000 KHz), (N/A, 3000 mBm)
[ 23.291442] Calling CRDA for country: CN
[ 23.299585] Regulatory domain changed to country: CN
[ 23.299604] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 23.299627] (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 23.299648] (5735000 KHz - 5835000 KHz @ 40000 KHz), (N/A, 3000 mBm)
[ 23.299697] Calling CRDA to update world regulatory domain
[ 23.304987] World regulatory domain updated:
[ 23.305004] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 23.305026] (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 23.305045] (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 23.305069] (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 23.305095] (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 23.305122] (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Requesting system rebootesses
[ 25.509684] imx2-wdt imx2-wdt.0: Device shutdown: Expect reboot!
[ 25.515884] Restarting system.
|