Commit Graph

648439 Commits

Author SHA1 Message Date
Xuhua Zhang
87d67d8a20 tvin: vdin: vdin afbce fix header size bug [1/1]
PD#SWPL-3208

Problem:
vdin afbce scaler, display abnormal.

Solution:
fix afbce header size problem.

Verify:
TL1 X301

Change-Id: I461b4aa809ceddbe18cf7f6f49e8152b43b86076
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
2018-12-14 00:50:35 -08:00
Brian Zhu
af6dc43213 tb_detect: add external canvas config when multi-dec source [1/1]
PD#IPTV-52

Problem:
vframe from multi-dec has no canvas index

Solution:
use external canvas index for vframe from multi-dec

Verify:
verified by u211

Change-Id: I767f86e492cddb9cc054c048de7078d2f6b85d33
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2018-12-14 00:14:53 -08:00
Shunzhou Jiang
ff110c4b58 clk: tl1: fix sys_pll overflow in 32bit system. [1/1]
PD#SWPL-2830

Problem:
sys_pll value overflow

Solution:
round pll div 1000

Verify:
TL1 SKT

Change-Id: Ia707be9aa6d22366b6da032739b8432602d21698
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2018-12-14 00:13:08 -08:00
Evoke Zhang
dd435bee5f arm: dts: t309: enable tcon od memory support [1/1]
PD#SWPL-3130

Problem:
t309 don't support tcon od default

Solution:
add tcon od memory support

Verify:
t309

Change-Id: I0aeaed65dfe9ca138c7f3035d5d505598e10c1d6
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-12-13 23:55:56 -08:00
yicheng shen
47966923ad hdmirx: fix hdcp2.2 cant work after resume issue [1/1]
PD#SWPL-3187

Problem:
hdcp2.2 cant work after resume

Solution:
Update ESM hard reset handle

Verify:
Local

Change-Id: If8e94db2c2882896b547410537652056bc902f47
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2018-12-13 23:55:14 -08:00
Kaifu Hu
f6db757b3b hdmitx: default set frac_rate_policy to 1 [1/1]
PD#SWPL-1955

Problem:
The /sys/class/amhdmitx/amhdmitx0/frac_rate_policy is 0 when
uboot not contain frac_rate_policy

Solution:
Default set frac_rate_policy to 1

Verify:
T962e/R321

Change-Id: Ifff2dbaeef0a3012a730d14405963d994f3eeed3
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
2018-12-13 23:48:48 -08:00
Bichao Zheng
459d5c28ba gpio-led: g12b: add system led control for w400 [2/2]
PD#SWPL-3008

Problem:
g12b_w400 need add led control

Solution:
Add system led control for w400

Verify:
g12b_w400

Change-Id: I7b27af95c92f06bb0ca89e00aeccc65f398dad70
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2018-12-13 23:48:10 -08:00
Yonghao Jiao
5183b614ce audio: add tas5805 [1/1]
PD#SWPL-3081

Problem:
compatiable tas5805 module

Solution:
add tas5805 drivers

Verify:
T962X2

Change-Id: I3608e47fe768af0f924751a8bcc103389d0811de
Signed-off-by: Yonghao Jiao <yonghao.jiao@amlogic.com>
2018-12-13 21:46:31 -08:00
Zhongfu Luo
c8179ddf52 dts: GXL: defendkey: modify reserve memory mode [2/2]
PD#SWPL-2100

Problem:
GXL need to modify reserve memory mode

Solution:
remove defendkey reserved memory in GXL dts

Verify:
GXL skt board verify pass

Change-Id: Ie5ed01c6dd8f88c5594d6bc73f13282e535071a2
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2018-12-13 19:30:15 -08:00
Zhiwei Yuan
f3b2df252c dtv_demod: "No signal" is seen when video is playing [1/1]
PD#SWPL-3019

Problem:
Unplug the DTV signal, then do AC off then on, enter DTV source, plug the DTV signal, then change channel, the current channel will display abnormally, the video will display with "no signal" together

Solution:
sync the signal status(using read sts interface) with tuning result

Verify:
verified by T962-P321-DDR4

Change-Id: I3ba01dc976c40391f3f305a3754632d2cccfd571
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
2018-12-13 08:23:26 -08:00
MingLiang Dong
fcb2484182 amvecm: add color primary get ioctrl [1/1]
PD#TV-1463

Problem:
new interface

Solution:
add color primary get ioctrl

