platform/kernel/linux-amlogic.git
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 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 agoclk: g12a/g12b: update pcie clk parameter for jitter [1/1]
Shunzhou Jiang [Fri, 1 Feb 2019 01:45:46 +0000 (09:45 +0800)]
clk: g12a/g12b: update pcie clk parameter for jitter [1/1]

PD#SWPL-4745

Problem:
update pcie parameter for jitter

Solution:
clear pcie clk parameter

Verify:
test pass on g12a skt/w400

Change-Id: I354d643c412c37fb6c99fc49ac5bd70ab12be008
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
5 years agovpp: sr: correct the sr core0 enable switch operation [1/1]
Brian Zhu [Thu, 28 Feb 2019 19:16:45 +0000 (03:16 +0800)]
vpp: sr: correct the sr core0 enable switch operation [1/1]

PD#SWPL-5113

Problem:
SR core0 enable switch register is latched as default. It
will cause the screen flicker when operating this bit in vsync.
Because the frame size will be out of sync with back-end module.

Solution:
1. For g12a, no latch ctrl. So did not disable sr core2 enable bit.
2. For g12b/tl1, disable the latch function.

Verify:
Verified on U212/w400/x301

Change-Id: I54027b71ef8a6066004b3bd32ed1633b4bfa351c
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoclk: g12a/g12b: fix syspll overflow when freq larger than 2.1g [1/1]
Shunzhou Jiang [Fri, 22 Feb 2019 09:18:36 +0000 (17:18 +0800)]
clk: g12a/g12b: fix syspll overflow when freq larger than 2.1g [1/1]

PD#SWPL-5076

Problem:
syspll overflow

Solution:
div 1000 when round rate

Verify:
test pass on g12a skt/w400

Change-Id: I021a1e8fd1280b27e21e5b4c8983b91fb89e84ba
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
5 years agodts: g12b: modify sched-energy dts for w400 revision-b [1/1]
Hanjie Lin [Tue, 26 Feb 2019 06:57:44 +0000 (14:57 +0800)]
dts: g12b: modify sched-energy dts for w400 revision-b [1/1]

PD#SWPL-5020

Problem:
modify sched-energy dts for w400 revision-b

Solution:
modify dts

Verify:
local.

Change-Id: I6686abc10bf07ec0e601eb9a72b7657ca3e1d991
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agodts: add new frequency for A53 core at all g12b RevB dts [1/1]
pan.yang [Mon, 4 Mar 2019 07:29:15 +0000 (02:29 -0500)]
dts: add new frequency for A53 core at all g12b RevB dts [1/1]

PD#SWPL-5020

Problem:
need 1.9G for A53 core in g12b RevB.

Solution:
add 1.9G frequency for A53 core in RevB dts.

Verify:
local test.

Change-Id: Ic4085c05b3b9d18f759720e3d268d5e4629faba7
Signed-off-by: pan.yang <pan.yang@amlogic.com>
5 years agodts: fix amlogic-dt-id error in g12b dts. [1/1]
Jianxiong Pan [Mon, 25 Feb 2019 08:41:15 +0000 (16:41 +0800)]
dts: fix amlogic-dt-id error in g12b dts. [1/1]

PD#SWPL-5020

Problem:
amlogic-dt-id error in g12b dts.

Solution:
specify amlogic-dt-id by dts name.

Verify:
local test.

Change-Id: I11a737ec61221c2dc9fcd4e3761c380ac5b5044b
Signed-off-by: Jianxiong Pan <jianxiong.pan@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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
arch/arm64/boot/dts/amlogic/g12b_a311x_w411_buildroot.dts

5 years agohdr: used line_n_int to trigger osd rdma [2/2]
MingLiang Dong [Wed, 27 Feb 2019 07:05:40 +0000 (02:05 -0500)]
hdr: used line_n_int to trigger osd rdma [2/2]

PD#SWPL-4582

Problem:
g12b revb osd blend shift issue still exist
when hdr enable/disable

Solution:
used line_n_int to trigger osd hdr rdma,
this workaround can fix shift issue

Verify:
verify by g12b revb

Change-Id: I062c31dbb5729463bae539e2ea25281d715665c9
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agordma: used line_n_int to trigger osd, dv and hdr rdma [1/2]
Pengcheng Chen [Wed, 20 Feb 2019 01:38:02 +0000 (09:38 +0800)]
rdma: used line_n_int to trigger osd, dv and hdr rdma [1/2]

PD#SWPL-4582

Problem:
g12b revb osd blend shift issue still exist
when dv and hdr enable/disable

Solution:
used line_n_int to trigger osd, dv and hdr rdma,
this workaround can fix shift issue

Verify:
verify by g12b revb

Change-Id: Ie9747b2f7aaa3a7997245f82d15831c4c3da41cf
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodv: remove g12b ver B from the status of SDR mode [1/1]
Yi Zhou [Mon, 25 Feb 2019 12:02:11 +0000 (20:02 +0800)]
dv: remove g12b ver B from the status of SDR mode [1/1]

PD#SWPL-4582

Problem:
g12 verA has a hardware bug.Therefore,dv cores
must keep working even if under sdr mode

Solution:
g12B verB has fixed this bug, so remove this chip id

Verify:
verify by g12b revb

Change-Id: Ice1aa1364319fa12d5a896fdfd106450f1a04d3d
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agoosd: add g12b revb to check osd shift workaround [1/1]
Pengcheng Chen [Mon, 14 Jan 2019 09:07:48 +0000 (17:07 +0800)]
osd: add g12b revb to check osd shift workaround [1/1]

