platform/kernel/linux-amlogic.git
5 years agosuspend: power: plug off the secondary cpus for freeze mode [1/1]
zhiqiang liang [Thu, 13 Dec 2018 08:53:27 +0000 (16:53 +0800)]
suspend: power: plug off the secondary cpus for freeze mode [1/1]

PD#SWPL-2399

Problem:
freeze mode can not kill the secondary cpus

Solution:
move the cpu kill function before the freeze function

Verify:
tl1 test success

Change-Id: I1da7cb8bcd800b8372fd152490eadd4ef3866ece
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
5 years agotvin: vdin: vdin add afbce write back to memory interface [1/1]
Xuhua Zhang [Thu, 13 Dec 2018 08:41:49 +0000 (16:41 +0800)]
tvin: vdin: vdin add afbce write back to memory interface [1/1]

PD#SWPL-3200

Problem:
vdin add afbce need more debug method.

Solution:
vdin add read_pic_afbce debug interface

Verify:
TL1 X301

Change-Id: I45a741ba20409dc25b41ce316b0df0dce9d2dc28
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
5 years agotvin: vdin: fix vdin CMA layout adaptation [1/1]
Xuhua Zhang [Thu, 29 Nov 2018 06:28:43 +0000 (14:28 +0800)]
tvin: vdin: fix vdin CMA layout adaptation [1/1]

PD#SWPL-2526

Problem:
1.CMA layout adaptation cause crash
2.vdin buff dump error
3.read_pic error

Solution:
1.codec mm has be moved to high memory area,
we should map memory use vmap.
2.make vdin high mem and low mem to be compatible
when we dump vdin buff.
3.fix read_pic bug.

Verify:
TXLX R311