Verify:
verify on TL1

Change-Id: I0d4880b6a224be153e80b3eeb11bb5a0352f9ed5
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2018-12-13 08:22:40 -08:00
Shuyu Li
5faa703a27 audio: auge: The recorded data L/R channel has 7.5 degree phase diff [1/1]
PD#SWPL-3145

Problem:
The L/R channel has 7.5 degree phase diff

Solution:
Change reg_tdmin_in_rev_ws of EE_AUDIO_TDMIN_X_CTRL 1->0

Verify:
Verify by T962x2_X301 board

Change-Id: I6ca624db10ff96481dd7f413d9f184aeee8c95b3
Signed-off-by: Shuyu Li <shuyu.li@amlogic.com>
2018-12-13 08:05:59 -08:00
Zhiwei Yuan
6b993b420c dtv_demod: TL1,dtmb,change frequency,show "no signal" at first [1/1]
PD#SWPL-3025

Problem:
Different frequency channel switch, the channel first pops up "no signal" and then displays the channel

Solution:
do dtmb sw reset before re-tune

Verify:
verified by t962x2_x301

Change-Id: Ibc14de37f2f3f6b07af4d125e9fb58dd308e61c4
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
2018-12-13 08:04:11 -08:00
Zhongfu Luo
9c23b71655 dts: G12B: defendkey: support secure upgrade check [3/3]
PD#SWPL-2348

Problem:
G12B need to support secure upgrade check

Solution:
add defendkey support in all G12B dts

Verify:
G12B skt board verify pass

Change-Id: I2c3f51e761531cf2169dda483991b3d876039686
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2018-12-13 08:01:41 -08:00
MingLiang Dong
e15c9a6a33 hdr: Enable default output to HDR for HDR TV [1/1]
PD#SWPL-3096

Problem:
G12A/G12B need enable sdr2hdr

Solution:
enable sdr2hdr function

Verify:
verify on G12A

Change-Id: I1e771a13d33fe675cfc36d8308afc37077545cd4
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2018-12-13 08:00:33 -08:00
Chao Liu
ab7544ff12 dts: add the attestationkeybox of unifykey for dts files missing this node [1/1]
PD#SWPL-3189

Problem:
some boards can't write attestationkeybox.

Solution:
add the attestion node.

Verify:
txl_t962_p321_720p

Change-Id: Ic57fb00a4174f2d3d67bd8861710b6d9a560eaa2
Signed-off-by: Chao Liu <chao.liu@amlogic.com>
2018-12-13 07:59:59 -08:00
Zongdong Jiao
af49597a0f hdmitx: fix a resmue panic isse [1/1]
PD#SWPL-3188

Problem:
When HDMI cable is not connected(that is CVBS out), and system
may be panic after resume.

Solution:
Add NULL pointer protection check

Verify:
P212

Change-Id: I60818faaf7049667501e31990fa557b754ea7f1b
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2018-12-13 03:00:18 -08:00
Pengguang Zhu
835fa2d441 board: get ao_register_base from dts [1/1]
PD#SWPL-3203

Problem:
android P can not boot up on G12A with 32bit kernel

Solution:
get register base from dts

Verify:
Local

Change-Id: Ifb3163a867c1c8ed4f8c344d064cead216334773
Signed-off-by: Pengguang Zhu <pengguang.zhu@amlogic.com>
2018-12-13 01:16:16 -08:00
keke.li
3369b7350a gdc: add a convert function to map dma address [1/1]
PD#SWPL-2157

Problem:
gdc module need to get dma address directly

Solution:
add a convert function to map dma address

Verify:
g12b

Change-Id: I1d40350e4727335d1f69f38caafb1dfe7b0db842
Signed-off-by: Keke Li <keke.li@amlogic.com>
2018-12-13 00:46:31 -08:00
Zhongfu Luo
a159d3b551 dts: TXLX: defendkey: support secure upgrade check [3/3]
PD#SWPL-2344

Problem:
TXLX need to support secure upgrade check

Solution:
add defendkey support in all TXLX dts

Verify:
TXLX skt board verify pass

Change-Id: Ice348161f0a01698bc40e9fb291d1020f478b1fa
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2018-12-12 23:18:29 -08:00
Tao Zeng
00dc43b368 mm: fix suspend crash on u200 [1/1]
PD#SWPL-1219

Problem:
When open vmap stack, suspend will fail on U200. If open cpu idle,
resume from idle will fail too.

