platform/kernel/linux-amlogic.git
5 years agomm: fix suspend crash on u200 [1/1]
Tao Zeng [Wed, 12 Dec 2018 06:37:26 +0000 (14:37 +0800)]
mm: fix suspend crash on u200 [1/1]

PD#SWPL-1219

Problem:
When open vmap stack, suspend will fail on U200. If open cpu idle,
resume from idle will fail too.

Solution:
set up vmap stack early before open IRQ. If set up this stack late
than IRQ open, stack will point to a ramdom address

Verify:
u200

Change-Id: Ie60f6faadf9afece47ccc887a0af46814f070897
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agodebug: show pfn info when undefined instr happens at user space [1/1]
Jiamin Ma [Wed, 12 Dec 2018 09:37:01 +0000 (17:37 +0800)]
debug: show pfn info when undefined instr happens at user space [1/1]

PD#SWPL-3076

Problem:
Lack of debug infos when undefined instr happens at user space

Solution:
Call show_all_pfn when undefined instr happens at user space

Verify:
Locally on ampere

Change-Id: Id24e797c2781c94c507ad07ec17a3d4ae7d44cd9
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agousb: adb panic [1/1]
he.he [Tue, 20 Nov 2018 05:57:37 +0000 (13:57 +0800)]
usb: adb panic [1/1]

PD#SWPL-2678

Problem:
adb panic in release_ffs_buffer

Solution:
1.when kzalloc data_ep use GFP_ATOMIC  instead of GFP_KERNEL
and keep spin lock protection.
2.check buffer_temp->data_ep == NULL, return

Test: adb push

Verify:
verified by he he

Change-Id: I3402b17d62b8a0ef4e3185a87729a0c3e87449e9
Signed-off-by: he.he <he.he@amlogic.com>
5 years agopq: fix sr registers load fail on txl [1/1]
Bencheng Jing [Thu, 6 Dec 2018 08:53:17 +0000 (16:53 +0800)]
pq: fix sr registers load fail on txl [1/1]

PD#SWPL-2941

Problem:
sr top ctrl is closed when video off

Solution:
txl and txl sr top don't close

Verify:
TxL

Change-Id: Ia8e7e3bd93dd328497af66cf9758e3021cafe22c
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agomm: optimize stack usage for functions [1/1]
tao zeng [Wed, 7 Nov 2018 08:51:50 +0000 (16:51 +0800)]
mm: optimize stack usage for functions [1/1]

PD#SWPL-1773

Problem:
After adding optimization of vmap stack, we can found stack usage
of each functions when handle vmap fault. From test log we see some
functions using large stack size which over 256bytes. Especially
common call path from fs. We need to optimize stack usage of these
functions to reduce stack fault probability and save stack memory
usage.

Solution:
1. remove CONFIG_CC_STACKPROTECTOR_STRONG and set STACKPROTECTOR to
   NONE. This can save stack usage add by compiler for most functions.
   Kernel code size can also save over 1MB.
2. Add some noinline functions for android_fs_data rw trace calls. In
   these trace call it allcated a 256 bytes local buffer.
3. Add a wrap function for mem abort handler. By default, it defined a
   siginfo struct(size over 100 bytes) in local but only used when fault
   can't be handled.
4. reduce cached page size for vmap stack since probability of page
   fault caused by stack overflow is reduced after function stack usage
   optimized.
Monkey test show real stack usage ratio compared with 1st vmap
implementation reduced from 35% ~ 38% to 26 ~ 27%. Which is very
close to 25%, theory limit.

Verify:
P212

Change-Id: I5505cacc1cab51f88654052902852fd648b6a036
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
5 years agoosd: remove phys_to_vir to prevent crash on the 32bit & 2G boadr [1/1]
Pengcheng Chen [Tue, 11 Dec 2018 09:23:43 +0000 (17:23 +0800)]
osd: remove phys_to_vir to prevent crash on the 32bit & 2G boadr [1/1]

PD#SWPL-3079

Problem:
phys_to_vir in height mem rw caused crashed.

Solution:
remove phys_to_vir(dd funs not work)

Verify:
tl1

Change-Id: Ic9679471a51974cabf84b61efe90c88e845d01ea
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agocec: add the port map for connect status [1/1]
Hongmin Hua [Tue, 11 Dec 2018 06:03:04 +0000 (14:03 +0800)]
cec: add the port map for connect status [1/1]

PD#SWPL-3010

Problem:
the arc can't work

Solution:
add the port map for connect status

Verify:
verified on darwin

Change-Id: I9f886c35de8670acdc431185bb26aa1836a8c150
Signed-off-by: Hongmin Hua <hongmin.hua@amlogic.com>
5 years agonand: fix the free-node leak in rsv manager [1/1]
Yi Zeng [Mon, 10 Dec 2018 07:57:18 +0000 (15:57 +0800)]
nand: fix the free-node leak in rsv manager [1/1]

PD#SWPL-2776

Problem:
did not release the free node of rsv information

Solution:
release free node and set bit mask in right way

Verify:
S400

Change-Id: I781f2374b91ca1e7cd1a66e75fc554318737c377
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
5 years agovideo: fix picdec coverity error [1/1]
Jian Cao [Fri, 7 Dec 2018 09:46:36 +0000 (17:46 +0800)]
video: fix picdec coverity error [1/1]

PD#SWPL-2797

Problem:
fix picdec coverity error

