Commit Graph

653562 Commits

Author SHA1 Message Date
Tao Zeng
6b25d1971c kasan: bring up KASAN for 32bit os [2/2]
PD#SWPL-7085

Problem:
Currently kasan can't be used on 32bit kernel, it's difficult to debug
memory problems;

Solution:
Bring up KASAN on 32bit kernel

Verify:
p212

Change-Id: I4d80568f023315994e969c79b786eba856177c9c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-07-23 17:52:49 +09:00
Jian Cao
1fa91fd8f7 gdc: add gdc interface with loading fw [1/2]
PD#SWPL-4611

Problem:
add gdc interface with loading fw

Solution:
add new gdc interface to request firmware

Verify:
Verfied on G12B-W400

Change-Id: Id8e0d600eec5f4777511b1fc0e38a1773db9e9cb
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-07-23 17:52:49 +09:00
Bencheng Jing
253155a220 amvecm: fix dnlp iRgnBgn and iRgnEnd not load db value [1/1]
PD#SWPL-7262

Problem:
dnlp iRgnBgn and  iRgnEnd not load db value

Solution:
add refresh of iRgnBgn and  iRgnEnd.

Verify:
on x301

Change-Id: I81ae91490a7fd2899eefd4f800948851ebbf21e7
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-07-23 17:52:49 +09:00
Brian Zhu
634cd20ebf vpp: don't overwrite on_pending state when enable vd layer [1/1]
PD#OTT-3244

Problem:
When vd layer state is on_pending, calling enable videolayer
function will overwrite the state. Then it will not enable video
layer really.

Solution:
Add the judgement to check if the state is on_pending.

Verify:
verified on W400

Change-Id: I0513a6610fdb108bec05858c7f6c7976be5e7edb
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-07-23 17:52:49 +09:00
wenbiao zhang
4602afe4f4 suspend: not do suspend action under freeze mode [1/1]
PD#TV-4213

Problem:
can't wake up by gpio/adc key when suspend into freeze mode

Solution:
not suspend gpio/adc when freeze

Verify:
X301

Change-Id: I32ff27aafebe35d8deb6e9b4d3daee686bbf90bc
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
2019-07-23 17:52:49 +09:00
changqing.gao
33081d7a7b binder: fix memory leak [1/1]
PD#TV-3541

Problem:
1.only vmalloc 4KB at first.
2.if user space need more memory, try to allocate a new vmalloc
  range with large size and move all related data to new place.
3.the first 4KB is not free when release this binder.

Solution:
free the first 4KB when release binder.

Verify:
R311

Change-Id: I4429de04a260671e4626b77ec340e47e436d5c8d
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
2019-07-23 17:52:49 +09:00
Jianxin Pan
0ee99c6667 debug: improve ftrace_ramoops for io trace [2/2]
PD#SWPL-6028

Problem:
improve ftrace_ramoops to debug bus hang

Solution:
1. in uboot
setenv initargs $initargs ramoops_io_en=1 loglevel=3;save;reset
2. in linux command line:
cat /sys/module/kernel/parameters/ramoops_io_en
to check if success.
3. after watchdog reboot, get trace data with:
cat /sys/fs/pstore/ftrace-ramoops-0

Verify:
TL1 x301

Change-Id: If1a2582b40a3ded31eedef5355eb0b8a5bf495c3
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-07-23 17:52:49 +09:00
Jiamin Ma
aab4437abf earlycon: support aml-uart as the name for earlycon [1/1]
PD#SWPL-6969

Problem:
For some historical reason, aml-uart is configured as the earlycon
name in uboot, which is not recognized by 4.9 kernel

Solution:
support aml-uart as the name for earlycon

Verify:
Ampere

Change-Id: I53463ac6d27ff3e911aa675cd5d10d6cbf26ba05
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2019-07-23 17:52:49 +09:00
Nanxin.Qin
c5e757bfda media: add the register sets for parser B [1/1]
PD#SWPL-5417

Problem:
bringup sm1 and tm2.

Solution:
add the register sets for parser B.

Verify:
AB311