Solution:
set up vmap stack early before open IRQ. If set up this stack late
than IRQ open, stack will point to a ramdom address

Verify:
u200

Change-Id: Ie60f6faadf9afece47ccc887a0af46814f070897
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2018-12-12 23:16:47 -08:00
Yingyuan Zhu
8ad0509384 watchdog: Change the feed watchdog mode [1/1]
PD#SWPL-2378

Problem:
Using Android to feed watchdog is not easy to debug the
crash problem, in addition, the Android does not open
the dog feeding service.

Solution:
Change the DTS configuration and change into driver feed watchdog.

Verify:
test pass on g12a-u200

Change-Id: Ie0a91fd8451fdccf3038ba6290a277c9048c52cd
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
2018-12-12 18:47:09 -08:00
Jiamin Ma
820dbdca72 debug: show pfn info when undefined instr happens at user space [1/1]
PD#SWPL-3076

Problem:
Lack of debug infos when undefined instr happens at user space

Solution:
Call show_all_pfn when undefined instr happens at user space

Verify:
Locally on ampere

Change-Id: Id24e797c2781c94c507ad07ec17a3d4ae7d44cd9
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2018-12-12 18:18:55 -08:00
nengwen.chen
75ddc94b8d atv_demod: reduce atv demod debug info when searching. [1/1]
PD#SWPL-2712

Problem:
reduce atv demod debug info when searching.

Solution:
reduce atv demod debug info when searching.

Verify:
verified by r311

Change-Id: I01f1cebabdacdea4bb7695c2133b99157d8db19d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-12-12 07:07:00 -08:00
Sandy Luo
d117e0ae9d dts: sync difference between arch32 and arch64 [1/1]
PD#SWPL-959

Problem:
sync arch32 and arch64 dts.

Solution:
sync arch32 and arch64 dts.

Verify:
r311

Change-Id: Id411e7dddad0491b16149fe33847e9e282d81a97
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
2018-12-12 01:49:08 -08:00
Shuyu Li
049fac9774 audio: codec: the DAC gain set of acodec not work [1/1]
PD#SWPL-3134

Problem:
the DAC gain set is not work

Solution:
update and aml_codec_tl1_acodec.c, change the method of
getting codec pointer from kcontrol pointer.

Verify:
verify by T962x2_X301 board

Change-Id: I02f02b73fab3b8391ef4866a71ffaf0d48bbbbbf
Signed-off-by: Shuyu Li <shuyu.li@amlogic.com>
2018-12-12 01:32:51 -08:00
Huan Biao
99ce99f6e7 arm: dts: tl1: optimize ipa parameter [1/1]
PD#SWPL-3140

Problem:
tl1 ipa coeff and power data no match test data

Solution:
tl1 ipa coeff and power data update for match chip test data

Verify:
tl1 x301 pass

Change-Id: Idcf1cf7c317e0b3ebb0becb057b4c8fa35e64a62
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2018-12-11 23:51:32 -08:00
liangzhuo.xie
c804280222 dts: add video11 and video12 for screenrecord [2/6]
PD#SWPL-209

Problem:
add screenrecord function

Solution:
add video11 and video12 for screenrecord

Verify:
verify by t962_p321

Change-Id: I0d33d9d01704b6fe6e5c7dbeccb1fb2be68904b3
Signed-off-by: liangzhuo.xie <liangzhuo.xie@amlogic.com>
2018-12-11 23:39:56 -08:00
nengwen.chen
c95d2a912e dtv_demod: DTV search menu does not have ISDB-T entry [4/6]
PD#SWPL-1664

Problem:
DTV search menu does not have ISDB-T entry

Solution:
add ISDB-T system support.

Verify:
verified by einstein

Change-Id: Ie0bdc988d53256487e24c3123320b50f2a58cdf3
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-12-11 22:42:46 -08:00
Jian Xu
afb2ca22d8 audio: codecs: fix TL1 reference board volume too small [2/2]
PD#SWPL-2652

Problem:
    X301/T309 AMP volume configured to small

Solution:
    change the default external AMP codec mixer name to a match
    the ini parsing function in audio hal.
    TODO: need dynamically check the different codec mixer name
    in ini file.

Verify:
    verify by x301

Change-Id: Iba835d37ea02bec3095556d54fbf327bd6390904
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
2018-12-11 21:25:14 -08:00
he.he
ed988b87f0 usb: adb panic [1/1]
PD#SWPL-2678