PD#SWPL-4582

Problem:
g12b revb fix osd blend shift issue

Solution:
add g12b revb to remove shift workaround

Verify:
verify by g12b revb

Change-Id: I6cefba0b5b5cce35d928edafdc359adff0165866
Signed-off-by: Pengcheng Chen <pengcheng.chen@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 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 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 agodv: dolby vision support on t962x [1/1]
Kaifu Hu [Thu, 20 Dec 2018 05:20:53 +0000 (13:20 +0800)]
dv: dolby vision support on t962x [1/1]

PD#SWPL-3318

Problem:
Android P not support dolby vision on t962x

Solution:
Porting code support dolby vision

Verify:
t962x/r311

Change-Id: I85afd05d2cb21a7105ea345f07e7e581bba5e927
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
5 years agoosd: osd: screen blank after boot logo [1/1]
Jian Cao [Tue, 27 Nov 2018 06:42:57 +0000 (14:42 +0800)]
osd: osd: screen blank after boot logo [1/1]

PD#172587

Problem:
screen blank after boot logo

Solution:
correct default display information

Verify:
verified on tl1 ref board

Change-Id: I94237b5241eacee6965bfe4ea0426bb8e9f494f1
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
osd: tl1 hold line fix needn't shift workaround [1/1]

PD#172587

Problem:
tl1 hold line fix needn't shift workaround.

Solution:
remove shift workaround int tl1

Verify:
verified by x301

Change-Id: I96d99758ba6f93622c34a8e69c4a3f769fdfad49
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
usb: bringup usb for tl1 [1/1]

PD#172587

Problem:
bringup usb for tl1

Solution:
bringup usb for tl1.
disable usb device sof interrupt for tl1.

Verify:
verify on tl1 skt.

Change-Id: Ifbcd3b406145ac39709ff2df795544086277f00e
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
arch/arm/boot/dts/amlogic/mesontl1.dtsi

5 years agoCPUFREQ: Setting different cpufreq tables according to efuse information. [1/1]
Hong Guo [Mon, 14 Jan 2019 07:53:22 +0000 (15:53 +0800)]
CPUFREQ: Setting different cpufreq tables according to efuse information. [1/1]

PD#SWPL-4035

Problem:
Setting different cpufreq tables according to efuse information.

Solution:
Setting different cpufreq tables according to efuse information.

Verify:
g12a_u200, verify pass

Change-Id: I1bf571f332244f5727ef3cd8743f215f71248146
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agomailbox: mailbox: add chip performance info read from efuse [2/2]
Shunzhou Jiang [Wed, 9 Jan 2019 09:42:52 +0000 (17:42 +0800)]
mailbox: mailbox: add chip performance info read from efuse [2/2]

PD#SWPL-4035

Problem:
cpu driver need read efuse data

Solution:
add interface to read data

Verify:
g12a_skt

Change-Id: Ia5d74c3fa057d06426b4277652e508714400a30f
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@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 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: 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 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>
Signed-off-by: Luan Yuan <luan.yuan@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 agodv: close afbc2 when playing sources with unnecessary el [1/1]
Yi Zhou [Tue, 15 Jan 2019 07:31:13 +0000 (15:31 +0800)]
dv: close afbc2 when playing sources with unnecessary el [1/1]

PD#SWPL-915

Problem:
DOLBY only sets the enhancement for the first frame ->
Vd sets cur_dispubf2 according to enhance ->
codec_mm keeps the last frame according to cur_dispbuf2,
so it fails -> AFBC2 access to the released content causes the trigger.

Solution:
close afbc2

Verify:
r321

Change-Id: I03c431a6ea11b8aabf97b1f0b21f717024be2f62
Signed-off-by: Yi Zhou <yi.zhou@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 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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
MAINTAINERS

5 years agoge2d: add ge2d dma_buf support [1/2]
Pengcheng Chen [Thu, 3 Jan 2019 07:50:50 +0000 (15:50 +0800)]
ge2d: add ge2d dma_buf support [1/2]

PD#SWPL-4036

Problem:
don't support dma_buf

Solution:
add ge2d dma_buf support

Verify:
test pass on w400

Change-Id: I1277d04fb30753e579d5edc5f46f2406dc27217a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agoemmc: modify dtb malloc method [1/1]
Ruixuan Li [Tue, 8 Jan 2019 10:33:59 +0000 (18:33 +0800)]
emmc: modify dtb malloc method [1/1]

PD#SWPL-3951

Problem:
buffer malloc for dtb may failed

Solution:
malloc may sleep to wait for enough memory

Verify:
pass on p212

Change-Id: Ib4c266c17140d2a6abf2aea6c02b2ff591f0fe08
Signed-off-by: Ruixuan Li <ruixuan.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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
arch/arm64/boot/dts/amlogic/g12b_a311x_w411_buildroot.dts

5 years agoclk: g12a: add bt656 clock [1/1]
Jian Hu [Tue, 18 Dec 2018 09:07:20 +0000 (17:07 +0800)]
clk: g12a: add bt656 clock [1/1]

PD#SWPL-3359

Problem:
the bt656 clocks were missing

Solution:
1.add bt656 clocks
2.fix several errors for media clocks

Verify:
test passed on u200

Change-Id: Iff69e790c78335930d6b2ea54f7544aca464e1fb
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agobt656: fix bt656 bugs [1/1]
Xuhua Zhang [Wed, 19 Dec 2018 03:32:30 +0000 (11:32 +0800)]
bt656: fix bt656 bugs [1/1]

