PD#SWPL-1738
Problem:
support frame crc32 check and dump yuv.
Solution:
1.do crc32 check for frames output from decoder, trigger
yuv dump if it is not match with preset crc32 file;
2.trigger yuv dump before play or playing.
Verify:
u212
Change-Id: I5b2374d248698c4d6a4e67bc4dc18907d50ce2ea
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
PD#SWPL-2372
Problem:
phy addr 0 - 0x100000 is reserved before. once it is released for system use.
it will be polluted by video decoder (avs2 & vp9).
Solution:
init hw addr (not 0) in decoder to avoid 0 address polluted
Verify:
local verified on U212.
Change-Id: I1e54d0aaefe8d4c513ea32d02c2a5867bb2f9197
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
PD#SWPL-1478
Problem:
vdec and hevc need be decoded in parallel
in order to speed up
the decoding efficiency.
Solution:
Modify the decoding scheduling code
to achieve parallel decoding.
Verify:
Verified u200.
Change-Id: Icfa689e848adda1f76a2733c278c9bf41fb27978
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
PD#SWPL-3789
Problem:
local play 4k h265 black/green screen or
crash after press home key quit from netfix.
Solution:
add a vfm_map_id for vfm map in tunnel mode
Verify:
ampere
Change-Id: Ief3f87d9700a5a491827bc4dbbe8366f55987375
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
PD#SWPL-3625
Problem:
h265 encoder need alloc 64M from codec_mm CMA, and need to get virt address.
For 32bit kernel, it is easily fail to vmap due to CMA is PageHighMem.
Solution:
Dont use virt address, just use phy addr to manage the little buffers from 64M.
Verify:
Verified U212.
Change-Id: I0cf983dea1c3ebb91ea82b4ab45a98afbacd7652
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
PD#SWPL-3564
Problem:
Black screen occured when playing 2160x3840 4K video.
Solution:
fixed the issue of the mb size checking.
Verify:
u212
Change-Id: Ief18170dc8a8e41ce4d558794f1b07a78f77de04
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
PD#SWPL-2206
Problem:
decoding thread was blocked to wait scatter memory to be cached done. it
may take 30+ ms and lead to cts/vts fail
Solution:
not to wait scatter cached done. it save timing of system
Verify:
Verified U212
Change-Id: I1811c9796a93452342f91a66d984cf48561903d3
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
PD#SWPL-3033
Problem:
video flickering after avs seek on s805x, s905x no this issue.
Solution:
init vdec clock down to 333M when avs(original clk is 500M). it's enough
performance for avs decoding up to 1080p60.
Verify:
Verified s805x
Change-Id: Iffb8c74adb5a7ec0bfaa66dfa96ef56006a4e275
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
PD#SWPL-1174
Problem:
The screen is frozen when play the source in Longevity_Tests
Solution:
add condition to check if first ready to run in vh265 stream mode
Verify:
Verified u212
Change-Id: I994710733e593a257d6f9b38c9044012f0941e09
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
PD#SWPL-3375
Problem:
In random seek test. sometimes bus lock hangup happend
Solution:
remove core_reset handle which may cause this issue
Verify:
Verified X301
Change-Id: I859a1de71cb31d4495439c348d8f88aef5ddd2af
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
PD#SWPL-1923
Problem:
1. update build script.
2. can not play rv40 of the real
Solution:
1. support commitId and changeId;
2. add txlx_real_v8.bin & txlx_real_v9.bin;
ucode change-id
Iec4a5edd4db601ed7978b92274c5590872a5c311
Verify:
U212
Change-Id: Ifa75a8875059d334a1031200a350c55d0c4fe0fc
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
PD#OTT-100
Problem:
there are two h265 hdr stream playback issue in frame mode. decoder reports
error, and display masoic
Solution:
app write inregular frame to decoder,csd at end of frame, which cause these
data will be miss when end of decoding frame. we add a frmbase_cont_bitlevel
check at picdec_done to avoid data missing
Verify:
P212
Change-Id: I64200c7c2ff0525fdc1ce907f15850b998b5e21b
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
PD#SWPL-2599
Problem:
maybe the deadlock risk in the asyncfifo
Solution:
remove the spin lock in disable_irq
Verify:
Verify android p at x301
Change-Id: I3b61de07efa09837b6bfbd7c52f9dc6a867ae912
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
PD#SWPL-2971
Problem:
1. some vp9 8k video display abnormal.
2. avs2 consume mem excessive and mosaic and crash
when play avs2 8192x4608 bitdepth 10 bitstream.
Solution:
1. NorthernItaly8k.mkv is 7968x3984, need set
blkmod 64x32(mem_map_mode 2) for 64 aligned;
2. a special 8192x4608 bitstream which tile_x
less than 15 need work around;
3. make avs2 mem consume fit with resolution and
fixed crash when max resolution with 10bit.
ucode gerrit id: 57342
Verify:
verify on x301.
Change-Id: I9da01e691e96d93bc6a120ed2fde0aa6dac52021
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
PD#SWPL-1081
Problem:
integer cast to pointer error
Solution:
use unsigned log to cast to pointer
Verify:
P212 Android(32/64) buildroot(32/64)
Change-Id: I5d8230e4bb71a62eccfb2846e6c48acca64a0468
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
PD#SWPL-1081
Problem:
omx need get profile to know whether kernel support drm framemode
Solution:
add drm_framemode in codec profile
Verify:
P212
Change-Id: I9e817d01714296646f150680ca1e7a301de9b341
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
PD#IPTV-347
Problem:
output frame latancy when run videophonetest.
Solution:
sps_max_dec_pic_buffering_minus1_0 to
get buf num when sps_num_reorder_pics_0 is 0.
ucode gerrit id: 56487
Verify:
need verify by u212 iptv code
Change-Id: I199c45ee48ba4c535d0303347af27f9a572ed2c8
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
PD#IPTV-311
Problem:
decode a 4K mbaff video file will produce many random
mosaic frame
Solution:
1. Add mbaff macro decode timing support for multi-instance
for 4.9 Kernel
2. ucode gerrit id:55144
3. We commited a uncorrect version of ucode bin in commit
dfa0cc3e, and reverted it in commit 8ab874f. Now, we
recommit this correctly ucode bin version.
Verify:
Verified ampere
Change-Id: Ie9db7e1b11d230a3c3f1a60804607e4661976da2
Signed-off-by: Rong Zhang <rong.zhang@amlogic.com>
PD#SWPL-596
Problem:
Support User data push for H264 Single-instance
Solution:
1. Add user data push handler for h264
2. get correct user data buffer address for mh264
and mpeg2 for 32/64 Bit version
Verify:
Verified Einstein
Change-Id: If09a4240c512dcb13426fc88d0d3696ac3d8dd4e
Signed-off-by: Rong Zhang <rong.zhang@amlogic.com>
PD#SWPL-2509
Problem:
Ring buffer pointer may become null.
Solution:
Add judgement.
Verify:
Local build. R311
Change-Id: Ia3329bd91503b6d137b21a6e82fe2ca8380d087b
Signed-off-by: yan yan <yan.yan@amlogic.com>
PD#SWPL-714
Problem:
The last few seconds of the DD+ stream are not smooth by DTV playback.
Solution:
check the apts and vpts both discontinue,then replay.
Verify:
P321
Change-Id: I125a64905623ad639b5e96089e6650dfcb96607b
Signed-off-by: Yinming Ding <yinming.ding@amlogic.com>
PD#SWPL-265
Problem:
special p video play jagged
Solution:
1.special p video force interlace
Verify:
T962 P321
Change-Id: I9f82bb8649d31166d9847dec59e5c75080d63d21
Signed-off-by: Conglin Guo <conglin.guo@amlogic.com>
PD#IPTV-311
Problem:
decode a 4K mbaff video file will produce many random
mosaic frame
Solution:
Add mbaff macro decode timing support for multi-instance
for 4.9 Kernel
ucode gerrit id:55144
Verify:
Verified ampere
Change-Id: I9f027331dfb449a362f5d947bc9f60b4f7a9a36f
Signed-off-by: Rong Zhang <rong.zhang@amlogic.com>
PD#SWPL-2304
Problem:
Video Peek function need support VP9 format.
Solution:
Video Peek function supported VP9 format.
Verify:
Verified p241
Change-Id: I49cec0054eb4694ee7872bc696bacad057b9b2f0
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
PD#SWPL-2301
Problem:
txl do not support vp9 can build vp9 component
duo to vts fail
Solution:
do not add vp9 profile on txl
Verify:
verify on p321
Change-Id: Id738adbdaf61f395da439428afb000245425d237
Signed-off-by: Jian Wang <jian.wang@amlogic.com>
PD#SWPL-896
Problem:
1) vp9/h265 double write only mode doesn't work with mmu ucode
2) double write flag bug in decoder driver probe
Solution:
1) change code to support double write only mode with mmu ucode
2) fix double write flag bug
Verify:
QA verify
Change-Id: I544d49547238545303cd090541ff6effd1606863
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
PD#SWPL-1235
Problem:
pc bad value in kernel panic after change source
Solution:
vdec reset core when avs error reset
Verify:
need verify by t962-p321 as jira description.
Change-Id: I490980c43dd4c3de28af01021b3cb0b82d4e151c
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
PD#SWPL-1617
Problem:
On S805X, back end performance is not good. easy to cause
bufmgr reset and cts failed.
Solution:
optimize buf_available checkcondition to avoid reset.
Verify:
Verified P241
Change-Id: I98c7e9ad8a8c31e0f97c26f5130952d4308756bb
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
PD#SWPL-2284
Problem:
there is issue in vmh264 fw teeload. which cause decoding fail.
REG_G status should be saved for each instance
Solution:
saved reg_g at each instance ctx
Verify:
Verified P241
Change-Id: I7ff11951a7c53f360dfdae9a8605180f28c7bb4b
PD#SWPL-2270
Problem:
when do camera record on ampere P,platform stuck and reboot,
kernel panic in encoder module
Solution:
change phys_to_virt to codec_mm_phys_to_virt;
dma_flush to codec_mm_dma_flush
Verify:
verify by ampere P
Change-Id: I04002587a0683473a6609d3a89176a5cebd3260e
Signed-off-by: kunpeng.tang <kunpeng.tang@amlogic.com>
PD#SWPL-809
Problem:
in stream mode, decoder drivers with again check will be always in run_ready state.
because of again_threshold not reach. but acutally there is enough data in vbuf.
decoding hang up
Solution:
sync input buf status once again check appears
Verify:
QA test on ampere
Change-Id: I72dc98461865f296fe0c625f8ca60a11561976ac
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
PD#SWPL-2241
Problem:
too much print like below,
"amstream_do_ioctl error :ffffffed, c02053c3"
Solution:
set dec_status return 0 in multi-dec driver.
Verify:
Verify by x301
Change-Id: Ibd07e487706176b5c6a316ce48234b608112d0ce
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
PD#SWPL-2142
Problem:
the kernel maybe crash when swicthed the src channel
Solution:
checked init state before reads the vdec status
Verify:
p321
Change-Id: I3b9fc2128615c5b6151915baecb0516a7ebca2f4
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
PD#SWPL-1909
Problem:
mem rw exception caused crashed.
Solution:
1. add mapping the highmem address by the func vmap().
2. remove the flag CODEC_MM_FLAGS_CPU if not necessary.
Verify:
p212, w400
Change-Id: Id2904331098eef7245e9949619840dcb20d16b4b
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>