Commit Graph

650044 Commits

Author SHA1 Message Date
yicheng shen
bb1d5fc785 hdmirx: Optimize hdmirx power consumption [1/1]
PD#SWPL-10073

Problem:
The power consumption of hdmirx need to be optimized when
there're no deviced connected.

Solution:
Power off hdmirx phy/pll when no rx input

Verify:
TL1/TM2

Change-Id: Iba34e3a4cd72c2fd72ff05f608114179ae59055c
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-10-28 03:34:33 -07:00
Pengcheng Chen
5ab6d3517a osd: support 4K UI worked in 1080p output [1/1]
PD#SWPL-15649

Problem:
4K UI display abnormal with 1080p output

Solution:
adjust freescale to 2line mode when 4K UI with 1080p output

Verify:
g12a

Change-Id: I636b1d8634beabd3f356e63b9d7a9a05b1a556bb
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-10-27 22:16:31 -07:00
Nan Li
3f3907b50e emmc: optimize sdio tuning print [1/1]
PD#SWPL-15797

Problem:
commit a5c3731f5d
this patch has err, the print buf will be out of bounds.

Solution:
Reposition the pointer before each loop.

Verify:
tl1

Change-Id: I8f44269c375147c5290af9c6d84fd5d85be271f0
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-10-27 19:42:22 -07:00
Shunzhou Jiang
98cc86a259 mbox: g12a: add m4 mbox driver [1/3]
PD#SWPL-12873

Problem:
add m4 mailbox driver

Solution:
add m4 mailbox driver

Verify:
test pass on sm1 skt

Change-Id: Ied77949482179014d9e695ffc606f2ac939c82ca
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2019-10-27 18:39:10 -07:00
jintao xu
609b26fb02 videosync: add pattern support [1/1]
PD#SWPL-15586

Problem:
When hdmi is 59.94 and 30fps and 60fps video pts is not linearly increasing
video display in vd2 video will shake.

Solution:
Videosync add pattern support.

Verify:
U212

Change-Id: I47416681dffb6e5eddef39e9c1dfcd29cfc12b92
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2019-10-25 05:33:07 -07:00
yao liu
d3d7cf79cd dv: fix gxm dv bug [3/7]
PD#SWPL-13526

Problem:
1.watchdog reboot:
hdr_func->set_hdr_matrix is called
when disable dv, which leads to
access 38a0 illegally

2.no dolby_ctrl_backup and err
viu_misc_ctrl_backup lead to
green screen after disable dv

3.Switch resolution, display highlights
and some pixels are overexposed

4.First frame shift when playing video.

5.OSD jitter when play video

Solution:
1.Dont call hdr_vd1_off and hdr_osd_off for s912
2.dolby_ctrl_backup for s912 and update afbc bits
 for viu_misc_ctrl
3.Dont set core reg if regs no changed
4.It is hardware bug, need set run_mode_delay=3,
  that means the first three frames should be blank.
5.put osd_path_enable after enable_rgb_to_yuv_matrix_for_dvll

Verify:
Q201

Change-Id: I50440c5b3c6554c28f587c0542bea3773a2c9b9c
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-10-25 04:13:27 -07:00
bing.jiang
066f69299d dts: Add new dts files for T962E2 SBR [1/1]
PD#SWPL-15141

Problem:
    adapt Soundbar solution to T962E2 SBR platform

Solution:
    new dts file tm2_t962e2_ab311_sbr.dts changed from tm2_t962e2_ab311.dts
    tm2_t962e2_ab311.dts file version
        'commit 952ac4c1d7 ("hdmirx: pinmux later so as to
                               prevent abnormal hpd pulse [1/1]")'

    add amp tas5782m
    add amlogic-remote-4

Verify:
    T962E2

Change-Id: I5b4ad1bc526167970de2a85aadc4089ef5eeb233
Signed-off-by: bing.jiang <bing.jiang@amlogic.com>
2019-10-25 01:37:09 -07:00
Tao Zeng
74a35431d2 mm: change lmk/cma using policy [1/1]
PD#TV-10462

