Commit Graph

648955 Commits

Author SHA1 Message Date
renjiang.han
307be27f2a ppmgr: Add the value of stats_get to protect tb_task. [4/6]
PD#SWPL-9350

Problem:
Low probability of system crash when play live channel

Solution:
Increase the value of stats_get to protect tb_task.

Verify:
on U212

Change-Id: I4a13a3f7f2a4259fc8d4dd6630dd28d82a8c2541
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:13:10 +08:00
renjiang.han
598c7e0fae ppmgr: Rotate the screen after rotation. [3/6]
PD#SWPL-9350

Problem:
After the HDR video is played, play normal video,
and the display is abnormal.

Solution:
Signal_type and bitdepth need to be reassigned.

Verify:
on U212

Change-Id: Ie2acddff3be34e01062a69d48bf4e82619559fb9
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:09:32 +08:00
renjiang.han
27aa9062d7 ppmgr: Detection of top and bottom for interlace sources. [2/6]
PD#SWPL-9350

Problem:
HDMI connection vertical screen, 1080i signal picture jitter.

Solution:
The interlace source is extracted based on the top and bottom values.

Verify:
on U212

Change-Id: I38f91fda32d1275dcc286fbb33034b4fd099e18f
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 15:37:36 +08:00
renjiang.han
44a35c9d11 ppmgr: add vdin support 10bit. [1/6]
PD#SWPL-9350

Problem:
ppmgr does not support 10bit to cause a rotating screen.

Solution:
add vdin support 10bit.

Verify:
on U212

Change-Id: Idbe90f7e351edbc12e0e2d905f06e0cdd18da148
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 15:34:09 +08:00
renjiang.han
86ce227bc3 ppmgr: Add IS_ERR_OR_NULL to determine if the thread exists [1/1]
PD#SWPL-8658

Problem:
handle is NULL cause kernel panic.

Solution:
Add IS_ERR_OR_NULL to prevent hanle from being NULL
to cause kernel panic.

Verify:
on T962X2

Change-Id: I3086a497d99646e6475a93b5a53b3c9aca2d2ada
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 15:27:28 +08:00
renjiang.han
a8ced46329 ppmgr: The cut table caused a crash. [1/1]
PD#SWPL-6557

Problem:
The cut table caused a crash.

Solution:
modify dma flag

Verify:
on X301

Change-Id: Ic0ced1f4934d1125c56a79d1e102de9d2e02a528
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 15:15:15 +08:00
Gongwei Chen
8660584028 dts: sync w400_a form W400 [1/1]
PD#SWPL-15005

Problem:
sync w400_a form W400

Solution:
sync w400_a form W400

Verify:
Verify by Android P w400_a

Change-Id: I0ace7496f26bacac6343fd772ec2ab8c87721e76
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-28 19:06:40 +08:00
Luan Yuan
b36aaedd1c galilei: update g12b_w200 config for compile error.[1/1]
PD#SWPL-15005

Problem:
update g12b_w200 dts config for compile error

Solution:
update g12b_w200 dts config for compile error.

Verify:
verify by galilei.

Change-Id: Id0cffc41a9bf633dba3d1d052d28bb7a0a2e9d69
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-26 17:13:31 +08:00
Cheng Wang
8e9563d189 amvecm: control cm_en status [1/1]
PD#SWPL-14964

Problem:
the screen color will abnormal after open cm_en

Solution:
adjust am_en status according to chip ID

Verify:
on newton

Change-Id: I8619dc4119c4d6c7e5a2d8f2985bbd508c7f94d7
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2019-10-25 16:15:21 +08:00
Shuai Li
e5f05183b0 audio: make loopback compitable with chips [1/1]
PD#TV-8363

Problem:
Loopback doesn't work on TM2.
TL1 doesn't support loopback in OE pins.

Solution:
Make it compitable with chips.
Add tdm_lb format and chmasks.

Verify:
TM2 AB311 and TL1 X301.

