Commit Graph

649383 Commits

Author SHA1 Message Date
Evoke Zhang
7d8b199666 lcd: add clk frac shift support [2/2]
PD#SWPL-17480

Problem:
sometime there need shift a little for frac

Solution:
add clk frac shift support

Verify:
x301

Change-Id: I937cca1b07f20d95144d1b85addc2cac775d1aac
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2020-12-17 17:21:06 +09:00
Tao Zeng
6bba961370 mm: fix NULL pointer exception when dump vmalloc info [1/1]
PD#SWPL-28320

Problem:
Kernel may crash when dump vmalloc info

Solution:
skip invalid vm_struct

Verify:
tm2

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: Iaa58d54c60441c3b2b3a9559ad3340cf339e961c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-12-17 17:21:06 +09:00
Jihong Sui
979d24e3ed DI: KASAN: add protect for de_post_process [1/1]
PD#SWPL-27905

Problem:
use-after-free in config_canvas_idx

Solution:
add protect for de_post_process

Verify:
TM2

Change-Id: If0dcdf8ff94c8cc31790b6abd7414320a1d07160
Signed-off-by: sandy luo <sandy.luo@amlogic.com>
2020-12-17 17:21:06 +09:00
Zhuo Wang
b829e96364 ethernet: fix exphy resume delay not work [1/1]
PD#SWPL-27008

Problem:
exphy setting will del

Solution:
set delay once more

Verify:
verify on sm1 202 customer's board

Change-Id: I47bb705bd13f17320f095589d1a08f89635b76b1
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2020-12-17 17:21:06 +09:00
Cheng Wang
c58520736c amvecm: fix osd+video saturation ioctrl set error [1/1]
PD#SWPL-26405

Problem:
UI saturation can't adjusted

Solution:
sat_hue_post used wrong parameter

Verify:
on AC200

Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
Change-Id: I7a1391483e2241e84826a19ca339eac293f1025c
2020-12-17 17:21:06 +09:00
Cao Jian
fc96e0f08f ge2d: fix ge2d crash when running burn-in test [1/1]
PD#SWPL-28030

Problem:
there is risk when trying to destroy
the context being processed.

Solution:
add mutex to avoid the risk

Verify:
SM1

Change-Id: I6b85b4eb54f3b185613f37e5f83ef54663ddb01f
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2020-12-17 17:21:06 +09:00
Pengcheng Chen
f00ffd42a9 osd: fix osd bootanimation shift [2/2]
PD#SWPL-19862

Problem:
osd regs init are different with meson-hwc setting

Solution:
osd regs init are different with meson-hwc setting

Verify:
franklin

Change-Id: Ic9f19a82859e1e18e57084935873b10057436e3b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2020-12-17 17:21:06 +09:00
Tao Zeng
41363d31d9 mm: fix wrong cpu usage information after vmap changed [1/1]
PD#SWPL-18250

Problem:
After fix vmap stack error, cpu usage from top is incorrect.

Solution:
fix sp not right issue.

Verify:
ampere

Change-Id: I935f98758ba6d13c608ff2cfe2428df6f552d05a
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-12-17 17:21:05 +09:00
chunlong.cao
8058839d8a [Touch][A311D]support focaltech touch panel:focaltech FTS_5726
PD#SWPL-27361
Problem:
	firmware ignoreed;support focaltech touch panel:focaltech FTS_5726

Solution:
	add focaltech FTS_5726 driver

Verify:
	on google newman platform

Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2020-12-17 17:21:05 +09:00
chunlong.cao
cfc696f078 [Touch][A311D]support focaltech touch panel:focaltech FTS_5726
PD#SWPL-27361
Problem:
	support focaltech touch panel:focaltech FTS_5726

Solution:
	add focaltech FTS_5726 driver

Verify:
	on google newman platform

Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
Change-Id: I79ff49e062233c3c7202796be03f79f7fc32e52f
2020-12-17 17:20:10 +09:00
shaochan.liu
c0e6f5cd63 bl: bl_extern: add i2c_lp8556 support 12bit data [2/2]
PD#SWPL-27180

Problem:
1, need add bl_extern i2c_lp8556 12bit data support

Solution:
1, add bl_extern i2c_lp8556 12bit data support
2, optimized code, fix copy err and add null pointer check