Problem:
Memory will allocation fail if play secure vedio source. Usually
seen by zram/wifi driver

Solution:
1, wake up kswapd earlier if water mark without free cma is not ok;
2, using zone-filecache to increace active of lmk. Which can be more
accurate than using global page status;
3, remove some restrict of using cma when allocate movable page by
zram or migrate from cma pool;
4, try allocate hard for atomic request in soft IRQ

Verify:
T950L

Change-Id: Ibf03f3c11a32175e9983ee8a61a14ae4b2436f1e
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-10-25 00:09:00 -07:00
yicheng shen
9aa1021d2b hdmirx: add phy eq debug function [1/1]
PD#SWPL-12881

Problem:
Need to add eq debug function

Solution:
Add phy eq debug function,use auto-eq as default.

Verify:
TL1

Change-Id: I723d74d1bad226267b60ffb66d3670d01e6a4e1b
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-10-24 23:56:11 -07:00
jintao xu
717597468e videosync: fix can not enter standby [1/1]
PD#SWPL-15663

Problem:
wake_up always active.

Solution:
No call wake_up when no videosync active.

Verify:
U212

Change-Id: I83b76bf878331db249a2d10bdb65b2c086e28a93
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2019-10-24 23:01:11 -07:00
zhiwei.yuan
24eba4ca64 tvafe: garbage was seen when switch PAL to NTSC by sinco DVD [1/1]
PD#SWPL-15686

Problem:
report unstable state is too late,so that black screen is deferred.

Solution:
reduce shift condition cnt

Verify:
verified by t962x2_x301

Change-Id: Iafc38998b4d451ec3f4ddfd14c72ed54a68efbe5
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-10-24 19:52:59 -07:00
Cheng Wang
d3c6bbc8fc amvecm: Coverity defect cleanup [1/1]
PD#SWPL-13978

Problem:
Defective code in trunk

Solution:
fix defective code

Verify:
on x301

Change-Id: I94d25695c248d9281b59f30f1c6c42e51c9af1dc
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2019-10-24 08:48:46 -07:00
yao liu
071b8485e3 dv: graphic blend test failed on HDR TV [1/1]
PD#SWPL-15631

Problem:
There is an error in
c62207ef53

Solution:
correct the err

Verify:
SM1

Change-Id: If645ee88533dab7e28ff95d578be019a2cb894a6
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-10-24 06:36:46 -07:00
Wenfeng Guo
5f5e03b907 amvecm: add global motion information patch [2/2]
PD#SWPL-7814

Problem:
VPP need global motion information

Solution:
1.di add global motion information
2.amvecm set dejaggy according GMV(from baozheng)

Verify:
tl1

Change-Id: I0bc9190101995c99d5e881cefe482b513f82d253
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
2019-10-23 23:31:30 -07:00
Wenfeng Guo
6dbee9dbec deinterlace: add patch for global motion information [1/2]
PD#SWPL-7814

Problem:
VPP need di given global motion information

Solution:
add global motion information

Verify:
tl1

Change-Id: I6e522902a1d27b71db8c283b28ede6f684912fe0
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
2019-10-23 23:29:53 -07:00
yao liu
c62207ef53 dv: graphic blend test failed on HDR TV [1/1]
PD#SWPL-15631

Problem:
1.HDR Luminance 375 is too large
2.osd osd_h_filter_mode is not update

Solution:
1.set gmax to 300 for HDR output
2.update osd_h_filter_mode

Verify:
SM1

Change-Id: Ic6f1b02703341d01235a2081bd9ac7ee46b989e7
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-10-23 23:28:49 -07:00
Gongwei Chen
41ef86136c 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-23 22:31:09 -07:00
shaochan.liu
4e00cc84f2 lcd: add tcon_status debug interface [1/1]
PD#TV-11404

Problem:
need tcon_status debug interface

Solution:
add tcon_status debug interface

Verify:
x301