Solution:
solve picdec coverity issues

Verify:
verified on P212

Change-Id: Iee0a7beb3fbf8382e9dd4207075df85171ed62ae
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agovideo: fix ppmgr coverity error [1/1]
Jian Cao [Thu, 6 Dec 2018 14:56:27 +0000 (22:56 +0800)]
video: fix ppmgr coverity error [1/1]

PD#SWPL-2797

Problem:
fix ppmgr coverity error

Solution:
solve ppmgr coverity issues

Verify:
verified on P212

Change-Id: I05b837073ec9c981004320afaa0680648198d5b3
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoosd: fix ge2d coverity error [1/1]
Jian Cao [Fri, 7 Dec 2018 09:52:12 +0000 (17:52 +0800)]
osd: fix ge2d coverity error [1/1]

PD#SWPL-2798

Problem:
fix ge2d coverity error

Solution:
add return val timeout for waiting completion

Verify:
verified on P212

Change-Id: Iaacf3f5b30721eb5d72d3c355f0404f4848969b5
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoosd: fix osd coverity error [1/1]
Jian Cao [Thu, 6 Dec 2018 08:07:41 +0000 (16:07 +0800)]
osd: fix osd coverity error [1/1]

PD#SWPL-2798

Problem:
fix osd coverity error

Solution:
solve osd coverity issues

Verify:
verified on P212

Change-Id: I9714e3b229786d39ffa5a150633d59082bdf3549
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agohdr: Enable default output to HDR for HDR TV [1/1]
MingLiang Dong [Tue, 11 Dec 2018 10:37:04 +0000 (05:37 -0500)]
hdr: Enable default output to HDR for HDR TV [1/1]

PD#SWPL-3096

Problem:
G12A/G12B need enable sdr2hdr

Solution:
enable sdr2hdr function

Verify:
verify on G12A

Change-Id: I1e771a13d33fe675cfc36d8308afc37077545cd4
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agodtv_demod: DTV search menu does not have ISDB-T entry [4/6]
nengwen.chen [Mon, 12 Nov 2018 12:44:35 +0000 (20:44 +0800)]
dtv_demod: DTV search menu does not have ISDB-T entry [4/6]

PD#SWPL-1664

Problem:
DTV search menu does not have ISDB-T entry

Solution:
add ISDB-T system support.

Verify:
verified by einstein

Change-Id: Ie0bdc988d53256487e24c3123320b50f2a58cdf3
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agodvb-core: compatile with 32bit in 64bit kernel [1/1]
Chuangcheng Peng [Fri, 7 Dec 2018 10:16:13 +0000 (18:16 +0800)]
dvb-core: compatile with 32bit in 64bit kernel [1/1]

PD#SWPL-3009

Problem:
32bit frontend app can't call ioctl in 64bit-kernel

Solution:
Add 32bit define in header and handle in dvb_frontend in 64bit-kernel

Verify:
Verify at android_p at R311

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

PD#SWPL-1909

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

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

Verify:
P212

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

PD#SWPL-2735

Problem:
bt remote re-connected fail

Solution:
control bluetooth opwer up

Verify:
Verifying on Public Edition r311

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

PD#SWPL-2948

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

Solution:
Add the bit mask for sr core1

Verify:
Test pass by x301

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

PD#SWPL-2933

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

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

Verify:
local

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

PD#SWPL-2674

Problem:
fix afbc dd length error issue

Solution:
add afbc_len to set screen_size

Verify:
verified on g12a-u200

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

PD#SWPL-2685

Problem:
the atom switch wrong channel when wakeup by device

Solution:
set the phy port the same as ui id

Verify:
atom

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

PD#OTT-1025

Problem:
not support gen clock

Solution:
add gen clock

Verify:
test passed on g12a u200

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

PD#OTT-1025

Problem:
don't support gen_clk_ee and gen_clk_ao pin groups

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

Verify:
test pass on U200

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

PD#SWPL-1219

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

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

Verify:
p212

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

PD#SWPL-2863

Problem:
cdev_add without checking return value.

Solution:
add check

Verify:
p212

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

PD#SWPL-1076

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

Solution:
add DI_IF1_GEN_REG set when no mirror

Verify:
p212

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

PD#SWPL-2551

Problem:
add osd log module control

Solution:
add osd log module control

Verify:
verified on P212

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

PD#SWPL-2551

Problem:
range of mouse is wrong under 4K mode

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

Verify:
verified on P212

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

PD#SWPL-1081

Problem:
Need get freed handle for DRM frame mode

Solution:
Add ioctl cmd to get freed handle

Verify:
P212

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

PD#SWPL-2436

Problem:
sometime the dphy clk_post is not match spec

Solution:
update clk_post config

Verify:
w400

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

PD#SWPL-2181

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

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

Verify:
S905X/P212

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

PD#SWPL-2623

Problem:
wifi 32K Frequency offset too large

Solution:
Modification cycle

Verify:
x301

Change-Id: I04724b0eacdffc1760b67689be373cb8f671a125
Signed-off-by: bichao.zheng <bichao.zheng@amlogic.com>
Conflicts:
arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts

5 years agoarm64: dts: fix wifi 32K Frequency offset [2/1]
bichao.zheng [Thu, 29 Nov 2018 12:19:57 +0000 (20:19 +0800)]
arm64: dts: fix wifi 32K Frequency offset [2/1]

PD#SWPL-2623

