platform/kernel/linux-amlogic.git
5 years agobacklight: update ldim setting for tl1 [1/1]
Evoke Zhang [Tue, 20 Nov 2018 10:38:38 +0000 (18:38 +0800)]
backlight: update ldim setting for tl1 [1/1]

PD#SWPL-2762

Problem:
ldim is changed for tl1

Solution:
update ldim setting for tl1

Verify:
x301

Change-Id: I21b10f27f4d1776db664c62fa7358b38801c7f53
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoarm: dts: tl1: update the compatible string for timer node [1/1]
Xingyu Chen [Wed, 2 Jan 2019 05:09:59 +0000 (13:09 +0800)]
arm: dts: tl1: update the compatible string for timer node [1/1]

PD#SWPL-3791

Problem:
the compatible string with "arm,armv8-timer" is used for AARCH64, we
should use the compatible string with "arm,armv7-timer" for AARCH32

Solution:
update the compatible string for timer node

Verify:
test pass on x301

Change-Id: I17d0f84f61109e885c5584c2703e4256262b72ef
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
5 years agolcd: update phy config for tl1 [1/1]
Evoke Zhang [Tue, 25 Dec 2018 05:10:00 +0000 (13:10 +0800)]
lcd: update phy config for tl1 [1/1]

PD#SWPL-3109

Problem:
tl1 tcon phy config need update

Solution:
1.update tcon phy config for tl1
2.optimize phy config with independent file

Verify:
x301

Change-Id: I869cab8fc28fc9d323ca0365fc6eead1c6bc53d7
Signed-off-by: Evoke Zhang <evoke.zhang@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>
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 agodts: txlx: reserve 1M memory for codec mm [1/1]
Lei Qian [Wed, 2 Jan 2019 07:59:53 +0000 (15:59 +0800)]
dts: txlx: reserve 1M memory for codec mm [1/1]

PD#SWPL-2735

Problem:
codec will occupy the first 1M memory with unknown reason.

Solution:
reserve 1M memory for codec mm until the real reason is found.

Verify:
verify by einstein

Change-Id: Ic21bfa59e74d21ae8f6b4477470b9d719bebc595
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
5 years agoatv_demod: modify atv demod code [1/1]
nengwen.chen [Fri, 21 Dec 2018 05:18:02 +0000 (13:18 +0800)]
atv_demod: modify atv demod code [1/1]

PD#SWPL-3469

Problem:
1.add mono audio only config.
2.fix offset -0.5M lose channel when scanning.
3.fix a2 audio mono mode detection threshold.
4.add audio detection when scanning.
5.Ver: V2.06.

Solution:
add mono audio only config

Verify:
verified by einstein

Change-Id: I774d7aa42ffbfcbec58b9b21f05368c5166331c8
Signed-off-by: nengwen.chen <nengwen.chen@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 agocamera: all sources are displayed as black screen except DTV.
nengwen.chen [Tue, 1 Jan 2019 09:55:48 +0000 (17:55 +0800)]
camera: all sources are displayed as black screen except DTV.

PD#SWPL-3776

Problem:
all sources are displayed as black screen except DTV

Solution:
Revert "camera: add dvp camera [1/1]"

Verify:
verify by x301

Change-Id: I3f094ed18de4be382798515e5c68eb5505df2373
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agolcd: modify lcd/power show debug node [1/1]
Shaochan Liu [Sat, 29 Dec 2018 06:57:40 +0000 (14:57 +0800)]
lcd: modify lcd/power show debug node [1/1]

PD#SWPL-1005

Problem:
modify lcd/power show debug node

Solution:
1,modify lcd/power node to show lcd power on/off

Verify:
verified by t962x_r311

Change-Id: Ic2b293ac14a3139b572a2e36ac101f9f54da2139
Signed-off-by: Shaochan Liu <shaochan.liu@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 agoaudio: fix no sound when atv switch to other source [1/1]
Xing Wang [Thu, 27 Dec 2018 12:58:52 +0000 (20:58 +0800)]
audio: fix no sound when atv switch to other source [1/1]

PD#SWPL-3440

Problem:
ATV switch to other source, such as DTV/HDMI/AV, no sound

Solution:
ATV switch to other source, atv demond is disabled when
audio is reading data, so it's blocked.
In normal, ATV sends audio data to FRATV,
then FRATV sends data to audio fifo, then to DDR.
If ATV stops to send audio data, no interrupt from FRATV to fifo,
no data is updated to DDR.
When exit from audio atv patch, it's a block signal to
wait in_read finished, but ATV is disabled
TimeCheckThread will check any routine is blocked,
if there is one, signal SIGABRT would rise and cause audio server restart
So we  make a delay before ATV is disabled to waiting audio data is readed.

Verify:
x301