Change-Id: If6bd857b52138faef61dc4ecef3b846af315176e
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2019-10-23 20:01:38 -07:00
Evoke Zhang
7e6c87cc94 lcd: add prbs test support [2/2]
PD#SWPL-15371

Problem:
need lcd prbs test

Solution:
add lcd prbs test function

Verify:
x301

Change-Id: Id218acb1585713e920b361d7597ab0868e706390
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-10-23 19:26:46 -07:00
zhiwei.yuan
764a9e6bd6 vdin: change "IS_ERR" invoking to "IS_ERR_OR_NULL" [1/1]
PD#SWPL-15522

Problem:
kernel panic caused by NULL pointer

Solution:
check pointer before access members of structure

Verify:
verified by t962x2_x301

Change-Id: Ia20192bb88d90b06d43c04e6e4e6aa37b2862aa2
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-10-23 05:24:37 -07:00
Liang Ji
1c2bc5f90f Revert "audio: auge: improve compatibility for eARC RX/TX connection [1/1]"
This reverts commit 3aae3d78a5479ff3afcab94482b0ec64d237943f.

this cl block the newton, with it newton can't boot up noraml

Change-Id: I29adeb17f3cbacfd85cb4471a80bce247d7ab07f
Signed-off-by: liang.ji <liang.ji@amlogic.com>
(cherry picked from commit 56db1c7c121e1fd420b1a9d8fb24231db76d3199)
2019-10-22 23:18:27 -07:00
Zongdong Jiao
e2dc22106d 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>
2019-10-22 21:01:20 -07:00
Pengcheng Chen
b41c04770c osd: set correct dummy data with window_axis control [1/1]
PD#SWPL-15591

Problem:
a thin line appears at the bottom under linux

Solution:
set correct dummy data with window_axis control

Verify:
p212

Change-Id: Ifb422032880fb0a67f11dc8e117d10e4d96f72df
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-10-22 06:23:04 -07:00
Hong Guo
a81e307e8b reboot: add ffv_reboot mode [1/1]
PD#TV-10685

Problem:
add ffv_reboot mode

Solution:
add ffv_reboot mode

Verify:
test pass on tl1_x301

Change-Id: Ifdeb1819d89a54acbfebba0bcfe0865ea5c4ba5b
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-10-22 01:48:08 -07:00
Hong Guo
fdc250b90f reboot: add reboot reason sys infterface [1/1]
PD#TV-9896

Problem:
provide sys interface to get last reboot reason

Solution:
add reboot reason sys infterface

Verify:
test pass on tl1_x301

Change-Id: I6c4046c892eff9f92506fadb0cddee7041c8f882
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-10-22 01:47:08 -07:00
jintao xu
d508390213 videosync: expire driven by vsync [1/1]
PD#SWPL-14542

Problem:
pipvideo drop frame when play 60fps

Solution:
expire driven by vsync

Verify:
U212

Change-Id: Ie54fb6c62b1e3db04157a98fd075c126b5b304d1
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2019-10-21 22:42:07 -07:00
yao liu
51206dccca dv: osd display overexposure at 1080i [2/2]
PD#SWPL-12495

Problem:
dv vertical potch is small

Solution:
increase vpotch to 0x60

Verify:
verify on sm1

Change-Id: I4be460eb130e3c8ab85c5743ae85af72c9b7de6b
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-10-21 01:13:00 -07:00
Hanjie Lin
b4976d19ef debug: improve ftrace_ramoops for io trace [1/1]
PD#SWPL-6028

Problem:
optimize

Solution:
 - restore memtype setting method to default.
   depends on dts unbuffered attr,
   default 0 means pgprot_writecombine and 1 means pgprot_noncached.
 - always enable ramoop_io_en.
 - fix ioremap_page_range() print mistake.

Verify:

Change-Id: Ib4383d1f5ff8310cfe4f5f732413e0d517d557b5
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2019-10-21 00:48:17 -07:00
Shuai Li
06ce23cdda audio: coveriy fix [1/1]
PD#SWPL-14015

Problem:
Coverity defect cleanup.