Problem:
wifi 32K Frequency offset too large

Solution:
Modification cycle

Verify:
axg u211 p321 r311 p212

Change-Id: Ica04bec99ba2097918387a980b94dc007bb4eca4
Signed-off-by: bichao.zheng <bichao.zheng@amlogic.com>
5 years agodeinterlace: reduce the screen flash when fast forward [1/1]
Jihong Sui [Wed, 28 Nov 2018 07:06:15 +0000 (15:06 +0800)]
deinterlace: reduce the screen flash when fast forward [1/1]

PD#SWPL-2188

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

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

Verify:
1.txl

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

PD#OTT-944

Problem:
saradc check the wrong clock id.

Solution:
correct saradc id.

Verify:
verified on P212 board

Change-Id: I7fdde80c21228e45ec165252549bf4ca5f21bd67
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agovideo: add fast and slow playback support [1/1]
Daogao Xu [Fri, 30 Nov 2018 06:30:56 +0000 (14:30 +0800)]
video: add fast and slow playback support [1/1]

PD#SWPL-1690

Problem:
YouTube requires support playback rate 0.25, 0.50, 1.00, 1.25, 1.50,
2.00

Solution:
vsync_slow_factor can be used to slow playback, extend it's value to
support fast playback

Verify:
mesongxl_p212_32_kernel49

Change-Id: I94589a210b8531cc198414b3017c3caf82827565
Signed-off-by: Daogao Xu <daogao.xu@amlogic.com>
5 years agovpp: fix vpp covertiy error [1/1]
wenfeng.guo [Fri, 23 Nov 2018 09:38:00 +0000 (17:38 +0800)]
vpp: fix vpp covertiy error [1/1]

PD#SWPL-2458

Problem:
vpp has covertiy error

Solution:
fix vpp covertiy error

Verify:
r311

Change-Id: Ic755420107b72fa0a56d73e288b708ab421f7609
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
5 years agodts: reduce isp memory usage [1/1]
Jiacheng Mei [Mon, 26 Nov 2018 11:46:44 +0000 (19:46 +0800)]
dts: reduce isp memory usage [1/1]

PD#SWPL-2512

Problem:
isp reserved mem too large

Solution:
reduce isp mem to 256M

Verify:
A311D-W400

Change-Id: I33ee2872daf961da5f0ba4ba4810b0ac9690e45f
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
5 years agoamvecm: fix dnlp read scurv_mid2 debug interface error [1/1]
Bencheng Jing [Fri, 23 Nov 2018 08:17:59 +0000 (16:17 +0800)]
amvecm: fix dnlp read scurv_mid2 debug interface error [1/1]

PD#SWPL-2448

Problem:
can not read dnlp scurv_mid2 value

Solution:
fix the error

Verify:
t962x_r311

Change-Id: I7a7df769dd117fd83164065f6df8e3ae82c2499f
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agopicdec: add mmap interface for picdec [2/2]
Guosong Zhou [Thu, 22 Nov 2018 13:33:58 +0000 (08:33 -0500)]
picdec: add mmap interface for picdec [2/2]

PD#SWPL-2280

Problem:
play picture crash

Solution:
add mmap interface for picdec

Verify:
verify by p321

Change-Id: Ib278de80035b0404884315e29fe933cd8f4b6cfe
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agodts: GXL: defendkey: modify reserve memory mode [2/2]
Zhongfu Luo [Thu, 13 Dec 2018 09:06:23 +0000 (17:06 +0800)]
dts: GXL: defendkey: modify reserve memory mode [2/2]

PD#SWPL-2100

Problem:
GXL need to modify reserve memory mode

Solution:
remove defendkey reserved memory in GXL dts

Verify:
GXL skt board verify pass

Change-Id: Ie5ed01c6dd8f88c5594d6bc73f13282e535071a2
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agodts: G12B: defendkey: support secure upgrade check [3/3]
Zhongfu Luo [Fri, 7 Dec 2018 12:14:50 +0000 (20:14 +0800)]
dts: G12B: defendkey: support secure upgrade check [3/3]

PD#SWPL-2348

Problem:
G12B need to support secure upgrade check

Solution:
add defendkey support in all G12B dts

Verify:
G12B skt board verify pass

Change-Id: I2c3f51e761531cf2169dda483991b3d876039686
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agohdmitx: fix a resmue panic isse [1/1]
Zongdong Jiao [Thu, 13 Dec 2018 05:31:27 +0000 (13:31 +0800)]
hdmitx: fix a resmue panic isse [1/1]

PD#SWPL-3188

Problem:
When HDMI cable is not connected(that is CVBS out), and system
may be panic after resume.

Solution:
Add NULL pointer protection check

Verify:
P212

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

PD#SWPL-1910

Problem:
Black dot on cvbsout when local play 4k

Solution:
Set limit rang when vpp output yuv for cvbs

Verify:
test pass on u200/s905x

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

PD#SWPL-1968

Problem:
some error edid need to be parsed

Solution:
add parsing for non-standard dv edid

Verify:
t962e (txlx)

Change-Id: Ia952ed59650fd0b1c665ca03175a38c1cf3ae5bb
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agoarm: dts: gxl: replace watchdog with new version [1/1]
Bo Yang [Sat, 3 Nov 2018 02:22:02 +0000 (10:22 +0800)]
arm: dts: gxl: replace watchdog with new version [1/1]

PD#SWPL-1600

