platform/kernel/linux-amlogic.git
5 years agodts: fix the warnings when compiling the g12a device tree. [1/1]
Jianxiong Pan [Tue, 19 Feb 2019 06:57:21 +0000 (14:57 +0800)]
dts: fix the warnings when compiling the g12a device tree. [1/1]

PD#SWPL-4967

Problem:
warning when compiling the g12a device tree.

Solution:
fix the warning.

Verify:
locall.

Change-Id: I1f93c788d1914441e48305c04330701bfd718b87
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agoconfig: fix compile error for axg-s400. [1/1]
Jianxiong Pan [Thu, 21 Feb 2019 05:36:09 +0000 (13:36 +0800)]
config: fix compile error for axg-s400. [1/1]

PD#SWPL-5059

Problem:
compile error.

Solution:
add CONFIG_AMLOGIC_VIDEOSYNC which already exist in 64bit config

Verify:
locall.

Change-Id: I6d35b9388bbe1c28110cfce17f00de2a5b72f08e
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agodeinterlace: modify suspend function [1/1]
Jihong Sui [Mon, 21 Jan 2019 08:52:35 +0000 (16:52 +0800)]
deinterlace: modify suspend function [1/1]

PD#SWPL-4196

Problem:
atv suspend/resume, DI deadlock causing hangup

Solution:
add unreg process and clear timer/tasklet

Verify:
tl1

Change-Id: Id50de8649455f0a2f77ad2fcb585bf233d5c362f
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agodts: g12b: copy g12b dts [1/1]
Jianxiong Pan [Tue, 19 Feb 2019 05:01:57 +0000 (13:01 +0800)]
dts: g12b: copy g12b dts [1/1]

PD#SWPL-5020

Problem:
copy g12b dts.

Solution:
copy.

Verify:
local.

Change-Id: Ibd6423bd0cc99e98bf1d6359068f9f0719ad177f
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agohdmirx: fix it_content info error issue [1/1]
yicheng shen [Thu, 21 Feb 2019 12:01:13 +0000 (07:01 -0500)]
hdmirx: fix it_content info error issue [1/1]

PD#SWPL-4981

Problem:
it_content info is not correct

Solution:
optimize the method for getting it content

Verify:
TL1

Change-Id: Ie9202b6496742af6d880ae22f3f8f6154db8629a
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
5 years agohdmitx: rename HDMI_IEEE_OUI to avoid conflicts [1/1]
Zongdong Jiao [Fri, 22 Feb 2019 01:53:13 +0000 (09:53 +0800)]
hdmitx: rename HDMI_IEEE_OUI to avoid conflicts [1/1]

PD#SWPL-4705

Problem:
In 61207 patch, the define HDMI_IEEE_OUI is conflicted with the kernel
head file include/linux/hdmi.h

Solution:
rename HDMI_IEEE_OUI

Verify:
GXL/P212

Change-Id: I75a12734e85478f22edf0b48636ed86e60302b58
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agolcd: add wait for gpio input value support in lcd power step [2/2]
Shaochan Liu [Fri, 18 Jan 2019 11:35:36 +0000 (19:35 +0800)]
lcd: add wait for gpio input value support in lcd power step [2/2]

PD#SWPL-3938

Problem:
add wait for gpio input value support in lcd power step

Solution:
add wait for gpio input value support in lcd power step

Verify:
verify by t962x-r311

Change-Id: Ie1c4ec6f9f5d91332b6b20e1d1bd2adde17e547b
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
5 years agolcd: unify lcd driver frame_rate change function [1/1]
Shaochan Liu [Wed, 20 Feb 2019 06:55:29 +0000 (14:55 +0800)]
lcd: unify lcd driver frame_rate change function [1/1]

PD#SWPL-4680

Problem:
unify lcd driver frame_rate change function

Solution:
create a unified api(lcd_clk_change) to management the function

Verify:
verify by t962x2-r311

Change-Id: I1ab378aa2556db0636aabe8c20f3b97845b8184f
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
5 years agolcd: optimize tcon_pll for tl1 [1/1]
Evoke Zhang [Tue, 22 Jan 2019 10:29:31 +0000 (18:29 +0800)]
lcd: optimize tcon_pll for tl1 [1/1]

PD#SWPL-3493

Problem:
tl1 can imporve tcon_pll performance

Solution:
1.update tcon_pll cntl2 register
2.extend ss_level to 12 level

Verify:
x301

Change-Id: Id10479196529083d2bf5048695a682793a4945ca
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agolcd: tcon: change axi_mem cma alloc api to avoid memory clear [1/1]
Evoke Zhang [Mon, 11 Feb 2019 09:34:23 +0000 (17:34 +0800)]
lcd: tcon: change axi_mem cma alloc api to avoid memory clear [1/1]

PD#SWPL-4554

Problem:
tcon axi memory will clear when enter kernel

Solution:
change axi_mem cma alloc api

Verify:
t309

Change-Id: Ied6ef9976e503c597818a73109b222868c0f0387
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoavin: fix avin detect incorrect report [1/1]
Nian Jing [Wed, 13 Feb 2019 06:28:18 +0000 (14:28 +0800)]
avin: fix avin detect incorrect report [1/1]

PD#SWPL-4840

Problem:
avin detect compare level setting too high

Solution:
adjust the compare level to 635mv

Verify:
x301

Change-Id: I5246482338b3181d98a3836dcff09a3f33da113e
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agoarm: dts: update vddcpu pwm regulator voltage-table [1/1]
Bichao Zheng [Tue, 15 Jan 2019 08:46:00 +0000 (16:46 +0800)]
arm: dts: update vddcpu pwm regulator voltage-table [1/1]

PD#SWPL-4225

Problem:
TL1 hardware update DCDC of vddcpu

Solution:
update vddcpu voltage-table
[old]
voltage range: 1021mv - 721mv  step size: 10mv step: 30

[new]
voltage range: 1049mv - 689mv  step size: 10mv step: 36

Verify:
test pass on tl1_X301_v1 tl1_skt_v1

Change-Id: I3adea525940737490197566a8c85b5b00c375ed0
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
5 years agopwm: meson: add relative_duty interface in pwm sysfs [1/1]
Bichao Zheng [Wed, 16 Jan 2019 06:21:43 +0000 (14:21 +0800)]
pwm: meson: add relative_duty interface in pwm sysfs [1/1]

PD#SWPL-4225

Problem:
This interface is added to facilitate debugging the voltage-
table in pwm regulator, which can output different percentages
of waveforms in a fixed pwm cycle.
example:
echo 50 100 > sys/class/pwm/pwmchipx/pwmx/relative_duty
output 50% duty pwm

Solution:
add relative_duty interface in pwm sysfs

Verify:
test pass on tl1_X301_v1 tl1_skt_v1