Solution:
Coverity defect cleanup.

Verify:
SM1

Change-Id: I5d564ddafb4105b80c0243efafa6fe141fd59be7
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-10-20 20:25:52 -07:00
Xihai Zhu
7a39b8f222 di: fix pulldown 32 enter issue from vlsi-LiuYanling [1/1]
PD#SWPL-11692

Proble:
wrongly enter film 32 detection

Solution:
adjust the threshold

Verify:
tl1

Change-Id: Icb012a5104eebaff8634f5183a198e19167fe7b2
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-10-20 18:35:01 -07:00
Qianggui Song
2700b4c51b irqchip: fix WARNNING of lockdep [1/1]
PD#SWPL-14700

Problem:
When open lockdep there is a warnning:
WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected

Solution:
use hardirq-safe lock to protect critical sections

Verify:
g12a

Change-Id: Icd7550efcdefb5589d248b862b77919db8581484
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2019-10-18 04:11:50 -07:00
zhiwei.yuan
7018e8433c vdin: support afbce output for tm2 [1/1]
PD#SWPL-15188

Problem:
display is abnormal when config afbc out in dts

Solution:
correct vdin reorder mux setting

Verify:
verified by t962x3_ab301

Change-Id: Ic3ebe1bcba84f7e17c8caa3b12649a406906cabe
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-10-18 03:37:51 -07:00
qianqian.cai
d5db1061c3 deintlace: PQ the set of DI_MTN_CTRL [2/2]
PD#SWPL-14508

Problem:
HDMI480I/AV IN some issue you can see at the subtitle

Solution:
modify the DI_MTN_CTRL bit24/30 from vlsi(feijun),at the start of
field (1,2)you need set the bit24->0xf,bit30->0x1,after that
bit30->0x0

Verify:
verfy it on marconi

Change-Id: Iaf06f087811d189fe555e6802f90b7a96c33f393
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2019-10-18 02:29:34 -07:00
qianqian.cai
114854aac2 deintlace: PQ revert the set of di_belend_ctrl [1/2]
PD#SWPL-14508

Problem:
HDMI480I/AV IN some issue you can see at the subtitle

Solution:
revert the setting of 85992 di_blend_ctrl ,bit16
from vlsi feijun

Verify:
verfy it on the marconi

Change-Id: I78f6abd104d0953b6db7387900425175a436386b
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2019-10-18 02:28:38 -07:00
Sunny Luo
a5f97be7ba spicc: fix the condition issue of dma [1/1]
PD#SH-1213

Problem:
spicc will not run dma if bits_per_word isn't 64,
though dma mapped by the slave driver.

Solution:
change to run dma once dma mapped

Verify:
axg s400

Change-Id: I8625f973bdd5a2d69831e2c766dd43bc0417e0a5
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2019-10-18 00:22:05 -07:00
Xing Wang
bf875eb002 audio: auge: improve compatibility for eARC RX/TX connection [1/1]
PD#SWPL-15189

Problem:
1. earc rx fails to connect to a sony tv
2. earc tx fails to connect to AVR-X4500H

Solution:
1. reset earc_rx pll
2. reduce comma_th

Verify:
ab311

Change-Id: I369cc28931f34c78496a7fbc63559ae181944158
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-10-18 00:18:53 -07:00
Gongwei Chen
a209ff19a3 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 04:23:37 -07:00
Cheng Wang
a213cfbef6 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-17 03:57:00 -07:00
Bencheng Jing
46ab025b0a 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-16 23:18:59 -07:00
zhiwei.yuan
347f18c67a vdin: The picture received by the screenshot is the previous frame [1/1]
PD#SWPL-15282

Problem:
buf is not updated because of absent receiver

Solution:
force buf recycle after screen cap stopped

Verify:
verified by t962x3_ab301

Change-Id: Idc5c354a6d744b11a892ffb3f015a5928706d438
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-10-16 23:16:57 -07:00
jian.zhou
f60d8f7936 audio: fix spdif out no sound [1/1]
PD#SWPL-13575