Verify:
a311d_w400

Change-Id: Ifeb25e5b434233ae9dd088899e9e1e849303d3d9
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2020-12-17 17:19:07 +09:00
chunlong.cao
f5c5164ebf PD#SWPL-27594
Problem:
	There is no t931 platform config for google newman

Solution:
	add t931 platform config for google newman

Verify:
	on google newman platform

Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
Change-Id: Ia7cfff4c6b6ce0415991416943a8b0e510ef4548
2020-12-17 17:19:07 +09:00
Yong Qin
e5617679de cec: cec a bus busy cause system hold [1/1]
PD#SWPL-23547

Problem:
when spin lock, recursive call will cause system hold.

Solution:
void recussive calling.

Verify:
P21AS-S905X

Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Change-Id: I3616aa198f73a27396ac672b57b729ea30215476
2020-12-17 17:19:06 +09:00
hang cheng
bec6d729c9 hdmitx: avoid ddc filter reset affect edid reading [1/1]
PD#SWPL-24627

Problem:
i2c may hangup when reading edid during system power up.
it's caused by ddc filter reset

Solution:
move ddc filter reset to place which no ddc operation

Verify:
S805Y(P244)

Change-Id: I624dee1ae0ff338b7d6a357fad4b98337378a304
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2020-12-17 17:19:06 +09:00
Zhengrong.Zhu
f4e33f3a31 hdmitx: Connect with Hisense HZ55A65 TV, It will lost resolution [1/1]
PD#SWPL-19410

Problem:
Connect with Hisense HZ55A65 TV, It will lost resolution

Solution:
Modify the code using read edid

Verify:
verify on the board of U212

Change-Id: Iaa2692508db6bcde07578e027e23bbf52399b25c
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
2020-12-17 17:19:06 +09:00
MingLiang Dong
0b6675dbc7 hdr: sdr2hdr convert with 300nit for reference [1/1]
PD#SWPL-23538

Problem:
osd sdr2hdr is brighter

Solution:
osd sdr2hdr reference luminance too high

Verify:
verify on G12A

Change-Id: I3205c6b6d2fdaf02c498643c07b136ad33d2cea8
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2020-12-17 17:19:06 +09:00
MingLiang Dong
ea7a2e66eb hdr: config cgain bypass when osd sdr2hdr process [1/1]
PD#SWPL-23499

Problem:
osd sdr2hdr process cause osd color contour

Solution:
1. root cause is cgain curve is not smooth
2. bypass cgain

Verify:
verify on G12A

Change-Id: I81480244c8b13f942ae99b45238d947f874120fe
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2020-12-17 17:19:06 +09:00
robin.zhu
1ac334bb76 dv: garbage display for 4K DV in certain video preview axis [1/1]
PD#SWPL-24882

Problem:
When 4K output, DoVi core3 htotal does not leave enough timing,
in addition to scaler pipeline delay, cause output does not get
data in time.

Solution:
reduce htotal(porting setting from g12b) for 4K output timing.

Verify:
HDMI DoVi 4K input, connect to DV 4K TV, set same axis as preview:
echo 1740 0 3839 1299 > /sys/class/video/axi
and check display: no more garbage display.

Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
Change-Id: Ic075d00ea784b2bd080e6069baf9ea2c96c1c782
2020-12-17 17:19:06 +09:00
renjiang.han
56cc992be4 ppmgr: Where semaphores are used in ppmgr may cause deadlock. [1/1]
PD#SWPL-24904

Problem:
When the semaphore is used, it is suddenly re-initialized.

Solution:
The semaphore is only initialized during the probe.

Verify:
on X301

Change-Id: I1c45a56c1c204f5a3e2ee2fc7e31ac3da88348e1
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2020-12-17 17:19:06 +09:00
Xindong Xu
2b5a425f8d md: High security vulnerability in dm-anroid-verity [1/1]
PD#SWPL-24864

Problem:
High security vulnerability in dm-anroid-verity

Solution:
we add this code for test.
It was improperly released, revert it.
Android avb code is ok after revert it.
Revert "md: use dm-anroid-verity [3/4]"

This reverts commit 84edbc7284.

Verify:
franklin