Change-Id: Icd01e681694b81f3790f7cce8c326db02674a48c
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
5 years agoaudio: fix tas5808 no sound [1/1]
Che Song [Fri, 22 Feb 2019 03:06:12 +0000 (11:06 +0800)]
audio: fix tas5808 no sound [1/1]

PD#SWPL-3081

Problem:
1,lack suspend/resume function
2,lack reset pin control

Solution:
1,add  suspend/resume function
2, add reset pin control

Verify:
962x2

Signed-off-by: Che Song <che.song@amlogic.com>
Change-Id: I1cb920fdba4ad32048518fdad93e3a5a81039dd9

5 years agodebug: fail to show active cpu stacks [1/1]
Jiamin Ma [Tue, 19 Feb 2019 10:19:27 +0000 (18:19 +0800)]
debug: fail to show active cpu stacks [1/1]

PD#SWPL-4718

Problem:
Will have "PC=0, LR=0" issue when try to
show active cpu stacks via sysrq

Solution:
Save the addr of current interrupted task's context to the
interrupt stack first, so that we can easily obtain pt_regs
later

Verify:
Locally on Ampere

Change-Id: I1cc5095e0ec356bed90f76cdf9af1b2617ce7834
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agodefendkey: TL1: support secure upgrade check [4/4]
Zhongfu Luo [Wed, 30 Jan 2019 05:58:10 +0000 (13:58 +0800)]
defendkey: TL1: support secure upgrade check [4/4]

PD#SWPL-5002

Problem:
TL1 need to support defendkey secure upgrade check

Solution:
1.modify the way of get random

Verify:
TL1 skt board verify pass

Change-Id: I76b29800de787c5e5b18e023d84c1161c9b1643a
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agodts: TL1: defendkey: support secure upgrade check [3/4]
Zhongfu Luo [Wed, 30 Jan 2019 07:16:47 +0000 (15:16 +0800)]
dts: TL1: defendkey: support secure upgrade check [3/4]

PD#SWPL-5002

Problem:
TL1 need to support defendkey secure upgrade check

Solution:
1.add defendkey support in TL1 dts

Verify:
TL1 skt board verify pass

Change-Id: If77408e86f10a25ab2aee29d81550c8dff1a486e
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agohdmitx: add auto low latency mode(ALLM) [1/1]
Zongdong Jiao [Mon, 18 Feb 2019 09:33:22 +0000 (04:33 -0500)]
hdmitx: add auto low latency mode(ALLM) [1/1]

PD#SWPL-4705

Problem:
Lack ALLM function

Solution:
Add ALLM function

Verify:
GXL/P212
If Rx supports ALLM, then
echo 1 > /sys/class/amhdmitx/amhdmitx0/allm_mode
otherwise it will set failed, cat allm_mode and will get 0.

Change-Id: I00233e5a5aac133b405590e7df78c7c4805ed0ef
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agoperf: arm: enable pmuserenr [1/1]
Hanjie Lin [Mon, 18 Feb 2019 12:03:16 +0000 (20:03 +0800)]
perf: arm: enable pmuserenr [1/1]

PD#SWPL-4673

Problem:
userspace can't access perf monitor cnt with "mrc ... c9,c13,0"

Solution:
actually userspace should check perf monitor cnt access permissions first
before use, so this is a workround.
enable pmuserenr with "mcr ... c9,c14,0" in several places:
1, perf probe
2, cpu idle (state>0) exit
3, cpu online
4, system resume after suspend

Verify:
u212

Change-Id: Ib09682d1d47545dfef8b088283ddbbf390630d3e
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agocamera: config adapter buffer size from dts [1/2]
Guosong Zhou [Tue, 19 Feb 2019 06:43:42 +0000 (01:43 -0500)]
camera: config adapter buffer size from dts [1/2]

PD#SWPL-4934

Problem:
kernel panic when adjust adapter memory size

Solution:
config adapter buffer size from dts

Verify:
verify by w411

Change-Id: Ie66cf57e870e140dd63516672c7f90f7d9ddda72
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agolicense: add missing license header [1/1]
Jiamin Ma [Mon, 18 Feb 2019 08:44:22 +0000 (16:44 +0800)]
license: add missing license header [1/1]

PD#SWPL-4728

Problem:
Missing license header

Solution:
Add correct license header

Verify:
Compling passed

Change-Id: I291a41172f9ecf2cde7f7705e99ecb20567c9c8f
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agoperf: fix sys_cpu_status0 reg error dts [1/1]
Hanjie Lin [Tue, 19 Feb 2019 05:42:16 +0000 (13:42 +0800)]
perf: fix sys_cpu_status0 reg error dts [1/1]

PD#SWPL-4843

Problem:
CtsSimpleperfTestCases 1 Fail on p231

Solution:
gxl,gxm,txl perf sys_cpu_status0 reg config error
modify it

Verify:
p212

Change-Id: Ie6e8747e8e4f02734bd7883ce6dcbc3fd3d28829
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agosd: add sduart not supported flag [1/1]
Nan Li [Thu, 14 Feb 2019 02:43:31 +0000 (10:43 +0800)]
sd: add sduart not supported flag [1/1]

PD#SWPL-4858

Problem:
tl1 not support sduart

Solution:
add not supported flag in match_data

Verify:
verify by tl1 skt

Change-Id: I651765433bb62892fad770c85a5eccd4805e7c79
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agoemmc: optimize the conditions of fixdiv calc [1/1]
Nan Li [Fri, 1 Feb 2019 01:59:00 +0000 (09:59 +0800)]
emmc: optimize the conditions of fixdiv calc [1/1]

PD#SWPL-4857

Problem:
fixdiv calc Affect the use of other chips

Solution:
Adjust the usage conditions for the fixdiv calc func, witch
pdata->calc_f from dts.

Verify:
verify by g12b

Change-Id: I9598e2a24f76c76f4312c2694029fe4bb0f534d4
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agoaudio: remove unused PDM controls which cause panic [1/1]
Shuai Li [Fri, 15 Feb 2019 02:39:14 +0000 (10:39 +0800)]
audio: remove unused PDM controls which cause panic [1/1]

PD#SWPL-3907

Problem:
PDM controls are dynamically added or removed.
This will bring in panic.

Solution:
Remove the unused controls.

Verify:
Need stress test.

Change-Id: I69f63a0516e0812e9abb86e42f091ecb496004d4
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agogpio_led: g12a: give up using led-trigger cpu0 [1/1]
Bichao Zheng [Fri, 15 Feb 2019 08:34:28 +0000 (16:34 +0800)]
gpio_led: g12a: give up using led-trigger cpu0 [1/1]

PD#SWPL-4876

Problem:
32bit will operate led-trigger cpu0 in cpu idle enter/exit causing
system led flashing.