Problem:
adb panic in release_ffs_buffer

Solution:
1.when kzalloc data_ep use GFP_ATOMIC  instead of GFP_KERNEL
and keep spin lock protection.
2.check buffer_temp->data_ep == NULL, return

Test: adb push

Verify:
verified by he he

Change-Id: I3402b17d62b8a0ef4e3185a87729a0c3e87449e9
Signed-off-by: he.he <he.he@amlogic.com>
2018-12-11 19:37:08 -08:00
Bencheng Jing
81bc3489b9 pq: fix sr registers load fail on txl [1/1]
PD#SWPL-2941

Problem:
sr top ctrl is closed when video off

Solution:
txl and txl sr top don't close

Verify:
TxL

Change-Id: Ia8e7e3bd93dd328497af66cf9758e3021cafe22c
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2018-12-11 19:35:43 -08:00
Evoke Zhang
5a189ac9fb lcd: add od support for tl1 tcon [1/1]
PD#SWPL-2759

Problem:
need over-driver function for tl1 tcon

Solution:
add tcon cma memory and od setting support

Verify:
x301

Change-Id: I926d221fef3317be8b3879a35298035ac9babcce
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-12-11 19:34:25 -08:00
Wenfeng Guo
01e29ceb6d deinterlace: open pulldown_enable debug node [1/1]
PD#SWPL-3003

Problem:
pulldown_enable constraintd by DEBUG_SUPPORT

Solution:
open pulldown_enable debug node

Verify:
TL1

Change-Id: Ib0a39a718f5e0f171bf9c1d850912bf4afa6a9d5
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
2018-12-11 19:32:30 -08:00
Evoke Zhang
9d1103c2da backlight: ldim: add fault reset handle for iw7027 [1/1]
PD#SWPL-1161

Problem:
sometims iw7027 work failure, need reset to recovery

Solution:
add reset handler triggered by fault pin

Verify:
txlx r311

Change-Id: I9c65f0b982ac5e52ff9bd5e43f9df516df2af184
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-12-11 19:10:09 -08:00
Evoke Zhang
bad9051734 vpp: update ofifo vs_pol config for tl1 [1/1]
PD#SWPL-3049

Problem:
vpp ofifo positive vs_pol can't fit all the display situation

Solution:
change vpp ofifo vs_pol to negative

Verify:
x301

Change-Id: I539c3514c0f3638a9d90c9c4a71a6c9863dac79a
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-12-11 18:46:41 -08:00
tao zeng
08fbfd263a mm: optimize stack usage for functions [1/1]
PD#SWPL-1773

Problem:
After adding optimization of vmap stack, we can found stack usage
of each functions when handle vmap fault. From test log we see some
functions using large stack size which over 256bytes. Especially
common call path from fs. We need to optimize stack usage of these
functions to reduce stack fault probability and save stack memory
usage.

Solution:
1. remove CONFIG_CC_STACKPROTECTOR_STRONG and set STACKPROTECTOR to
   NONE. This can save stack usage add by compiler for most functions.
   Kernel code size can also save over 1MB.
2. Add some noinline functions for android_fs_data rw trace calls. In
   these trace call it allcated a 256 bytes local buffer.
3. Add a wrap function for mem abort handler. By default, it defined a
   siginfo struct(size over 100 bytes) in local but only used when fault
   can't be handled.
4. reduce cached page size for vmap stack since probability of page
   fault caused by stack overflow is reduced after function stack usage
   optimized.
Monkey test show real stack usage ratio compared with 1st vmap
implementation reduced from 35% ~ 38% to 26 ~ 27%. Which is very
close to 25%, theory limit.

Verify:
P212

Change-Id: I5505cacc1cab51f88654052902852fd648b6a036
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2018-12-11 18:31:19 -08:00
Jihong Sui
1d3dbed185 deinterlace: pq: adjust cue setting for tl1 [1/1]
PD#SWPL-2984

Problem:
VLSI(yanling.liu) fine-tune cue setting for TL1.

Solution:
add new setting.

Verify:
tl1

Change-Id: I99c32d994687650dc851dd2fb8c0464e8ffd21b5
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2018-12-11 18:30:21 -08:00
Pengcheng Chen
d33d065a44 osd: remove phys_to_vir to prevent crash on the 32bit & 2G boadr [1/1]
PD#SWPL-3079

Problem:
phys_to_vir in height mem rw caused crashed.

Solution:
remove phys_to_vir(dd funs not work)