PD#OTT-1022

Problem:
bt656 can not work well.

Solution:
1. add clock control
2. fix bt656 id bug

Verify:
G12A U200

Change-Id: I2aaecee33fd590497d5a11cf3618fc07264f02a5
Signed-off-by: Xuhua Zhang <xuhua.zhang@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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
drivers/amlogic/cec/hdmi_ao_cec.h

5 years agodi: aptimise di flow, add some protection [1/1]
Yong Qin [Tue, 8 Jan 2019 09:02:34 +0000 (17:02 +0800)]
di: aptimise di flow, add some protection [1/1]

PD#SWPL-3976

Problem:
To prevent “stall when access DDR through memory interface”

Solution:
1.aptimise NRWR register access flow
2.add arb on/off and status check
3.add reset protect
4.add nr_en disable before arb status check
5.add nr_write_done sel
6.modify VPU_WRARB_MODE_L2C1 from vlsi feijun's suggest

Verify:
tl1, txlx

Change-Id: Ifb0f4f0502d957ffb2b07805575c27f4166d5717
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
drivers/amlogic/media/deinterlace/deinterlace.c

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 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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
MAINTAINERS
drivers/amlogic/media/deinterlace/deinterlace_hw.c

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 agosr: add support for tl1 [1/1]
wenfeng.guo [Mon, 12 Nov 2018 03:15:24 +0000 (11:15 +0800)]
sr: add support for tl1 [1/1]

PD#172587

Problem:
Add sr driver support for tl1

Solution:
add sr driver support for tl1
fix horizontal line when play video on 4K screen

Verify:
TL1 X301

Change-Id: I422f27eb5cf12f69dc57de295425536671e2df38
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
5 years agovideo: vpp: add vd afbc YUV 422/444 support for tl1 [1/1]
Brian Zhu [Thu, 15 Nov 2018 16:38:41 +0000 (00:38 +0800)]
video: vpp: add vd afbc YUV 422/444 support for tl1 [1/1]

PD#172587

Problem:
Bringup TL1 vidoe driver.
TL1 need support YUV422/444 AFBC.
TL1 need check afbc source from decode or vdin.
TL1 need afbc compress loss mode.

Solution:
Merge from branch bringup/amlogic-4.9/tl1-20181111.

Verify:
verify on tl1

Change-Id: I0af62e7638db4e1c349df874ccffdeddcaa715af
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agovpp: sr: disable core0 and core1 scaler latch [1/1]
Brian Zhu [Wed, 26 Dec 2018 10:55:36 +0000 (18:55 +0800)]
vpp: sr: disable core0 and core1 scaler latch [1/1]

PD#SWPL-3144

Problem:
The latch function cause the super scaler size asynchronous

Solution:
Disable sr core0 and core1 scaler latch

Verify:
T962x2 x301 board test pass

Change-Id: Iecbcc3e0c751093b6515f7b46973eca2157cd349
Signed-off-by: Brian Zhu <brian.zhu@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 agoosd: fix some fence issue [2/2]
Pengcheng Chen [Tue, 18 Dec 2018 05:15:36 +0000 (13:15 +0800)]
osd: fix some fence issue [2/2]

PD#SWPL-3348

Problem:
fix some fence issue

Solution:
1. add blank operation to FBIOPUT_OSD_SYNC_RENDER_ADD
2. move canvas_config to osd_setting_blend

Verify:
verify by franklin

Change-Id: I5d1ebb697ff542e5c36dab0dae9b322ec4e1fa16
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agohdmitx: sync hdmi_audio uevent to hdmi hpd
Zongdong Jiao [Mon, 11 Mar 2019 07:55:09 +0000 (15:55 +0800)]
hdmitx: sync hdmi_audio uevent to hdmi hpd

Change-Id: I39512030f058ab9c72ee4c779f3b692898440271
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agoethernet: handle tx timeout
Zhuo Wang [Fri, 20 Jul 2018 03:10:50 +0000 (11:10 +0800)]
ethernet: handle tx timeout

PD# 169839

After do suspend/resume circularly, sometimes ethernet can't recover from
suspend. Add a phy reset when every resume.

Change-Id: Id03223a9c62f4dcab1cdfbc4805cc3b4c0212cf5
Signed-off-by: Shen Liu <shen.liu@amlogic.com>
5 years agoaudio: fix samesource clk after play DDP [1/1]
Shuai Li [Fri, 22 Feb 2019 04:57:33 +0000 (12:57 +0800)]
audio: fix samesource clk after play DDP [1/1]

PD#SWPL-4331

Problem:
Same source clk doesn't recover to 48K
after playback 192k DDP stream.

Solution:
Add ways to recover the clk.

Verify:
Local verified

Change-Id: If410d9ca04446c35bafebe2913b01e19b5fee224
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agoaudio: audio glitch at tdm startup [1/1]
Shuai Li [Fri, 1 Mar 2019 13:48:35 +0000 (21:48 +0800)]
audio: audio glitch at tdm startup [1/1]

PD#SWPL-5219

Problem:
audio glitch at tdm startup

Solution:
Pad 0 data to clear the remaining data
in the module.

Verify:
Local tested.

Change-Id: Iab526c6893a32030799567b57e05e7bb11b8fea0
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agotsync: do not operate tsync_mode_switch before first video toggled [1/1]
Yingwei Long [Thu, 28 Feb 2019 12:01:24 +0000 (20:01 +0800)]
tsync: do not operate tsync_mode_switch before first video toggled [1/1]

PD#SWPL-5131