Solution:
give up using led-trigger cpu0.

Verify:
g12a_u211 g12a_u212

Change-Id: I106a4fe0e35923919f5bbc34113fa73a4ca28577
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
5 years agomm: reclaim for unevictable cma pages [1/1]
Tao Zeng [Mon, 18 Feb 2019 06:53:09 +0000 (14:53 +0800)]
mm: reclaim for unevictable cma pages [1/1]

PD#SWPL-3902

Problem:
If cma page is unevictable, migrate it will cost long time.

Solution:
1. Recalim unevictable cma file cache pages.
2. Using CMA after first water mark not ok.

Verify:
einstern

Change-Id: I0ecbf5dd535cb034430c4ea623891e7a7ae6e4dd
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agoramdump: support ramdump for g12b/gxl [6/6]
changqing.gao [Fri, 25 Jan 2019 11:00:05 +0000 (19:00 +0800)]
ramdump: support ramdump for g12b/gxl [6/6]

PD#SWPL-4350

Problem:
ramdump is not enabled on g12b/gxl.

Solution:
Add ramdump support on g12b/gxl in bl2.

Verify:
verified on g12b_w400_v1/gxl_p212_v1.

Change-Id: I3520fea366af332ef113809560587eeb4db7b6c5
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
5 years agovpp: correct the vpp dummy reg for g12a/g12b/tl1 [1/1]
Brian Zhu [Mon, 18 Feb 2019 13:56:29 +0000 (21:56 +0800)]
vpp: correct the vpp dummy reg for g12a/g12b/tl1 [1/1]

PD#TV-1565

Problem:
After g12a chip, vpp post dummy reg was changed. The
test_screen/rgb_screen sysfs did not work.

Solution:
Use the correct vpp post dummy reg for those chip

Verify:
Verified on X301 and W400

Change-Id: I1cb718a1f7040804b63d0197de0bb6aafe233357
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agousb: remove usbphy reset 500ms wait [1/1]
yuehu mi [Thu, 17 Jan 2019 12:51:44 +0000 (20:51 +0800)]
usb: remove usbphy reset 500ms wait [1/1]

PD#SWPL-4949

Problem:
kernel slow startup

Solution:
remove usbphy reset 500ms wait

Verify:
marconi platform insert U disk, power on boot verify OK

Change-Id: Ieb01e59ad428f98c3df303c7b3bee28397970c74
Signed-off-by: yuehu mi <yuehu.mi@amlogic.com>
5 years agouart: change baud rate minimum value to 2400 [1/1]
Dianzhong Huo [Wed, 13 Feb 2019 02:36:29 +0000 (10:36 +0800)]
uart: change baud rate minimum value to 2400 [1/1]

PD#SH-327

Problem:
uart default min baud rate was set 9600, but PTZ PELCO-D
and PELCO-P need uart driver support 2400 and 4800 baud rate

Solution:
change baud rate minimum value to 2400

Verify:
Local

Change-Id: Iee20ea30a95b89f89a59fab95cecf7d559cbff51
Signed-off-by: Dianzhong Huo <dianzhong.huo@amlogic.com>
5 years agogdc: unmap gdc dma_buf after gdc process stop [2/2]
Pengcheng Chen [Sat, 2 Feb 2019 07:42:04 +0000 (15:42 +0800)]
gdc: unmap gdc dma_buf after gdc process stop [2/2]

PD#SWPL-4839

Problem:
have risk of unmap gdc dma_buf

Solution:
unmap gdc dma_buf after gdc process stop

Verify:
verify by w400

Change-Id: If86ac881fd85a5c4b3583567c9748e87149c1d78
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoge2d: unmap ge2d dma_buf after ge2d process finished [1/2]
Pengcheng Chen [Sat, 2 Feb 2019 10:00:28 +0000 (18:00 +0800)]
ge2d: unmap ge2d dma_buf after ge2d process finished [1/2]

PD#SWPL-4839

Problem:
have risk of unmap ge2d dma_buf

Solution:
unmap ge2d dma_buf after ge2d process finished

Verify:
verify by w400

Change-Id: Ia84786b297f8e95cc9efc038300917c98d6b73f6
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoaudio: auge: fix hw resample crash when pcm disabled [1/1]
Xing Wang [Mon, 18 Feb 2019 03:08:23 +0000 (11:08 +0800)]
audio: auge: fix hw resample crash when pcm disabled [1/1]

PD#SWPL-4387

Problem:
system would reboot when carshed by hw resample

Solution:
actrl of toddr is modified to null pointer, so it leads to crash.
fix to pass toddr pointer to function, not fetched by resample module.

Verify:
x301

Change-Id: I91c30260ee825d843e8ed17304031382b42ac119
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
5 years agosched: eas: add sched-energy support for gxm [1/1]
Hanjie Lin [Thu, 31 Jan 2019 02:58:01 +0000 (10:58 +0800)]
sched: eas: add sched-energy support for gxm [1/1]

PD#SWPL-4651

Problem:
Kernel 32bit Support for S912(kernel 4.9)

Solution:
add arm/arm64 sched-energy dts

Verify:
q201

Change-Id: I13077632b730d5f2b1427b3d9bee9ff24031cfcd
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agoaudio: codec: The tl1_acodec_probe takes 340ms time [1/1]
Shuyu Li [Wed, 23 Jan 2019 11:11:46 +0000 (19:11 +0800)]
audio: codec: The tl1_acodec_probe takes 340ms time [1/1]

PD#SWPL-4345

Problem:
The tl1_acodec_probe operation takes 340ms time

Solution:
Using workqueue to replace the msleep func

Verify:
verify on T962x2_X309 board

Change-Id: I5316beb8a0e94ae022c948ec112b6fb219050212
Signed-off-by: Shuyu Li <shuyu.li@amlogic.com>
5 years agomm: close vmap stack print for armv7 [1/1]
Tao Zeng [Fri, 15 Feb 2019 06:17:36 +0000 (14:17 +0800)]
mm: close vmap stack print for armv7 [1/1]

PD#SWPL-2681

Problem:
If cpu support idle/hotplug, there are many vmap stack prints:
[   74.096973@1] cpu 1, vmap stack:[e8e90000-e8e91de0]
[   74.097084@1] cpu 1, irq  stack:[e8e92000-e8e93de0]
[   74.105901@3] cpu 3, vmap stack:[e8ee0000-e8ee1de0]
[   74.105984@3] cpu 3, irq  stack:[e8ee2000-e8ee3de0]

Solution:
Close these debug print

Verify:
P212

Change-Id: I000df1f0952328af9f359f20341eb0fe88590056
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agoaudio: enable spdif driver [1/1]
jinrong.liao [Tue, 29 Jan 2019 07:23:14 +0000 (15:23 +0800)]
audio: enable spdif driver [1/1]