Problem:
The current watchdog is not the upstream standard driver.

Solution:
Replace watchdog device tree to use the standard watchdog driver.

Verify:
S905X P215/P212 Android-32bit Kernel-32bit.

Change-Id: I972c8ebb0158caa2df393d9a2d687d9298181102
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
watchdog: Change the feed watchdog mode [1/1]

PD#SWPL-2378

Problem:
Using Android to feed watchdog is not easy to debug the
crash problem, in addition, the Android does not open
the dog feeding service.

Solution:
Change the DTS configuration and change into driver feed watchdog.

Verify:
test pass on g12a-u200

Change-Id: Ie0a91fd8451fdccf3038ba6290a277c9048c52cd
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
5 years agoemmc: modify device node name [1/1]
Ruixuan Li [Mon, 3 Dec 2018 07:21:30 +0000 (15:21 +0800)]
emmc: modify device node name [1/1]

PD#SWPL-2719

Problem:
Can't idetify correctlly when move disk have multi
partition

Solution:
Remove the function of using the partition name as
the device node name

Verify:
test pass on tl1 ref board

Change-Id: I113e63f209c529149fb94b0bb10b0b254717c2bf
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
5 years agodts: G12A: defendkey: support secure upgrade check [4/4]
Zhongfu Luo [Fri, 7 Dec 2018 09:36:14 +0000 (17:36 +0800)]
dts: G12A: defendkey: support secure upgrade check [4/4]

PD#SWPL-2347

Problem:
G12A need to support secure upgrade check

Solution:
add defendkey support in all G12A dts

Verify:
G12A skt board verify pass

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

PD#SWPL-2347

Problem:
G12A need to support secure upgrade check

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

Verify:
G12A skt board verify pass

Change-Id: Iad771381e959a79dcba7a0adb862295fa5ba5dee
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agoRevert "arm: dts: gxl: replace watchdog with new version [1/1]"
Luan Yuan [Sat, 8 Dec 2018 04:30:03 +0000 (12:30 +0800)]
Revert "arm: dts: gxl: replace watchdog with new version [1/1]"

This reverts commit d932cb0022d9daeede4eb78f19b2d36c2cb9fab6.

5 years agocodec_mm: show current tvp flag [1/2]
Tao Guo [Wed, 5 Dec 2018 06:39:36 +0000 (06:39 +0000)]
codec_mm: show current tvp flag [1/2]

PD#OTT-937

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

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

Verify:
P212

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

PD#OTT-776

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

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

Verify:
g12b s922

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

PD#SWPL-2960

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

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

Verify:
Locally on P230

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

PD#SWPL-2193

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

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

Verify:
Locally on P212 and R311

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

PD#SWPL-2193

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

Solution:
Add dtbo target and reuse the dtb rules

Verify:
Locally verifed

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

PD#SWPL-2193

This adds the following commits from upstream:

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

Change-Id: Ib23ca90f1e34ed85db3aae9d223fc921e6f2114e
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
5 years agodeinterlace: there's a change to hang in shutdown [1/1]
Jihong Sui [Wed, 28 Nov 2018 08:23:05 +0000 (16:23 +0800)]
deinterlace: there's a change to hang in shutdown [1/1]

PD#OTT-778

Problem:
1.kernel received reboot command, but hang in shutdown

Solution:
move tasklet_disable behind tasklet_kill

Verify:
P321

Change-Id: I994c21c5aeb42dbbb4e3b50ccac8376db4d4039d
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
Conflicts:
drivers/amlogic/media/deinterlace/deinterlace.c

5 years agoosd: call osd_update_enable directly if osd cursor [1/1]
pengcheng chen [Mon, 3 Dec 2018 06:09:00 +0000 (14:09 +0800)]
osd: call osd_update_enable directly if osd cursor [1/1]

PD#SWPL-2744

Problem:
osd mouse can't see before platform g12a

Solution:
call osd_update_enable directly if osd cursor

Verify:
verify by p212

Change-Id: Ia8488a5bd0f707de2a02aa2b74e4a07582ef7f60
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agoosd: adjust free_scale_dst if interlaced [1/1]
pengcheng chen [Thu, 29 Nov 2018 06:00:10 +0000 (14:00 +0800)]
osd: adjust free_scale_dst if interlaced [1/1]

PD#SWPL-2600

Problem:
osd display half menu when in 1080i

Solution:
osd: adjust free_scale_dst if interlaced

Verify:
verify by p212

Change-Id: Ie9faffbb5942faa317b380ca0cdbee072a30c01f
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agovideo: vpp: add more check for vd1 postblend in vpp_misc [1/2]
Brian Zhu [Wed, 28 Nov 2018 15:57:40 +0000 (23:57 +0800)]
video: vpp: add more check for vd1 postblend in vpp_misc [1/2]

PD#SWPL-2580

Problem:
The vd1 postblend bit in vpp misc is overwriten.

Solution:
add more check for vd1 postblend bit in vsync

Verify:
verify by p212

Change-Id: I367e920c13764af41446d7d759aaf8388fb08722
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
5 years agoosd: call osd_update_enable if needed [2/2]
pengcheng chen [Thu, 29 Nov 2018 02:37:51 +0000 (10:37 +0800)]
osd: call osd_update_enable if needed [2/2]

PD#SWPL-2580

Problem:
The vd1 postblend bit in vpp misc is overwriten.