Problem:
Some stream in tunnel mode, first audio pts is large than
AV_DISCONTINUE_THREDHOLD_MAX(60s). In audio_hw it will check pcr and
apts diff, so large difference between pcr and apts will lead sync mode
from amster to vmaster(egg:SYNC-HEVC-59FPS-DDP51)

Solution:
do not operate tsync_mode_switch before first video toggled

Verify:
verify by franklin

Change-Id: Icec2de71ea8f838146444aa3ea880f76ed8e0f13
Signed-off-by: Yingwei Long <yingwei.long@amlogic.com>
5 years agovideo: set vpp super_scaler default to 0 [1/1]
shuanglong.wang [Sun, 24 Feb 2019 07:45:02 +0000 (15:45 +0800)]
video: set vpp super_scaler default to 0 [1/1]

PD#SWPL-5113

Problem:
video flash when resolution change from 4K to 640x480

Solution:
temporary solution for video flash for u212

Verify:
verify by u212

Change-Id: I8b7ec009bf599032c7bff5f80b72b557403355da
Signed-off-by: shuanglong.wang <shuanglong.wang@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 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 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 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 agocamera: support the dvp camera [1/1]
Guosong Zhou [Sat, 5 Jan 2019 07:17:20 +0000 (02:17 -0500)]
camera: support the dvp camera [1/1]

PD#SWPL-2133

Problem:
don't support dvp camera

Solution:
add dvp camera driver

Verify:
verify by u200

Change-Id: I8517913e0c3724247b396e8d054d6a4541a1993a
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agocamera: add dvp camera [1/1]
Guosong Zhou [Wed, 2 Jan 2019 11:00:30 +0000 (06:00 -0500)]
camera: add dvp camera [1/1]

PD#OTT-1204

Problem:
don't support dvp camera

Solution:
add dvp camera gc2145 camera driver

Verify:
test pass on U200

Change-Id: I5927d49a93952587af7bb460a5c405293d692153
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Conflicts:
MAINTAINERS

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 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>
5 years agoarm: dts: gxl: optimize ipa parameter [1/1]
Huan Biao [Mon, 7 Jan 2019 02:49:26 +0000 (10:49 +0800)]
arm: 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
3:fix gpupp get fail issue

Verify:
p215 pass

Change-Id: Id0a1e1ac9619f0d9a20e2aad172ba0c84c7a2e9d
Signed-off-by: Huan Biao <huan.biao@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 agosound: add resample node for axg_s420_v03gva.dts [1/1]
riqun.ou [Thu, 8 Nov 2018 07:47:32 +0000 (15:47 +0800)]
sound: add resample node for axg_s420_v03gva.dts [1/1]

PD#SWPL-365

Problem:
System can't use resample function on GVA project.

Solution:
Add resample node in axg_s420_v03gva.dts

Verify:
Passed on s420

Change-Id: Ie48c579e9e9f6e1d61147f5410c95e5bca55b0a7
Signed-off-by: riqun.ou <riqun.ou@amlogic.com>
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>
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>
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>
audio: auge: add HDMIRX SPDIF in support [1/2]

PD#SWPL-2956

Problem:
HDMI in DTS/Dolby input has noise when treated to LPCM

Solution:
By default,we are using PAO mode for HDMIRX,but we have not
enabled the PaPb search for 61937 raw data input, after add
that, we can detect the raw data, but it can not by clear when
switch from NONE-LPCM to NONE-LPCM, need add IRQ function to
clear that by sw.we enabled spdif in from HDMIRX, which is  the same
design as txl/txlx.we can get the Pc information now.
also we add a new interface to set spdif in source when hdmirx input.

Verify:
x301

Change-Id: I3c4e8b387308ef862a069c29d15b8b5a9e865564
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
udio: auge: tl1 acodec mapping to data 1 [1/2]

PD#SWPL-3277

Problem:
tl1 internal codec volume can by adjusted

Solution:
configure the acodec data layout mapping
to a fixed volume

Verify:
x301

Change-Id: I14d3762b39a0a5291722ef5489026f10fc960120
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
Conflicts:
arch/arm/boot/dts/amlogic/tl1_t962x2_t309.dts

audio: Fix TDM not wokring on HDMI I2S in [1/1]

PD#SWPL-2887

Problem:
  When TDM is used for HDMI I2S in, the solt set is wrong.

Solution:
  Fix the lane max value from 3 to 4

Verify:
  A113

Change-Id: I33f5ca21bf1e2407d83fa5d0f22e21f7b1f5e749
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
audio: codec: fix to resume ad82584's volume after suspend [1/1]

PD#SWPL-3456

Problem:
1) After suspend, volume is not resume
2) ARC connected, still sound out from spk

Solution:
1) save channel volume when suspend, then resume the volume
2) add mute mixer control for ad82584

Verify:
x301

Change-Id: Ic6e7502e3f9689cc2d1053295f26aaf4d5be2603
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
audio: auge: add vad driver [1/1]

PD#SWPL-2404

Problem:
VAD for wake up

Solution:
Add vad driver to fetch VAD buffer and ALSA buffer, in userspace, they
will be combined for wakeup engine

Verify:
x301

Change-Id: I3b4de5fdfe173ce18e58a187a3adeda601e226b3
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
audio: fix pop snd after bootup [2/2]

PD#SWPL-3178

Problem:
output big pop noise after system boot up.

Solution:
Add zero and then unmute the stream.
NOTICE: user should unmute the AD82584F after boot.

Verify:
local verified.