Change-Id: I3c1620d69260f92c8d1590976950030604b7dd80
Signed-off-by: Nanxin.Qin <nanxin.qin@amlogic.com>
2019-07-23 17:52:49 +09:00
nengwen.chen
88121f95e0 atv_demod: fix audio config (PAL_M, NTSC_M) when video is PAL [1/1]
PD#TV-4274

Problem:
fix audio config (PAL_M, NTSC_M) when video is PAL.

Solution:
fix audio config (PAL_M, NTSC_M) when video is PAL

Verify:
verified by x301.

Change-Id: I9be8d71d52a226b6422317be0b77ca6331f23147
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
Xing Wang
cc4abdec93 dts: audio: update vad for sm1 [1/1]
PD#SWPL-5427

Problem:
lack vad function for sm1

Solution:
add vad function for sm1

Verify:
ac200

Change-Id: Ib4118b16405102a72f98ff65396e6f9d98f97bca
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-07-23 17:52:49 +09:00
Ting Li
db6f61dcaf picdec: add picdec dev node for u200 u211 u212 w400 sm1 [1/1]
PD#SWPL-4551

Problem:
ImagePlayer cannot play picture

Solution:
add picdec dev node for u200 u211 u212 w400

Verify:
franklin

Change-Id: I35cc28e2ab06367f33a7326ce671b1ee461e6fb1
Signed-off-by: xi an <an.xi@amlogic.com>
Signed-off-by: li ting <ting.li@amlogic.com>
2019-07-23 17:52:49 +09:00
Bencheng Jing
3d7231006d amvecm: fix CM/sat/bricon adjust not available [1/2]
PD#SWPL-6892

Problem:
fix CM/sat/bricon adjust not available

Solution:
fix CM/sat/bricon adjust not available

Verify:
U212

Change-Id: Ia6a1aebda35550801d4c7e16807714b8349431a4
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-07-23 17:52:49 +09:00
Zhe Wang
4cc7c912e1 audio: AB311 bringup, init 2 AMPs AD82584f [1/1]
PD#SWPL-7174

Problem:
spk is out of work on AB311

Solution:
bringup AMP ad82584f

Verify:
AB311

Change-Id: I8771fc204b19eeebed5247ec4c8984acbf004372
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-07-23 17:52:49 +09:00
Jian Cao
a19d26e676 gdc: add trace_mode debug node for gdc timeout issue [1/2]
PD#GH-27

Problem:
gdc timeout when gdc processing data

Solution:
add trace_mode debug node

Verify:
verified on G12B-W400

Change-Id: I85ee5a4203c9da1af755844125716a844da54ad3
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-07-23 17:52:49 +09:00
Hanjie Lin
e4f5038214 mm: vmap: decrease wrps num [1/1]
PD#SWPL-6813

Problem:
sys_ptrace watchpoint can't stop

Solution:
decrease wrps num

Verify:
u212

Change-Id: I18947bd91f8dd07cedeebbfca6d7ce01107c6a3e
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2019-07-23 17:52:49 +09:00
Jianxin Pan
f88b9ab9f8 dts: debug: enable ftrace_ramoops for new tm2 dts [1/1]
PD#SWPL-6028

Problem:
enable ftrce in ramoops for new tm2 dtbs

Solution:
enable ftrce in ramoops for new tm2 dtbs

Verify:
verified ok

Change-Id: Ia7ee3b11784a69ef7d6b7671f9ad75c14ae477f7
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-07-23 17:52:49 +09:00
Blance Tang
a32adb0640 buildroot: Add missed amlogic-dt-id in U211 DTS file [1/1]
PD#SWPL-7177

Problem:
  Missing amlogic-dt-id in U211 DTS file

Solution:
  Add back amlogic-dt-id to U211 DTS file

Verify:
  Local

Change-Id: I6ef3243bfa3323e7eec5f8044e0b0fe2271fcfa0
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
2019-07-23 17:52:49 +09:00
Shuide Chen
213a12adcb osd: fix osd afbc can't display on android5.1 [1/1]
PD#SWPL-6869

Problem:
afbc can't display with android5.1, because blank enable
called before afbc set, which make osd enable not updated
and afbc not enable when hwc post frame

Solution:
if mali afbc enable, call osd enable.