Change-Id: I90e4f46ba91d38c6ce0f8bfd65b5c22e6be3b83f
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
5 years agotvin: vdin: vdin afbce fix header size bug [1/1]
Xuhua Zhang [Thu, 13 Dec 2018 09:16:31 +0000 (17:16 +0800)]
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>
5 years agotb_detect: add external canvas config when multi-dec source [1/1]
Brian Zhu [Wed, 12 Dec 2018 15:39:15 +0000 (23:39 +0800)]
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>
5 years agoclk: tl1: fix sys_pll overflow in 32bit system. [1/1]
Shunzhou Jiang [Tue, 27 Nov 2018 02:15:00 +0000 (10:15 +0800)]
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>
5 years agoarm: dts: t309: enable tcon od memory support [1/1]
Evoke Zhang [Wed, 12 Dec 2018 04:42:22 +0000 (12:42 +0800)]
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>
5 years agohdmirx: fix hdcp2.2 cant work after resume issue [1/1]
yicheng shen [Thu, 13 Dec 2018 06:28:35 +0000 (01:28 -0500)]
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>
5 years agohdmitx: default set frac_rate_policy to 1 [1/1]
Kaifu Hu [Fri, 30 Nov 2018 08:00:08 +0000 (16:00 +0800)]
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>
5 years agogpio-led: g12b: add system led control for w400 [2/2]
Bichao Zheng [Tue, 11 Dec 2018 02:59:09 +0000 (10:59 +0800)]
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>
5 years agoaudio: add tas5805 [1/1]
Yonghao Jiao [Wed, 12 Dec 2018 15:03:03 +0000 (23:03 +0800)]
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>
5 years agodts: GXL: defendkey: modify reserve memory mode [2/2]
Zhongfu Luo [Thu, 13 Dec 2018 09:06:23 +0000 (17:06 +0800)]
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>
5 years agodtv_demod: "No signal" is seen when video is playing [1/1]
Zhiwei Yuan [Wed, 12 Dec 2018 12:48:20 +0000 (20:48 +0800)]
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>
5 years agoamvecm: add color primary get ioctrl [1/1]
MingLiang Dong [Tue, 11 Dec 2018 09:16:24 +0000 (04:16 -0500)]
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>
5 years agoaudio: auge: The recorded data L/R channel has 7.5 degree phase diff [1/1]
Shuyu Li [Wed, 12 Dec 2018 08:25:47 +0000 (16:25 +0800)]
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>
5 years agodtv_demod: TL1,dtmb,change frequency,show "no signal" at first [1/1]
Zhiwei Yuan [Wed, 12 Dec 2018 07:10:14 +0000 (15:10 +0800)]
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>
5 years agodts: G12B: defendkey: support secure upgrade check [3/3]
Zhongfu Luo [Fri, 7 Dec 2018 12:14:50 +0000 (20:14 +0800)]
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>
5 years agohdr: Enable default output to HDR for HDR TV [1/1]
MingLiang Dong [Tue, 11 Dec 2018 10:37:04 +0000 (05:37 -0500)]
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>
5 years agodts: add the attestationkeybox of unifykey for dts files missing this node [1/1]
Chao Liu [Thu, 13 Dec 2018 06:19:31 +0000 (14:19 +0800)]
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>
5 years agohdmitx: fix a resmue panic isse [1/1]
Zongdong Jiao [Thu, 13 Dec 2018 05:31:27 +0000 (13:31 +0800)]
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>
5 years agoboard: get ao_register_base from dts [1/1]
Pengguang Zhu [Fri, 12 Oct 2018 11:46:00 +0000 (19:46 +0800)]
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>
5 years agogdc: add a convert function to map dma address [1/1]
keke.li [Tue, 27 Nov 2018 05:54:21 +0000 (13:54 +0800)]
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>
5 years agodts: TXLX: defendkey: support secure upgrade check [3/3]
Zhongfu Luo [Fri, 7 Dec 2018 10:14:38 +0000 (18:14 +0800)]
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>
5 years agomm: fix suspend crash on u200 [1/1]
Tao Zeng [Wed, 12 Dec 2018 06:37:26 +0000 (14:37 +0800)]
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>
5 years agowatchdog: Change the feed watchdog mode [1/1]
Yingyuan Zhu [Tue, 11 Dec 2018 08:37:32 +0000 (16:37 +0800)]
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>
5 years agodebug: show pfn info when undefined instr happens at user space [1/1]
Jiamin Ma [Wed, 12 Dec 2018 09:37:01 +0000 (17:37 +0800)]
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>
5 years agoatv_demod: reduce atv demod debug info when searching. [1/1]
nengwen.chen [Mon, 10 Dec 2018 12:06:41 +0000 (20:06 +0800)]
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>
5 years agodts: sync difference between arch32 and arch64 [1/1]
Sandy Luo [Wed, 12 Dec 2018 09:08:31 +0000 (17:08 +0800)]
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>
5 years agoaudio: codec: the DAC gain set of acodec not work [1/1]
Shuyu Li [Mon, 10 Dec 2018 08:47:24 +0000 (16:47 +0800)]
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>
5 years agoarm: dts: tl1: optimize ipa parameter [1/1]
Huan Biao [Wed, 12 Dec 2018 07:33:23 +0000 (15:33 +0800)]
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>
5 years agodts: add video11 and video12 for screenrecord [2/6]
liangzhuo.xie [Fri, 23 Nov 2018 02:36:11 +0000 (10:36 +0800)]
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>
5 years agodtv_demod: DTV search menu does not have ISDB-T entry [4/6]
nengwen.chen [Mon, 12 Nov 2018 12:44:35 +0000 (20:44 +0800)]
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>
5 years agoaudio: codecs: fix TL1 reference board volume too small [2/2]
Jian Xu [Tue, 11 Dec 2018 06:48:14 +0000 (14:48 +0800)]
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>
5 years agousb: adb panic [1/1]
he.he [Tue, 20 Nov 2018 05:57:37 +0000 (13:57 +0800)]
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>
5 years agopq: fix sr registers load fail on txl [1/1]
Bencheng Jing [Thu, 6 Dec 2018 08:53:17 +0000 (16:53 +0800)]
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>
5 years agolcd: add od support for tl1 tcon [1/1]
Evoke Zhang [Fri, 23 Nov 2018 05:10:06 +0000 (13:10 +0800)]
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>
5 years agodeinterlace: open pulldown_enable debug node [1/1]
Wenfeng Guo [Fri, 7 Dec 2018 08:12:00 +0000 (16:12 +0800)]
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>
5 years agobacklight: ldim: add fault reset handle for iw7027 [1/1]
Evoke Zhang [Wed, 31 Oct 2018 05:52:37 +0000 (13:52 +0800)]
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>
5 years agovpp: update ofifo vs_pol config for tl1 [1/1]
Evoke Zhang [Mon, 10 Dec 2018 06:08:48 +0000 (14:08 +0800)]
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>
5 years agomm: optimize stack usage for functions [1/1]
tao zeng [Wed, 7 Nov 2018 08:51:50 +0000 (16:51 +0800)]
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>
5 years agodeinterlace: pq: adjust cue setting for tl1 [1/1]
Jihong Sui [Fri, 7 Dec 2018 02:40:26 +0000 (10:40 +0800)]
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>
5 years agoosd: remove phys_to_vir to prevent crash on the 32bit & 2G boadr [1/1]
Pengcheng Chen [Tue, 11 Dec 2018 09:23:43 +0000 (17:23 +0800)]
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>
5 years agocec: add the port map for connect status [1/1]
Hongmin Hua [Tue, 11 Dec 2018 06:03:04 +0000 (14:03 +0800)]
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>
5 years agonand: fix the free-node leak in rsv manager [1/1]
Yi Zeng [Mon, 10 Dec 2018 07:57:18 +0000 (15:57 +0800)]
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>
5 years agoemmc: modify device node name [1/1]
Ruixuan Li [Mon, 3 Dec 2018 07:21:30 +0000 (15:21 +0800)]
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>
5 years agovideo: fix picdec coverity error [1/1]
Jian Cao [Fri, 7 Dec 2018 09:46:36 +0000 (17:46 +0800)]
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>
5 years agovideo: fix ppmgr coverity error [1/1]
Jian Cao [Thu, 6 Dec 2018 14:56:27 +0000 (22:56 +0800)]
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>
5 years agoosd: fix ge2d coverity error [1/1]
Jian Cao [Fri, 7 Dec 2018 09:52:12 +0000 (17:52 +0800)]
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>
5 years agoosd: fix osd coverity error [1/1]
Jian Cao [Thu, 6 Dec 2018 08:07:41 +0000 (16:07 +0800)]
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>
5 years agovdin: optimize game mode process [1/1]
Dezhi Kong [Mon, 12 Nov 2018 10:00:29 +0000 (18:00 +0800)]
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>
5 years agodvb-core: compatile with 32bit in 64bit kernel [1/1]
Chuangcheng Peng [Fri, 7 Dec 2018 10:16:13 +0000 (18:16 +0800)]
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>
5 years agodtv_demod: TL1 timeshift display have a lot mosaic [1/1]
Zhiwei Yuan [Thu, 29 Nov 2018 07:20:43 +0000 (15:20 +0800)]
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>
5 years agodts: G12A: defendkey: support secure upgrade check [4/4]
Zhongfu Luo [Fri, 7 Dec 2018 09:36:14 +0000 (17:36 +0800)]
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>
5 years agoddr: add bandwidth measure support for TL1 [1/1]
Tao Zeng [Mon, 10 Dec 2018 02:21:09 +0000 (10:21 +0800)]
ddr: add bandwidth measure support for TL1 [1/1]