Change-Id: I21555318f9347c5340a28f7e5cf0e3e2cde849a0
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
audio: fix no audio after resume of ad82584f [1/1]

PD#SWPL-4090

Problem:
No audio after suspend and resume.
Suspend won't save the mute value,
and after resume, it could not be restored.

Solution:
Add a mute val to save when suspend,
and after resume, restore the mute value.

Verify:
Verified by QA.

Change-Id: Ie24bb11f5c565048391846a66b5d12bab1d55666
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
audio: auge: fix sharebuffer channel map [1/1]

PD#SWPL-2645

Problem:
play ddp source, then play pcm source, no sound

Solution:
1. fix same source control and channel map issue
2. i2s 8ch, spdif 2ch, channels are not mapped, make spdif 8 channel mask
3. when same source used, keep mpll use same mpll

Verify:
x301

Change-Id: I2fe4bbcbcbfff0a1c1a6cebf61d1da5aba9b7a9d
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Conflicts:
arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
arch/arm64/boot/dts/amlogic/tl1_t962x2_x301.dts

audio: add stream mute and continuous clk [1/1]

PD#SWPL-2952

Problem:
Pop noise could be heard
when switching between sources.

Solution:
1. Add stream digital mute functions.
2. continuous clock to eliminate
  the clk reset issue.

Verify:
Local verified.

Change-Id: I372f4c03aaf875d75aa903c9c2dfda00619af000
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
dts: tl1: enable resample for tl1 [1/2]

PD#SWPL-3365

Problem:
not resample for audio in, so output in wrong sample rate

Solution:
1. enable resample in dts
2. fix to check whether resample is needed

Verify:
x301

Change-Id: I99238cc21a00ab53df6a1f8ab1703bc9ab48cbaa
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Conflicts:
arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
arch/arm64/boot/dts/amlogic/tl1_t962x2_x301.dts

5 years agovideo: omx get first frame toggoled flag [1/2]
shuanglong.wang [Thu, 10 Jan 2019 13:12:12 +0000 (21:12 +0800)]
video: omx get first frame toggoled flag [1/2]

PD#SWPL-4048

Problem:
omx can not detect first frame have toggled

Solution:
omx get first frame toggoled flag

Verify:
verify by p212

Change-Id: I632824390287dd0257dca23a009ff8851054f68d
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
5 years agodv: keep dv enable when connecting to sdr TV [1/1]
Yi Zhou [Fri, 11 Jan 2019 03:31:16 +0000 (11:31 +0800)]
dv: keep dv enable when connecting to sdr TV [1/1]

PD#SWPL-3226

Problem:
turn off the dv core, the osd flutters

Solution:
keeping core2 open when dv enable under sdr TV

Verify:
u212

Change-Id: Idf57c6e67676fb5eec944e543cb596247c932df4
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agohdmitx: fixed logo flash error [1/1]
Luan Yuan [Wed, 16 Jan 2019 13:44:38 +0000 (21:44 +0800)]
hdmitx: fixed logo flash error [1/1]

PD#SWPL-4194

Problem:
array need to initial.

Solution:
fixed it.

Verify:
verify by ampere

Change-Id: Ia72eb1afa54f092bbbb7265694ecec314691b14e
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agohdmi: fix uboot logo flash [1/2]
Kaifu Hu [Tue, 15 Jan 2019 06:43:08 +0000 (14:43 +0800)]
hdmi: fix uboot logo flash [1/2]

PD#SWPL-4194

Problem:
Systemcontorl set display mode when attr is difference

Solution:
Fix color space property parser

Verify:
G12A/U200

Change-Id: Iddbcbbf3925b175833f534a287de413315ca1170
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
5 years agodeinterlace: change holdline default value to 8 [1/1]
Jihong Sui [Thu, 10 Jan 2019 12:48:47 +0000 (20:48 +0800)]
deinterlace: change holdline default value to 8 [1/1]

PD#SWPL-3384

Problem:
DI post holdline setting is not map with video

Solution:
change holdline to 8

Verify:
verified by gxl

Change-Id: Ia352604086cefb4c69d5dd268d12741c4cf4f173
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agodts: u212 2G ddr add dvb dts config [1/1]
Cheng Tong [Mon, 14 Jan 2019 06:33:07 +0000 (14:33 +0800)]
dts: u212 2G ddr add dvb dts config [1/1]

PD#SWPL-4140

Problem:
u212 2G dts didn't have dvb config

Solution:
add dvb dts config
defalut commented out as reference

Verify:
Verify by Android P franklin

Change-Id: I1ffc631ff0a729e6701fd8cd17b28f70666b1e30
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
5 years agoosd: afbc decode error when write afbc start before afbc reset [1/1]
Pengcheng Chen [Fri, 11 Jan 2019 09:40:36 +0000 (17:40 +0800)]
osd: afbc decode error when write afbc start before afbc reset [1/1]

PD#SWPL-4016

Problem:
afbc decode error when write afbc start before afbc reset reg

Solution:
replace invalid reg when found afbc start before afbc reset reg

Verify:
test pass on franklin

Change-Id: Ia01608fe4d5c6132d0b54e63c48560e9e77bfe0a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodv: mute the first frame when playing video [1/1]
Yi Zhou [Fri, 11 Jan 2019 02:49:11 +0000 (10:49 +0800)]
dv: mute the first frame when playing video [1/1]

PD#SWPL-4091

Problem:
due to the ip bug, the first frame has dirty data

Solution:
mute the first frame

Verify:
u212