Change-Id: I8daa068475ee6d29b3ee8a5e8475b7594d71ce7d
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
2020-12-17 17:19:05 +09:00
Gongwei Chen
504688d4a7 dv: flash green screen when dv on->off [1/1]
PD#SWPL-24764

Problem:
dv mem power down is earlier then dv core off

Solution:
delay one vsync to power down dv mem

Verify:
tm2

Change-Id: I895b2444358d365bf9481d964c6da0f207ff8733
Signed-off-by: yao liu <yao.liu@amlogic.com>
2020-12-17 17:19:05 +09:00
Xingyu Chen
1f117ec287 ethernet: reset tx queue when resume [1/1]
PD#SWPL-23503

Problem:
The network connection occasionally fails after resume

Solution:
reset tx queue when resume

Verify:
test pass on TL1

Change-Id: I9d9c61c9077e44f2e970ba19b7f8b85f7898bc41
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2020-12-17 17:19:05 +09:00
hang cheng
92f177651f hdmitx: optimize for signal change [1/1]
PD#SWPL-22877
PD#SWPL-22442
PD#SWPL-23113

Problem:
1.flash screen when suspend on Sony KD-55X9500G TV & SVA LE2481G TV
2.flash screen when plugin SONY KLV-26BX205 under 576p50hz

Solution:
1.add delay after set avmute so that TV can completely respond
2.add delay before start hdcp so that to auth after TV detect stable.

Verify:
AC214

Change-Id: I5dd8c37f71298c4eb630e5407ae4122b78b48133
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2020-12-17 17:19:05 +09:00
Pengcheng Chen
173d99600f vpp: fix yuv444 mif hskip abnormal [1/1]
PD#SWPL-22932

Problem:
hdmi rx 4k dv, tx 1080i display err

Solution:
fix yuv444 mif hskip setting

Verify:
verify on tm2

Change-Id: I881a638dc3016b046af726127bbac3fc86f46af8
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit 6ca4255443d383c2030b9e771465c4675b40d936)
2020-12-17 17:19:05 +09:00
qianqian.cai
b6d5a03739 deintlace: wakeup have sound without picture [1/1]
PD#SWPL-18082

Problem:
xiaomi t972
ATV source have sound without picture
after TV wake up and enter source

Solution:
modify the suspend flow for unreg

Verify:
franklin

Change-Id: Icbecd561471e12a33e30ac4601e8278f29df8aec
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2020-12-17 17:19:05 +09:00
Chengshun Wang
11d8d5f768 tsync: fix audio only no sound [1/2]
PD#SWPL-23935

Problem:
audio no sound, ref pcr set error

Solution:
1) get ture ref pcr
2) judge video pid whether valid, decide whether wait
   3 seconds to set pcr

Verify:
verify by AC214

Change-Id: Ia782799e43fda17f7f1affbfcd7184f4b1ffb16d
Signed-off-by: Chengshun Wang <chengshun.wang@amlogic.com>
2020-12-17 17:19:05 +09:00
Gongwei Chen
8c0fdd51cb Revert "cec: cec a bus busy cause system hold [1/1]"
This reverts commit 1c60041aebfa3d1460cb7143f5621152a05fd0e3.
2020-12-17 17:19:05 +09:00
Tao Zeng
8dfe2013e3 mm: revert lmk change [1/1]
PD#SWPL-23516

Problem:
lmk is too agressive for kill process

Solution:
revert lmk change in
74a35431d2

Verify:
x301

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I52ff4f32262a33c9b54802d4ab012d404c942384
2020-12-17 17:19:05 +09:00
Jian Hu
60a62ce0d9 dvfs: sm1: critical region of cpu and dsu clock settings [1/1]
PD#SWPL-22008

Problem:
it will hang up sometimes when playing 8k video.

Solution:
critical region of cpu and dsu clock settings

Verify:
ac214

Change-Id: Icbdf3c26b129d4901e42c2e6c58700bd684c871c
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2020-12-17 17:18:56 +09:00
renjiang.han
d26529c348 coverity: there is no short pointer judgment. [1/1]
PD#SWPL-23790

Problem:
There is no short pointer judgment.

Solution:
Add null pointer protection.

Verify:
on U212