Change-Id: I47dc88d2c8565c16c739ffea69a88152fa4d5f13
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
5 years agocamera: add dvp camera [1/1]
Guosong Zhou [Sat, 29 Dec 2018 02:17:04 +0000 (21:17 -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: I0451160d013cd15b32a11469926fe8be4c35c466
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agoaudio: auge: add vad driver [1/1]
Xing Wang [Wed, 5 Dec 2018 15:12:54 +0000 (23:12 +0800)]
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>
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 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 agotvafe: fix black border for atv [1/1]
Nian Jing [Tue, 25 Dec 2018 08:24:04 +0000 (16:24 +0800)]
tvafe: fix black border for atv [1/1]

PD#SWPL-3573

Problem:
appear black border after unplug/plug signal

Solution:
reset de when nosignal
restore acd hsync when signal unstable

Verify:
verified by x301

Change-Id: Ia9e2e9dfb326061bd3b9b6f9a02be0d935cdf06f
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agoaudio: codec: fix to resume ad82584's volume after suspend [1/1]
Xing Wang [Wed, 26 Dec 2018 11:42:37 +0000 (19:42 +0800)]
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>
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 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 agolcd: update panel parameters for tl1 [1/1]
Evoke Zhang [Thu, 27 Dec 2018 09:17:47 +0000 (17:17 +0800)]
lcd: update panel parameters for tl1 [1/1]

PD#SWPL-3109

Problem:
tl1 tcon parameters need update

Solution:
1.update tcon parameters for tl1
2.add minilvds support

Verify:
x301

Change-Id: Ia9c1defb25f43b2b352400e2ab55c6a74b55d688
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
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 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 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 agoMerge "backlight: pwm combo policy bug with level range [2/2]" into amlogic-4.9-dev
Jianxin Pan [Thu, 27 Dec 2018 11:13:51 +0000 (03:13 -0800)]
Merge "backlight: pwm combo policy bug with level range [2/2]" into amlogic-4.9-dev

5 years agotvin: vdin: fix afbce 576p color anomaly [1/1]
Xuhua Zhang [Fri, 21 Dec 2018 05:16:24 +0000 (13:16 +0800)]
tvin: vdin: fix afbce 576p color anomaly [1/1]

PD#SWPL-3424

Problem:
dvd play 576p media, tl1 display color anomaly

Solution:
encoder use same default color setting with decoder

Verify:
x301

Change-Id: I8954874ea048b2d9e9b7aa58c883da1f306c4459
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
5 years agotvin: vdin: fix afbce 4k yuv444 display error [1/1]
Xuhua Zhang [Thu, 20 Dec 2018 12:16:06 +0000 (20:16 +0800)]
tvin: vdin: fix afbce 4k yuv444 display error [1/1]

PD#SWPL-3429

Problem:
vdin output format is afbce 4k yuv444,it display ghost shadow of image

Solution:
add afbce comb control

Verify:
x301

Change-Id: I168f13994a4929bd227ba70b006f259ac0726238
Signed-off-by: Xuhua Zhang <xuhua.zhang@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 agomtd: nand: support new slc nand [1/1]
Yi Zeng [Thu, 27 Dec 2018 06:43:36 +0000 (14:43 +0800)]
mtd: nand: support new slc nand [1/1]

PD#SWPL-3542

Problem:
2Gb SLC Nand ZDND2G08U3D-IA requested by Marketing
aka ZDND2GXXXXX module number

Solution:
add the nand id and MFR id into amlogic id table
adapt it's bad block identification

Verify:
AXG_S400

Change-Id: I6f0e2caf424e09c1f186beb42a146d92b675f161
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
5 years agodmc: fix panic problem when show memory in highmem [1/1]
Tao Zeng [Thu, 27 Dec 2018 06:31:29 +0000 (14:31 +0800)]
dmc: fix panic problem when show memory in highmem [1/1]

PD#SWPL-2767

Problem:
If DMC violation address is in highmem, then it will panic
when show memory using page_address();

Solution:
map violation address for highmem

Verify:
p212

Change-Id: Ib6213eaab42b129c8c0a381511a0b3376b0d3e66
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agohdmirx: update phy setting [1/1]
yicheng shen [Thu, 20 Dec 2018 08:13:00 +0000 (03:13 -0500)]
hdmirx: update phy setting [1/1]

PD#SWPL-3512

Problem:
HDMIRX no sinal in some mainboard.

Solution:
1.fix phy pll lock bit unstable issue(foce lock);
2.modify phy bandwidth definition;
3.optimize tmds_valid judgement;

Verify:
TL1

Change-Id: Idea20a46c465b20687654f071b259ebf8a7fed4a
Signed-off-by: yicheng shen <yicheng.shen@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 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 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 agobacklight: add backlight pwm debug node for tvapi [1/1]
Shaochan Liu [Thu, 6 Dec 2018 08:58:17 +0000 (16:58 +0800)]
backlight: add backlight pwm debug node for tvapi [1/1]

PD#SWPL-3110

Problem:
add backlight pwm debug node for tvapi

Solution:
1,change pwm node for pwm main parameters(duty, freq, pol)
2,add pwm_info node to display all pwm state

Verify:
verified by t962x_r311

Change-Id: Ibd9575412ca9704a0002073679d19c5426c1838c
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
5 years agobacklight: ldim_global demo can't power on [1/1]
Evoke Zhang [Fri, 21 Dec 2018 03:41:54 +0000 (11:41 +0800)]
backlight: ldim_global demo can't power on [1/1]

PD#SWPL-3293

Problem:
select UHD_2RG_LDIM model_name,
then the backlight can't power on.

Solution:
fix ldim dev_drv add mistake

Verify:
r311

Change-Id: I7f86d6072524a2a6399a8259dae8c27a89a79b85
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agohdmitx: add rx latency info [1/4]
Zongdong Jiao [Tue, 20 Nov 2018 04:37:30 +0000 (12:37 +0800)]
hdmitx: add rx latency info [1/4]

PD#SWPL-2456

Problem:
Lack the latency info of RX

Solution:
Add the latency info of RX

Verify:
T962E/R321

Change-Id: I480398466753dd93ca6e908d39157acadff6879f
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agoarm64: dts: remove alloc-ranges property in cma nodes for tl1 [1/1]
Xingyu Chen [Wed, 26 Dec 2018 02:47:13 +0000 (10:47 +0800)]
arm64: dts: remove alloc-ranges property in cma nodes for tl1 [1/1]

PD#SWPL-3437

Problem:
the cam regions that specified by the alloc-ranges property are scattered,
it is not convenient to debug the memory issues.

Solution:
remove alloc-ranges property in cam nodes, but secmon and fb. the system
will allocate the cma region automatically that more gathered.

Verify:
test pass on x301

Change-Id: Ibbe64b48843c1295110242c17d7691284f08a66b
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
5 years agodts: add w411 dts for buildroot [1/1]
Dianzhong Huo [Tue, 25 Dec 2018 08:23:56 +0000 (16:23 +0800)]
dts: add w411 dts for buildroot [1/1]

PD#SH-224

Problem:
buildroot no w411 dts

Solution:
1.add w411 dts
2.w411 dts copy form w400_buildtoot dts, and do some memory cost down,
  and also sdio port has some different with w400 board

Verify:
w411 board test pass

Change-Id: Iba3de4fc4fe1d37dbb6070dbe54ad35c9caf45d9
Signed-off-by: Dianzhong Huo <dianzhong.huo@amlogic.com>
5 years agobacklight: pwm combo policy bug with level range [2/2]
Shaochan Liu [Fri, 21 Dec 2018 10:48:07 +0000 (18:48 +0800)]
backlight: pwm combo policy bug with level range [2/2]

PD#TV-1488

Problem:
when only use one pwm, pwm combo policy has a bug with
level range

Solution:
modify level range check demo when set bl level

Verify:
verify by T962X2-X301

Change-Id: Ia5a0b12fa96f0f77ed85f6f70ed796203ea32a20
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
5 years agoaudio: Fix TDM not wokring on HDMI I2S in [1/1]
yujie.wu [Wed, 19 Dec 2018 02:39:25 +0000 (10:39 +0800)]
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>
5 years agotvafe: fix av pal flash issue on some devices [1/1]
Nian Jing [Wed, 19 Dec 2018 12:45:46 +0000 (20:45 +0800)]
tvafe: fix av pal flash issue on some devices [1/1]

PD#SWPL-2636

Problem:
Picture flash when av connect some dvd or mbox

Solution:
Modify the vafe ctrl config

Verify:
verified by x301

Change-Id: Ie6ae659f3f59d7daba680e2bb32112031232c956
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agomm: fix too many wrong kasan report [1/1]
Tao Zeng [Tue, 25 Dec 2018 09:43:02 +0000 (17:43 +0800)]
mm: fix too many wrong kasan report [1/1]

PD#SWPL-3583

Problem:
After merge change:
http://scgit.amlogic.com:8080/#/c/55018/
Too many wrong kasan report occur when booting kernel

Solution:
Fix kasan poison address range when free wasted memory.

Verify:
P212

Change-Id: I576a7edb7b4e70f9c6c782639f433ad45bafba1d
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agoarm64: add tl1 support [1/1]
Xingyu Chen [Tue, 25 Dec 2018 08:10:30 +0000 (16:10 +0800)]
arm64: add tl1 support [1/1]

PD#SWPL-3437

Problem:
the arm64 does not support tl1

Solution:
add arm64 support for tl1

Verify:
test pass on x301

Change-Id: I9531731650c7e8e962f681e357580d3dd0eb0137
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
5 years agovlock: vlock for tl1 [1/1]
Yong Qin [Wed, 19 Dec 2018 06:56:40 +0000 (14:56 +0800)]
vlock: vlock for tl1 [1/1]

PD#SWPL-3129

Problem:
1.verify manual pll mode
2.modify vlock hiu register access api
3.add a new fsm for tl1 test
4.add chip match data

Solution:
add function for tl1

Verify:
verified on tl1

Change-Id: I75f8d2a40437056135f8dd0fb241016a9ea680df
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agodts: Add two dts files for S410 [3/3]
Yeping Miao [Fri, 7 Dec 2018 00:56:57 +0000 (08:56 +0800)]
dts: Add two dts files for S410 [3/3]

PD#SWPL-2887

Problem:
 adapt Soundbar solution to S410 platform

Solution:
 These two dts files are changed from S400.
 Change the audio related like following.
 hw:0,0 is for LINE in
 hw:0,1 is for HDMI i2s in
 hw:0,2 is for speaker out (4 i2s)

Verify:
 S410 A113D

Change-Id: I09fff371e511432f363e2ec8999b584af533ff9c
Signed-off-by: Yeping Miao <yeping.miao@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 agolcd: add lcd resume alarm filter function [1/1]
Shaochan Liu [Tue, 18 Dec 2018 03:31:35 +0000 (11:31 +0800)]
lcd: add lcd resume alarm filter function [1/1]

PD#SWPL-3362

Problem:
add lcd resume alarm filter function

Solution:
add lcd resume alarm filter function

Verify:
verified by t962x_r311

Change-Id: Ia4c219c76d253b4ecc16784193dc06a164d7a217
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
5 years agobacklight: add backlight brightness debug function [2/2]
Shaochan Liu [Mon, 17 Dec 2018 12:07:54 +0000 (20:07 +0800)]
backlight: add backlight brightness debug function [2/2]

PD#SWPL-1005

Problem:
add backlight brightness debug function

Solution:
1,add brightness_level node to change backlight brightness
2,add brightness_bypass node to change brightness_bypass

Verify:
verified by t962x_r311

Change-Id: I8faae0d08b2a15fdc5c5a507c0c6815843be59ab
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
5 years agoir: add toshiba protocol support [1/1]
Qianggui Song [Mon, 24 Dec 2018 05:35:17 +0000 (13:35 +0800)]
ir: add toshiba protocol support [1/1]

PD#SWPL-3543

Problem:
current driver does not support toshiba ir remote control protocol

Solution:
add register setting and decode code for toshiba protocol
use REMOTE_TYPE_TOSHIBA/REMOTE_TYPE_NEC_TOSHIBA to configure toshiba
only/toshiba and nec.

Verify:
tl1_t962x2_x301

Change-Id: Idad70c3879fad6e8267f0c4d80d2447c34114103
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
5 years agolcd: add lcd/power debug node [1/2]
Shaochan Liu [Thu, 6 Dec 2018 08:58:17 +0000 (16:58 +0800)]
lcd: add lcd/power debug node [1/2]

PD#SWPL-1005

Problem:
add lcd/power debug node

Solution:
1,add lcd/power node to control lcd power on/off sequence
2,change old lcd/power to lcd/power_step

Verify:
verified by t962x_r311

Change-Id: I0b10caa4cbd8f7ce489f3ceef7780dba2e0b00dc
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
5 years agodts: change CMA layout [1/1]
Tao Zeng [Tue, 25 Dec 2018 08:55:09 +0000 (16:55 +0800)]
dts: change CMA layout [1/1]

PD#SWPL-1909

Problem:
On 32bit kernel, codec cma is located in normal zone by
"alloc-ranges" parameter with large size. This takse up
memory space for kernel and drivers. Sometimes we can see
memory allocation fail log but there are still enought
free pages. But most of these pages are CMA pages.

Solution:
Move codec cma location to high memzone. On 32bit, low
768MB memory is normal zone.
This change also correct first 1MB memory lost problem
for chips later than TXLX

Verify:
TL1 x301/x309/socket board

Change-Id: I2fc62ae8b03143cc91bfecc62c123d1925aac482
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agothermal: cooldev: fix cpucore cool devices driver issue [1/1]
Huan Biao [Thu, 20 Dec 2018 09:42:24 +0000 (17:42 +0800)]
thermal: cooldev: fix cpucore cool devices driver issue [1/1]

PD#SWPL-3334

Problem:
cpucore cool devices upper date type no match
cpucore num set error

Solution:
modify cpucore upper num check

Verify:
w400 pass

Change-Id: I83f829d31cab565d5ca3b892bb58a4a68b8f0f20
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
5 years agohdmitx: fix KASAN Bug in set_disp_mode_auto [1/1]
Zongdong Jiao [Thu, 13 Sep 2018 02:17:34 +0000 (10:17 +0800)]
hdmitx: fix KASAN Bug in set_disp_mode_auto [1/1]

PD#173549: hdmitx: fix KASAN Bug in set_disp_mode_auto
==================================================================
BUG: KASAN: global-out-of-bounds in set_disp_mode_auto+0x244/0x870
Read of size 32 at addr ffffff900a67e4c0 by task power@1.0-servi/2924

CPU: 2 PID: 2924 Comm: power@1.0-servi Tainted: G    B      O    4.9.113 #1
Hardware name: Amlogic (DT)
Call trace:
[<ffffff900908ecc0>] dump_backtrace+0x0/0x368
[<ffffff900908f0cc>] show_stack+0x24/0x30
[<ffffff900963bdb0>] dump_stack+0xa0/0xc8
[<ffffff90092ba234>] print_address_description+0x144/0x258
[<ffffff90092ba6ac>] kasan_report+0x264/0x338
[<ffffff90092b8ff4>] check_memory_region+0x12c/0x1c0
[<ffffff90092b90dc>] __asan_loadN+0x14/0x20
[<ffffff9009c12804>] set_disp_mode_auto+0x244/0x870
[<ffffff9009c13994>] hdmitx_late_resume+0x1cc/0x288
[<ffffff9009da5f30>] early_suspend_trigger_store+0x1a8/0x1d0
[<ffffff9009640ac4>] kobj_attr_store+0x44/0x60
[<ffffff90093973b0>] sysfs_kf_write+0x98/0xb8
[<ffffff9009396134>] kernfs_fop_write+0x12c/0x270
[<ffffff90092c9888>] __vfs_write+0xd8/0x268
[<ffffff90092cae48>] vfs_write+0xd8/0x240
[<ffffff90092ccd8c>] SyS_write+0xc4/0x148
[<ffffff9009083f00>] el0_svc_naked+0x34/0x38

The buggy address belongs to the variable:
 all_fmt_paras+0x1460/0x14a0

Memory state around the buggy address:
 ffffff900a67e380: 00 07 fa fa fa fa fa fa 00 02 fa fa fa fa fa fa
 ffffff900a67e400: 00 07 fa fa fa fa fa fa 00 02 fa fa fa fa fa fa
>ffffff900a67e480: 00 07 fa fa fa fa fa fa 00 02 fa fa fa fa fa fa
                                              ^
 ffffff900a67e500: 00 07 fa fa fa fa fa fa 00 03 fa fa fa fa fa fa
 ffffff900a67e580: 00 04 fa fa fa fa fa fa 00 04 fa fa fa fa fa fa
==================================================================

Change-Id: Ie2435c031c04ac23e801cfefa80a29071c120b4f
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agodi: disable afbc on tl1 [1/1]
Yong Qin [Tue, 25 Dec 2018 03:03:01 +0000 (11:03 +0800)]
di: disable afbc on tl1  [1/1]

PD#SWPL-3413

Problem:
when playing SD/HD/VP9/H265 video, there
are 3 veritcal lines on the picture.

Solution:
disable afbc

Verify:
verified on tl1

Change-Id: I839d8f26aefdf2c71272d8d3e7bf93e4c3294491
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoamlvideo2: reduce vfq size to avoid mem out-of-bounds [1/1]
Jiacheng Mei [Mon, 24 Dec 2018 03:00:08 +0000 (11:00 +0800)]
amlvideo2: reduce vfq size to avoid mem out-of-bounds [1/1]

PD#SWPL-3355

Problem:
vfq size large than kmalloc mem

Solution:
reduce vfq size to kmalloc mem size

Verify:
T962X-R311

Change-Id: Ibbc0c0219d6f170b4169d76e57419cdeb354f7fe
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
5 years agoamvecm: malloc local contrast to enable lc function [1/1]
Bencheng Jing [Thu, 20 Dec 2018 06:52:26 +0000 (14:52 +0800)]
amvecm: malloc local contrast to enable lc function [1/1]

PD#SWPL-3419

Problem:
enable local contrast function

Solution:
enable local contrast function

Verify:
x301

Change-Id: I6a1daa7c82224956614b4da46078efdd66424b82
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agowifi: change mem size to support multi wifi [2/2]
Rongjun Chen [Thu, 29 Nov 2018 10:40:14 +0000 (18:40 +0800)]
wifi: change mem size to support multi wifi [2/2]

PD#SWPL-2210

Problem:
multi wifi not support

Solution:
add multi wifi support

Verify:
ampere

Change-Id: Iea32268fd081a71a1ade00e56a2dcecd975da849
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
5 years agoarm: vrtc: add rtc function for tl1. [1/1]
Hong Guo [Thu, 20 Dec 2018 09:27:35 +0000 (17:27 +0800)]
arm: vrtc: add rtc function for tl1. [1/1]

PD#SWPL-3315

Problem:
can't wakeup after setting timer expire.

Solution:
add rtc funciton for tl1.

Verify:
tl1_x301, verify pass

Change-Id: I2b8e77cb90cacdde728586f873d10e5fbe52f76c
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agodts: TXL: defendkey: modify reserve memory mode [2/2]
Zhongfu Luo [Thu, 13 Dec 2018 09:57:20 +0000 (17:57 +0800)]
dts: TXL: defendkey: modify reserve memory mode [2/2]

PD#SWPL-2343

Problem:
TXL need to modify reserve memory mode

Solution:
remove defendkey reserved memory in TXL dts

Verify:
TXL skt board verify pass

Change-Id: I1d036d7f0e2cf713cb093e5f2a01e69603264664
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agoatv_demod: atv demod code optimization for audio [1/1]
nengwen.chen [Fri, 7 Dec 2018 13:41:43 +0000 (21:41 +0800)]
atv_demod: atv demod code optimization for audio [1/1]

PD#TV-1448

Problem:
1.atv demod code optimization for audio
2.amlogic-4.9-dev

Solution:
atv demod code optimization for audio

Verify:
verified by einstein

Change-Id: Ic1c6a26ef97fbaf288ae37f2761c0df83ec7cf1e
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agodeinterlace: pq: adjust pulldown setting for tl1 [1/1]
Jihong Sui [Tue, 18 Dec 2018 13:56:38 +0000 (21:56 +0800)]
deinterlace: pq: adjust pulldown setting for tl1 [1/1]

PD#SWPL-3182

Problem:
1.VLSI(Feijun) fine-tune pulldown setting for TL1, G12A/B;
2.fine tune combing_glbmot_radprat by VLSI(yanling.liu);

Solution:
finetune setting.

Verify:
tl1

Change-Id: Ie65cec8b216752600dfd54ee6be5302150282774
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agodeinterlace: pq: add scene change detection for tl1 [1/1]
Jihong Sui [Wed, 12 Dec 2018 09:02:09 +0000 (17:02 +0800)]
deinterlace: pq: add scene change detection for tl1 [1/1]

PD#TV-1361

Problem:
Add scene change detection for DM (read part),
start from TL1 by VLSI(Zheng.Bao).

Solution:
1. add control in function noise_meter_process;
2. add debug information:
cat /sys/class/deinterlace/di0/nr4_param
3. set NR2_CUE_MODE[11:10] as 3; (by feijun)

Verify:
tl1

Change-Id: Ib34d1b403539ba5fe5135d6608bfa2cf27490826
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agoarm: dts: tl1: optimize ipa parameter [1/1]
Huan Biao [Tue, 18 Dec 2018 03:13:58 +0000 (11:13 +0800)]
arm: dts: tl1: optimize ipa parameter [1/1]

PD#SWPL-3334

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

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

Verify:
x301 pass

Change-Id: I8005140a4ef0b87998f2f637d604db85e58e7316
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
5 years agosched: EAS: sched_energy for arm on g12b [1/1]
Hanjie Lin [Tue, 18 Dec 2018 11:21:12 +0000 (19:21 +0800)]
sched: EAS: sched_energy for arm on g12b [1/1]

PD#SWPL-3316

Problem:
g12b/w400 has not sched-energy config in arm for EAS.

Solution:
port from arm64

Verify:
w400

Change-Id: I4f3ddd9d5f2abb9787ab95d6652db6cea1c54b24
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agopicdec: add dts config for tl1_t962x2_x301 [1/1]
Ting Li [Fri, 30 Nov 2018 02:33:36 +0000 (10:33 +0800)]
picdec: add dts config for tl1_t962x2_x301 [1/1]

PD#SWPL-2656

Problem:
cannot play picture

Solution:
add dts config for tl1_t962x2_x301

Verify:
verify by tl1_t962x2_x301

Change-Id: I02265b33e0f2eaffc5741371ae45579effc8df47
Signed-off-by: Ting Li <ting.li@amlogic.com>
5 years agoudio: auge: tl1 acodec mapping to data 1 [1/2]
Jian Xu [Wed, 19 Dec 2018 14:07:07 +0000 (22:07 +0800)]
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>
5 years agodts: Optimize ion memory to 36MB for Android P 720P Project [1/1]
qingwei.xu [Mon, 17 Dec 2018 09:04:57 +0000 (17:04 +0800)]
dts: Optimize ion memory to 36MB for Android P 720P Project [1/1]

PD#SWPL-3324

Problem:
Ion's memory configuration is unreasonable for Android P 720P Project
, resulting in waste.

Solution:
More reasonable memory size configuration,Optimize ion memory to 36MB
for Android P 720P Project

Verify:
Verify by Android P 720P Project

Change-Id: Ibf13989f91c1cce5e030d900de2a30b0a16f7994
Signed-off-by: qingwei.xu <qingwei.xu@amlogic.com>
5 years agoosd: add dd functions used phys_to_page and vmap [1/1]
Pengcheng Chen [Tue, 11 Dec 2018 04:55:59 +0000 (12:55 +0800)]
osd: add dd functions used phys_to_page and vmap [1/1]

PD#SWPL-3153

Problem:
remove phys_to_vir caused dd functions disable.

Solution:
add dd functions used phys_to_page and vmap

Verify:
franklin

Change-Id: Ic28ac0107adfee58933d0b19a2a7c2893c06b789
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agohdmirx: add DRM RCV detection. [1/1]
Lei Yang [Wed, 19 Dec 2018 07:17:17 +0000 (15:17 +0800)]
hdmirx: add DRM RCV detection. [1/1]

PD#SWPL-3117

Problem:
Cannot get the HDR packets/

Solution:
add HDR RCV detection, Low priority than EMP.

Verify:
txlx tl1

Change-Id: I364fc942840b6eef465df16b89fd0a9fd0ccb3ff
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
5 years agoaudio: auge: add HDMIRX SPDIF in support [1/2]
Jian Xu [Wed, 19 Dec 2018 03:19:51 +0000 (11:19 +0800)]
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>
5 years agodv: update the hsize and vsize of dv core 2 [1/1]
Yi Zhou [Tue, 18 Dec 2018 06:56:48 +0000 (14:56 +0800)]
dv: update the hsize and vsize of dv core 2 [1/1]

PD#SWPL-3223

Problem:
get parameters from vpp blend to core 2 is error

Solution:
we get the parameters from OSD blend instead vpp blend

Verify:
u212

Change-Id: I31a5e4cf90b5d665cfd291aab5554d311ec19346
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agoclk: txl: fix gpu clock can not be changed [1/1]
Jian Hu [Tue, 18 Dec 2018 08:17:57 +0000 (16:17 +0800)]
clk: txl: fix gpu clock can not be changed [1/1]

PD#SWPL-2909

Problem:
The gpu clock rate can not be changed.

Solution:
1.it called meson_init_gpu function which used by txlx
  in txl clock driver, change it to meson_txl_gpu_init function.
2.the /sys/kernel/debug/aml_clk/clk_test node can not work
  in txl platform, Initial value for clk_numbers which needed
  by clk_test driver.

Verify:
test passed on P321

Change-Id: Iade63691edf5b39325f34abb4789d48d33339329
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agohdmirx: update the latest setting of phy. [1/1]
Lei Yang [Mon, 10 Dec 2018 10:34:06 +0000 (18:34 +0800)]
hdmirx: update the latest setting of phy. [1/1]

PD#SWPL-2803

Problem:
PHY configuration update

Solution:
1.update phy setting for low_frequency;
2.rm the useless FSM code;
3.optimize the phy configeration interfaces;
4.fix PS4 Pro flashing black&blue screen issue;

Verify:
txlx tl1

Change-Id: I0bea4fa6ec5d9284ed04845b06c3583128f3332d
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
5 years agomm: close vmap stack if open KASAN [1/1]
Tao Zeng [Wed, 19 Dec 2018 03:10:51 +0000 (11:10 +0800)]
mm: close vmap stack if open KASAN [1/1]

PD#SWPL-1219

Problem:
if open KASAN, kernel can't boot.

Solution:
Close vmap if open KASAN

Verify:
p212

Change-Id: I3ad4da890aca20fe59ff99dfd55592d8e9a08f3c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agohdmirx: fix dvi issue when resume [1/1]
yicheng shen [Thu, 13 Dec 2018 09:12:07 +0000 (04:12 -0500)]
hdmirx: fix dvi issue when resume [1/1]

PD#SWPL-2641

Problem:
SDA of I2C was pulled down,the box cant read EDID and then send DVI.

Solution:
Add rxsense pulse to avoid mtk box sda low issue.

Verify:
Local

Change-Id: I0d3dc4b0c3b956663be1d3e383094e456f3d4e7d
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
5 years agodts: tl: add tuner support [1/1]
Sandy Luo [Mon, 17 Dec 2018 08:12:04 +0000 (16:12 +0800)]
dts: tl: add tuner support [1/1]

PD#OP-6

Problem:
Tuner cann't work on tl1 socket board

Solution:
add tuner in dts

Verify:
test pass on tl1 socket board

Change-Id: I49d70c3ab3c3747000faf40cd06bdb368231311e
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
5 years agoarm: dts: x301 & t309: enable panel unifykey support for tvconfig [1/1]
Evoke Zhang [Tue, 11 Dec 2018 10:23:31 +0000 (18:23 +0800)]
arm: dts: x301 & t309: enable panel unifykey support for tvconfig [1/1]

PD#SWPL-2761

Problem:
not support tvconfig yet

Solution:
1.enable key_valid in panel dtsi
2.enable fr_auto_policy in panel dtsi
3.enable clk ss for lvds and vbyone in panel dtsi
4.also fix some coverity errors

Verify:
x301

Change-Id: I00dd5ff621cfbc3f100bbe6045a35c8f917ade29
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agobuildroot: Enable ddr_window tool [1/1]
Blance Tang [Tue, 18 Dec 2018 02:42:43 +0000 (10:42 +0800)]
buildroot: Enable ddr_window tool [1/1]

PD#SWPL-3340

Problem:
  DDR Window tool is no longer generated as a separate KO after DDR TOOL
  configuration setting changed CL:41064

Solution:
  Change DDR Window Tool configuration to tristate which can support
  standalone KO
  Enable DDR_TOOL in SmartHome default config

Verify:
  Local

Change-Id: I15370cabe428a5103c1fe9b345a085822c056932
Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
5 years agoosd: need information whether current OSD is blanked or not [1/1]
Jian Cao [Mon, 17 Dec 2018 06:19:16 +0000 (14:19 +0800)]
osd: need information whether current OSD is blanked or not [1/1]

PD#SWPL-3254

Problem:
need information whether current OSD is blanked or not

Solution:
add sysfs node osd_status

Verify:
verified on u212

Change-Id: Ie73417f08c648a750a881af375800aae57a48762
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agovideo: add freeze video function [1/1]
Rui Wang [Thu, 13 Dec 2018 11:52:47 +0000 (19:52 +0800)]
video: add freeze video function [1/1]

PD#SWPL-3154

Problem:
Implement video freeze

Solution:
Add freeze video function

Verify:
Test pass by r311

Change-Id: I6a3839d26ea99ead7097f20c283afe9b8103a668
Signed-off-by: Rui Wang <rui.wang@amlogic.com>
5 years agomm: save wasted memory by slab [1/1]
tao zeng [Wed, 14 Nov 2018 02:29:45 +0000 (10:29 +0800)]
mm: save wasted memory by slab [1/1]

PD#SWPL-1767

Problem:
When driver/kernel call kmalloc with large size, memory may waste
if size is not equal to 2^n. For example, driver call kmalloc with
size 129KB, kmalloc will allocate a 256KB memory block to caller.
Then 127kb memory will be wasted if this caller don't free it.

Solution:
Free tail of slab memory if size is not match to 2^n. This change
can save about 900KB memory after boot, and more than 100KB during
run time.

Verify:
P212

Change-Id: Iba378792ec30003358b64384361c0f0c4c2800d8
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
5 years agoethernet: resume/suspend NULL pointer [1/1]
Zhuo Wang [Fri, 7 Dec 2018 10:13:56 +0000 (18:13 +0800)]
ethernet: resume/suspend  NULL pointer [1/1]

PD#SWPL-3000

Problem:
repeat resume/suspend will NULL pointer

Solution:
use globle var

Verify:
verify in u200

Change-Id: If44e52a5907c85fb181a450af92b18fe37e09d4f
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
5 years agodeinterlace: Add AFBC support on TL1 [1/1]
huaihao guo [Tue, 11 Dec 2018 13:07:12 +0000 (21:07 +0800)]
deinterlace: Add AFBC support on TL1 [1/1]

PD#SWPL-3113

Problem:
Add AFBC support on TL1

Solution:
Add AFBC support on TL1

Verify:
T962x2-x301

Change-Id: Ib4f40f6ca0cbb1553bf4f76848d1649822dda3e8
Signed-off-by: huaihao.guo <huaihao.guo@amlogic.com>
5 years agodts: add LiveTv support [2/2]
Cheng Tong [Tue, 11 Dec 2018 09:21:06 +0000 (17:21 +0800)]
dts: add LiveTv support [2/2]

PD#SWPL-3105

Problem:
dts didn't have dvb config

Solution:
add dvb dts config
defalut commented out as reference

Verify:
Verify by Android P franklin

Change-Id: I47ab10c22b32f6bfd51a0c113a692f0c5863178b
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
5 years agoddr_bandwidth: support multi-ports config for one channel [1/1]
tao zeng [Thu, 29 Nov 2018 01:55:14 +0000 (09:55 +0800)]
ddr_bandwidth: support multi-ports config for one channel [1/1]

PD#172256

Problem:
ddr bandwidth prot config can only set 1 port for 1 channel. But
dmc controller support measure many ports on 1 channel.

Solution:
Using bit mask to support multi-ports config for one channel.

Verify:
P212

Change-Id: Iad79e6ebd6aeb74b0e31b3f1bee08de4fd557cc1
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
5 years agolcd: update p2p config and pll setting for tl1 [1/1]
Evoke Zhang [Wed, 12 Dec 2018 08:33:29 +0000 (16:33 +0800)]
lcd: update p2p config and pll setting for tl1 [1/1]

PD#SWPL-3108

Problem:
1. tcon pll don't support spread spectrum yet
2. no p2p parameters config

Solution:
1. add p2p config parameters
2. enable tl1 clk parameters auto generate
3. add tl1 tcon_pll spread spectrum support
4. update clk spread spectrum api:
   set ss_level(hex val):
       echo level <val> >/sys/class/lcd/ss
   set ss_freq(hex val):
       echo freq <val> >/sys/class/lcd/ss
   set ss_mode(hex val):
       echo mode <val> >/sys/class/lcd/ss
   set ss advance(hex val, [15:12]=mode, [11:8]=freq, [7:0]=level):
       echo <val> >/sys/class/lcd/ss
   show ss_level, ss_freq, ss_mode:
       cat /sys/class/lcd/ss

Verify:
x301

Change-Id: I99eeca84290403fe766b17673ba9b0f7429fae26
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoamvecm: fix platform boot failed [1/1]
Bencheng Jing [Sat, 15 Dec 2018 10:03:20 +0000 (18:03 +0800)]
amvecm: fix platform boot failed [1/1]

PD#SWPL-3276

Problem:
platform boot failed except TL1

Solution:
protect LC  register read and Write

Verify:
R311&P321

Change-Id: I9b93a1c28cdef43db8f1c5ad46bd6597bc62a1bc
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agoaudio: dts: config tdmb/spdif continuous clk to fix spdif no clk issue [1/1]
Jian Xu [Thu, 13 Dec 2018 14:57:23 +0000 (22:57 +0800)]
audio: dts: config tdmb/spdif continuous clk to fix spdif no clk issue [1/1]

PD#SWPL-2491

Problem:
HDMI output no sound when system boot up

Solution:
When system bootup,there is no sound,Checked the issue, pcm_write always fail,
cat /d/aml_clkmsr/clkmsr ,[120][ 6000000]audio_spdifout_mst_clk.
the spdif has no clock.Seems after enable same source, the spdifa clock
is not configured correctly. now configure that to continous clock.
TBD, need check the root cause in alsa kernel code.

Verify:
verify by galilei, reboot 20 times.

Change-Id: I0c50c71d2436894d63b83d4040a77a8a9aa6977c
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
5 years agoamvecm: add local contrast iir SW algorithm [1/1]
Bencheng Jing [Mon, 10 Dec 2018 09:07:06 +0000 (17:07 +0800)]
amvecm: add local contrast iir SW algorithm [1/1]

PD#SWPL-2587

Problem:
local contrast SW algorithm

Solution:
add local contrast SW iir algorithm support

Verify:
x301

Change-Id: I8c80ce3fa5252585d5dd4a15e72beb9c0bfd5d7f
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agosuspend: remote: do not do suspend action under freeze mode [1/1]
Qiufang Dai [Fri, 14 Dec 2018 09:19:28 +0000 (17:19 +0800)]
suspend: remote: do not do suspend action under freeze mode [1/1]

PD#SWPL-2399

Problem:
Miss IR (power) key value when wakeup from freeze.

Solution:
Do not suspend/resume IR device under freeze mode

Verify:
x301_tl1

Change-Id: I7bdf0b847fa1a8b96bb2896426e15faf8143e820
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
5 years agosuspend: power: plug off the secondary cpus for freeze mode [1/1]
zhiqiang liang [Thu, 13 Dec 2018 08:53:27 +0000 (16:53 +0800)]
suspend: power: plug off the secondary cpus for freeze mode [1/1]

PD#SWPL-2399

Problem:
freeze mode can not kill the secondary cpus

Solution:
move the cpu kill function before the freeze function

Verify:
tl1 test success

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

PD#SWPL-3200

Problem:
vdin add afbce need more debug method.

Solution:
vdin add read_pic_afbce debug interface

Verify:
TL1 X301

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

PD#SWPL-2526

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

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

Verify:
TXLX R311

Change-Id: I90e4f46ba91d38c6ce0f8bfd65b5c22e6be3b83f
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
5 years agotvin: vdin: vdin afbce fix header size bug [1/1]
Xuhua Zhang [Thu, 13 Dec 2018 09:16:31 +0000 (17:16 +0800)]
tvin: vdin: vdin afbce fix header size bug [1/1]

PD#SWPL-3208

Problem:
vdin afbce scaler, display abnormal.

Solution:
fix afbce header size problem.

Verify:
TL1 X301

Change-Id: I461b4aa809ceddbe18cf7f6f49e8152b43b86076
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>