Change-Id: If878fe75fc87857eae7a44439a451c5b2f494c67
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-10-24 14:28:47 +08:00
Gongwei Chen
76ba3b956e audio: no_mclk for amp [1/1]
PD#SWPL-15422

Problem:
Play video without HDMI connection, no sound output

Solution:
no_mclk for amp

Verify:
Verify by Android P w400

Change-Id: Ic95a1e28f8ccbf6e3ba4a21f7d7b329f5854ea49
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-24 13:50:16 +08:00
Gongwei Chen
cac66d706a audio: no_mclk for amp [1/1]
PD#SWPL-15422

Problem:
Play video without HDMI connection, no sound output

Solution:
no_mclk for amp

Verify:
Verify by Android P w400

Change-Id: Ic95a1e28f8ccbf6e3ba4a21f7d7b329f5854ea49
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-24 13:33:18 +08:00
Pengcheng Chen
d3e33ccdae vpp: sr software flow improvement [1/1]
PD#SWPL-13633

Problem:
sr input size need improvement

Solution:
improvement sr software flow

Verify:
verified by sm1

Change-Id: I10b9dd6d057fc8906ce312576623480aa14ae8a3
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-10-24 11:34:51 +08:00
Zongdong Jiao
e165b1bbcc hdmitx: add missing 'product_desc' in SPD infoframe [1/1]
PD#SWPL-14801

Problem:
Sharp/LCD-42GX50A TV will be black when it receives vendor_name
but without product_desc in SPD infoframe

Solution:
Add missing 'product_desc' in SPD infoframe

Verify:
G12A/U212

Change-Id: I630fa416580855883a80be2747d39887ef67ef5c
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-23 16:51:36 +08:00
Bencheng Jing
47d6b33ff9 vpp: dynamic adjust scaler path according to supsc0 h&v ratio [2/2]
PD#SWPL-12202

Problem:
scaler path need adjust according to supsc0 h&v ratio

Solution:
add dynamic adjust scaler path

Verify:
g12a&sm1

Change-Id: If00b4c321e24910ff7abd166d9a828dc424ab0d0
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-10-23 16:04:37 +08:00
Brian Zhu
62d79dab80 vpp: set the sr position reg correctly [1/1]
PD#SWPL-14963

Problem:
The position bits of super scaler is incorrect.

Solution:
Set the position bits correctly

Verify:
Verified on U212

Change-Id: I133662859456f65e130b8795f574da845039c717
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-10-23 14:00:36 +08:00
Brian Zhu
e60c74ffd2 vpp: sr: disable more latch ctrl for SR0 [1/1]
PD#TV-7673

Problem:
SR0 register enabled the latch function, it will cause
frame size setting out of sync when bypass sr0.

Solution:
Disable the latch option.

Verify:
Verified with X301

Change-Id: Ibfc4c5f8f695757ddd7d7d9e50e4b5be23268388
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-10-23 14:00:18 +08:00
baocheng sun
abb6df9408 ion: ion_sync_for_device use swiotlb_dma_ops not dummy_dma_ops [1/1]
PD#OTT-5276

Problem:
CTS EncodeDecodeTest failed. Ion sync ioctrl was
forwarded to a dummy implementation. So cached dma buffer
syncing between device and driver was inconsistent occasionally.

Solution:
Changed the dummy_dma_ops to swiotbl_dma_ops when ion_sync_for_device

Verify:
franklin, hertz

Change-Id: I16863bba6c3fe16b9c3b2b410ade6e45c9e74826
Signed-off-by: baocheng sun <baocheng.sun@amlogic.com>
2019-10-23 13:42:42 +08:00
Gongwei Chen
0efd978c77 tp: enble tp in w400 dts [2/2]
PD#SWPL-15292

Problem:
W400 is not touch panel

Solution:
add touch panel in w400

Verify:
verify by w400

