Commit Graph

649104 Commits

Author SHA1 Message Date
Zongdong Jiao
ec9dee73d6 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-11-18 12:25:36 +09:00
Evoke Zhang
b21a77fba1 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

Conflicts:
	drivers/amlogic/media/enhancement/amvecm/amve.c

Change-Id: I5f490b254f58a130451ff69a456c218e6e4dcc94
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-11-18 12:21:43 +09:00
Hang Cheng
d19d0e2f8e 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-11-18 12:21:34 +09:00
qi duan
54859a8882 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-11-18 12:17:58 +09:00
Xihai Zhu
0fedb1df40 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-11-18 12:17:49 +09:00
qi duan
53a3fd5455 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-11-18 12:12:14 +09:00
Jian Cao
50cbabf2a5 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-11-18 12:12:06 +09:00
Dezhi Kong
ab989433a4 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-11-18 12:08:20 +09:00
Dezhi Kong
0a23a896e3 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-11-18 12:08:07 +09:00
yao liu
5442bba22e 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-11-18 11:06:30 +09:00
qi duan
2a8fc35925 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-11-18 11:06:21 +09:00
qi duan
bf83bc7ca9 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-11-18 11:06:12 +09:00
Zongdong Jiao
d0c118d52f 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-11-18 11:02:04 +09:00
Jiamin Ma
72d3acdc33 time: fix fail to read generic timer's counter value correctly [1/1]
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)
2019-11-18 11:01:36 +09:00
Bencheng Jing
94a65ff4cf di: fix pulldown 22 enter slow patch from vlsi-LiuYanling [1/1]
PD#SWPL-12061

Problem:
film 22 detection threshold is high

Solution:
adjust the threshold lower

Verify:
sm1

Change-Id: I8e01e910b4a08aefdbde18fe1033bcb45e85b338
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-11-18 10:57:34 +09:00
yao liu
d60dba9564 Dolby: Metadata Conformance test mismatch [1/1]
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>
2019-11-18 10:54:32 +09:00
Bencheng Jing
0791124ae8 di: fix the sawtooth because of not into pulldown 22 timely [1/1]
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>
2019-11-18 10:50:35 +09:00
Bencheng Jing
2a14b1fcd9 di: fix the abnormal white color noise [1/2]
PD#SWPL-7049

Problem:
abnormal white color noise

Solution:
add G12a/G12b/sm1 chip in the deghost patch

Verify:
sm1

Change-Id: Ib3f4f0500712ff2aac8d5eb9cd137f8a3d3fe0f1
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-11-18 10:47:26 +09:00
Wenfeng Guo
ddb7af40fe di: fix sawtooth in the lower patr of AV video [1/1]
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>
2019-11-18 10:41:30 +09:00
Jihong Sui
9e5c09e299 deinterlace: add condition for force_prog [1/1]
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>
2019-11-18 10:36:50 +09:00
Zhuo Wang
c6bfd6c21e ethernet: debug function for reset [1/1]
PD#SWPL-11505

Problem:
STR may crash

Solution:
improve the suspend/rusume flow

Verify:
verify on g12a u200 board

Change-Id: Ie7b4759fd0d801c83eb3c1c314c402ae470b5e3f
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-11-18 10:36:39 +09:00
Bencheng Jing
1c2850e02e mcdi: keep g12a/g12b/sm1 reg_mcdi_qmeen same as gxlx2 [1/2]
PD#SWPL-10411

Problem:
reg_mcdi_qmeen is enable by driver

Solution:
disable reg_mcdi_qmeen

Verify:
u212

Change-Id: I02887fab37a0bbeb43bfa83a4a5a2e446bebb9c1
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-11-18 10:32:40 +09:00
changqing.gao
8356a4d9d3 dts: sm1: camera preview would cause garbage [1/1]
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>
2019-11-18 10:28:28 +09:00
Shuai Li
f52c8917e3 audio: Fix panic on add_timer [1/1]
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>
2019-11-18 10:24:36 +09:00
Chris KIM
76588a5264 ODROID: dts: Fix reboot label error.
Change-Id: Ia2a7aa317b1d3da06c09b198b16f8ce205c1311c
Signed-off-by: Chris KIM <codewalker@hardkernel.com>
2019-11-18 10:20:29 +09:00
femto
acbd706247 ODROID-COMMON:Reset uSD card to high-speed mode on reboot.
Fixes a problem where watchdog reset does not work properly on some cards that support UHS.

Change-Id: I940b993ea6d06196220a59557dede8fd2b556af7
Signed-off-by: femto <ckkim@hardkernel.com>
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
2019-10-30 15:28:24 +09:00
Chris KIM
3b46bb2b5b ODROID-N2: Add CONFIG_SND_SOC_SPDIF.
Change-Id: I11c7fb5c68b9da2875a6e90e9cc2de724c607a61
2019-09-30 10:49:48 +09:00
Arthur Liberman
d833511fcf drivers/amlogic: fix 'dobly' typos to 'dolby' 2019-09-30 09:46:02 +09:00
afl1
3dabbe6096 sound/soc/auge: fix clock for DD+ 2019-09-30 09:45:41 +09:00
afl1
a200d22a27 sound/soc/auge: fix HD audio passthrough
Change-Id: Ied7699c596d97803f5d4e01749e514502e47b965
2019-09-27 18:28:30 +09:00
he.he
a2a5e934c8 usb: xHCI host not responding to stop endpoint command [1/1]
PD#OTT-4738

Problem:
Read and write simultaneously on two disks on a hub,
and then the XHCI controller would halted.

Solution:
Set the GUCTL1 BIT 17 to 1 for disable park mode.

