PD#SWPL-7636
Problem:
update dvfs voltage and pwm for g12b revb
Solution:
update dvfs voltage and pwm for g12b revb
Verify:
update dvfs voltage and pwm for g12b revb
Change-Id: I29deea791126fcb1819be380ed81bc2aa29eeec6
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
arch/arm/boot/dts/amlogic/g12b_a311d_w400_drm_buildroot.dts
arch/arm64/boot/dts/amlogic/g12b_a311d_w400_drm_buildroot.dts
PD#OTT-5577
Problem:
when scale down, scaler+dolby h-timing too tight
Solution:
reduce htotal_add to 0xc0 when 4k output
Verify:
u212
Change-Id: I190ec235370d9ed75f9c1f477c1419c383b0a8e7
Signed-off-by: yao liu <yao.liu@amlogic.com>
PD#SWPL-13132
Problem:
stammac release/open when resume will change the dma addr.
if stmmac_xmit and stmmac_tx_work are running at the same time
it will cause panic
Solution:
remove stmmac_release/open call in stmmac_resume for chip
g12a/g12b/tl1/tm2
Verify:
verify on TL1
Change-Id: I5abf2ccf72c39483bbd1cce7b9e24bf596f30d0f
Signed-off-by: qi duan <qi.duan@amlogic.com>
PD#SWPL-12780
Problem:
internal phy can not connect network probably
after long stress suspend test
Solution:
In suspend/resume sequeue, add eth reset
Verify:
verify on TL1 and G12b
Change-Id: Id8f6767686f4e4d52774d9ac28dac46549a52d4c
Signed-off-by: qi duan <qi.duan@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
PD#SWPL-12760
Problem:
camera preview interface left and right invert
Solution:
adjust gc2145 mipi camera mirror register
Verify:
S905D3-AC200
Change-Id: I1789e5d055bf8661e6ec30f67e6e8db4a6fc99f6
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
PD#SWPL-6837
Problem:
The return value of arch_counter_get_cntvct is always abnormal
when it is in irq stack. In this case, arch_counter_get_cntvct
trys to access a variable in 8Bytes via a 4Bytes aligned addr-
ess, which vialates the rule: The address that is accessed
should be aligned to the size of the data element being
accessed
Solution:
after switching to irq stack, force the base sp value to be
16Bytes aligned. Since the address of variable in irq stack is
based on the base sp and arranged automatically, all the data
accessing in irq stack will be aligned.
Verify:
Ampere
Change-Id: I3b30a56491dd0720d1c885bfaf2ca98d1b103fdd
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
(cherry picked from commit 043ae971bf)
PD#IPTV-3723
Problem:
One use case is PDM module is sendig data
to both PDM device and LOOPBACK device.
Close one will make another useless.
Solution:
Add management of the PDM module by
a enable count.
Verify:
SM1.
Change-Id: Iceeb756c02671b16dbc3c49a9b793a50e6e559b5
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
PD#SWPL-12300
Problem:
gc2145 mipi camera take picture will stuck when recording
Solution:
add the right size to picture array
Verify:
verify on S905D3
Change-Id: Iee797d59053050d41448fda601a3bd7226cf9f37
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
PD#IPTV-3732
Problem:
TMDOUTA is gated by earc clk gate.
There is a bug in sm1 clk gating.
Solution:
Fix the wrong map of clk mapping.
Verify:
SM1.
Change-Id: Ia395d3307c249ef0cd64b715bb936dea3e2925ac
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
PD#SWPL-11390
Problem:
No 227/228/229/230 fail
Solution:
1.Set video priotiry, to prevent num_ext_blocks is set to 0
2.Turn off osd, to make gmax=gmin=0
3.Update md_tool.exe to version 0.4.1
4.Add padding data 0 to 512 bytes for metadata
By the way, fix some coverity check error
Verify:
sm1
Change-Id: I316e33bac3d84bb3bd7763031c28b33cfe7762ac
Signed-off-by: yao liu <yao.liu@amlogic.com>
PD#SWPL-10382
Problem:
not into pulldown 22 timely
Solution:
The judgment condition is wider for pulldown 22
Verify:
sm1
Change-Id: Id99c0c997b0954dee0a06b7e6dfd60feded73b30
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
PD#SWPL-10831
Problem:
sawtooth in the lower patr of AV video
Solution:
adjust motion num condition
Verify:
marconi
Change-Id: Id42f1cb2d3f702e04cd640dbc99c4f7a97447faf
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
PD#SWPL-11550
Problem:
force_prog only for progressive.
Solution:
add condition for force_prog
Verify:
TL1
Change-Id: I44e165c779eefcefcc18a286e66a598ffef1294f
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
PD#SWPL-11884
Problem:
camera preview would cause garbage.
Solution:
modify the previous change:38e45fb998269d36f41a7b004be51ba9f1e7bef9
not to remove vdin0_cma_reserved.
Verify:
test passed on sm1
Change-Id: Ie20de9b3562f7c83fa73bd88acab7770ca8c3b0a
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
PD#SWPL-10719
Problem:
hs400 200M not stable on sm1
Solution:
run hs400 166M busmod
Verify:
passed on sm1_ac200
Change-Id: I5e5f4db821e8360fdd3ccd6ce24df83446073cf2
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
emmc: run hs400 166M busmode on sm1 [1/1]
PD#SWPL-10719
Problem:
right now the sm1 is run hs200 200M
Solution:
modify dts
Verify:
passed on sm1_ac200
Change-Id: I01c36c04293698b36cec116302cb104b22500d99
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
PD#SWPL-10095
Problem:
command delay may too close to the command edge
Solution:
rescan cmd delay windows and find cmd delay value
after data alignment
Verify:
passed on g12b
Change-Id: I258e93aa87e35c843c45f62c58af3609bebe0901
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
PD#TV-7920
Problem:
Audio drive caused kernel panic.
BUG_ON timer_pending.
Solution:
Add timer will panic calling add_timer.
If timer is pending we need use mod_timer
to deal with this case.
Verify:
T962
Change-Id: Ib4143de384af40803609c3513ad07eeb3fe59bbf
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
PD#SWPL-10391
Problem:
g12b revA and revB need one code for two parameter
Solution:
if autocali in uboot, use autocali result
if no autocali,use the dts para
Verify:
verify on g12b w400 board,revA and revB
Change-Id: I4b48c67fba25eba4cb286470557ff0777009ec9f
Signed-off-by: qi duan <qi.duan@amlogic.com>
PD#SWPL-11559
Problem:
it will hangup when reboot
Solution:
fix cpub clock parent name error
Verify:
test passed on g12b
Change-Id: I7c2732420d6040d8cb778c104f71f4397a1bb03a
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
PD#SWPL-8255
Problem:
Multi-screen support.
Solution:
Display is abnormal with flower screen.
Verify:
1. Primary screen display with HDMI.
2. Extend screen display with panel.
3. Primary and extend screen can display the same UI or difference.
Change-Id: Icec55f65147823bb7f06641b5c296ea02c7838c7
Signed-off-by: kaishuang <kaishuang.zhang@amlogic.com>
dts: Set cvbs clk path to 2 with dual display. [4/5]
Problem:
Multi-screen support.
Solution:
Display is blank when panel use the same clk with cvbs.
Verify:
1. Primary screen display with HDMI.
2. Extend screen display with panel.
3. Primary and extend screen can display the same UI or difference.
Change-Id: I9430b9389bd3c0945774ff60dc123a22281db0e9
Signed-off-by: kaishuang <kaishuang.zhang@amlogic.com>
PD#SWPL-11208
Problem:
system would auto reboot because of low free memory(Unmovable type)
Solution:
reduce the CMA reserved memory.
1.reduce ion_cma_reserved from 128MB to 48MB.(DDR size == 1G)
2.remove vdin0_cma_reserved which is not used for sm1.
Verify:
test passed on sm1
Change-Id: Ifdb31bd3451ad984305c5f08ba3b1be478c02cf4
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
PD#SWPL-10149
Problem:
random crash when stress test
Solution:
1. delete recycle keep buff when bypass;
2. adjusting judgment timing about pre_de_buf_config;
Verify:
TL1
Change-Id: I7b0716ce35234d2342cdc13fcf0d51211f579d13
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
PD#SWPL-10033
Problem:
it will hangup when play video
Solution:
using the origin clk-mux ops to register cpu clock
Verify:
test passed on sm1
Change-Id: I1a21eb28d8af3d68a70c89c37fff857fb416c9a8
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
PD#SWPL-11212
Problem:
The physical keys are not working
Solution:
add gpio keypad in u202
Verify:
Verify by Android P u202
Change-Id: I0c97d2ffd7f8712b4584c81b1b9007f45755ec7c
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
PD#SWPL-7932
Problem:
sm1 play hdr video, color abnormal
Solution:
cgain coef1 set according to bitdepth
Verify:
verify on sm1
Change-Id: Ibef6e127dde57d47f9b9ec7a4233ee10fe8539d5
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
PD#SWPL-10487
Problem:
1.tb39 new case 5008, dm version is 3,
core3 raw_metadata overflow
2.core3 raw_metadata 207 overwrite core3 clkgate_ctrl
and core3 swap_ctrl0 andsawp_ctrl1 reg.
Solution:
1.Increase raw_metadata size to 512
2.Force dv_mode to DOLBY_VISION_OUTPUT_MODE_IPT, output
ipt444 12bit for 5008.
3.Dont set core3 metadata reg when scramble disabled or
metedata size > 204
Verify:
verified on sm1
Change-Id: I459736eb42eb14fe3fe0dc054eb6693c88967741
Signed-off-by: yao liu <yao.liu@amlogic.com>
PD#SWPL-11051
Problem:
Abnormal display of red subtitles
Solution:
process prog 420 as 422
Verify:
tl1
Change-Id: I46e0af178d6d87fc3a815f70c5a84d0f80772b6c
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
PD#TV-7161
Problem:
dead lock between flush work and ipa
Solution:
fix dead lock between flush work and ipa
Verify:
TL1
Change-Id: I479869601c0816bbaeaa693a26bf606b6a168da0
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
PD#SWPL-10934
Problem:
viu2 not support for sm1
Solution:
add viu2 support for sm1 and tm2
Verify:
verified on sm1
Change-Id: I3988a84b64b952a76b1b262227e11682f28c7cdd
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
PD#SWPL-10876
Problem:
add del 2ns function
Solution:
add del 2ns function
Verify:
verify on u200 board
Change-Id: I949a1d85e41d0b0e03708243f9559f8de63b0e54
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
PD#SWPL-7864
Problem:
the red and blue areas of the fourth frequency band
are missing color serious
Solution:
debug by VLSI(yanling), add cue init setting;
Verify:
S905X3
Change-Id: Idc8e5e811e0f2a8195cc70ebb8df0af8f080b174
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
PD#SWPL-6033
Problem:
afbc mode, when di bypass mode switch di path,
will cause flashing
Solution:
when mode change, request hw afbc from vpp, when idle
di use afbc, vpp need switch to none afbc mode, vf add
VIDTYPE_PRE_DI_AFBC flag for vpp use.
Verify:
tl1
Change-Id: I4aaf96044249d5b79bdc627018f0c0714c85f941
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
PD#TV-7043
Problem:
too much kernel log cause system hang up
Solution:
protect the log by debug flag
Verify:
verify by marconi
Change-Id: I7cb2cdf5e3bee92e136d948a974d9a1240609867
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
PD#TV-3042
Problem:
3D function did not support afbc format before
Solution:
Add the support case which format is afbc.
Verify:
x301
Change-Id: I38189bfa78eec6ac811fb81631514d7d7b8b3d62
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
b8d9145 vpp: add interface to force non-afbc path [1/1]
c807fc4 vpp: tm2: add vd2 function for tm2 [2/2]
eea348a vpp: tm2: add vpp and sr support [1/2]
f08c28c video: Some interlace stream will stuck when pts rebound [1/1]
53b2624 amlvideo: reset video_inuse when amlvideo stop [1/1]
17cdaf3 amvideo: set black_threshold_height default 48 [1/1]
1cd025d vpp: set default aspect when the ratecontrol is zero [1/1]
58a2e8f vpp: Modify vframe epoll event [1/1]
94b0dc8 vpp: Modify vframe epoll event [1/1]
e98d6d3 video: enable pts calculation when hold video state changes [1/1]
43d30c4 vpp: add histgram test interface for vpp slt test [1/1]
2677784 amvecm: optimize amvecm update in vsync [1/1]
af78b0f vpp: increase the afbc burst len as 4 for txlx [1/1]
1ace6fc vpp: hold the vpp setting when meet the non-dw afbc frame [1/1]
e8a3758 vpp: 3d: disable crop when 3d playback or hdmi in [1/1]
4e6774d vpp: add black_threshold to disable video when window is too small[1/1]
3ae164f vpp: including crop info when AFBC switch to normal frame [1/1]
c67657f vpp: add the pic_mode backup to check difference [1/1]
33b1aee video: timming gets error when switching channels [1/1]
233779e vpp: add log switch in vpp_set_filters [1/1]
b00582b vpp: config the vd1 canvas1 correctly when 3D enabled [1/1]
607bc19 vpp: support 3D with afbc format [1/1]
vpp: config the vd1 canvas1 correctly when 3D enabled [1/1]
PD#TV-3086
Problem:
3D display abnormal. The vd1 canvas1 was incorrect.
Solution:
When enabled 3D function, config vd1 canvas1 correctly
Verify:
x301
Change-Id: I201cda2f33badf1af54ab4f177a17f761c7cea8d
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
vpp: add log switch in vpp_set_filters [1/1]
PD#SWPL-5942
Problem:
Too many log when DI process called the vpp_set_filters with AFBC.
Solution:
Add log switch to disable it.
Verify:
verified on X301
Change-Id: I34c8573bed78e49d27ec386279e929e617bf76d5
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
video: timming gets error when switching channels [1/1]
PD#TV-3062
Problem:
When switching channels, Hisense platform needs hold video,
and the timming obtained at this time is wrong
Solution:
because we have add hold video function, so get width and
height interface give the last video frame width and height,
and so on change the video
Verify:
X301
Change-Id: I331a4589dcb5f5785dce7eea6d8cd03c92d733d2
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
vpp: add the pic_mode backup to check difference [1/1]
PD#TV-2929
Problem:
The pic_mode in cur_dispbuf was changed but not be detected.
Solution:
Add global pic_mode variable to check if the pic_mode in cur_dispbuf
is changed. If so, force vpp_set_filters.
Verify:
verified on x301
Change-Id: I5b95f512ad0823b031989f05526f114694887f2b
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
vpp: including crop info when AFBC switch to normal frame [1/1]
PD#SWPL-6347
Problem:
When AFBC switch to normal frame, excluding the crop information, the pps
parameters are calculated with wrong input size.
Solution:
1.Add the crop information, when afbc swicth to normal frame.
2.check ratio of compress_width/width, sync to crop value
Verify:
verified on x301
Change-Id: Ib943f8a11263ce577952e589bc172d8b7bafd954
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
vpp: add black_threshold to disable video when window is too small [1/1]
PD#TV-3641
Problem:
Add new interface to disable video when window is too small
Solution:
Add the black_threshold interface to control the threshold size.
And set the default value is width=20, height=30.
Verify:
verified by x301
Change-Id: Ifeb376c2e2edbb5706b2cdc2d08421bd0086b01e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
vpp: 3d: disable crop when 3d playback or hdmi in [1/1]
PD#TV-3962
Problem:
3D mode does not support crop function
Solution:
Remove crop when 3D display.
Verify:
Verified on x301
Change-Id: Id35dd662886be24e3ec78d070e3a70f513f89b16
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
vpp: hold the vpp setting when meet the non-dw afbc frame [1/1]
PD#SWPL-7513
Problem:
When meet the non-dw afbc frame, vpp can not display with
scaling down as expected.
Solution:
Hold the current vpp setting and wait provider to switch
non-afbc.
Verify:
x301
Change-Id: I3c0e678d2da42376f3a77e334b8c5ce48460273b
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
vpp: increase the afbc burst len as 4 for txlx [1/1]
PD#TV-3132
Problem:
When playing 4K afbc and scaling down to small window,
the vskip is 1 and DDR freq is also lower, the display will
flicker caused by DDR bandwidth issue.
Solution:
Increase the afbc mif burst len from 2 to 4. And enable
the dmc adjustment in that case.
Verify:
r311, verify pass
Change-Id: Ia431a93f6083fd584b7e2eb14f777c5a5e7c20e7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
amvecm: optimize amvecm update in vsync [1/1]
PD#SWPL-6475
Problem:
hdmi input signal, video flicker
Solution:
optimize amvecm update in vsync
Verify:
verify on TL1
Change-Id: I3379333053fc52b8a33747ca83b1d6d68ea874ab
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
vpp: add histgram test interface for vpp slt test [1/1]
PD#GH-31
Problem:
Need pattern to filter the error vpp modules in SLT test
Solution:
Using clipping and histgram function to create the test pattern
and get the histgram data.
Verify:
verified on w400
Change-Id: I52680c96f568980f71ac8c27c4b66352fea96651
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
video: enable pts calculation when hold video state changes [1/1]
PD#TV-3999
Problem:
dtmb individual channel switching speed is slow,
it takes about 16s
Solution:
enable pts calculation when hold video
state changes.
Verify:
X301
Change-Id: I4c8eda3af3df894d8116461abf63c3dda45c8ce3
Signed-off-by: Rui Wang <rui.wang@amlogic.com>
vpp: Modify vframe epoll event [1/1]
PD#SWPL-8850
Problem:
too many print when channel change.
Solution:
Modify vframe epoll event flow to avoid same event.
Verify:
verify on marconi.
Change-Id: Id709439f24d3cad82df6082c477cacce1a9b9cc7
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
vpp: Modify vframe epoll event [1/1]
PD#SWPL-8850
Problem:
too many print when channel change.
Solution:
Modify vframe epoll event flow to avoid same event.
Verify:
verify on marconi.
Change-Id: Iefbd190c0280276bf941c48bf99706a0f2573df1
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
vpp: set default aspect when the ratecontrol is zero [1/1]
PD#TV-5266
Problem:
Vpp used the wrong aspect ratio in 3D, screen mode = normal
and aspect ratio is 0 in ratecontrol variable.
Solution:
When the aspect ratio is 0, set the default value as
(height << 8) / width
Verify:
Verified by x301
Change-Id: I34f7cd3ce5ed1818d3090ebb4be934225038625e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
amvideo: set black_threshold_height default 48 [1/1]
PD#OTT-1836
Problem:
disable video when window is too small
Solution:
set black_threshold_height default 48
Verify:
U212
Change-Id: I9ed7deb54baef1c44bb9cc0c1a4d699140663864
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
amlvideo: reset video_inuse when amlvideo stop [1/1]
PD#TV-6189
Problem:
video_inuse always is 1 when codec server crash
Solution:
reset video_inuse when amlvideo stop
Verify:
TL1
Change-Id: I5b1b808668e3b2fb78781a4ea1ccbaefc3507d2b
Signed-off-by: Lifeng Cao <lifeng.cao@amlogic.com>
video: Some interlace stream will stuck when pts rebound [1/1]
PD#TV-6236
Problem:
Some interlace stream di has buffer count more than 16
If video pts rebound in this stream. The condition that
(abs(omx_pts_set_index - next_vf->omx_index) <= 16) is
not true. So this frame can not toggle always.
Solution:
Delete this condition that
(abs(omx_pts_set_index - next_vf->omx_index) <= 16)
Verify:
verify TL1
Change-Id: I7e8c12ec72d086b0516f7c7490b492e16e36e8fe
Signed-off-by: Lifeng Cao <lifeng.cao@amlogic.com>
vpp: tm2: add vpp and sr support [1/2]
PD#SWPL-6615
Problem:
Need vpp and sr supprt for sm2
Solution:
add support for tm2
Verify:
test pass on tm2 skt
Change-Id: I0ae2cb178fcbe047cdfec6b4e200424178993e6e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
vpp: tm2: add vd2 function for tm2 [2/2]
PD#SWPL-6615
Problem:
Need vd2 function
Solution:
add vd2 function for tm2:
1.vd2 pps scaler
2.disable vd2 afbc
Verify:
test pass on tm2 skt
Change-Id: I7af5de741b90e443ee065218aecb823ef06d66a7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
vpp: add interface to force non-afbc path [1/1]
PD#SWPL-7035
Problem:
When DI switched to use VD AFBC, need vpp force to non-afbc first.
Otherwise, display willl flash.
Solution:
Provide new interface to request the vpp release afbc hardware first.
Then return the current afbc status.
Verify:
verified on x301
Change-Id: Ibb2b897db7d2f2c40006433d63709988992c84f1
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>