PD#SWPL-4223

Problem:
Add audio source switch feature for GVA

Solution:
enable spdif driver in dts

Verify:
verify by S420

Change-Id: Ia71b27ba95124b84415ec4f532fd344a24633911
Signed-off-by: jinrong.liao <jinrong.liao@amlogic.com>
5 years agodts: g12a/b: config hw rng with dts [1/1]
Chao Liu [Tue, 12 Feb 2019 09:38:30 +0000 (17:38 +0800)]
dts: g12a/b: config hw rng with dts [1/1]

PD#OTT-2062

Problem:
Boot up time with power cable is longer than boot up with usb cable

Solution:
config hw rng with dts

Verify:
android p + u212

Change-Id: I61613e945dbc9be06f2cbb29aae5043c84fca1de
Signed-off-by: Chao Liu <chao.liu@amlogic.com>
5 years agohdmitx: add 3d framepack mode support [1/1]
Kaifu Hu [Mon, 28 Jan 2019 08:01:19 +0000 (16:01 +0800)]
hdmitx: add 3d framepack mode support [1/1]

PD#SWPL-4233

Problem:
3D framepacking mode display black screen

Solution:
Add vinfo 3d flag and hdmitx update
when work 3d mode

Verify:
U212

Change-Id: Ia2b7b25c9ed401dbec2c487ea2a5c6cc1e0d8b8d
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
5 years agovideo: fixed video peek get first frame toggled err [1/1]
Jian Wang [Fri, 1 Feb 2019 08:08:05 +0000 (16:08 +0800)]
video: fixed video peek get first frame toggled err [1/1]

PD#SWPL-4048

Problem:
video peek can not get first frame toggled on 64bit

Solution:
add the cmd to amvideo_compat_ioctl

Verify:
verify on p212

Change-Id: I6933f305382d636f5f98f4bf19fddcf6ce9471c1
Signed-off-by: Jian Wang <jian.wang@amlogic.com>
5 years agostorage: emmc: Add HS400 busmode support for TL1 [1/1]
Long Yu [Fri, 14 Dec 2018 09:13:36 +0000 (17:13 +0800)]
storage: emmc: Add HS400 busmode support for TL1 [1/1]

PD#SWPL-2311

Problem:
not support HS400 busmode

Solution:
add HS400 busmode support for TL1

Verify:
TL1-T962X2_X301

Change-Id: I95ac19e9c0c5b84c9225602cda6964aaaee4151e
Signed-off-by: Long Yu <long.yu@amlogic.com>
5 years agoosd: fix buidroot compile error issue [1/1]
Pengcheng Chen [Fri, 1 Feb 2019 01:58:04 +0000 (09:58 +0800)]
osd: fix buidroot compile error issue [1/1]

PD#SWPL-4502

Problem:
buidlroot compile error

Solution:
fix buidroot compile error issue

Verify:
buildroot make linux-build

Change-Id: I0277c2b3f439946ab680f4c34f30c16e31ea6034
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoomx: add print into level control [1/1]
jintao xu [Thu, 31 Jan 2019 11:15:24 +0000 (19:15 +0800)]
omx: add print into level control [1/1]

PD#SWPL-85

Problem:
print into level control

Solution:
print into level control

Verify:
U212

Change-Id: Ib0fdc02f26e75c20e48171bca5ebef072947d78c
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
5 years agodebug: fail to show active cpu stacks [1/1]
Jiamin Ma [Thu, 31 Jan 2019 08:41:15 +0000 (16:41 +0800)]
debug: fail to show active cpu stacks [1/1]

PD#SWPL-4718

Problem:
The task stack address is not saved to irq_stack_ptr-0x08,
so when switching from irq stack to task stack, we can not
obtain the right task stack address

Solution:
save task stack address to irq_stack_ptr-0x08

Verify:
Locally on Ampere

Change-Id: I8ad9a45cee33681cc00de3a0bb264dbd9f1b859f
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agousb: check SoC rev [1/2]
he.he [Fri, 25 Jan 2019 07:44:08 +0000 (15:44 +0800)]
usb: check SoC rev [1/2]

PD#SWPL-4582

Problem:
Need to check Soc rev to distinguish G12B revB.

Solution:
Check Soc rev set version and phy-interface for g12b revB.

Test: make w400 bootimage

Verify:
pass on W400

Change-Id: I338d7f0eed7bb61660625343404f756f0edf0d54
Signed-off-by: he.he <he.he@amlogic.com>
5 years agoomx: add two layer support [3/6]
jintao xu [Wed, 16 Jan 2019 02:14:49 +0000 (10:14 +0800)]
omx: add two layer support [3/6]

PD#SWPL-85

Problem:
Need support two video layers feature

Solution:
1: Add videosync.
2: amlvideo support multi-instance

Verify:
U212

Change-Id: I3570fad361ba5bd388dd46c51a66da056fa7a1fd
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
5 years agoosd: rdma write miss caused afbc mosaic [1/1]
Pengcheng Chen [Fri, 25 Jan 2019 01:51:11 +0000 (09:51 +0800)]
osd: rdma write miss caused afbc mosaic [1/1]

PD#SWPL-4502

Problem:
afbc mosaic when bandwidth is high, root cause is
rdma write regs missed.

Solution:
1. add vsync line detected, if rdma write nearly
vsync, wait vsync needed
2. add rdma write detected, if rdma write missed
wait vsync needed
3. add tl1/g12b afbc backup

Verify:
Locally on tl1

Change-Id: If4fd303c3808525fa44e1118742a3e26830323f5
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agopinctrl: rename m8b pinmux function gpio to gpio_periphs [1/2]
Qianggui Song [Tue, 22 Jan 2019 06:40:06 +0000 (14:40 +0800)]
pinctrl: rename m8b pinmux function gpio to gpio_periphs [1/2]

PD#SWPL-4501

Problem:
All platforms but m8b use "gpio_periphs" as gpio pinctrl function, that
breaks consistency.

Solution:
rename m8b pinctrl function "gpio" to "gpio_periphs" to make it
consistent with code and other platform.

ref:
https://patchwork.kernel.org/patch/10720219/

Verify:
m200

Change-Id: I940d1e30882cc8b042c02022ed3435a659aa3921
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
5 years agojtag: meson: fix jtag pinmux settings issue [2/2]
Yingyuan Zhu [Thu, 17 Jan 2019 11:02:20 +0000 (19:02 +0800)]
jtag: meson: fix jtag pinmux settings issue [2/2]

PD#SWPL-4501

Problem:
Standard pinmux APIs were not used

Solution:
Setting pinmux instead of require for gpio

Verify:
tl1,g12a,g12b,axg,txl,txlx,gxl