Solution:
osd: call osd_update_enable if needed

Verify:
verify by p212

Change-Id: I438848dc843ea370d65dc3c6b4befb32d1f2b5f8
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agoosd: osd: a black line below the screen when play video [1/1]
Jian Cao [Thu, 29 Nov 2018 08:04:01 +0000 (16:04 +0800)]
osd: osd: a black line below the screen when play video [1/1]

PD#SWPL-2558

Problem:
a black horizontal line below the screen when play video

Solution:
set dummy data alpha

Verify:
verified on p321

Change-Id: I36dc924b9bc89f4f8ea61eb86c6f5bc9199e40ae
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agodeinterface: temporary remove afbc support on chip after g12a [1/1]
huaihao.guo [Fri, 23 Nov 2018 02:31:02 +0000 (10:31 +0800)]
deinterface: temporary remove afbc support on chip after g12a [1/1]

PD#172587

Problem:
afbc now support on chip txlx and g12a,
but we use cpu_after_eq(G12A) to judge
if afbc is support or not.

Solution:
use is_meson_g12a_cpu() replace cpu_after_eq(G12A).

Verify:
u200(g12a),t962x_r311

Change-Id: I3fb7ed54f7137fada97481177e40a2543cf8df9f
Signed-off-by: huaihao guo <huaihao.guo@amlogic.com>
5 years agodvb: tuner: USB DVB tuner support from Google
qi duan [Tue, 20 Nov 2018 08:23:04 +0000 (16:23 +0800)]
dvb: tuner: USB DVB tuner support from Google

PD#SWPL-932

Problem:
USB DVB Dongle search program Function is not implemented

Solution:
merge usb dvb tuner from kernel3.14
http://10.8.9.5/kernel/common/commit/?h=amlogic-3.14-dev&id=7af9c5c38efdc96f5d3235f17788232a630b3d32
fixed frontend.h structures

Verify:
Ampere P

Change-Id: I16d68c2507711eda43313619d210d05699abcc25
Signed-off-by: qi duan <qi.duan@amlogic.com>
5 years agoframe_sync: fix last few seconds of the DD+ stream are not smooth [4/4]
Yinming Ding [Wed, 28 Nov 2018 03:04:24 +0000 (11:04 +0800)]
frame_sync: fix last few seconds of the DD+ stream are not smooth [4/4]

PD#SWPL-714

Problem:
The last few seconds of the DD+ stream are not smooth by DTV playback.

Solution:
check the apts and vpts both discontinue,then replay the stream.

Verify:
P321

Change-Id: I6cbbdecc052dfe9fef76b44f36545b231332ee12
Signed-off-by: Yinming Ding <yinming.ding@amlogic.com>
5 years agodts: fix SD card read issue for g12a board [2/3]
Sandy Luo [Wed, 28 Nov 2018 07:16:57 +0000 (15:16 +0800)]
dts: fix SD card read issue for g12a board [2/3]

PD#SWPL-2588

Problem:
g12a u220/u221 boad cann't read SD card

Solution:
auto detect revA and revB chip

Verify:
test pass on u220/u221 board

Change-Id: Ia153bb3f966fe2a58d5f3ed1bf1d3f610d00ff5a
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
5 years agodisplay: Modify the value of register afbc_gclk_ctrl [1/1]
Peng Yixin [Fri, 12 Oct 2018 06:18:04 +0000 (14:18 +0800)]
display: Modify the value of register afbc_gclk_ctrl [1/1]

PD#SWPL-2565

Problem:
The splash screen problem for first frame after starting up.

Solution:
Modify the value of register afbc_gclk_ctrl.

Verify:
u211

Change-Id: Ie1ddfade0566ff8cd571c43ba8490a8c277a8758
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
5 years agodv: fix the flickered problem [1/1]
Yi Zhou [Tue, 27 Nov 2018 02:31:16 +0000 (10:31 +0800)]
dv: fix the flickered problem [1/1]

PD#SWPL-1207

Problem:
fix the filckered problem when playing transition
video in sdr tv

Solution:
when dv core2 don't run, the reset can't be executed

Verify:
r321

Change-Id: I719325f1722589e02a40d46442258b0d1e3feb17
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agohdmitx: disable encryption hdcp1.4 fail [1/1]
Kaifu Hu [Thu, 22 Nov 2018 10:55:48 +0000 (18:55 +0800)]
hdmitx: disable encryption hdcp1.4 fail [1/1]

PD#SWPL-2302

Problem:
Play online video,half an hour later, the TV shows
a pink screen and the sound is normal.

Solution:
Check hdcp1.4 status and disable encryption when fail.

Verify:
S922X

Change-Id: I6ce51824726b267d140750f9e9d80aa8bb921cac
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
5 years agocec: auto shutdown case crash [1/1]
Yong Qin [Wed, 21 Nov 2018 08:00:23 +0000 (16:00 +0800)]
cec: auto shutdown case crash [1/1]

PD#SWPL-2258

Problem:
1.running autoshutdown cause device crashed

Solution:
1.optimize cec power on proble flow

Verify:
1.p212

Change-Id: Ia78c76cdb4b72a1a275628b3ad77ea6d71696d89
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agocec: update cec platform data for tl1 [1/1]
hongmin hua [Wed, 14 Nov 2018 13:50:26 +0000 (21:50 +0800)]
cec: update cec platform data for tl1 [1/1]

PD#172587