Verify:
verified on x301

Change-Id: I1d727a586a66c6e7848d09dfb5c5b74ff7a2e3e6
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
2019-07-23 17:52:49 +09:00
Liang Ji
ca009f2dea partition: change vendor size [1/2]
PD#SWPL-6586

Problem:
Android P trunk can not compile 64bit kernel
Android P vendor size is not enough,
64bit kernel and isp so  etc ,
the size exceeds 256M

Solution:
change vendor size from 256M into 320M

Verify:
galilei

Change-Id: Icc7b3d7c8d56f5c361acf9722bba6422b8dc3af2
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
2019-07-23 17:52:49 +09:00
Yi Zhou
15908c9b34 dv: add polling interface for systemcontrol [1/1]
PD#SWPL-6338

Problem:
add polling interface for systemcontrol

Solution:
add polling interface for systemcontrol

Verify:
tm2

Change-Id: I1a0a9a3028592ee0df77b33c9c617cbdd9b07d70
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-07-23 17:52:49 +09:00
Nanxin Qin
0ec4248ec6 power: add is_support_pwr_ctrl function. [2/2]
PD#SWPL-5261

Problem:
bringup sm1 and tm2.

Solution:
add is_support_pwr_ctrl function.

Verify:
U212 and AC200

Change-Id: I7f392ea8f23ce6f4e610b98bdcc39c4fcc2e6444
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2019-07-23 17:52:49 +09:00
Yi Zhou
1ace026476 dv: fix error color when playing dv films with EL under tm2 platform [1/1]
PD#SWPL-6338

Problem:
error color when playing dv films with EL under tm2 platform

Solution:
bypass dv core

Verify:
tm2

Change-Id: I477ea5dbdcf2a0af3783aa62200809f2ed89be5e
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-07-23 17:52:49 +09:00
Yong Qin
cfd8ed74ce cec: cec bringup for tm2 [1/1]
PD#SWPL-6945

Problem:
bringup for tm2

Solution:
add chip support and modify dts

Verify:
tm2

Change-Id: I718c3b81912a3555e19866f96d392bfb09d27384
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-23 17:52:49 +09:00
cancan.chang
43cc425ff6 NNA: add NNA support on tm2 [1/1]
PD#SWPL-5623

Problem:
tm2 not support NNA now.

Solution:
add NNA support.

Verify:
Verified on tm2_ab319

Change-Id: Ib41544d0ebeb3f25442692ac3365ad3a5fc5d4ab
Signed-off-by: Cancan Chang <cancan.chang@amlogic.com>
2019-07-23 17:52:49 +09:00
Yi Zhou
699b1776d5 dv: add tm2 interface [1/1]
PD#SWPL-6338

Problem:
need to add dv interface in tm2

Solution:
choose dv in UI and play films, observe the video and
graphic

Verify:
ab301 verify ok

Change-Id: I5d85b195254a16bcc9046d258728bd41d8a809d5
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2019-07-23 17:52:49 +09:00
kunpeng.tang
cf5db798c4 dts: tm2 bring up,add h.264 encoder support [1/1]
PD#SWPL-6373

Problem:
tm2 has no h.264 encoder device path

Solution:
add in mesontm2.dtsi

Verify:
AB311

Change-Id: I7a3698eecb6917d3f4e698868cf3b66e7f350fad
Signed-off-by: kunpeng.tang <kunpeng.tang@amlogic.com>
2019-07-23 17:52:49 +09:00
Yue Wang
53f2f5affd pcie: bringup TM2 pcie [1/1]
PD#SWPL-5609

Problem:
bringup TM2 pcie.

Solution:
bringup TM2 pcie,all boards.

Verify:
TM2

Change-Id: I5477eeda03313c660b8162943ca33ff56bfc7e3c
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2019-07-23 17:52:49 +09:00
Jiamin Ma
b8c724e4f5 unifykey: securitykey: enable securitykey by default [1/1]
PD#SWPL-6823

Problem:
Securitykey driver fail to probe

Solution:
Enable securitykey in DTS by default

Verify:
TM2