Verify:
test pass on u200, ODROID-N2

Change-Id: I007804fa6b97a103da4a05be12c1193b9dd422cb
Signed-off-by: he.he <he.he@amlogic.com>
(cherry picked from commit ac1b16e006)
s922_9.0.0_64_20191018 s922_9.0.0_64_20190927
2019-09-20 13:21:29 +09:00
he.he
62416bdacf usb: USB keyboard not recognized at low probability [1/1]
PD#TV-4365

Problem:
USB keyboard not recognized after reboot repeatedly.

Solution:
Reset the reset_FS_LS_Clock_Divider bit of the usb phy.

Verify:
tl1

Change-Id: I0f4bf35be04d3aff1094bf55641348ccaca072e4
Signed-off-by: he.he <he.he@amlogic.com>
(cherry picked from commit 99f59dae88)
2019-09-20 13:21:01 +09:00
Chris KIM
2668079fc8 ODROID-N2: Remove gdc from dts.
Change-Id: Iddbc453f6af96b42a64c04021c9a75b7510f5ce2
2019-09-20 12:00:06 +09:00
Chris KIM
0618931e52 ODROID-N2: Remove amlogic gdc driver.
Change-Id: I76e8076823c279081512014bc08c06daf58b3ad9
2019-09-20 11:59:57 +09:00
Chris KIM
455c835513 ODROID-N2: Add AMLOGIC_MEDIA_ENHANCEMENT_PRIME_SL
Change-Id: I418c7d0883972f13cbfae5eb70844f535bc99255
2019-09-20 11:59:48 +09:00
Chris KIM
e647e00b1a Revert "dolby: fix osd1 last line abnormal [3/3]"
This reverts commit d00d1e87b7.
2019-08-30 15:56:33 +09:00
Chris KIM
b24b5e4193 Revert "hdr: fix hlg2hdr green screen issue [1/1]"
This reverts commit 3e4945bd60.
2019-08-30 15:54:29 +09:00
Chris KIM
4baf61e9c0 Revert "hdr: fix osd1 last line abnormal [2/3]"
This reverts commit 5a9f795ebc.
2019-08-30 15:49:58 +09:00
Chris KIM
ab0789eefe ODROID-N2: Add CONFIG_AMLOGIC_MEDIA_ENHANCEMENT_DOLBYVISION
Change-Id: I758c2804cfe8d57f8aa39ab0569160ce918b5017
Signed-off-by: Chris KIM <codewalker@hardkernel.com>
2019-08-29 16:40:25 +09:00
Chris KIM
54df1c2710 ODROID: config: Sync odroidn2_android_defconfig.
Change-Id: If9857d1829898b6adda843d513944c34cb0db36f
Signed-off-by: Chris KIM <codewalker@hardkernel.com>
2019-08-29 16:40:25 +09:00
MingLiang Dong
3e4945bd60 hdr: fix hlg2hdr green screen issue [1/1]
PD#SWPL-12079

Problem:
hlg2hdr convert video green

Solution:
hlg2hdr mtx conver coef is wrong

Verify:
verify on sm1

Change-Id: I7d16bb35a4f5ec94da70c3d3c60daefa96743ac2
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-08-29 16:40:25 +09:00
qi duan
66f6e21407 ethernet: g12a/b exphy use autocali [1/1]
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>
2019-08-29 16:40:25 +09:00
Nan Li
6f47beb536 sdio: optimize sdio clk cfg [1/1]
PD#SWPL-9640

Problem:
sdio auto_clk close fail.

Solution:
optimize sdio auto_clk cfg,
add sdio_clk_always_on().

Verify:
G12A_u211

Change-Id: Iec6e9460ad650001f079844f183d905789aa76e7
Signed-off-by: Nan Li <nan.li@amlogic.com>

sdio: optimize sdio clk cfg [2/2]

PD#SWPL-9640

Problem:
sdio auto_clk close fail.

Solution:
optimize sdio auto_clk cfg,
add sdio_clk_always_on(int on).

Verify:
G12A_u211

Change-Id: Id760b41a948c6b7e15f675376084b0cdd4edc151
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-08-29 16:40:25 +09:00
Jian Hu
b3f5dc89a6 clk: g12b: fix cpu hangup when reboot [1/1]
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>
2019-08-29 16:40:25 +09:00
Luan Yuan
7a1ee7aa54 Revert "mcdi: keep g12a/g12b/sm1 reg_mcdi_qmeen same as gxlx2 [1/2]"
PD#SWPL-11558

This reverts commit ac2f0e9134.

Change-Id: I5220862541a20a3526b2d4f9258c52316bdbaf65
2019-08-29 16:40:25 +09:00
Bencheng Jing
39f6b394d7 mcdi: keep g12a/g12b/sm1 reg_mcdi_qmeen same as gxlx2 [1/2]
PD#SWPL-10411

Problem:
reg_mcdi_qmeen is enable by driver

Solution:
disable reg_mcdi_qmeen

Verify:
u212

Change-Id: I02887fab37a0bbeb43bfa83a4a5a2e446bebb9c1
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-08-29 16:40:25 +09:00
Jihong Sui
63730637be deinterlace: increasing protection for unreg [1/2]
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>
2019-08-29 16:40:25 +09:00
Jian Hu
f9099a4920 clk: sm1: fix cpu clock hangup [1/1]
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>
2019-08-29 16:40:25 +09:00
MingLiang Dong
81a5c6f4e3 hdr: fix sm1 hdr color abnormal [1/1]
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>
2019-08-29 16:40:25 +09:00
yao liu
c3c23ba99a dolby: fix 5008 crc error [1/1]
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>
2019-08-29 16:40:25 +09:00