Problem:
the line check always return low.
the print of check too much.

Solution:
modify the cec gpio from 7 to 10.
modify the check line.

Verify:
tl1 x301 board

Change-Id: I09ae5eee455d83e51e65957cd293e07da1c0046a
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
5 years agocec: add device match for tl1 [1/1]
Yong Qin [Mon, 12 Nov 2018 03:38:33 +0000 (11:38 +0800)]
cec: add device match for tl1 [1/1]

PD#172587

Problem:
add device match for tl1

Solution:
1.add cecb ver
2.add ceca status reg flag

Verify:
1.run TPM
2.run chip

Change-Id: I304abfd1d6f1f216f9f0c56ca19a8bdb2ccfeabb
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoDTS: p230 board config spdif out pin [3/3]
Chaomin Zheng [Mon, 26 Nov 2018 10:29:18 +0000 (18:29 +0800)]
DTS: p230 board config spdif out pin [3/3]

PD# SWPL-1223

Problem:
p230 board spdif out no audio sound

Solution:
config p230 board spdif out pin

Verify:
verify on p230

Change-Id: I0c35e6d526aab98955206f78322fcc873ff01b8c
Signed-off-by: Chaomin Zheng <chaomin.zheng@amlogic.com>
5 years agodts: GXL/TXL: adjust defendkey_reserved location [1/1]
Zhongfu Luo [Tue, 27 Nov 2018 05:55:10 +0000 (13:55 +0800)]
dts: GXL/TXL: adjust defendkey_reserved location [1/1]

PD#SWPL-2539

Problem:
defendkey_reserved have influenced on display
during the system boot up

Solution:
adjust defendkey_reserved node location

Verify:
GXL/TXL skt board verify pass

Change-Id: I5cf0245f9653e20224c4e3bab1f6f05527011210
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agomedia: media_sync: remove serial port debug logs [1/1]
xiaoming.sui [Tue, 27 Nov 2018 03:12:23 +0000 (11:12 +0800)]
media: media_sync: remove serial port debug logs [1/1]

PD#SWPL-2494

Problem:
serial port always print timestamp log

Solution:
remove this log output

Verify:
P321

Change-Id: I875dffab483269374b9939f556a3ed01e9d2b215
Signed-off-by: xiaoming.sui <xiaoming.sui@amlogic.com>
5 years agodeinterlace: fix CMA layout adaptation di_cma_reserved [1/1]
wenfeng.guo [Tue, 20 Nov 2018 11:38:43 +0000 (19:38 +0800)]
deinterlace: fix CMA layout adaptation di_cma_reserved [1/1]

PD#SWPL-2308

Problem:
CMA layout adaptation di_cma_reserved cause crash

Solution:
fix CMA layout adaptation di_cma_reserved

Verify:
P321

Change-Id: Ia24e811a02d47d70afa1c06361fd0852c357394c
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
5 years agoPM_SUSPEND: suspend: set wakeup reason to stick mem [2/2]
Hong Guo [Fri, 23 Nov 2018 02:34:07 +0000 (10:34 +0800)]
PM_SUSPEND: suspend: set wakeup reason to stick mem [2/2]

PD#SWPL-2287

Problem:
set wakeup reason to stick mem

Solution:
set wakeup reason to stick mem

Verify:
gxl,test pass

Change-Id: Iff6f1824ea4ac9ec12b8295d4283992fdac03b14
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agoGXL: defendkey: support secure upgrade check [2/3]
Zhongfu Luo [Wed, 21 Nov 2018 10:14:23 +0000 (18:14 +0800)]
GXL: defendkey: support secure upgrade check [2/3]

PD#SWPL-2100

Problem:
GXL need to support secure upgrade check

Solution:
1.add dtb decrypt support
2.add 32bit defendkey support

Verify:
GXL skt board verify pass

Change-Id: I501967530b2a61d9b90c20241b82f92b00829453
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agodts: GXL: defendkey: support secure upgrade check [3/3]
Zhongfu Luo [Thu, 22 Nov 2018 06:12:59 +0000 (14:12 +0800)]
dts: GXL: defendkey: support secure upgrade check [3/3]

PD#SWPL-2100

Problem:
GXL need to support secure upgrade check

Solution:
add defendkey support in all GXL dts

Verify:
GXL skt board verify pass

Change-Id: I73b84b86f23f512ddc556b61f3a07d015c717e8c
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agoosd: add meson-hwc repodution rate support [1/2]
pengcheng chen [Tue, 30 Oct 2018 06:55:40 +0000 (14:55 +0800)]
osd: add meson-hwc repodution rate support [1/2]

PD#SWPL-1810

Problem:
osd blend repodution rate not supported

Solution:
add meson-hwc repodution rate support

Verify:
verified on u212 dev board

Change-Id: Ied10393e240e8d3f2a1eefe17a2d4d3c965e3383
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agoosd: fix osd color error when osd hdr enabled [1/1]
pengcheng chen [Thu, 22 Nov 2018 04:54:06 +0000 (12:54 +0800)]
osd: fix osd color error when osd hdr enabled [1/1]

PD#SWPL-1804

Problem:
osd color error when osd hdr enabled

Solution:
div alpha when osd hdr enabled

Verify:
verified on u212 dev board

Change-Id: I1f5ea0db404d1956f454bd5da2532bded89626ee
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
5 years agodv: fix osd color matrix when dv enabled [1/1]
Yi Zhou [Fri, 23 Nov 2018 06:37:32 +0000 (14:37 +0800)]
dv: fix osd color matrix when dv enabled [1/1]