Change-Id: I0ad88f414832686d795d252f70e81a34f6cb0f9e
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
5 years agovpp: add osd and video zorder control [2/6]
Brian Zhu [Thu, 17 Jan 2019 19:25:21 +0000 (03:25 +0800)]
vpp: add osd and video zorder control [2/6]

PD#SWPL-85

Problem:
Upper layer need control osd and video layer zorder

Solution:
1.Add video layer zorder interface by sysfs and ioctl
2.Switch the osd and video layer order in vsync

Verify:
Verify on U212

Change-Id: Ic50e81784b865cc57e4ab9a63d74806f7a8721cf
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agovpp: add two layers support for each chips [1/6]
Brian Zhu [Tue, 15 Jan 2019 21:12:00 +0000 (05:12 +0800)]
vpp: add two layers support for each chips [1/6]

PD#SWPL-85

Problem:
Need support two video layers feature

Solution:
1.Add vd2 mif config
2.Add vd2 pps calculation and config
3.Add vd2 axis/crop/screen mode interface by sysfs and ioctl
4.Add layer query/alloc/free interface

Verify:
Verify on U212

Change-Id: I71fc9ab2ae0230c3e84c4b790e77d2c790951642
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agohdr: modify hdr gamut mtx for TV [1/1]
MingLiang Dong [Mon, 28 Jan 2019 06:36:14 +0000 (01:36 -0500)]
hdr: modify hdr gamut mtx for TV [1/1]

PD#SWPL-4638

Problem:
hdr video, color is light

Solution:
modify hdr gamut mtx, use bt2020rgb to 709rgb mtx

Verify:
verified on x301

Change-Id: Ia87493a57196b6a3a87c93535fed325b163cb562
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoge2d: merge ge2d from amlogic-3.14-dev [3/3]
Jian Cao [Fri, 25 Jan 2019 09:16:05 +0000 (17:16 +0800)]
ge2d: merge ge2d from amlogic-3.14-dev  [3/3]

PD#SWPL-4355

Problem:
ge2d: Adjust scaler para when input is nv21 and output is rgb