Verify:
tl1

Change-Id: Ic9679471a51974cabf84b61efe90c88e845d01ea
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2018-12-11 17:35:30 -08:00
Hongmin Hua
dd29e42767 cec: add the port map for connect status [1/1]
PD#SWPL-3010

Problem:
the arc can't work

Solution:
add the port map for connect status

Verify:
verified on darwin

Change-Id: I9f886c35de8670acdc431185bb26aa1836a8c150
Signed-off-by: Hongmin Hua <hongmin.hua@amlogic.com>
2018-12-11 17:33:05 -08:00
Yi Zeng
0a79c07658 nand: fix the free-node leak in rsv manager [1/1]
PD#SWPL-2776

Problem:
did not release the free node of rsv information

Solution:
release free node and set bit mask in right way

Verify:
S400

Change-Id: I781f2374b91ca1e7cd1a66e75fc554318737c377
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2018-12-11 01:07:01 -08:00
Ruixuan Li
1407ac534a emmc: modify device node name [1/1]
PD#SWPL-2719

Problem:
Can't idetify correctlly when move disk have multi
partition

Solution:
Remove the function of using the partition name as
the device node name

Verify:
test pass on tl1 ref board

Change-Id: I113e63f209c529149fb94b0bb10b0b254717c2bf
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2018-12-11 14:31:06 +08:00
Jian Cao
c2d5799324 video: fix picdec coverity error [1/1]
PD#SWPL-2797

Problem:
fix picdec coverity error

Solution:
solve picdec coverity issues

Verify:
verified on P212

Change-Id: Iee0a7beb3fbf8382e9dd4207075df85171ed62ae
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2018-12-10 20:01:01 -08:00
Jian Cao
51b1f6cdd5 video: fix ppmgr coverity error [1/1]
PD#SWPL-2797

Problem:
fix ppmgr coverity error

Solution:
solve ppmgr coverity issues

Verify:
verified on P212

Change-Id: I05b837073ec9c981004320afaa0680648198d5b3
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2018-12-10 19:57:52 -08:00
Jian Cao
a589dd144b osd: fix ge2d coverity error [1/1]
PD#SWPL-2798

Problem:
fix ge2d coverity error

Solution:
add return val timeout for waiting completion

Verify:
verified on P212

Change-Id: Iaacf3f5b30721eb5d72d3c355f0404f4848969b5
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2018-12-10 19:22:52 -08:00
Jian Cao
124a3c9fcd osd: fix osd coverity error [1/1]
PD#SWPL-2798

Problem:
fix osd coverity error

Solution:
solve osd coverity issues

Verify:
verified on P212

Change-Id: I9714e3b229786d39ffa5a150633d59082bdf3549
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2018-12-10 19:22:01 -08:00
Dezhi Kong
f938eedd95 vdin: optimize game mode process [1/1]
PD#SWPL-2145

Problem:
HDMI Rx Video path display latency of Game mode and Normal mode

Solution:
optimize game mode

Verify:
T962X-R311

Change-Id: Ib0a41915dfb088495c976d56ab812f90e31602f4
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2018-12-10 06:16:01 -08:00
Chuangcheng Peng
93f63edd13 dvb-core: compatile with 32bit in 64bit kernel [1/1]
PD#SWPL-3009

Problem:
32bit frontend app can't call ioctl in 64bit-kernel

Solution:
Add 32bit define in header and handle in dvb_frontend in 64bit-kernel

Verify:
Verify at android_p at R311

Change-Id: I63178803cfb1cf7d670e3c2b55f104e97f5afa63
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
2018-12-10 04:07:29 -08:00
Zhiwei Yuan
3630dc64c4 dtv_demod: TL1 timeshift display have a lot mosaic [1/1]
PD#SWPL-2618

Problem:
TL1 timeshift display have a lot mosaic

Solution:
tune ts clk to a smaller value

Verify:
verified by t962x2_x301

Change-Id: I89c8cdb3317e42101fc8f161436d33ccd0761945
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
2018-12-10 03:24:15 -08:00
Zhongfu Luo
995ce1eeca dts: G12A: defendkey: support secure upgrade check [4/4]
PD#SWPL-2347

Problem:
G12A need to support secure upgrade check

Solution:
add defendkey support in all G12A dts

Verify:
G12A skt board verify pass

Change-Id: I7343c2c553dfe776eefcfff9ab3a270c87014118
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
2018-12-10 00:16:42 -08:00