PD#SWPL-1804

Problem:
fix osd color matrix when dv enabled

Solution:
enable osd matrix when dv enabled

Verify:
verified on u212 dev board

Change-Id: I4b4206f4d8c447873f23a3a0066af0d0fa85e18c
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
5 years agoframebuffer: remove lock in fbmem ioctl. [1/1]
sky zhou [Sat, 24 Nov 2018 13:56:30 +0000 (21:56 +0800)]
framebuffer: remove lock in fbmem ioctl. [1/1]

PD#SWPL-2497

Problem:
on 32bit kernel, when user space call WAITFORVSYNC,
we cannot send other command to framebuffer.

Solution:
remove lock in fbioctl as fb compat_ioctl do.
Our driver have locks to protect internal resources.

Verify:
verified on franklin.

Change-Id: I1789c09a7ea459aed4b782748847687c7f974526
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
5 years agospicc: fix miss bytes/time consume/loopback issue [1/1]
Sunny Luo [Mon, 15 Oct 2018 08:09:03 +0000 (16:09 +0800)]
spicc: fix miss bytes/time consume/loopback issue [1/1]

PD#SWPL-215

Problem:
1. additional or missing bytes be sent on mosi sometimes.
2. Customer DSP load firmware through SPICC. the loading time is 12s with
buildroot release 20180907 while 6s with 20180131.
3. rx error when work in loopback mode at high speed.

Solution:
1. change to disable irq at the irq-handle begining;
change to enable irq after all data pulled.
2. pre-setup of every spi transfer spends most of time on clk_set_rate().
this time is not obvious while cpu work at a high frequence such as
1000MHz.
In fact, a slave speed is almost fixed and we needn't set it for every
transfer but set only when speed changed.
3. disable auto io delay when in loopback mode.

Verify:
verified on axg-s400-v03 and tl1-skt

Change-Id: I61bcceccc243b218879b2b0711d0aff7538151f6
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
5 years agovdac: fix atv/dtv resume no signal issue [1/1]
Nian Jing [Fri, 23 Nov 2018 03:05:03 +0000 (11:05 +0800)]
vdac: fix atv/dtv resume no signal issue [1/1]

PD#SWPL-2351

Problem:
atv/dtv no signal when suspend after switch from hdmi

Solution:
disable vdac bandgap when suspend

Verify:
test pass on P321

Change-Id: I0449f0d9673f46928b8951249f5759a4a1f16562
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
5 years agovpp: fix p212 osd sdr2hdr luma too dark compile [1/1]
MingLiang Dong [Fri, 23 Nov 2018 06:28:11 +0000 (01:28 -0500)]
vpp: fix p212 osd sdr2hdr luma too dark compile [1/1]

PD#SWPL-1707

Problem:
{NTS}Manual,HDR-001-TC2 Failed step 8/12/16/20 VID
and GFX doesn't match

Solution:
add osd hdr2sdr convert table for 400nit on p212

Verify:
verify on p212

Change-Id: I16637652b6d07ba81b25f46c2684ff7ae3e1c68c
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agovpp: fix p212 osd sdr2hdr luma too dark [1/1]
MingLiang Dong [Mon, 19 Nov 2018 07:11:28 +0000 (02:11 -0500)]
vpp: fix p212 osd sdr2hdr luma too dark [1/1]

PD#SWPL-1707

Problem:
{NTS}Manual,HDR-001-TC2 Failed step 8/12/16/20 VID
and GFX doesn't match

Solution:
add osd hdr2sdr convert table for 400nit on p212

Verify:
verify on p212

Change-Id: I9a9dcf13ab0deaa8b676c5c409919367420b6d1b
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoramdump: fix a warning of cast [1/1]
Jianxiong Pan [Fri, 23 Nov 2018 03:28:38 +0000 (11:28 +0800)]
ramdump: fix a warning of cast [1/1]

PD#165764

Problem:
have a warning of the "ram" variable cast.

Solution:
add a "void *" to the ram variable.

Verify:
test locally.

Change-Id: I037a89a28e98ae8c8ab965e908877bf4a72d3ead
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
5 years agodtv_demod: fix dtv demod crash switch once every 2s [1/1]
wenfeng.guo [Wed, 21 Nov 2018 06:29:07 +0000 (14:29 +0800)]
dtv_demod: fix dtv demod crash switch once every 2s [1/1]

PD#SWPL-2293

Problem:
dtv demod switch once every 2s cause crash

Solution:
fix dtv demod crash switch once every 2s

Verify:
P321

Change-Id: Ibfd919a503e3dae41f51637cdff6e01ed27bac71
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
5 years agoavsync: tsync: fix the avsync problem [1/1]
live.li [Thu, 22 Nov 2018 02:05:53 +0000 (10:05 +0800)]
avsync: tsync: fix the avsync problem [1/1]

PD#SWPL-1158

Problem:
The video will become un-smooth after change
between several audio languages

Solution:
when apts and vpts distance is large then 60*90000
then set the tsync mode to vmaster and  set the tysnc
enable to 0

Verify:
P321

Change-Id: I7c7e32f49ca12645cf6a1aa58caeb968a9234c8c
Signed-off-by: live.li <live.li@amlogic.com>
5 years agoramdump: add ramdump support for ARM32 [1/1]
tao zeng [Thu, 22 Nov 2018 08:01:36 +0000 (16:01 +0800)]
ramdump: add ramdump support for ARM32 [1/1]