PD#SWPL-2980

Problem:
ddr bandwidth measure is not enabled on TL1

Solution:
Add port config and dtsi for TL1

Verify:
t962x2_x301

Change-Id: I1fa932a179586f48e3698c53975b64b204a83731
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agomm: check phys_to_xxxx macro on 32bit OS [1/1]
tao zeng [Tue, 20 Nov 2018 04:14:57 +0000 (12:14 +0800)]
mm: check phys_to_xxxx macro on 32bit OS [1/1]

PD#SWPL-1909

Problem:
If physical address of a memory location is not in linear mapping
range, then any caller with phys_to_xxxx to get a pointer will
cause bug.

Solution:
Check input address range for phys_to_xxxx to get a BUG output.
This change is used for debug

Verify:
P212

Change-Id: I13bcaa3983e2d730b8d2bc03cd28c62585f49969
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
5 years agodefendkey: G12A: support secure upgrade check [3/4]
Zhongfu Luo [Fri, 7 Dec 2018 09:26:52 +0000 (17:26 +0800)]
defendkey: G12A: support secure upgrade check [3/4]

PD#SWPL-2347

Problem:
G12A need to support secure upgrade check

Solution:
1.modify reserve memory mode
2.only use cpu0 in defendkey write process

Verify:
G12A skt board verify pass

Change-Id: Iad771381e959a79dcba7a0adb862295fa5ba5dee
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agolcd: update tcon_pll lock setting for tl1 [1/1]
Evoke Zhang [Fri, 7 Dec 2018 03:27:24 +0000 (11:27 +0800)]
lcd: update tcon_pll lock setting for tl1 [1/1]

PD#SWPL-2983

Problem:
tcon_pll lock is affected by VDDEE voltage

Solution:
change tcon_pll lock setting to avoid VDDEE effection

Verify:
x301

Change-Id: I2f9d4638274fe3acdf5d8954b3670e7c108782e1
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agomedia: add get free handle cmd [4/9]
Tao Guo [Sun, 4 Nov 2018 03:22:49 +0000 (03:22 +0000)]
media: add get free handle cmd [4/9]

PD#SWPL-1081

Problem:
Need get freed handle for DRM frame mode

Solution:
Add ioctl cmd to get freed handle

Verify:
P212

Change-Id: Ic0ce64061e334fdea5580d9f92b3e0b58caa88eb
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
5 years agoBT: resolve bt remote re-connected fail [1/1]
qiu.zeng [Fri, 7 Dec 2018 02:49:08 +0000 (10:49 +0800)]
BT: resolve bt remote re-connected fail [1/1]

PD#SWPL-2735

Problem:
bt remote re-connected fail

Solution:
control bluetooth opwer up

Verify:
Verifying on Public Edition r311

Change-Id: I8c74442894f606d5afd992e52d6c80bada0aed9f
Signed-off-by: Qiu Zeng <qiu.zeng@amlogic.com>
5 years agovideo: sr: add the missing bit mask for sr core1 [1/1]
Brian Zhu [Fri, 7 Dec 2018 06:21:43 +0000 (14:21 +0800)]
video: sr: add the missing bit mask for sr core1 [1/1]

PD#SWPL-2948

Problem:
Miss the sr core1 bit mask to cause display abnormal

Solution:
Add the bit mask for sr core1

Verify:
Test pass by x301

Change-Id: I742d86b610a9748adad7c143d7a85c6796d3c8f7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agomm: subtract CMA isolated pages when allocate TVP [1/1]
Tao Zeng [Thu, 6 Dec 2018 07:24:44 +0000 (15:24 +0800)]
mm: subtract CMA isolated pages when allocate TVP [1/1]

PD#SWPL-2933