Change-Id: Ibb4323458a2e84ba9fa84177fe6c747611277c55
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-17 19:45:12 +08:00
shaochan.liu
0984f6e8e4 lcd: add lcd_init_level to control lcd display [2/2]
PD#TV-9856

Problem:
need change display driver for cool boot to enter
kernel stage freeze mode

Solution:
add lcd_panel_ctrl to control lcd display

Verify:
t962x2-x301

Change-Id: I8b58ab0a0f87c49791af7dddf7b05db37f7ad716
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2019-10-17 19:08:28 +08:00
Shaochan Liu
ff51a5a14c lcd: add lcd_ctrl bootargs for lcd driver control [2/2]
PD#SWPL-4097

Problem:
add lcd_ctrl bootargs for lcd driver control

Solution:
add lcd_ctrl bootargs for lcd driver advance control
and debug function in kernel

Verify:
verify by t962x2-r311

Change-Id: I4d741eef42505e259b54cd4f00e395d09edf7604
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
2019-10-17 19:04:43 +08:00
Luan Yuan
be3eb2fdbf Revert "lcd: 1.3.15 HS Exit compliance testing for 480p and 720p [2/2]"
This reverts commit aa2d34181f.
2019-10-17 13:35:17 +08:00
shaochan.liu
aa2d34181f lcd: 1.3.15 HS Exit compliance testing for 480p and 720p [2/2]
PD#SH-1295

Problem:
need A113D mipi HS Exit compliance testing for 480p and 720p

Solution:
1, add A113D mipi HS Exit compliance testing
2, add 480p and 720p panel setting

Verify:
A113D_s400

Change-Id: I4c95b5532782f6f083c4d61a43cc17cb8ed120b6
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-16 16:44:07 +08:00
Hong Guo
cef86dc78a dvfs: update cpufreq table for sm1 corner [1/1]
PD#SWPL-13264

Problem:
update cpufreq table for sm1 corner

Solution:
update cpufreq table for sm1 corner

Verify:
test pass on sm1_ac200

Change-Id: Iba08ceb00dc00994e1c383090d6ff5d9dfb91ce3
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-14 19:46:44 +08:00
Hong Guo
6cceb5e6fa dts: update s905x3 vddcpu pwm to 30 steps [1/1]
PD#SWPL-11792

Problem:
update s905x3 vddcpu pwm to 30 steps

Solution:
update s905x3 vddcpu pwm to 30 steps

Verify:
test pass on S905X3_AC213

Change-Id: I30bfe855e3bb0a4b0a33f6d9029a718b7de68829
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-14 19:30:35 +08:00
Hong Guo
d033cded44 CPUFREQ: use gp1 pll for cpufreq. [1/1]
PD#SWPL-3826

Problem:
use gp1 pll for cpufreq.

Solution:
use gp1 pll for cpufreq.

Verify:
x301_tl1

Change-Id: Iefb6d31ec40ba304f41024e4b7adceec881d043e
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-14 19:08:16 +08:00
Hong Guo
4d74b99e2b dvfs: update cpu clk after adjust cpufeq for g12b big core [1/1]
PD#SWPL-11796

Problem:
update cpu clk after adjust cpufeq

Solution:
update cpu clk after adjust cpufeq

Verify:
test pass on g12b_w400

Change-Id: I5e4593e4b65de5f7536ddde793d682cc67df0e64
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-10-14 19:07:45 +08:00
Hong Guo
463ea2d748 cpufreq: dynamic adjustment dsu clk with tl1 cpu clk [1/3]
PD#SWPL-2842

Problem:
dynamic adjustment dsu clk with cpu clk.

Solution:
dynamic adjustment dsu clk with cpu clk.

Verify:
tl1_x301, verify pass

Change-Id: I75f97d9e259dee2c3067e5989b3626e38cf20337
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-14 18:55:54 +08:00
Gongwei Chen
e61320c026 dts: A311D W400 add camera os08a10 [1/1]
PD#SWPL-15086