Change-Id: I46cf33607dc37793ad11442b9b2f9aa63462c560
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2020-12-17 17:17:52 +09:00
robin.zhu
7b0e00814d dv: powergate and mempd not optimized for g12 and tm2 [1/1]
PD#SWPL-22126

Problem:
powergate and mempd not optimized for g12 and tm2

Solution:
fix mempd in vpu and optimize power for dv

Verify:
ab311 and ac213

Change-Id: I204c03acbbc532793d0891631ae9dd132175a5c9
Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
2020-12-17 17:17:51 +09:00
robin.zhu
c49ce3d1aa dv: stb 2.4.2 add hdmi in support [1/1]
PD#SWPL-21381

Problem:
not support DoVi hdmi input for Source 2.4.2

Solution:
add hdmi in DoVi(Source/Sink-LED) support for Source 2.4.2

Verify:
ab311

Change-Id: Ica11b8bfdb1c108131cfdd04c688e4de392fceca
Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
2020-12-17 17:17:51 +09:00
robin.zhu
42a898d63c dv: sink1.6 - add hlg dv/csc policy handling [1/1]
PD#SWPL-20445

Problem:
csc/dv hlg processing not correct,
when policy or enable changing

Solution:
add dv/csc policy handling for HLG

Verify:
ab301

Change-Id: I684c9abc5deb3697ad55e76cac019f9b2993fa61
Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
2020-12-17 17:17:51 +09:00
Yong Qin
3814b0ecbc cec: cec a bus busy cause system hold [1/1]
PD#SWPL-23547

Problem:
when spin lock, recursive call will cause system hold.

Solution:
void recussive calling.

Verify:
P21AS-S905X

Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Change-Id: I84260b159211995e30c0ac14205895b851fdff1f
2020-12-17 17:17:51 +09:00
junliang zhou
e0ac309ca6 Video: add pts rollback detect [1/1]
PD#SWPL-23306