Problem:
When allocate CMA pages in buildroot enverioment, system will
hung in congestion_wait:
Call trace:
[<ffffff8009086a78>] __switch_to+0xa0/0xc8
[<ffffff8009de3eb8>] __schedule+0x268/0x7d8
[<ffffff8009de4464>] schedule+0x3c/0xa0
[<ffffff8009de7c9c>] schedule_timeout+0x1b4/0x448
[<ffffff8009de3be8>] io_schedule_timeout+0x98/0x100
[<ffffff80091e3fb8>] congestion_wait+0x90/0x190
[<ffffff80091ebcf4>] isolate_migratepages_block+0x7ec/0x890
[<ffffff80091ec794>] isolate_migratepages_range+0x8c/0x100
[<ffffff8009a8f34c>] aml_alloc_contig_migrate_range+0x104/0x158
[<ffffff8009a8f518>] cma_boost_work_func+0x178/0x270
[<ffffff80090cc228>] kthread+0xf8/0x110
[<ffffff80090836c0>] ret_from_fork+0x10/0x50

Solution:
subtract isolated CMA pages when allocation large CMA for TVP.

Verify:
local

Change-Id: I96153cf104abb009a8965c2230a5242e495dd031
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agodts: TL1 ,change demod 8MB memory to CMA mode. [1/1]
Zhiwei Yuan [Thu, 6 Dec 2018 06:18:07 +0000 (14:18 +0800)]
dts: TL1 ï¼Œchange demod 8MB memory to CMA mode. [1/1]

PD#SWPL-2913

Problem:
for tl1 memory usage measurement

Solution:
use cma memory for dtmb instead of reserved

Verify:
verified by t962x2_x301

Change-Id: I7f5381a8458f5bbd9bbffc02c7fd792af92b783d
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
5 years agocodec_mm: show current tvp flag [1/2]
Tao Guo [Wed, 5 Dec 2018 06:39:36 +0000 (06:39 +0000)]
codec_mm: show current tvp flag [1/2]

PD#OTT-937

Problem:
When kill mediacodec during playing drm, tvp memory not be freed

Solution:
Check tvp flag in kernel, free tvp memory if flag is not zero

Verify:
P212

Change-Id: I35cbb2808bf179710ec59bd5227995949946ee77
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
5 years agoosd: fix afbc dd length error issue [1/1]
pengcheng chen [Mon, 26 Nov 2018 12:14:26 +0000 (20:14 +0800)]
osd: fix afbc dd length error issue [1/1]

PD#SWPL-2674

Problem:
fix afbc dd length error issue

Solution:
add afbc_len to set screen_size

Verify:
verified on g12a-u200

Change-Id: I00df7945f0f928efe2b8be88c56f10f20bb1700f
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agodeinterlace: add NR 5 line set for TL1 [1/1]
Jihong Sui [Fri, 30 Nov 2018 07:51:21 +0000 (15:51 +0800)]
deinterlace: add NR 5 line set for TL1 [1/1]

PD#SWPL-2850

Problem:
add NR 5 line set for TL1

Solution:
add NR setting

Verify:
TL1

Change-Id: Iba105103a38ec244190f7cefbe66e7d662c7d0a2
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agodts: fdto: the fdt is damaged in booting process [1/1]
Jiamin Ma [Thu, 6 Dec 2018 07:26:57 +0000 (15:26 +0800)]
dts: fdto: the fdt is damaged in booting process [1/1]

PD#SWPL-2960

Problem:
If the overlay dts refers to a node which does not exist in the base
device tree, the final fdt will be in a damaged state after doing fdt
overlay

Solution:
Use the standard overlay dts syntax to note node to be applied instead
of the google recommended one

Verify:
Locally on P230

Change-Id: Ibf45abff1348437bc3fc2745e6d955cc8292db46
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agocec: set the phy port the same as ui id [2/2]
Hongmin Hua [Fri, 30 Nov 2018 07:55:59 +0000 (15:55 +0800)]
cec: set the phy port the same as ui id [2/2]

PD#SWPL-2685

Problem:
the atom switch wrong channel when wakeup by device

Solution:
set the phy port the same as ui id

Verify:
atom

Change-Id: I4e43f83af5bb30a2388df7e7030f135c3f0830ad
Signed-off-by: Hongmin Hua <hongmin.hua@amlogic.com>
5 years agohdmirx: for dump tmds data [1/1]
Yong Qin [Fri, 30 Nov 2018 02:51:09 +0000 (10:51 +0800)]
hdmirx: for dump tmds data [1/1]

PD#SWPL-2931

Problem:
1.verify dump tmds data

Solution:
1.modify function and verify on tl1

Verify:
tl1

Change-Id: I36e922ba44f4f8c5201c9fb0869d65556a6e28c7
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoclk: g12a: add gen clock [1/1]
Jian Hu [Wed, 5 Dec 2018 08:48:19 +0000 (16:48 +0800)]
clk: g12a: add gen clock [1/1]

PD#OTT-1025

Problem:
not support gen clock

Solution:
add gen clock

Verify:
test passed on g12a u200