Change-Id: Ia21e96c338b22e25d1073f27083f10634a09edad
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agoRevert "canvas: get canvas w/h for frame check [2/2]"
Luan Yuan [Fri, 11 Jan 2019 12:15:13 +0000 (20:15 +0800)]
Revert "canvas: get canvas w/h for frame check [2/2]"

This reverts commit 8667f1fbc184ccfc001a7006717cb0b5a7bdbdf9.

5 years agohdr: sdr2hdr on/off switch, osd flutter [1/1]
MingLiang Dong [Tue, 8 Jan 2019 13:23:33 +0000 (08:23 -0500)]
hdr: sdr2hdr on/off switch, osd flutter [1/1]

PD#SWPL-3038

Problem:
sdr2hdr on/off switch, osd flutter

Solution:
always enable osd1 hdr, if osd hdr bypass, set hdr bypass parameters

Verify:
verify on G12A

Change-Id: I4d5ae0588b06c4989b3a4f22b00ba41ef80be0d0
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agovideo: drain and hold frame when pattern broken. [1/1]
shuanglong.wang [Tue, 9 Oct 2018 09:33:14 +0000 (17:33 +0800)]
video: drain and hold frame when pattern broken. [1/1]

PD#SWPL-795

Problem:
video video caton

Solution:
1. For 23.97 and 29.97fps, broken patten case, such as 2323..2233..2323
(23.97), 222..2213(2)22(29.97) will hold one sync to toggle.
For 23.97 and 29.97fps, broken patten case, such as 2323..233223...2323
(23.97), 222..223122...22(29.97), will drain frame one sync to toggle.
2. For 24 and 30fps, every 16.6s will occur pattern broken, one frame
will display less vsync. For 24, will happen 22221222, for 30, will
happen 3232223232. Here will escape one sync and also hold one sync to
ensure pattern detection not broken, which others will lead patten
broken, and nothold or drain frame, then frame frezee or lost will
happen.
3. add pts-trace debug. Follow command could help debug video av sync.
     echo 0x400000 > /sys/module/amvideo/parameters/debug_flag
     echo 1,1,1 > /sys/kernel/debug/video/pts_log_enable
   Above command will print too many debug info, you can use follow
     echo 0 > /proc/sys/kernel/printk && dmesg -c > /dev/null
     dmesg > kernel.log

Verify:
verify by p212

Change-Id: Icc03faec772937c273ca74be67f5c52ae25fea39
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
5 years agodts: release memory of the reserved 1MB [2/2]
Hui Zhang [Fri, 4 Jan 2019 06:35:51 +0000 (14:35 +0800)]
dts: release memory of the reserved 1MB [2/2]

PD#SWPL-2372

Problem:
phy addr (0 - 0x100000) is reserved before. once it is release for system use.
it will be polluted by video decoder (avs2 & vp9)

Solution:
init hw addr (not 0) in decoder to avoid 0 address polluted.
then release reserved 1MB memory space in dts

Verify:
U212

Change-Id: I36f6caa09267ab1180ff12cfed9b9c7befff2842
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
5 years agocanvas: get canvas w/h for frame check [2/2]
shihong.zheng [Tue, 6 Nov 2018 12:29:19 +0000 (20:29 +0800)]
canvas: get canvas w/h for frame check [2/2]

PD#SWPL-1738

Problem:
support frame crc32 check and dump yuv.

Solution:
support frame check and yuv dump in media_module, add interface
to get canvas width/height.

Verify:
u212

Change-Id: Ieadc95521c4a21bec5685f8c8926d3bb2f92637b
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
5 years agovideo: disable video in early suspend [1/1]
rongrong zhou [Mon, 7 Jan 2019 08:14:56 +0000 (16:14 +0800)]
video: disable video in early suspend [1/1]

PD#SWPL-2736

Problem:
suspend green screen

Solution:
disable video in early suspend

Verify:
Ampere

Change-Id: If5ad13d2964b1541791d95ffb239293ab1e4ffb6
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
5 years agodv: set g12a/b core run_mode_delay as 0 [1/1]
Yi Zhou [Tue, 8 Jan 2019 05:59:32 +0000 (13:59 +0800)]
dv: set g12a/b core run_mode_delay as 0 [1/1]

PD#SWPL-3890

Problem:
when starting to play video, the manu bar shakes

Solution:
stb core don't need run mode delay.

Verify:
u212

Change-Id: If8634cfd33598343cef84b93d4757f5d5c9c72e5
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agodv: add compatibility to prevent panic [1/1]
Yi Zhou [Tue, 8 Jan 2019 01:24:45 +0000 (09:24 +0800)]
dv: add compatibility to prevent panic [1/1]

PD#SWPL-3889

Problem:
when the metadata parsed by decode is error, the array will overflow
in dv module.

Solution:
dolby type just appears once in metadata. After parsing dolby type,
breaking the circulation directly.

Verify:
U212

Change-Id: I715e28c1b9a8aab2fcb4059dd132b5b98c043f31
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agocec: too more log when cec bus error [1/1]
Yong Qin [Mon, 7 Jan 2019 07:59:00 +0000 (15:59 +0800)]
cec: too more log when cec bus error [1/1]

PD#SWPL-3921

Problem:
Too more log when cec bus error

Solution:
print the log at log level 1

Verify:
verified on tl1 android p

Change-Id: I8273e0a46470d59160f1ac8dc71494a9abb19b0f
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoethernet: setup tx_amp from efuse [1/1]
Zhuo Wang [Tue, 25 Dec 2018 08:16:50 +0000 (16:16 +0800)]
ethernet: setup tx_amp from efuse [1/1]