Change-Id: I962f53c0e786fae85dc856e382b060f4f5f7347c
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2019-07-23 17:52:49 +09:00
zhiqiang liang
81b9387ac3 soc: add mailbox interface for dsp sec reg ops [3/3]
PD#SWPL-6583

Problem:
tm2 dsp bring up

Solution:
add the mbox interface

Verify:
AB311

Change-Id: Ifddb9bb0b22c651c5a0e02c2200874dcaa6dc2ce
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
2019-07-23 17:52:49 +09:00
qingwei.xu
5e65139400 dts: Optimization t962e2_skt、t962x3_skt logo CMA memory layout [1/1]
PD#SWPL-6373

Problem:
Optimization logo CMA memory layout

Solution:
Optimization logo CMA memory layout

Verify:
t962e2_skt

Change-Id: I03906452d35881ccd4e463715e5be7580740816d
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
2019-07-23 17:52:49 +09:00
qingwei.xu
a4180c7ed8 partion: increase vendor partion size for 32bit [1/1]
PD#SWPL-6373

Problem:
increase vendor partion size for 32bit kernel

Solution:
increase vendor partion size for 32bit kernel

Verify:
verify by t962e2_ab311

Change-Id: Ifb26b2b9f1ec4712177a5ca1a112d7c60ec4e70b
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
2019-07-23 17:52:49 +09:00
Nian Jing
ee4dfbabb0 vdin: close afbc mode current stage for tm2 [1/1]
PD#SWPL-6701

Problem:
afbc abnormal

Solution:
close afbc at current stage

Verify:
test pass on tm2 ab311

Change-Id: I5978caa5decb1536c2240467115395f422637c39
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2019-07-23 17:52:49 +09:00
MingLiang Dong
5dd838b123 amvecm: TM2 bringup LC/CM 12bit config [1/1]
PD#SWPL-6720

Problem:
video display color green

Solution:
TM2 bringup LC/cm 12bit config

Verify:
verify on TM2

Change-Id: I42b37e04566ebb5e2f6e7da3f0ade240471cdb33
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-07-23 17:52:49 +09:00
MingLiang Dong
672ffd58fb hdr: TM2 bringup disable lc/cm [1/1]
PD#SWPL-6720

Problem:
video display color green

Solution:
TM2 bringup disable lc/cm

Verify:
verify on TM2

Change-Id: I2d8222c92f8181710a13a56f650655281fac5115
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-07-23 17:52:49 +09:00
Brian Zhu
59ce4d5406 vpp: tm2: add vd2 function for tm2 [2/2]
PD#SWPL-6615

Problem:
Need vd2 function

Solution:
add vd2 function for tm2:
1.vd2 pps scaler
2.disable vd2 afbc

Verify:
test pass on tm2 skt

Change-Id: I7af5de741b90e443ee065218aecb823ef06d66a7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-07-23 17:52:49 +09:00
Jianxiong Pan
68f97f7e51 dts: rename tm2_t962e2_ab301.dts to tm2_t962x3_ab301.dts. [1/1]
PD#SWPL-6678

Problem:
rename tm2_t962e2_ab301.dts

Solution:
rename tm2_t962e2_ab301.dts to tm2_t962x3_ab301.dts.

Verify:
build pass.

Change-Id: Ia320b36323a56b5ae496fbd44ffcd2b38ada8ec1
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-07-23 17:52:49 +09:00
Hong Guo
55894c51b2 CPUFREQ: add cpufreq function for tm2 [1/1]
PD#SWPL-6732

Problem:
add cpufreq function for tm2.

Solution:
add cpufreq function for tm2.

Verify:
test passed on tm2 ab3100

Change-Id: Ic01c39f33ffb64b9bf5e419b8f2c55701b510a94
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-07-23 17:52:49 +09:00
Yue Wang
34ac02b40b usb: bringup TM2 usb3 [1/1]
PD#SWPL-5609

Problem:
bringup TM2 usb3.

Solution:
bringup TM2 usb3.

Verify:
TM2

Change-Id: Iea60a85e7d344f8f1cd44d07a634a6edd351218c
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2019-07-23 17:52:49 +09:00
Brian Zhu
bc9ae277e6 vpp: tm2: add vpp and sr support [1/2]
PD#SWPL-6615