Solution:
merge patch 'Adjust scaler para when input is nv21 and output is rgb'
from amlogic-3.14-dev(PD#15652)

Verify:
verified on u200

Change-Id: I199b07d683a01175ec17d4d34be6febd3083920c
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoge2d: merge ge2d from amlogic-3.14-dev [2/3]
Jian Cao [Fri, 25 Jan 2019 08:45:37 +0000 (16:45 +0800)]
ge2d: merge ge2d from amlogic-3.14-dev  [2/3]

PD#SWPL-4355

Problem:
ge2d: play video display mess when used ionvideo

Solution:
merge patch 'play video display mess when used ionvideo'
from amlogic-3.14-dev(PD#155143)

Verify:
verified on u200

Change-Id: Iaf34fe1d1c7e7637015dadaaf43e201cf28089b7
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoge2d: merge ge2d from amlogic-3.14-dev [1/3]
Jian Cao [Fri, 25 Jan 2019 08:40:51 +0000 (16:40 +0800)]
ge2d: merge ge2d from amlogic-3.14-dev  [1/3]

PD#SWPL-4355

Problem:
ge2d: fix ge2d bitblt error

Solution:
merge patch 'fix ge2d bitblt error' from amlogic-3.14-dev(PD#154877)

Verify:
verified on u200

Change-Id: I4a813810837814931c3cb68f9a0f8a0929b06540
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agovpp: disable sr scale up when vskip > 2 [1/1]
Brian Zhu [Tue, 29 Jan 2019 16:13:45 +0000 (00:13 +0800)]
vpp: disable sr scale up when vskip > 2 [1/1]

PD#TV-2331

Problem:
SR insert unnecessary scale up to make scale down ratio
too larger.

Solution:
disable SR core0 which is before pps when mif vskip is > 2

Verify:
Locally on X301

Change-Id: I810fbae20f337e6eeb0a8e88d9758f78ad224254
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agodts: g12a: add clk_81 to enable demux pcr [1/1]
Cheng Tong [Wed, 23 Jan 2019 06:00:13 +0000 (14:00 +0800)]
dts: g12a: add clk_81 to enable demux pcr [1/1]

PD#SWPL-4469

Problem:
dolby files have no sounds after replay

Solution:
in u212, the clk_81 is null when init, it is related
to demux pcr, so add clk_81 to enable demux pcr

Verify:
verify by franklin

Change-Id: Id862e4e8ac49c19bbd52fa6fa4831de20abad6c8
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
5 years agohdmirx: Chromecast box force to OESS mode [1/1]
Lei Yang [Thu, 17 Jan 2019 11:59:32 +0000 (19:59 +0800)]
hdmirx: Chromecast box force to OESS mode [1/1]

PD#SWPL-4325

Problem:
it took long time to show image when connect with Google Chromecast box

Solution:
1. add specific dev detection by cec osd name & vendor ID
2. chromecast box force OESS

Verify:
verify by marconi

Change-Id: I56d247da1d1b1e28b60bb439f5173cb6fbecfdf9
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
5 years agoconfig: replace stack protector config [1/1]
Tao Zeng [Mon, 28 Jan 2019 02:18:11 +0000 (10:18 +0800)]
config: replace stack protector config [1/1]

PD#SWPL-4617

Problem:
CONFIG_CC_STACKPROTECTOR_STRONG will increase stack size for some large
functions and may cause stack overflow problems or increase real stack
usage after we have enabled VMAP STACK config. But direct remove it
from defconfig will cause CTS fail.

Solution:
using CONFIG_CC_STACKPROTECTOR_STRONG_AMLOGIC for real stack protect
config

Verify:
p212

Change-Id: I1ccba2ef6ab5ea6f2987af2986e0cf222da1a7c7
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agocpuversion: add SoC rev api [1/2]
Qiufang Dai [Wed, 23 Jan 2019 13:39:38 +0000 (21:39 +0800)]
cpuversion: add SoC rev api [1/2]

PD#SWPL-4582

Problem:
Need api to distinguish G12B revB

Solution:
Add rev A/B/C api

Verify:
W400

Change-Id: I5cf82fcfc513f621513914cf83d18fe5c5ec081d
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
5 years agowatchpoint: add watch point driver for cpu [1/1]
Tao Zeng [Wed, 23 Jan 2019 11:39:09 +0000 (19:39 +0800)]
watchpoint: add watch point driver for cpu [1/1]

PD#SWPL-4351

Problem:
Our cpu has 4 watch point on each cpu. It can be used for debug
purpose. But currently there is no driver support it.

Solution:
Bring up driver for it.

Verify:
p212

Change-Id: Ifbcb7f9b77e10fcb03b3c1a5e18f06b1a56ec2f0
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agocec: ceca register access fail [1/1]
Yong Qin [Mon, 14 Jan 2019 08:50:12 +0000 (16:50 +0800)]
cec: ceca register access fail [1/1]

PD#SWPL-4133

Problem:
cec a register access fail and cause watchdog reboot

Solution:
reduce wait counter, and check clk register

Verify:
P215

Change-Id: Ic9d97e1eca9428ffd0c4a6bfe008cd9d8303075b
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agotee: add an interface for the teeload with swapping. [1/1]
Nanxin Qin [Sat, 26 Jan 2019 17:21:20 +0000 (01:21 +0800)]
tee: add an interface for the teeload with swapping. [1/1]

PD#SWPL-2367

Problem:
building err and issue of compatibility.

Solution:
1. fixed building err without merging media_modules
2. add a new api tee_load_video_fw_swap

Verify:
p212,u212

Change-Id: Ifeedf2f3fa04b2427dccf2ac3940bad6860362d6
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
5 years agotee: add swapping of the fw for the tee loading. [3/7]
Nanxin Qin [Thu, 20 Dec 2018 08:59:53 +0000 (16:59 +0800)]
tee: add swapping of the fw for the tee loading. [3/7]

PD#SWPL-2367

Problem:
can not playback hevc after update video fw.

Solution:
add swapping of the fw for the tee loading.

Verify:
p212,u212

Change-Id: I698e43ba8e71060f85be4b468c4c61d625f46d4a
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
5 years agoaudio: Add HBR audio info for HDMI input [2/3]
yujie.wu [Mon, 21 Jan 2019 09:25:19 +0000 (17:25 +0800)]
audio: Add HBR audio info for HDMI input [2/3]

PD#SWPL-3435

Problem:
  P321 doesn't support DTS HD decoding

Solution:
  In HDMI RX module, we add a new field to
  indicate whether the input audio is HBR.
  With this info, hal can enable the PAO
  mode  to decode the HBR audio.

Verify:
  P321

Change-Id: I6fd180e6636905f5119fe1d313214d4b56d07d5e
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
5 years agoavin: fix av detect issue for tl1 [1/1]
Nian Jing [Wed, 23 Jan 2019 11:54:49 +0000 (19:54 +0800)]
avin: fix av detect issue for tl1 [1/1]

PD#SWPL-4397

Problem:
hotplug incorrect report when av playing some video

Solution:
when avplay,disable the avdetect

Verify:
verified by x301

Change-Id: Iaa5d2473611ff9c3f0a0787ff74a27982ee72580
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agovpp: force vd2 using preblend when playing mvc [1/1]
Brian Zhu [Fri, 25 Jan 2019 05:27:59 +0000 (13:27 +0800)]
vpp: force vd2 using preblend when playing mvc [1/1]

PD#SWPL-3381

Problem:
vd2 used postblend as default after g12a chip

Solution:
force vd2 using preblend when playing mvc

Verify:
Locally on u212

Change-Id: Ia7fab8ad70ed1e58b7ade241828afab288b94bec
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agocpufreq: add more syspll freq info [1/1]
Hong Guo [Tue, 22 Jan 2019 06:25:58 +0000 (14:25 +0800)]
cpufreq: add more syspll freq info [1/1]

PD#SWPL-4035

Problem:
add more syspll freq info.

Solution:
add more syspll freq info.

Verify:
g12a_u200, verify pass

Change-Id: I3e2a587f5ebaa20126e6ad5c37bd9d2730a75125
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agohdmirx: modify emp mem size [1/1]
yicheng shen [Fri, 25 Jan 2019 08:32:01 +0000 (03:32 -0500)]
hdmirx: modify emp mem size [1/1]

PD#SWPL-4513

Problem:
The memery size of emp is oversize

Solution:
reduce the memery size to 4M

Verify:
None

Change-Id: If39103a6643968f4a3000c7ba44f44e1b7e290c2
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
5 years agogdc: reset alloc flag when free dma buffer [2/2]
Jian Cao [Tue, 22 Jan 2019 09:16:17 +0000 (17:16 +0800)]
gdc: reset alloc flag when free dma buffer [2/2]

PD#SWPL-4354

Problem:
alloc flag is not correct when free dma buffer

Solution:
reset alloc flag when free dma buffer

Verify:
test pass on g12a-u200

Change-Id: Idfc0be5b394d18799232f6239b3f6c6df9181ce0
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoge2d: reset alloc flag when free dma buffer [1/2]
Jian Cao [Fri, 18 Jan 2019 07:33:52 +0000 (15:33 +0800)]
ge2d: reset alloc flag when free dma buffer [1/2]

PD#SWPL-4354

Problem:
alloc flag is not correct when free dma buffer

Solution:
reset alloc flag when free dma buffer

Verify:
test pass on g12a-u200

Change-Id: I4aea27f38ebda72cfe77183423600c918b836d7c
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agovpp: disable vd2 again if the last vframe is MVC [1/1]
Brian Zhu [Sun, 20 Jan 2019 16:19:47 +0000 (00:19 +0800)]
vpp: disable vd2 again if the last vframe is MVC [1/1]

PD#SWPL-4003

Problem:
VD2 keep displaying after keep last frame for mvc streaming

Solution:
check the last frame type and disable vd2 again

Verify:
verify by tl1

Change-Id: Ia2b598331e8f65c02974d41c498408bee40a407e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agovlock: screen flash after PAL NTSC swich [1/1]
Yong Qin [Tue, 1 Jan 2019 02:28:08 +0000 (10:28 +0800)]
vlock: screen flash after PAL NTSC swich [1/1]

PD#SWPL-4246

Problem:
the screen always flash after switch PAL to NTSC in AVin

Solution:
do not change pll M value, M value will case v by one fail

Verify:
verified on tl1 android p

Change-Id: Ib5ea8dfef1c40af5535e69fdc9241a7f77b4a7dd
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoosd: fix display frame offset caused osd display abnormal [1/1]
Pengcheng Chen [Wed, 23 Jan 2019 09:22:39 +0000 (17:22 +0800)]
osd: fix display frame offset caused osd display abnormal [1/1]

PD#OTT-1663

Problem:
display frame offset caused osd display abnormal

Solution:
remove unnecessary blend dst_data adjust

Verify:
Locally on raven

Change-Id: I38b97f6da750f5edea97416b4d7fc0172dea7466
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodtv_demod: tl1,dvbc, new method for fast channel searching [1/1]
Zhiwei Yuan [Fri, 18 Jan 2019 07:09:12 +0000 (15:09 +0800)]
dtv_demod: tl1,dvbc, new method for fast channel searching [1/1]

PD#TV-2154

Problem:
[Hisense-T962X2-P-customer-DTV]:DVBC QAM is set to auto to search channels

Solution:
add new searching method
note:
use "demod_dvbc_speedup_en" to mark the new method
it's disabled as default, can be enabled if needed
we can make it always enabled after all testing are passed
enable: echo fast_search on > /sys/kernel/debug/demod/dvbc_channel_fast

Verify:
verified by t962x2_x301

Change-Id: Icaaab9f27eb058a062d7048c6ca9fa2e3bff008e
Signed-off-by: Zhiwei Yuan <zhiwei.yuan@amlogic.com>
5 years agodts: isp reserved memory optimize on w411 platform [1/1]
Dianzhong Huo [Thu, 10 Jan 2019 07:21:09 +0000 (15:21 +0800)]
dts: isp reserved memory optimize on w411 platform [1/1]

PD#SWPL-4577

Problem:
ISP reserve memory needs to be optimized.

Solution:
1.cost down isp reserved memory(just support 1ch 1080P60fps)
2.temper size default set 24M(config in dtsi)

Verify:
verify on w411 platform.

Change-Id: I5df16e7625be09c6feebcf74ea56b24f5a0f451b
Signed-off-by: Dianzhong Huo <dianzhong.huo@amlogic.com>
5 years agovideo: video peek do not post video start event [1/1]
shuanglong.wang [Thu, 17 Jan 2019 09:58:00 +0000 (17:58 +0800)]
video: video peek do not post video start event [1/1]

PD#SWPL-4317

Problem:
for video peek, before audio post audio start, video may have rended.

Solution:
do not post video start for video peek, all wait for audio start to
start pcr

Verify:
verify by p212

Change-Id: If5656154e30613164465f84c44d3fd1ee386d654
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
5 years agotvafe: get cvbs lock status error [1/1]
nengwen.chen [Wed, 23 Jan 2019 05:12:17 +0000 (13:12 +0800)]
tvafe: get cvbs lock status error [1/1]

PD#TV-1548

Problem:
get cvbs lock status error.

Solution:
fix h_lock and v_lock status.

Verify:
verified by x301

Change-Id: Ia5e618c42280e7964399122b9b039a6f0d7da305
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoipc: add ircut driver for ipc camera [1/1]
Dianzhong Huo [Thu, 10 Jan 2019 11:43:14 +0000 (19:43 +0800)]
ipc: add ircut driver for ipc camera [1/1]

PD#SWPL-4078

Problem:
Need porting ircut driver for ipc camera.

Solution:
Add ircut driver.
ircut auto on/off by light in sensor.

Verify:
Verify on W411 platform.

Change-Id: I4f20f0a1e117e8e4e7f94dead6a65f243169827f
Signed-off-by: Dianzhong Huo <dianzhong.huo@amlogic.com>
5 years agobandwidth: fix wrong bandwidth usage on t950 [1/3]
wenbiao zhang [Fri, 18 Jan 2019 09:03:54 +0000 (17:03 +0800)]
bandwidth: fix wrong bandwidth usage on t950 [1/3]

PD#TV-470

Problem:
t950 ddr bandwidth usage is error

Solution:
t950/805x ddr is 16bit, correct the param to get right usage

Verify:
t950

Change-Id: Ice876f82e5c33e778b3ac9f593e0c163d57d7f3f
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
5 years agomm: optimize thread stack usage on ARMv7 [1/1]
tao zeng [Fri, 30 Nov 2018 10:01:31 +0000 (18:01 +0800)]
mm: optimize thread stack usage on ARMv7 [1/1]

PD#SWPL-2681

Problem:
Kernel stack usage is large when running many tasks.

Solution:
Map kernel stack to module space and handle page-fault
for stack fault. This can save about 50% memory of stack
usage

Verify:
p212

Change-Id: Ie894bc8f00cb525ddf8ac63c6d99d9c6e937fdc0
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
5 years agoisp: config temper buffer size in dts [1/2]
Guosong Zhou [Thu, 17 Jan 2019 09:17:20 +0000 (04:17 -0500)]
isp: config temper buffer size in dts [1/2]

PD#SWPL-4177

Problem:
temper buffer size is a fixed value in code

Solution:
config temper buffer size from dts

Verify:
verify by w400

Change-Id: I17ef428221f149a888e0318bc27d7b7d309c00ce
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agotvin: vdin: add interface to get signalinfo [1/1]
Xuhua Zhang [Mon, 14 Jan 2019 07:09:35 +0000 (15:09 +0800)]
tvin: vdin: add interface to get signalinfo [1/1]

PD#TV-2083

Problem:
TVIN_IOC_G_SIG_INFO not complete enough

Solution:
add interface to get signalinfo

Verify:
Verify on TL1

Change-Id: I32f198f14dfcc1f8a8ee1f19c4065bd7d4d5dccc
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
5 years agoosd: fix a green line displayed when output is yuv420 4k/60hz [1/1]
Pengcheng Chen [Tue, 22 Jan 2019 06:42:34 +0000 (14:42 +0800)]
osd: fix a green line displayed when output is yuv420 4k/60hz [1/1]

PD#SWPL-4427

Problem:
a green line displayed when output is yuv420 4k/60hz

Solution:
set dummy data to 0x808000 can fix a green line
displayed when output is yuv420 4k/60hz

Verify:
verify by fanklin

Change-Id: I06125d36c2fb06a61dd072a1789217e7c3705207
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodts: remove A53 frequency table greater than 1.5Ghz [1/1]
Dianzhong Huo [Tue, 22 Jan 2019 08:18:49 +0000 (16:18 +0800)]
dts: remove A53 frequency table greater than 1.5Ghz [1/1]

PD#SWPL-4521

Problem:
New W411 reference board A53 power combine with vddee,
becaule vddee voltage set at 800mv,so need remove
A53 dvfs table which voltage greater than 800mv

Solution:
Remove A53 frequency table greater than 1.5Ghz

Verify:
Local

Change-Id: I05a2b51f704b25a0654881d6da3372fcd2f2a051
Signed-off-by: Dianzhong Huo <dianzhong.huo@amlogic.com>
5 years agogpu: limit gpu freq to 800M for tl1 [1/1]
Jiyu Yang [Tue, 8 Jan 2019 09:38:23 +0000 (17:38 +0800)]
gpu: limit gpu freq to 800M for tl1 [1/1]

PD#SWPL-3981

Problem:
the gpu shall not use the gp0 pll as vlsi guy's suggestion.

Solution:
rm 850M from gpu freq table

Verify:
Marconi, franklin

Change-Id: I38ae616de23d51ede36776f0ecd66d0a3df30459
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
5 years agoatv_demod: Optimizing ATV auto scan Speed. [1/2]
nengwen.chen [Fri, 18 Jan 2019 11:12:44 +0000 (19:12 +0800)]
atv_demod: Optimizing ATV auto scan Speed. [1/2]

PD#SWPL-4123

Problem:
Optimizing ATV auto scan Speed.

Solution:
optimizing the step of scanning.

Verify:
verified by x301

Change-Id: I0f616f14488be49be67c40eca7fc9f30108545b8
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agodts: t309: change tuner to r842 [2/2]
Lei Qian [Mon, 21 Jan 2019 11:52:19 +0000 (19:52 +0800)]
dts: t309: change tuner to r842 [2/2]

PD#SWPL-4482

Problem:
used wrong tuner

Solution:
set tuner to r842

Verify:
verify by t309

Change-Id: I22fb3b6800e9f8cdeb03a307067d07d3e2190be1
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
5 years agotvin: vdin: fix vdin histgram error on tl1 [1/1]
Xuhua Zhang [Mon, 21 Jan 2019 08:59:10 +0000 (16:59 +0800)]
tvin: vdin: fix vdin histgram error on tl1 [1/1]

PD#TV-2263

Problem:
vdin histgram error on tl1

Solution:
tl1 use TVIN_PORT_VIU1_WB0_VPP

Verify:
verify on tl1

Change-Id: I225a85a1debee0e8c42f60751524661fc5c986bd
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
5 years agoperf_event: aml pmu interrupts routing on g12b [1/1]
Hanjie Lin [Fri, 14 Dec 2018 11:39:58 +0000 (19:39 +0800)]
perf_event: aml pmu interrupts routing on g12b [1/1]

PD#SWPL-3088

Problem:
g12b big-little cluster is different from other SoC with pmu
interrupts and registers.
software modifications must adapt to the difference.

Solution:
modify

Verify:
u200 w400

Change-Id: If9217c1025dff5c17d51790f8c216e31b7d6532b
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agohdmirx: add new EQ setting [1/1]
yicheng shen [Tue, 8 Jan 2019 07:38:22 +0000 (02:38 -0500)]
hdmirx: add new EQ setting [1/1]

PD#SWPL-4261

Problem:
some devices have compatibility issues.

Solution:
1.update phy setting;
2.optimize some SW logic;
3.set eess_oess to auto mode;
4.fix black screen(DE fixed error,related with rx phy) issue.

Verify:
TL1 TXLX android P

Change-Id: I842a4782b3e513fa1e483feca98ce05b128d79fc
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
5 years agodefconfig: arm: code score is low by Antutu benchmark [1/1]
Hanjie Lin [Wed, 2 Jan 2019 05:36:09 +0000 (13:36 +0800)]
defconfig: arm: code score is low by Antutu benchmark [1/1]

PD#SWPL-3704

Problem:
32bit code score is low by Antutu benchmark.

PD#SWPL-3704

Solution:
enable CONFIG_SCHED_WALT CONFIG_CGROUP_SCHEDTUNE CONFIG_SCHED_TUNE
referenced by arm64

Verify:
w400

Change-Id: I6f461020b0fb0e42be94f1c66f5c38defb2c6ea1
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agoosd: fix osd_reverse casued afbc decode error [1/1]
Pengcheng Chen [Fri, 18 Jan 2019 05:30:52 +0000 (13:30 +0800)]
osd: fix osd_reverse casued afbc decode error [1/1]

PD#SWPL-4335

Problem:
osd_reverse casued afbc decode error

Solution:
add afbc prefect reverse when osd_reverse

Verify:
verify by tl1

Change-Id: I11730121e62935683480f42db7c43365bc91bf31
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agowifi: export set_usb_wifi_power [1/1]
Rongjun Chen [Wed, 16 Jan 2019 08:27:35 +0000 (16:27 +0800)]
wifi: export set_usb_wifi_power [1/1]

PD#TV-2088

Problem:
wifi can not power in driver

Solution:
export set_usb_wifi_power

Verify:
franklin

Change-Id: Ic6fb75133533c395cd96e9d82f14427cf40cee96
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
5 years agohdmitx: eliminate the work of sdr effect when choosing hdr [1/1]
Yi Zhou [Tue, 15 Jan 2019 03:08:52 +0000 (11:08 +0800)]
hdmitx: eliminate the work of sdr effect when choosing hdr [1/1]

PD#SWPL-4079

Problem:
hdr->sdr must have 1.5s delay, when switching from sdr->hdr
the work queue can't be eliminated in time.

Solution:
eliminate the work of sdr effect when choosing hdr

Verify:
u212

Change-Id: I4c1d5467a58253ffa2fa12dfbac7f504d0388a00
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agotvin: vdin: fix dolby vision memory free print error [1/1]
Xuhua Zhang [Fri, 18 Jan 2019 08:50:15 +0000 (16:50 +0800)]
tvin: vdin: fix dolby vision memory free print error [1/1]

PD#SWPL-3353

Problem:
dolby vision memory free print error

Solution:
dolby vision memory has been free by vdin_cma_release,
don't free again.

Verify:
test pass on R311

Change-Id: Id7108cf17260430c53dff707e843ed7833c8ee7c
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
5 years agoKconfig: fix errorly select meson8b for ARMv8 AARCH32 [1/1]
Jiamin Ma [Thu, 17 Jan 2019 11:42:45 +0000 (19:42 +0800)]
Kconfig: fix errorly select meson8b for ARMv8 AARCH32 [1/1]

PD#SWPL-4320

Problem:
The meson8b and arm64_a32 are both selected in Kconfig,
which is quite misleading

Solution:
Disable meson8b when arm64_a32 is selected

Verify:
Locally passed for Ampere

Change-Id: I93f55239ea90bf8cf6b96e108b6fd4a239de32b4
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agogdc: add gdc dma_buf input/output support [2/2]
Pengcheng Chen [Fri, 11 Jan 2019 02:54:46 +0000 (10:54 +0800)]
gdc: add gdc dma_buf input/output support [2/2]

PD#SWPL-4036

Problem:
gdc don't support export dma_buf

Solution:
add gdc dma_buf input/output support

Verify:
test pass on w400

Change-Id: I67a60ede01e5c01630a00fbae2821430a870c2b8
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoarm64: dts: gxl: optimize ipa parameter [1/1]
Huan Biao [Fri, 18 Jan 2019 05:33:25 +0000 (13:33 +0800)]
arm64: dts: gxl: optimize ipa parameter [1/1]

PD#SWPL-3726

Problem:
game cannot run smoothly

Solution:
1:modify cooling devices min status
    cpufreq 1000Mhz-->1200Mhz
    gpufreq 400MHz -->500MHz
2:modify switch trippoint freq trippoint hotplug trippoint
    70000-->80000
    80000-->90000
    85000-->100000

Verify:
p215 pass

Change-Id: I36d8ac8ca578f92c8aeda7d979df1f3f56311ce3
Signed-off-by: Huan Biao <huan.biao@amlogic.com>