PD#SWPL-3552

Problem:
tx_v show different for each chip

Solution:
add new function to setup

Verify:
co-work with analog on G12B SOCKET board

Change-Id: I1f2711b9414464c7044efc3f3128cc3c3808cfc5
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
5 years agomailbox: mailbox: add eth calc data read interface [2/2]
Shunzhou Jiang [Fri, 21 Dec 2018 09:12:01 +0000 (17:12 +0800)]
mailbox: mailbox: add eth calc data read interface [2/2]

PD#SWPL-3498

Problem:
ethernet need read data from efuse

Solution:
add interface to read data

Verify:
g12a_skt

Change-Id: I7ce7ffe2f194c875155e6db8acb55eb8ac5500a0
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
5 years agohdmitx: disable spead spectrum when 4k mode [1/1]
Kaifu Hu [Wed, 2 Jan 2019 02:54:09 +0000 (10:54 +0800)]
hdmitx: disable spead spectrum when 4k mode [1/1]

PD#SWPL-3696

Problem:
Flash black screen when 4k mode

Solution:
Disable spead spectrum when 4k mode

Verify:
GXL/P215

Change-Id: I131633c26492548146cdc6e75a4d65b91cfd77ad
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
5 years agomm: fix range mistake for virt_check [1/1]
Tao Zeng [Wed, 2 Jan 2019 06:47:13 +0000 (14:47 +0800)]
mm: fix range mistake for virt_check [1/1]

PD#SWPL-3793

Problem:
Address 0xC0000000 is in lowmem, which should not be warned by

virt_check:d input of virt:c0000000
                           ~~~~~~~~
CPU: 1 PID: 5141 Comm: Binder:3297_5 Tainted: G           O    4.9.113 #1
Hardware name: Generic DT based system
[<c030e760>] (show_stack+0x20/0x24)
[<c06ee8a8>] (dump_stack+0x90/0xac)
[<c031c7b4>] (virt_check+0x64/0x68)
[<c049c45c>] (__check_object_size+0x184/0x1f8)
[<c07058c0>] (copy_page_to_iter+0x288/0x5b8)
[<c04425dc>] (generic_file_read_iter+0x390/0xa48)
[<c049f238>] (__vfs_read+0xec/0x13c)
[<c04a00e0>] (vfs_read+0x9c/0x164)
[<c05ce7e8>] (sdcardfs_read+0x28/0x50)
[<c049f194>] (__vfs_read+0x48/0x13c)
[<c04a00e0>] (vfs_read+0x9c/0x164)
[<c04a13ac>] (SyS_read+0x5c/0xbc)
[<c0308980>] (ret_fast_syscall+0x0/0x48)

Solution:
Not warning for 0xC0000000 if virt address is equal to it

Verify:
R311

Change-Id: I9a3f8efe89564f31f9a49ab4448323c93ddc761d
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agosdio: optimize 1bit mode cfg [1/1]
Nan Li [Fri, 28 Dec 2018 10:07:27 +0000 (18:07 +0800)]
sdio: optimize 1bit mode cfg [1/1]

PD#SWPL-3719

Problem:
optimize sdio 1bit cfg fail for dts.

Solution:
move MMC_PM_KEEP_POWER setting from
amlsd_get_host_caps(). so modify dts to
set 1bit mode.

Verify:
p212

Change-Id: I268f25a9550058e7bbf3562eec53c8cd92b58b1b
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agocodec_mm: not to be blocked to wait scatter cache done [1/2]
Hui Zhang [Sat, 22 Dec 2018 08:55:43 +0000 (16:55 +0800)]
codec_mm: not to be blocked to wait scatter cache done [1/2]

PD#SWPL-2206

Problem:
decoding thread was blocked to wait scatter memory to be cached done. it
may take 30+ ms and lead to cts/vts fail

Solution:
not to wait scatter cached done. it save timing of system

Verify:
Verified U212

Change-Id: I75fa3e892e0b9b8023c07b62a31ebd43d3c92044
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
5 years agovideo: dv: Change omx pts upper and lower threshold for dv [3/3]
Lifeng Cao [Wed, 12 Dec 2018 03:22:07 +0000 (11:22 +0800)]
video: dv: Change omx pts upper and lower threshold for dv  [3/3]

PD#SWPL-2465

Problem:
DV av-sync test diff between audio and video too big

Solution:
Change omx pts upper and lower threshold

Verify:
Test pass by S905X2-U212

Change-Id: I916773300b29a9b6368d7e2283effae2a6440d14
Signed-off-by: Lifeng Cao <lifeng.cao@amlogic.com>
5 years agoion: add invalid cache function [1/1]
Yao.Liu [Fri, 28 Dec 2018 12:38:21 +0000 (07:38 -0500)]
ion: add invalid cache function [1/1]

PD#SWPL-3736

Problem:
H265 encoder use ge2d to do format convert, ge2d dst
buffer is allocated from ion heap and is cached buffer.
The cache consistency problem caused encoded stream error.

Solution:
ION add invalid cache function, invalid cache before
CPU access cache buffer

Verify:
U212

Change-Id: Ib14f2a9ee5b536c3546c5957fd0505cacae45f80
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
5 years agodefendkey: change defendkey read function process [1/1]
Zhongfu Luo [Sat, 29 Dec 2018 05:12:08 +0000 (13:12 +0800)]
defendkey: change defendkey read function process [1/1]

PD#SWPL-3204

Problem:
GXL: need to fix bug for defendkey read function

Solution:
1.change defendkey read function process