Problem:
A311D W400 add camera os08a10

Solution:
A311D W400 add camera os08a10

Verify:
Verify by Android P w400

Change-Id: I60cdfe3996ee5bf54bfba24972c3e0c46005401a
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-14 10:19:10 +08:00
Gongwei Chen
493cf08d0d dtsi: A311D w400 has only hdmi output by default, panel has no output [1/3]
PD#SWPL-15024

Problem:
A311D w400 has only hdmi output by default, panel has no output

Solution:
modify clk

Verify:
Verify by Android P w400

Change-Id: I90d2defc509de2e559bb1ae1f4fcbcf38012b93c
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-12 13:24:54 +08:00
Gongwei Chen
a42623d66f dts: add platform W200 [2/3]
PD#SWPL-15005

Problem:
need add platform W200

Solution:
add platform W200

Verify:
Verify by Android P w200

Change-Id: Ia1baacb5c62182fd17c4e1730a4ad6aeeaa71dda
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-12 10:51:54 +08:00
Evoke Zhang
f3af1e8108 cvbsout: fix cgms bit mistake for NTSC [1/1]
PD#OTT-5683

Problem:
NTSC cgms data bit is incorrect

Solution:
fix cgms bit mistake

Verify:
u212

Change-Id: If1d26714eeed9061773c25871715713b122d9980
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-10-10 19:56:51 +08:00
Zongdong Jiao
fa60ca407e hdmitx: reduce the delay time of plugout [1/1]
PD#OTT-6369

Problem:
The HPD low time of some Monitor(such as LG) is about 30ms, less than 100ms

Solution:
Reduce the delay time of plugout

Verify:
G12A/U212

Change-Id: I343223b5ef0696da035f0b3b179bdbfbce68c859
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-09-30 10:52:36 +08:00
Evoke Zhang
325165f958 amvecm: add viu2 vsync support for gamma [1/1]
PD#SWPL-14450

Problem:
gamma can't support viu2 vsync

Solution:
add viu2 vsync support for gamma

Verify:
u202

Change-Id: I5f490b254f58a130451ff69a456c218e6e4dcc94
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>

Conflicts:
	drivers/amlogic/media/enhancement/amvecm/amve.c
2019-09-29 13:36:39 +08:00
Hang Cheng
69cb45b3c3 hdmitx: force to update glitch time after hdcp22 unmux [1/1]
PD#SWPL-11894

Problem:
glitch time in bl31 may not be updated after hdcp22 unmux,
because get hdcp auth result function in bl31 will not be
called after hdcp mode set to 0. In a result, the glitch
hdcp22 result may take place of the actual hdcp22 auth
status after mode change, and feedback to systemcontrol
to clear/set video mute by wrong

Solution:
force to update glitch time after hdcp22 unmux

Verify:
U200/g12a

Change-Id: I497ead5f8f5c46959560ffc0c8702acca1a3f46c
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2019-09-26 15:47:04 +08:00
qi duan
6cfcf3239a eth: compatible internal phy enet efuse map for some chip [1/1]
PD#SWPL-14596

Problem:
some g12a chip,efuse map for enet is diff
So need compatible for these chip

Solution:
read valid bit from valid block,not data block

Verify:
verified by tl1 and g12a

Change-Id: I564209d865cbc2ff1151df07d06593b12ea225d8
Signed-off-by: qi duan <qi.duan@amlogic.com>
2019-09-26 11:07:55 +08:00
Xihai Zhu
7870212b5b amvecm: add addr protect for register program [1/1]
PD#SWPL-14333

Problem:
invalid address is allowed for register program
which cause kernel panic

Solution:
add protection, programming on invalid addr will
be terminated

Verify:
tl1

Change-Id: I44bedec256ee5c386b53188fb2d8e40ae8c3f553
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-09-20 18:50:46 +08:00
qi duan
1c3838c28e eth: clk invert bit compatible for 100M when exphy [1/1]
PD#SWPL-14033