PD#165764

Problem:
ramdump is not enabled on ARM32

Solution:
Enable it and fix compatible with ARM64

Verify:
R311

Change-Id: I337ef019ecab05d25b7d9dc0cacab7a03149aa7b
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
5 years agoamvecm: pq: add dnlp/bri/contrast for tl1 [1/1]
MingLiang Dong [Thu, 22 Nov 2018 10:37:45 +0000 (05:37 -0500)]
amvecm: pq: add dnlp/bri/contrast for tl1 [1/1]

PD#172587

Problem:
dnlp/bri/contrast can not finetune

Solution:
1. add dnlp regisiter 10bit write
2. add brightness/contrast/sr for tl1

Verify:
verify on tl1

Change-Id: I90b363f57fbf2cd485e2acaddb5ce60a8715a47b
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoirblaster: add synchronous transmit [1/1]
Wencai You [Tue, 20 Nov 2018 14:12:16 +0000 (22:12 +0800)]
irblaster: add synchronous transmit [1/1]

PD#SWPL-2170

Problem:
cts fail
android.hardware.consumerir.cts.ConsumerIrTest#test_timing

Solution:
add synchronous transmit
when it returns the pattern has been transmitted

Verify:
verify on franklin

Change-Id: I7e490236e5effc13f81e4fab3a1c7fc10c5dcfb3
Signed-off-by: Wencai You <wencai.you@amlogic.com>
5 years agovrtc: vrtc time update for stick mem [2/2]
Hong Guo [Thu, 22 Nov 2018 03:06:58 +0000 (11:06 +0800)]
vrtc: vrtc time update for stick mem [2/2]

PD#174867

Problem:
vrtc time update for stick mem.

Solution:
vrtc time update for stick mem.

Verify:
g12a txl.

Change-Id: I65074422569370b253882a4e66fb771da10ccdbf
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
5 years agodts: r314: increase board dts file [2/3]
guotai.shen [Fri, 16 Nov 2018 06:15:25 +0000 (14:15 +0800)]
dts: r314: increase board dts file [2/3]

PD#SWPL-1978

Problem:
bring up board r314.

Solution:
increase board dts file

feature:
The Dts file with Einstein is identical except for the memory difference
R314 1.5G, Einstein 1G.

Verify:
Verified on txlx_t962x_r314  board.

Change-Id: I271cb92a9cbcab174fb0bb76cfbc8beff9c730d3
Signed-off-by: guotai.shen <guotai.shen@amlogic.com>
5 years agodts: the memory of the reserved 1MB was recovered. [1/1]
Nanxin Qin [Wed, 21 Nov 2018 03:36:37 +0000 (11:36 +0800)]
dts: the memory of the reserved 1MB was recovered. [1/1]

PD#SWPL-2250

Problem:
h265 & vp9 4K playback abnormal because HEVC FRONT &
VPU READ2 pollute the phy address of near 0x0.

Solution:
it's only a temporary modification, the real reason
needs to take more time fixed.

Verify:
U212

Change-Id: I3dcc47f8979960e95c89cf53fe10eadc1a7ae5ad
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
5 years agoionvideo: Add thread stop protection when the process exits [1/1]
Renjiang Han [Thu, 8 Nov 2018 06:45:50 +0000 (14:45 +0800)]
ionvideo: Add thread stop protection when the process exits [1/1]

PD#SWPL-1689

Problem:
The thread still exists when the process exits

Solution:
Check if the thread exits when the process exits

Verify:
local

Change-Id: I6d805da6bfa0df85b6d39d065c95eed49b3cb7da
Signed-off-by: Renjiang Han <renjiang.han@amlogic.com>
5 years agommc: fixup toshiba emmc secure discard [1/1]
Yonghui Yu [Thu, 8 Nov 2018 09:30:39 +0000 (17:30 +0800)]
mmc: fixup toshiba emmc secure discard [1/1]

PD#SWPL-1937

Problem:
secure discard and trim may cost 5mins on toshiba
"004GA0" emmc.

Solution:
using normal discard operation instead.

Verify:
W400

Change-Id: I7fd23867f8ae0af9192377de8f8c15609ef809ed
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
5 years agodeinterlace: fix kasan bug in di_task_handle [1/1]
Jihong Sui [Fri, 21 Sep 2018 02:03:15 +0000 (10:03 +0800)]
deinterlace: fix kasan bug in di_task_handle [1/1]

PD#173820

Problem:
kasan bug in di_task_handle

Solution:
delete cma_mutex because it has no effect

Verify:
P321

Change-Id: Ie6ca7973576e7350870c5466b54b38b490dff65e
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agoddr: fix dmc_monitor register bit missmatch on G12A/G12B [1/1]
tao zeng [Wed, 21 Nov 2018 01:13:48 +0000 (09:13 +0800)]
ddr: fix dmc_monitor register bit missmatch on G12A/G12B [1/1]

PD#172256

Problem:
On G12A/G12B, bit for ddr0 protection 0 vilation is not same

Solution:
Fix bit missmatch problem

Verify:
U212

Change-Id: I5dca14c8bc96bdcb85dbe8bbd5a9a18157834bcf
Signed-off-by: tao zeng <tao.zeng@amlogic.com>