Change-Id: I5199289d3cd1483fffbbd41f8d104369214ba302
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agopinctrl: meson: add gen_clk_ee/ao pin groups for G12A/B [1/1]
Xingyu Chen [Wed, 5 Dec 2018 11:13:21 +0000 (19:13 +0800)]
pinctrl: meson: add gen_clk_ee/ao pin groups for G12A/B [1/1]

PD#OTT-1025

Problem:
don't support gen_clk_ee and gen_clk_ao pin groups

Solution:
add gen_clk_ee/ao pin groups according to the corepinmux document

Verify:
test pass on U200

Change-Id: Ia3e61079def285c482d8dc4957b5f9e7db35847d
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
5 years agomm: optimize thread stack usage on arm64 [1/1]
tao zeng [Mon, 15 Oct 2018 07:20:38 +0000 (15:20 +0800)]
mm: optimize thread stack usage on arm64 [1/1]

PD#SWPL-1219

Problem:
On arm64, thread stack is 16KB for each task. If running task number
is large, this type of memory may over 40MB. It's a large amount on
small memory platform. But most case thread only use less 4KB stack.
It's waste of memory and we need optimize it.

Solution:
1. Pre-allocate a vmalloc address space for task stack;
2. Only map 1st page for stack and handle page fault in EL1
   when stack growth triggered exception;
3. handle stack switch for exception.

Verify:
p212

Change-Id: I47f511ccfa2868d982bc10a820ed6435b6d52ba9
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
5 years agodv: fix the error hsize and vsize of dv core 2 [1/1]
Yi Zhou [Wed, 5 Dec 2018 06:21:03 +0000 (14:21 +0800)]
dv: fix the error hsize and vsize of dv core 2 [1/1]

PD#OTT-776

Problem:
dv core 2 get the error hsize and vsize from OSD module

Solution:
when opening 3 osd paths. we get the accurate the parameters again

Verify:
g12b s922

Change-Id: Ib6af084910c8cf1896060295c7cea75971cd86b6
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agodeinterlace: deinterlace: fix coverity error [1/1]
Jihong Sui [Tue, 4 Dec 2018 09:51:39 +0000 (17:51 +0800)]
deinterlace: deinterlace: fix coverity error [1/1]

PD#SWPL-2863

Problem:
cdev_add without checking return value.

Solution:
add check

Verify:
p212

Change-Id: Ib1d96f6e5ee07dd28f67eb4ee77acb6580a1f877
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agodeinterlace: deinterlace: set post_ctrl when no mirror [1/1]
Jihong Sui [Tue, 4 Dec 2018 09:25:29 +0000 (17:25 +0800)]
deinterlace: deinterlace: set post_ctrl when no mirror [1/1]

PD#SWPL-1076

Problem:
Kplayer 4KDemo.mp4, show green screen.

Solution:
add DI_IF1_GEN_REG set when no mirror

Verify:
p212

Change-Id: I2cfb27068393832fb47498ebdb9b93349f1fe635
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agoosd: add osd log module control [2/2]
Pengcheng Chen [Wed, 5 Dec 2018 05:45:55 +0000 (13:45 +0800)]
osd: add osd log module control [2/2]

PD#SWPL-2551

Problem:
add osd log module control

Solution:
add osd log module control

Verify:
verified on P212

Change-Id: Iadbf795cb7afe4ddcab0f9283b9c7f542eca0b29
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoosd: range of mouse is wrong under 4K mode [1/2]
Jian Cao [Wed, 5 Dec 2018 07:31:30 +0000 (15:31 +0800)]
osd: range of mouse is wrong under 4K mode [1/2]

PD#SWPL-2551

Problem:
range of mouse is wrong under 4K mode

Solution:
new cursor coordinate paras without using scale
add osd_cursor_hw_no_scale() to deal with it.

Verify:
verified on P212

Change-Id: I1748df569b96522eb58dc00af862983bca17815a
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoatv_demod: modify atv demod code [1/1]
nengwen.chen [Wed, 5 Dec 2018 05:37:41 +0000 (13:37 +0800)]
atv_demod: modify atv demod code [1/1]

PD#SWPL-2295

Problem:
1.modify atv demod code for coverity.
2.add ntsc-m ring filter for t962x2.
3.merge code optimization from android l.
4.add tuner compatible info in dts for tuner debug.

Solution:
1.modify atv demod code for coverity.
2.add ntsc-m ring filter for t962x2.
3.merge code optimization from android l.
4.add tuner compatible info in dts for tuner debug.

Verify:
verified by einstein

Change-Id: I9696aa628315ee11f0c9dd279c7cc03797f04331
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoarm: dts: t309: add t309-panel dtsi [1/1]
Evoke Zhang [Wed, 5 Dec 2018 09:48:21 +0000 (17:48 +0800)]
arm: dts: t309: add t309-panel dtsi [1/1]

PD#SWPL-2787

Problem:
Bringup tl1 t309.

Solution:
Add device tree for t309 panel dtsi.

Verify:
t309