Problem:
if clk invert bit set, 100M will not connect

Solution:
don't invert clk when connect 100M network

Verify:
w400

Change-Id: I4c3acbcc0d05fc2c99b5a982461ab3d5ff83fe26
Signed-off-by: qi duan <qi.duan@amlogic.com>
2019-09-18 11:11:43 +08:00
Jian Cao
44aeec54cf osd: mali afbcd memory out of bound [1/1]
PD#TV-6683

Problem:
DMC error log as "ID:VPU READ1, sub: 7"

Solution:
make afbc disable, if afbc phy addr is 0

Verify:
verified on TL1-X301

Change-Id: I111c8e2e922877904dd8b8d1f276f79ca4f68e94
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-09-10 14:48:04 +08:00
Dezhi Kong
a129b180a1 osd: add osd blend reg config check. [1/4]
PD#SWPL-2049

Problem:
osd3 din blend config may be incorrect when viu2 is enable

Solution:
add osd blend reg config check

Verify:
verify by AC202(sm1)

Change-Id: I3d8ff0d247226d4df1386808caba2a21a34f0b10
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2019-09-09 13:33:46 +08:00
Dezhi Kong
9b7f07b103 csc: add vinfo check for csc process [1/1]
PD#SWPL-13491

Problem:
After plugging and unplugging HDMITX,
the panel screen color display is abnormal
for dual display platform.

Solution:
add vinfo->mode check for csc process,
avoid process null and invalid vinfo case.

Verify:
verify by AC202(sm1)

Change-Id: I54c54adcf2a0fc9a02e35b0ef24a720a55a8781a
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-09-09 13:33:26 +08:00
Brian Zhu
33ec4db6b1 dts: ge2d: correct the ge2d irq number [1/1]
PD#SWPL-13669

Problem:
Ge2d irq number is wrong on g12a/g12b/sm1.

Solution:
Replace the correct number

Verify:
Verified on u212

Change-Id: Ia3d202dc10cb978033892efb1de251bf5cf1df31
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-09-06 10:27:50 +08:00
Hong Guo
1882898c4b cpufreq: update dvfs voltage and pwm for g12b revb [1/1]
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
2019-09-04 20:40:40 +08:00
huijie.huang
e7c5b28ea3 dts: add video11 and video12 for screencontrol [2/6]
PD#SWPL-13022

Problem:
mbox needs to support screencontrol

Solution:
add video11 and video12 node

Verify:
SM1-AC202

Change-Id: Idac331731c6c3b7666ba5335a5341b14b13b6f8f
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2019-09-02 19:43:17 +08:00
Evoke Zhang
684ee0c109 cvbsout: fix cgms config mistake for NTSC [1/1]
PD#OTT-5683

Problem:
NTSC cgms signal is incorrect

Solution:
fix cgms config mistake

Verify:
u212

Change-Id: I4a3dce8d6b3439be974a8aea48ca1d445feee25b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-09-02 14:06:07 +08:00
yao liu
0fee5e18ac dolby: Display flickers with garbage image [1/1]
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>
2019-08-30 15:19:36 +08:00
qi duan
c4729afaa6 ETH: remove release open when resume for amlogic phy. [1/1]
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>
2019-08-28 16:04:24 +08:00
qi duan
fc24beac08 ETH: do eth reset bit when resume. [1/1]
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>
2019-08-28 16:04:10 +08:00
Guosong Zhou
514e410e5e camera: fix gc2145 mipi camera mirror [1/1]
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>
2019-08-28 12:14:34 +08:00
Zongdong Jiao
b2788433ae hdmitx: remove unnecessary sentences [2/2]
PD#SWPL-12305

Problem:
Rx may lost synchronization when Tx switches modes

Solution:
remove unnecessary sentences

Verify:
SM1/AC213

Change-Id: Iba88a9a558cce822ff939ad98a992dcf5161eba7
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-08-27 11:39:15 +08:00