Problem:
Need vpp and sr supprt for sm2

Solution:
add support for tm2

Verify:
test pass on tm2 skt

Change-Id: I0ae2cb178fcbe047cdfec6b4e200424178993e6e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-07-23 17:52:49 +09:00
Zhe Wang
1be2442829 audio: TM2: disable spk on skt board [1/1]
PD#SWPL-6721

Problem:
audio block start.

Solution:
disable spk on dts setting.

Verify:
Verified on T962e2_ab311

Change-Id: I85da808dad14d0b16b66ea4e07276980c6896aa4
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-07-23 17:52:49 +09:00
Shunzhou Jiang
dff85ddb0a power: sm1/tm2: add sleep and iso mask function [1/1]
PD#SWPL-6186

Problem:
add mask function

Solution:
add sleep and iso mask function

Verify:
sm1_skt

Change-Id: Ifbb7329fd1eb6e333d0332f53c809e7b2e55181d
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2019-07-23 17:52:49 +09:00
Jianxiong Pan
458caba175 dts: add tm2_t962e2_ab301.dts. [1/1]
PD#SWPL-6678

Problem:
need support tm2_t962e2_ab301.dts

Solution:
copy from tm2_t962e2_ab311.dts

Verify:
build pass.

Change-Id: I83c0f103399352b524a5203f22dc8d6f541b56a9
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2019-07-23 17:52:49 +09:00
qingweixu
2f3d65b83a partion: increase vendor partion size for 64bit [1/1]
PD#SWPL-6373

Problem:
increase vendor partion size for 64bit kernel

Solution:
increase vendor partion size for 64bit kernel

Verify:
verify by tm2_skt

Change-Id: I18afd344c4bd4b486407033103743816b8408205
Signed-off-by: qingweixu <qingwei.xu@amlogic.com>
2019-07-23 17:52:49 +09:00
Jian Cao
1a5b3c1941 osd: add osd TM2 support [1/1]
PD#SWPL-6558

Problem:
bring up osd for TM2

Solution:
osd: add osd TM2 support

Verify:
Verfied on TM2 skt board

Change-Id: I2183bd1f60793baf947c303b6d456e8c69d104ac
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2019-07-23 17:52:49 +09:00
Qianggui Song
9baaa45116 irqchip: tm2 irqchip support [1/1]
PD#SWPL-5651

Problem:
tm2 has 2 extra pins than tl1, should use new param data

Solution:
add tm2 param data

Verify:
T962e2_ab319

Change-Id: I77aaaead7b10024cd5f12354ba6b47db74ba96f5
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2019-07-23 17:52:49 +09:00
Evoke Zhang
cc554d4733 vpu: add tm2 support [1/1]
PD#SWPL-6397

Problem:
tm2 is a new chip

Solution:
add vpu driver support for tm2

Verify:
pxp

Change-Id: I19275c513b68fba8feced37f1ff8fca9bf48d395
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-07-23 17:52:49 +09:00
ruixuan.li
28597e230b tm2: make emmc run high speed [1/1]
PD#SWPL-5658

Problem:
emmc run hs200 report cmd18 rx data crc

Solution:
emmc run high speed first

Verify:
passed on t962e2_ab319

Change-Id: Iaeef33e38f7c5130ebfd0e7c5886459b8138a803
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
2019-07-23 17:52:49 +09:00
Yue Wang
84793b0b4b usb: bringup TM2 usb [1/1]
PD#SWPL-5609

Problem:
bringup TM2 usb.

Solution:
bringup TM2 usb.

Verify:
TM2

Change-Id: I61f388a516442064af5b21f4688f6787e9e358e9
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2019-07-23 17:52:49 +09:00
pan.yang
d2e30a3778 dts: modified t962ex_ab311 319 and t962x3_a309,pxp dts [1/1]
PD#SWPL-6560

Problem:
Need to change dts

Solution:
modified ab311 ab319 and ab309 and pxp

Verify:
test pass at skt_tm2

Change-Id: Iabc21582910f66b321b55928ce86d0958cb83503
Signed-off-by: pan yang<pan.yang@amlogic.com>
2019-07-23 17:52:49 +09:00