Problem:
The spdif out pinctrl name is not same in dts and spdif_codec code

Solution:
modify the DTS, and make spdif out pinctrl name same

Verify:
S912-Q201-DDR3

Change-Id: If93a71b4348ee98e3244ffd6a98bb405178fd24f
Signed-off-by: jian.zhou <jian.zhou@amlogic.com>
2019-10-16 22:41:19 -07:00
Zhe Wang
742f69cb4a audio: set audio path from frhdmirx through spdifin mode [1/2]
PD#SWPL-11054

Problem:
hdmiin source, audio input is randomly LR invert

Solution:
set audio path from frhdmirx through spdifin mode

Verify:
Verified on X301

Change-Id: Ib40d30b8b6d8bc28da69bf9b4f37ae2ef9228761
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-10-16 21:46:25 -07:00
Hong Guo
19c1319988 cpufreq: add different freqs variable for big&little core [1/1]
PD#SWPL-15315

Problem:
add different freqs variable for big&little core

Solution:
add different freqs variable for big&little core

Verify:
test pass on g12b_w400

Change-Id: I3fbe4c6ee4f2a0868c84b362acddf16ac41a3dbd
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-10-16 20:57:09 -07:00
Evoke Zhang
3104f2bcba vdac: optimize the vdac controlling [1/1]
PD#SWPL-8385

Problem:
no cvbsout on ab311

Solution:
1.optimize the vdac controlling
2.enable cvbsout in ab311 dts

Verify:
ab311

Change-Id: Ib046e760eca1c9ad3ae30749c546aff538504b33
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-10-16 19:29:23 -07:00
Hong Guo
9d1e44535c cpufreq: add different freqs variable for big&little core [1/1]
PD#SWPL-15315

Problem:
add different freqs variable for big&little core

Solution:
add different freqs variable for big&little core

Verify:
test pass on g12b_w400

Change-Id: I2a5e00b5bbd4a1d084b925733a051497c6e92b0b
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-10-16 04:11:36 -07:00
Yong Qin
66ae13d7c1 cec: remove the delay time when get phy addr [1/1]
PD#OTT-6364

Problem:
When no hdmi cable connect, framework call get phy address,
will case 2s delay.

Solution:
1.If there is no HPD,needn't waitting TX finished reading the EDID
2.Reduce time out sleep time.

Verify:
W400

Change-Id: I2749e877e8b214355094390364e3711e6f1bbf12
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-10-16 03:19:09 -07:00
Zhongfu Luo
edb3ac2382 efuse: fix KASAN bug [1/1]
PD#TV-11119

Problem:
BUG: KASAN: stack-out-of-bounds in
meson64_trustzone_efuse+0x168/0x268

Solution:
fix retcnt variable type

Verify:
tl1 skt

Change-Id: I54d9bb598277db539b68f2e741288348eb026e01
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2019-10-16 02:35:22 -07:00
yao liu
65ebbe1f10 dv: display abnormal at 1080p24hz [1/1]
PD#SWPL-12495

Problem:
vpotch is small at 1080p24hz

Solution:
increase vpotch to 0x60

Verify:
SM1

Change-Id: I1505b0742b7e58c89396673e68b55384fa09551c
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-10-16 02:09:02 -07:00
Nan Li
a5c3731f5d sdio: optimize sdio tuning print [1/1]
PD#SWPL-14443

Problem:
sdio tuning print info is too much.

Solution:
optimize tuning print.

Verify:
tl1

Change-Id: Ia0a0315eb30480b0014aa1e35d12b50576221f2e
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-10-15 23:29:45 -07:00
Xihai Zhu
d125c20511 amvecm: have CMS setting applied in isr [1/1]
PD#SWPL-15013

Problem:
CMS setting is overrided by CM2 apply

Solution:
similar as CM2 apply, have CMS setting get
programed in isr

Verify:
tl1

Change-Id: I662c6c4eaff62cc031d0ca58186a83921bbc0224
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-10-15 23:02:51 -07:00