Problem:
For the OTT-9111, when application start playing
before dvb stream rollback, the video pts is
bigger than audio because audio has been dropped
the tail of the stream. Video can`t toggle frame
in A-master mode.

Solution:
Force video toggle the video frame if meet the
tail frame of the stream.I made a parameter to
set the threshold between the audio and video pts.
This solution Will influence the stream which has
pts error, need QA to verify that stream on DVB
environment.

Verify:
S905X2

Change-Id: Idc8f050cdb9f5d8c878f3570e2213a5e1f309ca1
Signed-off-by: junliang zhou <junliang.zhou@amlogic.com>
2020-12-17 17:17:51 +09:00
Cao Jian
f92db12964 osd: add afbc flag for getting capbility [1/1]
PD#SWPL-22030

Problem:
add afbc flag for getting capbility

Solution:
add this flag support

Verify:
on g12b w400

Change-Id: I4f6efec85e3a62c484388821c24bbdd7eee06251
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2020-12-17 17:17:51 +09:00
Luan Yuan
884f308afd hdr_policy: init hdr_policy state by bootargs. [2/2]
PD#SWPL-22912

Problem:
when set hdr_policy to 1, but this value is 0 in boot init.

Solution:
init hdr_policy state by hdr_policy value in bootargs.

Verify:
verify by newton.

Change-Id: I8abb3969d6cdf28ea028317348ae060cda216f7f
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2020-12-17 17:17:50 +09:00
Zhizhong Zhang
3d33b75412 avsync: video_stop don't clear the tsync_pcr_inited_flag [1/2]
PD#SWPL-14955

Problem:
Pcm playback is mute after replaying multiple times

Solution:
Don't clear the tsync_pcr_inited_flag when video stop

Verify:
Verified ok on patch-build

Change-Id: I1cf76d2dd8a56ce85c62b0c3b8b7782223b1d282
Signed-off-by: Zhizhong Zhang <zhizhong.zhang@amlogic.com>
2020-12-17 17:17:50 +09:00
Zhengrong.Zhu
b8f9c3739e hdmitx: Dolby Vision support using EMP transfer metadata and vsif [1/1]
PD#SWPL-19839

Problem:
Dolby Vision support using EMP transfer metadata and vsif

Solution:
Add code used to EMP transfer metadata and vsif

Verify:
verify on the board of U212

Change-Id: I8720327781a913a83ccbe0511ccf3e5db46ce0e7
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
2020-12-17 17:17:50 +09:00
Evoke Zhang
272d40b6ea lcd: support resume_type to avoid dual display interfere each other [1/1]
PD#SWPL-19365

Problem:
panel can't display when first resume by dual display mode,
without kernel printk log print.
lcd workqueue resume will effect each other for dual display.

Solution:
change lcd driver to directly resume for dual display

Verify:
ac200

Change-Id: I4638a9b526625693ed97070a0967b37328617ae6
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2020-12-17 17:17:50 +09:00
Brian Zhu
e24d27e49f vpp: add sar_width/sar_height check when toggle frame [2/2]
PD#SWPL-22711

Problem:
When toggle frame, vpp did not check sar_width/sar_height
change. It caused that vpp setting did not update when only
sar_width/sar_height information changed.

Solution:
Add sar_width/sar_height check

Verify:
Verified on u212

Change-Id: I68c0c1d0e51ec0c537296b3ef5d26dcc4ca0c6d8
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-12-17 17:17:50 +09:00
Jihong Sui
ba9742df1f deinterlace: add change condition [1/1]
PD#SWPL-21344

Problem:
DI timeout when play a spical video

Solution:
add change condition

Verify:
u212

Change-Id: I1e674ae0349546021ea9514a34cf3619d3ce3259
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2020-12-17 17:17:50 +09:00
Yong Qin
0a07e36deb cec: decrease cec read blocking time when no cec msg [1/1]
PD#SWPL-22371

Problem:
cec read blocking 4s when no msg in. sometime will cause
watchdog reset.

Solution:
de-crease the time.

Verify:
g12a

Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Change-Id: I18c83b8fd7c4cacc07c4d0ee1ca2ecdf179492e9
2020-12-17 17:17:50 +09:00
qiang.liu
f5b01375bf cvbsout: add NTSC performance support [2/2]
PD#SWPL-17248

Problem:
don't support NTSC performance

Solution:
1.add NTSC performance support
2.fix cvbsout set mode mistake for viu_mux

Verify:
u212

Change-Id: Ib2315d6403bb526785d3398fc8d7b6bf60dd5a7b
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2020-12-17 17:17:40 +09:00
Brian Zhu
ffb2a5cb24 deinterlace: fix display abnormal with progressive video [1/1]
PD#SWPL-22415

Problem:
Config DI mif wrong when processing progressive frame

Solution:
Using right vf->type as condition.

Verify:
Verified on u212

Change-Id: I1f24385967bc00039702d2d873b37b6e12241b13
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-12-17 17:14:59 +09:00
Brian Zhu
c015909998 deinterlace: support VIU_FIELD interlace map from decode [1/1]
PD#SWPL-22140

Problem:
DI don't support VIU_FIELD interlace map from decode

Solution:
Support it

Verify:
Verified on u212

Change-Id: Ibd34475881a36eb0891fd11fff091d4bbb233b50
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-12-17 17:14:59 +09:00
Gongwei Chen
7028c46727 Revert "deinterlace: support VIU_FIELD interlace map from decode [1/1]"
This reverts commit ef725b8fade10bb45e07954e8ea1f74af3d2efad.
2020-12-17 17:14:59 +09:00
Zongdong Jiao
98cc814c54 hdmitx: keep authenticated status during suspend [2/2]
PD#SWPL-16910

Problem:
Need keeping authenticated status during suspend

Solution:
Add a workround to keep status
Disable the NULL packet

Verify:
G12/SM1/TM2

Change-Id: I2f08c086a4289de9f988425bc5ad9deb740c4db4
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-12-17 17:14:59 +09:00
Zongdong Jiao
1b0db55235 hdcptx14: add non short read [2/2]
PD#SWPL-19969

Problem:
current the Ri is short reading

Solution:
add non short read method

Verify:
G12

Change-Id: I0815910062ca8422acddc574fa293c9b3a280bbe
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-12-17 17:14:59 +09:00
Brian Zhu
35fd796cb5 deinterlace: support VIU_FIELD interlace map from decode [1/1]
PD#SWPL-22140

Problem:
DI don't support VIU_FIELD interlace map from decode

Solution:
Support it

Verify:
Verified on u212

Change-Id: Ibd34475881a36eb0891fd11fff091d4bbb233b50
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-12-17 17:14:58 +09:00