Change-Id: Id6caf588a60e0cda20197d8e80363b049df3a7dd
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agodts: reduce isp memory usage for buildroot [1/1]
Jiacheng Mei [Mon, 3 Dec 2018 03:24:51 +0000 (11:24 +0800)]
dts: reduce isp memory usage for buildroot [1/1]

PD#SWPL-2512

Problem:
isp reserved mem too large

Solution:
reduce isp mem to 256M

Verify:
g12b-buildroot

Change-Id: I8e18f7618a069b43fa288221bca1943d5c3ebcc2
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
5 years agoarm: dts: x301: fix backlight pwm config mistake [1/1]
Evoke Zhang [Tue, 4 Dec 2018 02:08:48 +0000 (10:08 +0800)]
arm: dts: x301: fix backlight pwm config mistake [1/1]

PD#SWPL-2799

Problem:
can't power off backlight when disable lcd

Solution:
correct backlight pwm config

Verify:
x301

Change-Id: I6b869aa14c5b93e8f1a3b39c92629d5c2df3ab0d
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoarm: dts: tl1: add device tree for t309 boards [1/1]
Bichao Zheng [Wed, 5 Dec 2018 07:44:20 +0000 (15:44 +0800)]
arm: dts: tl1: add device tree for t309 boards [1/1]

PD#SWPL-2787

Problem:
Bringup tl1 t309.

Solution:
Add device tree for t309 boards base on x301.

Verify:
test pass on x301 board

Change-Id: I98e806b63a27a5e5f2952e9f33d1ac4239827b1d
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
5 years agohdmirx: power down the phy at suspend for tl1 [1/1]
Hongmin Hua [Wed, 28 Nov 2018 06:24:16 +0000 (14:24 +0800)]
hdmirx: power down the phy at suspend for tl1 [1/1]

PD#TV-1212

Problem:
the power comsuption is too high for hdmirx

Solution:
1.power down the phy at suspend
2.power on the phy at resume

Verify:
x301

Change-Id: I8920a6b38197109d424d225c4b31f5170b56ca08
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
5 years agolcd: mipi_dsi: update clk_post timing for dphy [1/1]
Evoke Zhang [Fri, 23 Nov 2018 13:55:44 +0000 (21:55 +0800)]
lcd: mipi_dsi: update clk_post timing for dphy [1/1]

PD#SWPL-2436

Problem:
sometime the dphy clk_post is not match spec

Solution:
update clk_post config

Verify:
w400

Change-Id: Ib6b585f833bf923e72109991509915f4ad35d316
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agohdmitx: parse colorattribute from uboot [2/2]
Zongdong Jiao [Thu, 29 Nov 2018 11:00:46 +0000 (19:00 +0800)]
hdmitx: parse colorattribute from uboot [2/2]

PD#SWPL-2181

Problem:
For some Rx, if the Tx cold boots up, the HPD can't be got in uboot.
That is to say, the output mode is CVBS in uboot, even HDMI cable is
connected. And during kernel boots up, it will reset to hdmi mode.
During the Android boots up, it will set to hdmi mode again. Twice
hdmi mode setting may cause TV flicks.

Solution:
Add parsing colorattribute from uboot and assign $attr to prevent
the second Android mode setting.

Verify:
S905X/P212

Change-Id: I665227bc3e8481acb40c34dde2f5cb3c633c64a2
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agomedia: video: fix cvbs black dot issue [1/1]
Nian Jing [Mon, 22 Oct 2018 08:36:28 +0000 (16:36 +0800)]
media: video: fix cvbs black dot issue [1/1]

PD#SWPL-1910

Problem:
Black dot on cvbsout when local play 4k

Solution:
Set limit rang when vpp output yuv for cvbs

Verify:
test pass on u200/s905x

Change-Id: Ia3e93078eb1a00d8c974bae8cc373a3a679f8b9f
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agohdmitx: add parsing for non-standard dv edid [1/1]
Yi Zhou [Mon, 26 Nov 2018 05:35:04 +0000 (13:35 +0800)]
hdmitx: add parsing for non-standard dv edid [1/1]

PD#SWPL-1968

Problem:
some error edid need to be parsed

Solution:
add parsing for non-standard dv edid

Verify:
t962e (txlx)

Change-Id: Ia952ed59650fd0b1c665ca03175a38c1cf3ae5bb
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agoarm: dts: fix wifi 32K Frequency offset [2/2]
bichao.zheng [Thu, 29 Nov 2018 12:25:10 +0000 (20:25 +0800)]
arm: dts: fix wifi 32K Frequency offset [2/2]

PD#SWPL-2623

Problem:
wifi 32K Frequency offset too large

Solution:
Modification cycle

Verify:
x301

Change-Id: I04724b0eacdffc1760b67689be373cb8f671a125
Signed-off-by: bichao.zheng <bichao.zheng@amlogic.com>
5 years agoaudio: codec: add tl1_acodec support for tl1 [1/1]
shuyu.li [Wed, 28 Nov 2018 11:24:14 +0000 (19:24 +0800)]
audio: codec: add tl1_acodec support for tl1 [1/1]