Verify:
GXL skt board verify pass

Change-Id: I61c7e7074eefa1ab20bdb8fa31f970b39bfe5a1b
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agodefendkey: change defendkey reserved memory process [1/1]
Zhongfu Luo [Fri, 28 Dec 2018 08:16:28 +0000 (16:16 +0800)]
defendkey: change defendkey reserved memory process [1/1]

PD#SWPL-3706

Problem:
GXL: defenkey cause system crash

Solution:
1.change defendkey reserved memory process
2.limit reserved memory region

Verify:
GXL skt board verify pass

Change-Id: I23c6fe861803de96eccec9b643824eeae2c2e564
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agosdio: optimize data1 interrupt cfg reg error [1/1]
Nan Li [Thu, 20 Dec 2018 09:21:24 +0000 (17:21 +0800)]
sdio: optimize data1 interrupt cfg reg error [1/1]

PD#SWPL-1908

Problem:
rtl 8822bs sdio wifi tx data crc when Online on demand.

Solution:
remove cfg reg invalid setting in enable_sdio
when data1 interrupt breaks.

Verify:
u212

Change-Id: I49e21a6d213d9c60e315d23bdf9937385b6d75e9
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agocodec_mm: add the flush cache away for the highmem [1/1]
Nanxin Qin [Wed, 26 Dec 2018 11:29:18 +0000 (19:29 +0800)]
codec_mm: add the flush cache away for the highmem [1/1]

PD#SWPL-3588

Problem:
bad using virt_to_pfn in stream_input ko

Solution:
add the flush cache away for the highmem.

Verify:
p212

Change-Id: I70fd18f97b5b91c9154b7eeb9f488d16113daf8d
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
5 years agomm: check virt_to_xxxx macro on 32bit OS [1/1]
Tao Zeng [Tue, 25 Dec 2018 11:17:25 +0000 (19:17 +0800)]
mm: check virt_to_xxxx macro on 32bit OS [1/1]

PD#SWPL-1909

Problem:
virt_to_page may get bad input with virtual address
in high mem.

Solution:
Check input address of this macro and get a warn print

Verify:
p212

Change-Id: I69d81f7aac43f1865d3d1112263276603de166ce
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agodts: add netflix MGKID unify key [3/3]
rongrong zhou [Tue, 11 Dec 2018 07:42:46 +0000 (15:42 +0800)]
dts: add netflix MGKID unify key [3/3]

PD#SWPL-2847

Problem:
    add netflix MGKID support

Solution:
    add netflix MGKID support

Verify:
    ampere NTS

Change-Id: I7bf7f7b7527a36dc7b50f1a98bdb5d0a60af8741
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
5 years agoosd: the border below has a green horizontal line [1/2]
Pengcheng Chen [Mon, 24 Dec 2018 02:40:34 +0000 (10:40 +0800)]
osd: the border below has a green horizontal line  [1/2]

PD#SWPL-3478

Problem:
the border below has a green horizontal line

Solution:
add freescale repeat last line, supported chip after G12B

Verify:
verify on T962X2-X301

Change-Id: I5dab91774eea3949062fe3254db7a074563fe1c4
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agovpp: set the preblend horz size correctly for hdr input [2/2]
Brian Zhu [Wed, 26 Dec 2018 14:37:51 +0000 (22:37 +0800)]
vpp: set the preblend horz size correctly for hdr input [2/2]

PD#SWPL-3478

Problem:
the border below has a abnormal line

Solution:
Set the preblend horz size correct

Verify:
verify on T962X2-X301

Change-Id: Ie7b20a6b030d40d3a0eb3458df07e7632491aa2c
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agodts: fix g12b energy-cost config error [1/1]
Hanjie Lin [Fri, 23 Nov 2018 07:14:28 +0000 (15:14 +0800)]
dts: fix g12b energy-cost config error [1/1]

PD#SWPL-1007

Problem:
g12b a53 core energy-cost config is error.

Solution:
modify with right cost value

Verify:
w400

Change-Id: I1ffba5b147879a4178f255247f338b594e440eed
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agodv: fix the error setting in dv core [1/1]
Yi Zhou [Tue, 25 Dec 2018 09:08:39 +0000 (17:08 +0800)]
dv: fix the error setting in dv core [1/1]

PD#SWPL-3046

Problem:
movie player will keep video layer when playing video films.
Even if jumping to the next films, it will not close video layer.
When meeting this situation, dv core will keep the front
film's setting.

Solution:
when jumping the next film, we know the first frame.
So we clean the setting in the first frames.

Verify:
u212

Change-Id: I61ebc8f58baed32abc519018676e40b08d059cac
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agodefendkey: script signing tool: support upgrade check [5/5]
Zhongfu Luo [Thu, 27 Dec 2018 09:47:20 +0000 (17:47 +0800)]
defendkey: script signing tool: support upgrade check [5/5]

PD#SWPL-3204

Problem:
GXL/TXLX/G12A/G12B: script signing tool need to support defendkey

Solution:
1.change dtb decrypt process

Verify:
GXL/TXLX/G12A/G12B skt board verify pass

Change-Id: I165db827dec82837edb8a4a5197090bbd79d536d
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agoRevert "mm: check virt_to_xxxx macro on 32bit OS [1/1]"
Luan Yuan [Thu, 27 Dec 2018 08:32:23 +0000 (16:32 +0800)]
Revert "mm: check virt_to_xxxx macro on 32bit OS [1/1]"

This reverts commit 0d79066451f17a1fe66e8a1440c99371e58cf325.