PD#SWPL-1759

Problem:
add tl1_acodec support

Solution:
add code, update xxx.dts and aml_codec_tl1_acodec.c

Verify:
verify by T962x2_X309 board

Change-Id: Ia91e4e0f113af3d537d1828c5c4cfabc127eac8f
Signed-off-by: shuyu.li <shuyu.li@amlogic.com>
5 years agovpp: sr: remove the vpp misc operation in sr function [1/1]
Brian Zhu [Mon, 3 Dec 2018 14:04:24 +0000 (22:04 +0800)]
vpp: sr: remove the vpp misc operation in sr function [1/1]

PD#SWPL-2613

Problem:
sr mux in vpp misc is set incorrectly.

Solution:
move the vpp misc operation together

Verify:
verify by x301

Change-Id: Ie813e5b04b97a4481c2e45bcf0c8b4c065fb9f69
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoarm64: dts: fix wifi 32K Frequency offset [2/1]
bichao.zheng [Thu, 29 Nov 2018 12:19:57 +0000 (20:19 +0800)]
arm64: dts: fix wifi 32K Frequency offset [2/1]

PD#SWPL-2623

Problem:
wifi 32K Frequency offset too large

Solution:
Modification cycle

Verify:
axg u211 p321 r311 p212

Change-Id: Ica04bec99ba2097918387a980b94dc007bb4eca4
Signed-off-by: bichao.zheng <bichao.zheng@amlogic.com>
5 years agofdto: peripheral driver support dtbo [2/4]
Jianxiong Pan [Thu, 22 Nov 2018 02:59:25 +0000 (10:59 +0800)]
fdto: peripheral driver support dtbo [2/4]

PD#SWPL-2193

Problem:
Node dummy-battery and dummy-charger are android version
dependent, and should be "fdt overlayed"

Solution:
Add fdt overlay file android_p_overlay_dt.dts, and configure
dummy-battery and dummy-charger in it

Verify:
Locally on P212 and R311

Change-Id: I75a27a0ad1253556cae5273f36e0eb828291fd73
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
5 years agofdto: peripheral driver support dtbo [1/4]
jiamin ma [Thu, 22 Nov 2018 01:34:44 +0000 (09:34 +0800)]
fdto: peripheral driver support dtbo [1/4]

PD#SWPL-2193

Problem:
We cannot compile dtbo file in a way like
make ARCH=arm foo.dtbo

Solution:
Add dtbo target and reuse the dtb rules

Verify:
Locally verifed

Change-Id: I34b88e61b409defe553cf5ed1077c160b9a6f350
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
5 years agoscripts/dtc: Update to upstream version v1.4.5-3-gb1a60033c110
Rob Herring [Tue, 3 Oct 2017 16:37:04 +0000 (11:37 -0500)]
scripts/dtc: Update to upstream version v1.4.5-3-gb1a60033c110

PD#SWPL-2193

This adds the following commits from upstream:

b1a60033c110 tests: Add a test for overlays syntactic sugar
737b2df39cc8 overlay: Add syntactic sugar version of overlays
497432fd2131 checks: Use proper format modifier for size_t
22a65c5331c2 dtc: Bump version to v1.4.5
c575d8059fff Add fdtoverlay to .gitignore
b6a6f9490d19 fdtoverlay: Sanity check blob size
8c1eb1526d2d pylibfdt: Use Python2 explicitly
ee3d26f6960b checks: add interrupts property check
c1e7738988f5 checks: add gpio binding properties check
b3bbac02d5e3 checks: add phandle with arg property checks
fe50bd1ecc1d fdtget: Split out cell list display into a new function
62d812308d11 README: Add a note about test_tree1.dts
5bed86aee9e8 pylibfdt: Add support for fdt_subnode_offset()
46f31b65b3b3 pylibfdt: Add support for fdt_node_offset_by_phandle()
a3ae43723687 pylibfdt: Add support for fdt_parent_offset()
a198af80344c pylibfdt: Add support for fdt_get_phandle()
b9eba92ea50f tests: Return a failure code when any tests fail
155faf6cc209 pylibfdt: Use local pylibfdt module
50e5cd07f325 pylibfdt: Add a test for use of uint32_t
ab78860f09f5 pylibfdt: Add stdint include to fix uint32_t
36f511fb1113 tests: Add stacked overlay tests on fdtoverlay
1bb00655d3e5 fdt: Allow stacked overlays phandle references
a33c2247ac8d Introduce fdt_setprop_placeholder() method
0016f8c2aa32 dtc: change default phandles to ePAPR style instead of both
e3b9a9588a35 tests: fdtoverlay unit test
42409146f2db fdtoverlay: A tool that applies overlays
aae22722fc8d manual: Document missing options
13ce6e1c2fc4 dtc: fix sprintf() format string error, again
d990b8013889 Makefile: Fix build on MSYS2 and Cygwin
51f56dedf8ea Clean up shared library compile/link options
21a2bc896e3d Suppress expected error message in fdtdump test
2a42b14d0d03 dtc: check.c fix compile error
a10cb3c818d3 Fix get_node_by_path string equality check
548aea2c436a fdtdump: Discourage use of fdtdump
c2258841a785 fdtdump: Fix over-zealous version check
9067ee4be0e6 Fix a few whitespace and style nits
e56f2b07be38 pylibfdt: Use setup.py to build the swig file
896f1c133265 pylibfdt: Use Makefile constructs to implement NO_PYTHON
90db6d9989ca pylibfdt: Allow setup.py to operate stand-alone
e20d9658cd8f Add Coverity Scan support
b04a2cf08862 pylibfdt: Fix code style in setup.py
1c5170d3a466 pylibfdt: Rename libfdt.swig to libfdt.i
580a9f6c2880 Add a libfdt function to write a property placeholder
ab15256d8d02 pylibfdt: Use the call function to simplify the Makefile
9f2e3a3a1f19 pylibfdt: Use the correct libfdt version in the module
e91c652af215 pylibfdt: Enable installation of Python module
8a892fd85d94 pylibfdt: Allow building to be disabled
741cdff85d3e .travis.yml: Add builds with and without Python library prerequisites
14c4171f4f9a pylibfdt: Use package_dir to set the package directory
89a5062ab231 pylibfdt: Use environment to pass C flags and files
4e0e0d049757 pylibfdt: Allow pkg-config to be supplied in the environment
6afd7d9688f5 Correct typo: s/pylibgfdt/pylibfdt/

Change-Id: Ib23ca90f1e34ed85db3aae9d223fc921e6f2114e
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
5 years agodeinterlace: reduce the screen flash when fast forward [1/1]
Jihong Sui [Wed, 28 Nov 2018 07:06:15 +0000 (15:06 +0800)]
deinterlace: reduce the screen flash when fast forward [1/1]

PD#SWPL-2188

Problem:
1.fast forward/rewind operation, the screen flashes

Solution:
1.add function to update MCDI_MCVECRD_CTRL[9]

Verify:
1.txl

Change-Id: I1bf8583901fa49c518cca74e7716632447adf32f
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agodts: add third thermal zone for tl1 [1/1]
yunhua wei [Fri, 30 Nov 2018 06:12:30 +0000 (14:12 +0800)]
dts: add third thermal zone for tl1 [1/1]

PD#SWPL-2608

Problem:
no third thermal zone

Solution:
add third thermal zone for tl1

Verify:
test pass on tl1_x301 and tl1_skt

Change-Id: Ic7ecc41b0866dff90ea3c3224a864160be6cdc04
Signed-off-by: Yunhua Wei <yunhua.wei@amlogic.com>
5 years agoamvecm: pq: lc: add debug interface [1/1]
Bencheng Jing [Wed, 28 Nov 2018 03:29:04 +0000 (11:29 +0800)]
amvecm: pq: lc: add debug interface  [1/1]

PD#SWPL-2583

Problem:
add debug interface

Solution:
add lc reg lut dump and write interface
add demo mode
add dump hist interface
add dump curve node interface

Verify:
x301

Change-Id: I85be40f76f252bbaa2ffc69710cc7158ed91bbc4
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agolcd: update phy disable setting for tl1 [1/1]
Evoke Zhang [Wed, 28 Nov 2018 10:23:22 +0000 (18:23 +0800)]
lcd: update phy disable setting for tl1 [1/1]

PD#SWPL-2399

Problem:
Power consumption for tl1 lcd suspend need improved

Solution:
shutdown tl1 phy when lcd disable

Verify:
skt x309

Change-Id: Ibce3539c5193b1f9347ff71882bab2604666a76e
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoosd: call osd_update_enable directly if osd cursor [1/1]
pengcheng chen [Mon, 3 Dec 2018 06:09:00 +0000 (14:09 +0800)]
osd: call osd_update_enable directly if osd cursor [1/1]

PD#SWPL-2744

Problem:
osd mouse can't see before platform g12a

Solution:
call osd_update_enable directly if osd cursor

Verify:
verify by p212

Change-Id: Ia8488a5bd0f707de2a02aa2b74e4a07582ef7f60
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agoclk: gxl: correct saradc clock id when check sardadc clock [1/1]
Jian Hu [Mon, 3 Dec 2018 09:05:10 +0000 (17:05 +0800)]
clk: gxl: correct saradc clock id when check sardadc clock [1/1]

PD#OTT-944

Problem:
saradc check the wrong clock id.

Solution:
correct saradc id.

Verify:
verified on P212 board

Change-Id: I7fdde80c21228e45ec165252549bf4ca5f21bd67
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agovdac: close vdac bandgap for suspend power [1/1]
Nian Jing [Thu, 29 Nov 2018 11:16:13 +0000 (19:16 +0800)]
vdac: close vdac bandgap for suspend power [1/1]

PD#SWPL-2643

Problem:
cvbsout electric current 1.97mA when suspend

Solution:
close bandgap when suspend

Verify:
verified by x301

Change-Id: I6b87ecd42b0f7876fea18c400f19ddc2d4a7665e
Signed-off-by: Nian Jing <nian.jing@amlogic.com>