platform/kernel/linux-amlogic.git
5 years agovdin: switch to ATV source,snowflake screen showing pink [1/1]
zhiwei.yuan [Wed, 10 Jul 2019 08:31:15 +0000 (16:31 +0800)]
vdin: switch to ATV source,snowflake screen showing pink [1/1]

PD#SWPL-11340

Problem:
matrix setting is wrong

Solution:
for snowflake brightness, only need coef0, disable coef1 & 2

Verify:
verified by t962x2_x301

Change-Id: Id248803541fbb68004ea61bd2aa7dfc57408e787
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agoir: fix allocation of memory without size check issue [1/1]
Qianggui Song [Thu, 27 Jun 2019 10:46:29 +0000 (18:46 +0800)]
ir: fix allocation of memory without size check issue [1/1]

PD#SWPL-11248

Problem:
When handling the set attribute IOCTL REMOTE_IOC_SET_KEY_NUMBER, the driver
does not limit the size of allocation with kzalloc.

Solution:
Limit the size of alllcation range, if given a value out of range, set
update flag to false and do nothing in kzalloc stage.

Verify:
W400

Change-Id: I6a4150f5615557c372738c918aad86120d149340
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
5 years agousb: dma-mapping: prevent writeback deadlock in CMA allocator [1/1]
Yue Wang [Tue, 16 Jul 2019 07:41:04 +0000 (15:41 +0800)]
usb: dma-mapping: prevent writeback deadlock in CMA allocator [1/1]

PD#SWPL-11362

Problem:
A deadlock happens when a task initiates a CMA allocation that triggers
a page migration *AND* the tasks holding the subsequent pages have to
writeback their pages using CMA allocations.

In such a situation, the task that has triggered the page migration
holds a mutex that prevents other tasks from migrating their pages using
that same CMA allocator. This leads to a deadlock.

Solution:
The CMA is incapable of honoring the NOIO flags in some scenario, thus
cannot be used for writeback. The fix allows the code that chooses which
allocator to use in the ARM platform to avoid the CMA case for that
scenario.

The ARM DMA layer checks for allow blocking flag (_GFP_BDEV) to decide
whether to go for CMA or not. That test is not sufficient to cover the
case of writeback (GFP_NOIO).

The fix consists in adding a gfp_allow_writeback helper that tests for
the __GFP_IO flag. Then, the DMA layer uses it to decide not to go for
CMA in case of writeback.

Verify:
TL1

Change-Id: I175eb94de588234d3de2dc7f65dafe980e2636af
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
5 years agoatv_demod: after afc adjusts freq and stable, sync to settings to get freq [1/1]
nengwen.chen [Wed, 3 Jul 2019 11:48:52 +0000 (19:48 +0800)]
atv_demod: after afc adjusts freq and stable, sync to settings to get freq [1/1]

PD#TV-7462

Problem:
after afc adjusts freq and stable, sync to settings to get freq.

Solution:
1.after afc adjusts freq and stable, sync to settings to get freq.

Verify:
Verified by x301

Change-Id: Id78a7f974345fd428f9bb185c36fcbe7b93f4ac2
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agodolby: fix 5008 crc error [1/1]
yao liu [Fri, 28 Jun 2019 02:07:23 +0000 (10:07 +0800)]
dolby: fix 5008 crc error [1/1]

PD#SWPL-10487

Problem:
1.tb39 new case 5008, dm version is 3,
core3 raw_metadata overflow
2.core3 raw_metadata 207 overwrite core3 clkgate_ctrl
and core3 swap_ctrl0 andsawp_ctrl1 reg.

Solution:
1.Increase raw_metadata size to 512
2.Force dv_mode to DOLBY_VISION_OUTPUT_MODE_IPT, output
ipt444 12bit for 5008.
3.Dont set core3 metadata reg when scramble disabled or
metedata size > 204

Verify:
verified on sm1

Change-Id: I459736eb42eb14fe3fe0dc054eb6693c88967741
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agovdin: subtitle is disappear after hot_plug signal cable [1/1]
zhiwei.yuan [Mon, 15 Jul 2019 05:54:19 +0000 (13:54 +0800)]
vdin: subtitle is disappear after hot_plug signal cable [1/1]

PD#SWPL-11151

Problem:
signal format is null when start dec

Solution:
do not change signal format when signal is unstable

Verify:
verified by t962x2_x301

Change-Id: I14a9247e83c15aecac1939f3270f46642a6d3a22
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agoavsync: tsync: fix the avsync issue [1/3]
Xiaoming Sui [Sat, 29 Jun 2019 11:17:27 +0000 (19:17 +0800)]
avsync: tsync: fix the avsync issue [1/3]

PD#SWPL-8590

Problem:
inprove avsync accuracy when play

Solution:
1: calc the pts and pcr diff from the stream;
2: do the hold or drop audio data;
3: reclac the timestamp when paly;

Verify:
X301

Change-Id: I176bb2e19c1c538cfb9a8203d1303ee700a4927c
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
5 years agotvafe: fix identify as PAL-DK when the input signal is SCAM DK [1/1]
Evoke Zhang [Mon, 17 Jun 2019 06:49:44 +0000 (14:49 +0800)]
tvafe: fix identify as PAL-DK when the input signal is SCAM DK [1/1]

PD#TV-7779

Problem:
identify as PAL-DK when the input signal is SECAM DK

Solution:
increase atv try_fmt max cnt to recognize SECAM

Verify:
x301

Change-Id: I306f2337b6b2c3d0b4ec2fc85e45f9f5993b754b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovlock: when quite vlock, restore pre pll value [1/1]
Yong Qin [Mon, 8 Jul 2019 06:19:04 +0000 (14:19 +0800)]
vlock: when quite vlock, restore pre pll value [1/1]

PD#TV-6743

Problem:
exit hdmi source, display many horizontal fine lines.
restore m/f value is wrong.

Solution:
when exit vlock, need restore m/f value from backup.

Verify:
T950X

Change-Id: If0d1b3758a19547675aa4bef920168c20ca83939
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agosched: change sleep api for __migration_entry_wait [1/1]
Tao Zeng [Mon, 8 Jul 2019 02:36:26 +0000 (10:36 +0800)]
sched: change sleep api for __migration_entry_wait [1/1]

PD#TV-7519

Problem:
schedule_timeout did not really make task sleep. It will cause
rt thread bug when this thread is waiting for a cma page migrated:
sched: RT throttling activated for rt_rq eaf671b8 (cpu 1)
potential CPU hogs:
        btu message loo (4253)
[<c037d5b8>] task_tick_rt+0x0/0x120
[<c037d914>] pick_next_task_rt+0x1cc/0x1e4
[<c0fa8534>] __schedule+0x598/0x91c
[<c0fa891c>] schedule+0x64/0xc4
[<c0fac134>] schedule_timeout+0x1dc/0x47c
[<c0493ba4>] __migration_entry_wait+0x168/0x194
               ~~~~~blocked here
[<c0493c20>] migration_entry_wait+0x50/0x54
[<c0473008>] do_swap_page+0x404/0x4e8
[<c047357c>] handle_mm_fault+0x1ec/0xa60
[<c031a2f0>] do_page_fault+0x2d4/0x3a8
[<c0301408>] do_PrefetchAbort+0x48/0xb0
[<c030f78c>] ret_from_exception+0x0/0x34

Solution:
using usleep_range instead of schedule_timeout

Verify:
t905x

Change-Id: I908022b747ad921b5863af377291abdf06672f15
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
5 years agodeinterlace: process prog 420 as 422 [1/1]
Jihong Sui [Thu, 11 Jul 2019 02:31:26 +0000 (10:31 +0800)]
deinterlace: process prog 420 as 422 [1/1]

PD#SWPL-11051

Problem:
Abnormal display of red subtitles

Solution:
process prog 420 as 422

Verify:
tl1

Change-Id: I46e0af178d6d87fc3a815f70c5a84d0f80772b6c
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agodv: switch dv core3 after wm, osd_hdr and vd2_hdr [1/1]
Pengcheng Chen [Wed, 10 Jul 2019 11:56:23 +0000 (19:56 +0800)]
dv: switch dv core3 after wm, osd_hdr and vd2_hdr [1/1]

PD#SWPL-11113

Problem:
need verify dv core3 can set after wm, osd_hdr and vd2_hdr

Solution:
switch dv core3 after wm, osd_hdr and vd2_hdr

Verify:
verified on T962e2_ab311

Change-Id: Iac5d6d113c9dc5d76dff3ef5911263a1c9dca159
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agovdin: tm2,the picture is greenish when do hdmi cts [1/1]
zhiwei.yuan [Thu, 11 Jul 2019 09:12:02 +0000 (17:12 +0800)]
vdin: tm2,the picture is greenish when do hdmi cts [1/1]

PD#SWPL-9762

Problem:
HDR2 matrix setting is incorrect

Solution:
disable hdr2 matrix when no need do conversion

Verify:
verified by t962x3_ab301

Change-Id: I2ca1fbd2ccea5fa76e7109ecdca4141dccffebc2
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agosdio: optimize sdio clk cfg [2/2]
Nan Li [Thu, 11 Jul 2019 07:33:56 +0000 (15:33 +0800)]
sdio: optimize sdio clk cfg [2/2]

PD#SWPL-9640

Problem:
sdio auto_clk close fail.

Solution:
optimize sdio auto_clk cfg,
add sdio_clk_always_on(int on).

Verify:
G12A_u211

Change-Id: Id760b41a948c6b7e15f675376084b0cdd4edc151
Signed-off-by: Nan Li <nan.li@amlogic.com>
5 years agohdmirx: add version parse of current edid [1/1]
Hang Cheng [Mon, 8 Jul 2019 06:26:39 +0000 (14:26 +0800)]
hdmirx: add version parse of current edid [1/1]

PD#SWPL-10930

Problem:
1.hdmirx driver does't know currently used edid version
2.SCDC only used for HDMI2.0 mode

Solution:
1.add version parse of current edid
2.Disable SCDC for HDMI1.4 mode

Verify:
TL1-x301

Change-Id: I00f05fee1d1d61847983ee390556644b03b456a3
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
5 years agohdmitx: remove unnecessary rxsense check [1/1]
Zongdong Jiao [Thu, 11 Jul 2019 06:30:38 +0000 (14:30 +0800)]
hdmitx: remove unnecessary rxsense check [1/1]

PD#IPTV-3767

Problem:
When plugin, this check may block EDID reading

Solution:
Remove unnecessary rxsense check

Verify:
G12/P261

Change-Id: Ida42bc6b9b17e6e9d0d177e48ce3cf33949fdf5d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agodrm: add multi-layer support [1/1]
Dezhi Kong [Tue, 11 Jun 2019 12:29:40 +0000 (20:29 +0800)]
drm: add multi-layer support [1/1]

PD#SWPL-9646

Problem:
unsupport multi-layer

Solution:
add multi-layer support

Verify:
verify by w400 with modetest command

Change-Id: I5cd50761d2ab9cfff0f80d38e20455044c7a33fd
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
5 years agoamvecm: new feature, add HDR10+ to sdr function [1/1]
Cheng Wang [Thu, 6 Jun 2019 07:37:15 +0000 (15:37 +0800)]
amvecm: new feature, add HDR10+ to sdr function [1/1]

PD#SWPL-788

Problem:
new feature, add hdr10+ to sdr function

Solution:
new feature, add hdr10+ to sdr function

Verify:
on x301

Change-Id: Id2bc14db0be8915ba98588c7e1a7b940421e6aa2
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
5 years agovpp: update vpp out size when vinfo changed [1/1]
Pengcheng Chen [Tue, 9 Jul 2019 02:28:10 +0000 (10:28 +0800)]
vpp: update vpp out size when vinfo changed [1/1]

PD#TV-7616

Problem:
vpp out size not updated when vinfo changed

Solution:
update vpp out size when vinfo changed

Verify:
verified on T962x2

Change-Id: I48e39f8cf855ed31add0b9ea93a96fa63325899a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoviu2: set viu2 matrix for vinfo viu_format [1/1]
Pengcheng Chen [Tue, 7 May 2019 07:19:02 +0000 (15:19 +0800)]
viu2: set viu2 matrix for vinfo viu_format [1/1]

PD#SWPL-8255

Problem:
viu2 display color abnormal

Solution:
set viu2 matrix for vinfo viu_format

Verify:
w400

Change-Id: Ifbe5b85416fe31b60b1bde7cad80a4bcfd036721
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoosd: add viu2 support for sm1 and tm2 [1/1]
Pengcheng Chen [Mon, 8 Jul 2019 07:43:14 +0000 (15:43 +0800)]
osd: add viu2 support for sm1 and tm2  [1/1]

PD#SWPL-10934

Problem:
viu2 not support for sm1

Solution:
add viu2 support for sm1 and tm2

Verify:
verified on sm1

Change-Id: I3988a84b64b952a76b1b262227e11682f28c7cdd
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodv: switch vd1/vd2 before dolby core1/2 and after dolbycore1/2 [1/1]
Pengcheng Chen [Mon, 8 Jul 2019 05:25:00 +0000 (13:25 +0800)]
dv: switch vd1/vd2 before dolby core1/2 and after dolbycore1/2 [1/1]

PD#SWPL-6627

Problem:
verify vd1/vd2 can switch before dolby core1/2 and after dolbycore1/2

Solution:
add core1_switch to switch vd1/vd2 before dolby core1/2 and after
dolbycore1/2

Verify:
verified on t962e2 AB311

Change-Id: I3348b906357c93d0c7a40066880bc2f029badb77
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodv: add copy dv core1a to dv core1b func [1/1]
Pengcheng Chen [Thu, 4 Jul 2019 07:53:01 +0000 (15:53 +0800)]
dv: add copy dv core1a to dv core1b func [1/1]

PD#SWPL-6630

Problem:
need verify dv core1b(vd2) connect with dolby core3

Solution:
1. use videopip_loop
2. copy dv core1a to dv core1b

Verify:
verified on t962e2 AB311

Change-Id: Ib137c6b420fa71aa0756bf9558fdbe66ef0c6e94
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agotvafe: T962E2 Low probability of crashing at startup [1/1]
zhiwei.yuan [Fri, 5 Jul 2019 07:51:43 +0000 (15:51 +0800)]
tvafe: T962E2 Low probability of crashing at startup [1/1]

PD#SWPL-9276

Problem:
mem allocate fail sometimes by using dma_alloc_coherent

Solution:
use kzalloc instead

Verify:
verified by t962x3_ab301

Change-Id: Iec58746b7e269d307f88037216b7a778d18774ec
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agodrm/atomic: Make private objs proper objects
Ville Syrjälä [Wed, 12 Jul 2017 15:51:02 +0000 (18:51 +0300)]
drm/atomic: Make private objs proper objects

Make the atomic private object stuff less special by introducing proper
base classes for the object and its state. Drivers can embed these in
their own appropriate objects, after which these things will work
exactly like the plane/crtc/connector states during atomic operations.

v2: Reorder to not depend on drm_dynarray (Daniel)

Change-Id: I475f3c46440934b8d6f461935b6413624b7d34c7
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> #v1
Signed-off-by: Ville Syrj?l? <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170712155102.26276-3-ville.syrjala@linux.intel.com
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
5 years agodrm: Add driver-private objects to atomic state
Pandiyan, Dhinakaran [Fri, 21 Apr 2017 05:51:30 +0000 (22:51 -0700)]
drm: Add driver-private objects to atomic state

It is necessary to track states for objects other than connector, crtc
and plane for atomic modesets. But adding objects like DP MST link
bandwidth to drm_atomic_state would mean that a non-core object will be
modified by the core helper functions for swapping and clearing
it's state. So, lets add void * objects and helper functions that operate
on void * types to keep these objects and states private to the core.
Drivers can then implement specific functions to swap and clear states.
The other advantage having just void * for these objects in
drm_atomic_state is that objects of different types can be managed in the
same state array.

v7: Use __for_each_private_obj to define for_each_private_obj (Maarten)
v6: More kernel-doc to keep 0-day happy
v5: Remove more NULL checks (Maarten)
v4: Avoid redundant NULL checks when private_objs array is empty (Maarten)
v3: Macro alignment (Chris)
v2: Added docs and new iterator to filter private objects (Daniel)

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Archit Taneja <architt@codeaurora.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Harry Wentland <Harry.wentland@amd.com>
Change-Id: I1d906ca120167b8b25a5e959b332c5bea55a97b7
Acked-by: Harry Wentland <harry.wentland@amd.com>
Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1492753893-3748-2-git-send-email-dhinakaran.pandiyan@intel.com
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
5 years agodts: T312 add config for dtv tuner si2169 [1/2]
Cheng Tong [Tue, 9 Jul 2019 09:08:12 +0000 (17:08 +0800)]
dts: T312 add config for dtv tuner si2169 [1/2]

PD#SWPL-10672

Problem:
Add config for dtv tuner si2169

Solution:
Add dtv tuner si2169 as default
and add tuner i2c config

Verify:
Verified by T312

Change-Id: Ib64871f37e03f84beb8d8174e9e5b5ec0f722115
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
5 years agoatv_demod: add nicam detection when current signal fm-mono change to nicam [1/1]
nengwen.chen [Wed, 3 Jul 2019 04:13:19 +0000 (12:13 +0800)]
atv_demod: add nicam detection when current signal fm-mono change to nicam [1/1]

PD#TV-7335

Problem:
add nicam detection when current signal fm-mono change to nicam.

Solution:
1.add nicam detection when current signal fm-mono change to nicam.

Verify:
Verified by x301

Change-Id: If2e35d018d2df803c5458cc93974352b06e90a11
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
5 years agoethernet: enhance window function [1/1]
Zhuo Wang [Fri, 5 Jul 2019 09:05:20 +0000 (17:05 +0800)]
ethernet: enhance window function [1/1]

PD#SWPL-10876

Problem:
add del 2ns function

Solution:
add del 2ns function

Verify:
verify on u200 board

Change-Id: I949a1d85e41d0b0e03708243f9559f8de63b0e54
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
5 years agoaudio: add clip thd control interface [1/3]
Zhe Wang [Wed, 3 Jul 2019 11:27:54 +0000 (19:27 +0800)]
audio: add clip thd control interface [1/3]

PD#SWPL-10716

Problem:
when audio signal change from -30dB to 0dB, audio suddenly output power
is higher than 150% instantaneous maximum power

Solution:
add clip thd control interface

Verify:
verified on TL1-X301

Change-Id: Id16ba3c220a22b473eaa1e3ff87bf5dde2a83227
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agothermal: update read sensor times for performance [1/1]
Huan Biao [Fri, 5 Jul 2019 05:43:23 +0000 (13:43 +0800)]
thermal: update read sensor times for performance [1/1]

PD#SWPL-10836

Problem:
read sensor time too long

Solution:
read sensor once

Verify:
verified on t1 t962x2 x301

Change-Id: Iddf4c903ba8a3836666943adb5c02c5d287728df
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
5 years agoosd: add wait_hw_vsync_viu2 [1/1]
Pengcheng Chen [Thu, 4 Jul 2019 10:35:47 +0000 (18:35 +0800)]
osd: add wait_hw_vsync_viu2 [1/1]

PD#TV-7584

Problem:
osd on viu2 present timeout

Solution:
add wait_hw_vsync_viu2

Verify:
Verified on X30A1-T962X2

Change-Id: Iab80f4cef830652923e1de73eba6d87715bad855
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agovfm: string without null-termination [1/1]
apollo.ling [Tue, 25 Jun 2019 03:11:48 +0000 (11:11 +0800)]
vfm: string without null-termination [1/1]

PD#OTT-4743

Problem:
string withou null-termination

Solution:
ensure there is a null-termination in the string

Verify:
p212

Change-Id: Icfb6e39741b5d26611bbd316d6c423b8d4715105
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
5 years agovpp: optimize rgb screen convert coef [1/1]
MingLiang Dong [Fri, 28 Jun 2019 13:03:34 +0000 (21:03 +0800)]
vpp: optimize rgb screen convert coef [1/1]

PD#TV-7280

Problem:
rgb screen pattern white balance data is a little high

Solution:
optimize convert coef

Verify:
verify on TL1

Change-Id: Iae1e8134d1a48fe0bbf206dd9b148c264951da2a
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agodi: fix sawtooth in the lower patr of AV video [1/1]
Wenfeng Guo [Fri, 5 Jul 2019 03:22:59 +0000 (11:22 +0800)]
di: fix sawtooth in the lower patr of AV video [1/1]

PD#SWPL-10831

Problem:
sawtooth in the lower patr of AV video

Solution:
adjust motion num condition

Verify:
marconi

Change-Id: Id42f1cb2d3f702e04cd640dbc99c4f7a97447faf
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
5 years agovdin: hdr mode force 10bit mode [1/1]
Yong Qin [Thu, 4 Jul 2019 11:02:06 +0000 (19:02 +0800)]
vdin: hdr mode force 10bit mode [1/1]

PD#TV-7517

Problem:
hdmi hdr color deepth mode is auto, if input
is 8bit mode, output is 8bit mode

Solution:
when is hdr mode, force set 10bit mode to frame
buffer.

Verify:
tl1

Change-Id: If958f687e3923389277880e19d47f933421a8292
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoaudio: set master/channel default volume higher [1/1]
Zhe Wang [Thu, 4 Jul 2019 14:21:26 +0000 (22:21 +0800)]
audio: set master/channel default volume higher [1/1]

PD#SWPL-10609

Problem:
spk sound is too low

Solution:
set master/channel default volume higher

Verify:
r341

Change-Id: Id2928a7d0fdfbb745d272c82a7600a6f4fb9b7e6
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agodts: set s912 adb. [1/1]
Luan Yuan [Fri, 5 Jul 2019 07:43:43 +0000 (15:43 +0800)]
dts: set s912 adb. [1/1]

PD#SWPL-10860

Problem:
s912 need to support adb.

Solution:
update dts

Verify:
verify by hertz

Change-Id: I085a0442d229d13d02b963c948d390920aea3dd0
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agodeinterace: add cue init setting [1/1]
Jihong Sui [Thu, 4 Jul 2019 06:46:57 +0000 (14:46 +0800)]
deinterace: add cue init setting [1/1]

PD#SWPL-7864

Problem:
the red and blue areas of the fourth frequency band
are missing color serious

Solution:
debug by VLSI(yanling), add cue init setting;

Verify:
S905X3

Change-Id: Idc8e5e811e0f2a8195cc70ebb8df0af8f080b174
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agodts: T312: config spicc amlogic driver to support dirspi_xxx [1/1]
Sunny Luo [Wed, 19 Jun 2019 08:41:54 +0000 (16:41 +0800)]
dts: T312: config spicc amlogic driver to support dirspi_xxx [1/1]

PD#SWPL-9815

Problem:
One T312-T962X3 project need use the dirspi_xxx interfaces to
communicate with a extern mcu(spi device).

Solution:
config dts to use spicc amlogic-driver to support dirspi_xxx

Verify:
T312

Change-Id: Icad0e516b5d694b86350fec1e9322170e84d9c8f
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
5 years agoge2d: add return value check for kstrtoint call [1/1]
Jian Cao [Thu, 27 Jun 2019 06:20:46 +0000 (14:20 +0800)]
ge2d: add return value check for kstrtoint call [1/1]

PD#OTT-4875

Problem:
missing return value check for kstrtoint

Solution:
add this check for kstrtoint

Verify:
verified on g12b-w400

Change-Id: I0515b4b445c78d950201df6547e83578cac32d16
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agocommon: modify the dtsi config of sm1 and tm2 [1/2]
deng.liu [Mon, 1 Jul 2019 13:05:57 +0000 (21:05 +0800)]
common: modify the dtsi config of sm1 and tm2 [1/2]

PD#SWPL-10241

Problem:
{Score:5}{vts_r9}[S905X3] VtsHalNeuralnetworksV1_1Target module 644 fail;
v0624 new add, v0613 ok;

Solution:
npu not insmod  successfully,modify dtsi config

Verify:
Local on sm1

Change-Id: I986e37acab4a76cdf6ad52620520994193a06448
Signed-off-by: deng.liu <deng.liu@amlogic.com>
5 years agohdmitx: correct g12 rx_sense detect setting [1/1]
Zongdong Jiao [Tue, 29 Jan 2019 11:17:26 +0000 (19:17 +0800)]
hdmitx: correct g12 rx_sense detect setting [1/1]

PD#SWPL-4684

Problem:
g12 rx_sense can't work well

Solution:
correct g12 rx_sense detect setting

Verify:
G12/U212

Change-Id: I26ae578bdf278592956dff092e60d13faf4905bf
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agoamlvideo2: null pointer causes panic. [1/1]
renjiang.han [Tue, 25 Jun 2019 12:02:40 +0000 (20:02 +0800)]
amlvideo2: null pointer causes panic. [1/1]

PD#TV-7022

Problem:
A null pointer causes panic.

Solution:
Add a judgment on the null pointer in the
amlvideo2_stop_thread function.

Verify:
on x301

Change-Id: Ic2cb9476fa97e27fe8b1160d74330d1ba7bc93a8
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
5 years agodolby: demo-debug.apk test fail [1/1]
yao liu [Fri, 28 Jun 2019 13:16:21 +0000 (21:16 +0800)]
dolby: demo-debug.apk test fail [1/1]

PD#SWPL-10167

Problem:
Apk drop several frames at beginning, but
dolby frames are not consumed, decoder has
no idle buffers.

Solution:
Ignore drop for dual layer dolby video

Verify:
verified on u212

Change-Id: I732d82e71c190c62a14c05accea44b4c55d04239
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agodts: add memory-region for gxm logo [1/1]
Jian Cao [Wed, 3 Jul 2019 13:35:24 +0000 (21:35 +0800)]
dts: add memory-region for gxm logo [1/1]

PD#SWPL-5522

Problem:
S912 display S912 Android P support for osd

Solution:
add memory-region for gxm logo

Verify:
verified on gxm-q201

Change-Id: If4efec47f939a944530ef1dc0f7a3b8abf245a47
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agodeinterace: set driver_data to NULL on shutdown release [1/1]
Jian Cao [Mon, 1 Jul 2019 07:15:03 +0000 (15:15 +0800)]
deinterace: set driver_data to NULL on shutdown release [1/1]

PD#SWPL-10079

Problem:
use-after-free issue
driver_data is relesed on shutdown, it is used in kthread_di
this thread is not stopped, will return if driver_data is NULL

Solution:
set driver_data to NULL on shutdown release

Verify:
verified on TL1-X301

Change-Id: I64fd1e39e6cedcc801d4d451eb1a56ca2ccc3364
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agotvafe: update avin ntsc-m config for tl1 [1/1]
Evoke Zhang [Wed, 3 Jul 2019 07:36:53 +0000 (15:36 +0800)]
tvafe: update avin ntsc-m config for tl1 [1/1]

PD#TV-7095

Problem:
avin ntsc-m display need optimized

Solution:
fix avin ntsc-m config mistake for cvd reg 0x01

Verify:
x301

Change-Id: Iba48a37332ab9b1a6e4de79c12e6f0d3bc25e43c
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agohdmitx: add missing pin mux for HPD [1/1]
Zongdong Jiao [Tue, 2 Jul 2019 09:33:40 +0000 (17:33 +0800)]
hdmitx: add missing pin mux for HPD [1/1]

PD#SWPL-10457

Problem:
Lack pin mux for HPD

Solution:
Add missing pin mux for HPD

Verify:
GXL/P212

Change-Id: If6ec414f03294dc8a858593294b9bb54a4f3fb21
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agohdmitx: update phy setting of 3G for SM1 [2/2]
yicheng shen [Mon, 24 Jun 2019 08:00:05 +0000 (16:00 +0800)]
hdmitx: update phy setting of 3G for SM1 [2/2]

PD#SWPL-8791

Problem:
HDMITX Eye Diagram of SM1 test fail

Solution:
Optimize the PHY setting.

Verify:
SM1

Change-Id: I33d8b8a1a515fe478845287c44271524b256c5f1
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
5 years agoosd: add osd virtual fb support [1/1]
Pengcheng Chen [Tue, 2 Jul 2019 05:40:03 +0000 (13:40 +0800)]
osd: add osd virtual fb support [1/1]

PD#SWPL-8187

Problem:
need implement the new virtual FB device

Solution:
add osd virtual fb support

Verify:
Verified on U200 spi lcd board

Change-Id: I52c4257f6a0a202eb63b2ee3383f6e306e5ec16a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoaudio: Play non-48K exception [1/1]
nengqin.zhu [Tue, 11 Jun 2019 05:41:35 +0000 (13:41 +0800)]
audio: Play non-48K exception [1/1]

PD# SWPL-9328

Problem:
memory is 1G,the sound was intermittent
when hdmi play music of non-48k sampling rate

Solution:
set resample module src

Verify:
test ok using x301

Change-Id: I2245161a58a014b9dfbf0324799f5e8bd4acd184
Signed-off-by: nengqin.zhu <nengqin.zhu@amlogic.com>
5 years agohdmitx: correct vid pll div shift preset length [1/3]
Hang Cheng [Sat, 29 Jun 2019 12:37:52 +0000 (20:37 +0800)]
hdmitx: correct vid pll div shift preset length [1/3]

PD#SWPL-9589

Problem:
shift preset length of vid pll div is wrong

Solution:
modify shift preset length of vid pll div

Verify:
gxl-p281

Change-Id: Iac897db9d9a36e26df40e8c1ed303e02bddeb92f
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
5 years agotvafe: support nostd config nostd_vs_th in dts [1/1]
Evoke Zhang [Mon, 10 Jun 2019 10:59:37 +0000 (18:59 +0800)]
tvafe: support nostd config nostd_vs_th in dts [1/1]

PD#TV-6046

Problem:
nostd atv display flicker

Solution:
config nostd_vs_th in dts for special tuner

Verify:
x301

Change-Id: Ibdb6422b0a9f031dab0a88b1654c566bcaa0c0d0
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovideo_sink: fix print too much issue [1/1]
Lei Qian [Tue, 25 Jun 2019 10:04:01 +0000 (18:04 +0800)]
video_sink: fix print too much issue [1/1]

PD#TV-7043

Problem:
too much kernel log cause system hang up

Solution:
protect the log by debug flag

Verify:
verify by marconi

Change-Id: I7cb2cdf5e3bee92e136d948a974d9a1240609867
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
5 years agowifi: delate unuse file [2/2]
Rongjun Chen [Mon, 17 Jun 2019 05:19:27 +0000 (13:19 +0800)]
wifi: delate unuse file [2/2]

PD#SWPL-9659

Problem:
some file not have License

Solution:
delete unuse file and add License

Verify:
verify by einstein

Change-Id: Ia0a4eb82bc100129f71c7c88d0a403b482449314
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
5 years agocec: ceca interrupt cost long time [1/1]
Yong Qin [Wed, 26 Jun 2019 11:27:27 +0000 (19:27 +0800)]
cec: ceca interrupt cost long time [1/1]

PD#SWPL-6068

Problem:
ceca isr cost long time, and delayed vdin vs.

Solution:
move function to tasklet

Verify:
txlx

Change-Id: I861dd2ba145a64a88ad126abc00944d2358914c8
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agobuildroot: fix buildroot compile error and ge2d crash issue [1/1]
Pengcheng Chen [Fri, 28 Jun 2019 10:30:41 +0000 (18:30 +0800)]
buildroot: fix buildroot compile error and ge2d crash issue [1/1]

PD#SWPL-10483

Problem:
1. buildroot autobuild error
2. buildroot ge2d crash on s400

Solution:
1. fix buildroot compile error
2. move video_keep_init from _init to probe

Verify:
verified on s400,w400

Change-Id: I624fed9669387c94a50974f77b32a4730db08314
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agocpu_hotplug: fix dead lock between flush work and ipa [1/1]
Jianxin Pan [Wed, 26 Jun 2019 09:08:49 +0000 (05:08 -0400)]
cpu_hotplug: fix dead lock between flush work and ipa [1/1]

PD#TV-7161

Problem:
dead lock between flush work and ipa

Solution:
fix dead lock between flush work and ipa

Verify:
TL1

Change-Id: I479869601c0816bbaeaa693a26bf606b6a168da0
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
5 years agodts: debug: enable ftrace_ramoops for p212 [1/1]
huijie.huang [Mon, 1 Jul 2019 09:14:32 +0000 (17:14 +0800)]
dts: debug: enable ftrace_ramoops for p212 [1/1]

PD#SWPL-6028

Problem:
enable ftrce in ramoops for p212 dtbs

Solution:
enable ftrce in ramoops for p212 dtbs

Verify:
P212

Change-Id: I2a4cb76614b44b91996d33775a5f73f91e457d0e
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
5 years agovdin: Get video hdr status from vdin [1/1]
zhiwei.yuan [Tue, 11 Jun 2019 07:43:33 +0000 (15:43 +0800)]
vdin: Get video hdr status from vdin [1/1]

PD#SWPL-9636

Problem:
upper layer get signal type is too late,cause screen flash

Solution:
report signal type to upper layer directly in vdin module

Verify:
verified by t962x2_x301

Change-Id: I08f7754f20ba8b6b00a34387dcaf4aee7fdc2185
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agoaudio: S905X2 add clk tuning_enable control in dts [1/1]
Cheng Tong [Mon, 20 May 2019 05:46:33 +0000 (13:46 +0800)]
audio: S905X2 add clk tuning_enable control in dts [1/1]

PD#SWPL-10180

Problem:
can't enable clk tuning

Solution:
add control interface in dts to enable clk tuning
and start clk before codec init for s905x2

Verify:
verify on franklin

Change-Id: Icc97b04923bcc317b8259449ba068d1eddef0854
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
5 years agoMakefile: dtb makefile update [1/1]
Hanjie Lin [Mon, 1 Jul 2019 06:39:04 +0000 (14:39 +0800)]
Makefile: dtb makefile update [1/1]

PD#SWPL-9776

Problem:
let dtb make comptabile with below ways:
make ARCH=arm meson-g12a-u200.dtb
make ARCH=arm amlogic/meson-g12a-u200.dtb

Solution:
modify makefile

Verify:
w400

Change-Id: Ic2bb196f67c632cdc9acae61645fe3dd45c7bb1a
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agovideo: black_threshold valid when vscale_skip=8 && hscale_skip=1 [1/1]
Pengcheng Chen [Wed, 19 Jun 2019 09:47:20 +0000 (17:47 +0800)]
video: black_threshold valid when vscale_skip=8 && hscale_skip=1 [1/1]

PD#TV-6827

Problem:
when input source is 4k and output axis's height <228, screen blank

Solution:
1. need set echo 20 250 > /sys/class/video/black_threshold,
when video scaler can't process, disable video
2. black_threshold valid when vscale_skip_count=8 && hscale_skip_count=1

Verify:
t972

Change-Id: I4459c9989adf4c8acb6061756393384cee6f438f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoosd: need set_afbcd enable for dv certification [1/4]
Pengcheng Chen [Fri, 21 Jun 2019 06:22:17 +0000 (14:22 +0800)]
osd: need set_afbcd enable for dv certification [1/4]

PD#SWPL-10128

Problem:
dv certification uncorrect

Solution:
need set_afbcd enable for dv certification

Verify:
Verified on sm1

Change-Id: I141769ee1ae4b1cf224513c62b84414d0638c6f5
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agodolby: Graphics blending tests fail when 4k output [4/4]
yao liu [Wed, 26 Jun 2019 13:30:26 +0000 (21:30 +0800)]
dolby: Graphics blending tests fail when 4k output [4/4]

PD#SWPL-10128

Problem:
Osd scaling algorithm has bad effect

Solution:
Add repeat mode
echo 0 > /sys/module/fb/parameters/osd_auto_adjust_filter
echo 9 > /sys/module/fb/parameters/osd_h_filter_mode
echo 9 > /sys/module/fb/parameters/osd_v_filter_mode

Verify:
Verified on sm1

Change-Id: Ibcb3925c0c7674043e10a249c7ee7dbeb029ca93
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agodolby: Graphics blending tests fail on sdr tv [3/4]
yao liu [Mon, 24 Jun 2019 11:00:50 +0000 (19:00 +0800)]
dolby: Graphics blending tests fail on sdr tv [3/4]

PD#SWPL-10128

Problem:
graphic max 100 is too low

Solution:
need set graphic max to 380

Verify:
Verified on sm1

Change-Id: Ibbea07439a99500bdcc051aa9ed7ea8d1ee00fc8
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agodts: thermal: ipa parameter optimization for tm2 [1/1]
zhenxin.pu [Wed, 26 Jun 2019 13:24:29 +0000 (21:24 +0800)]
dts: thermal: ipa parameter optimization for tm2 [1/1]

PD#SWPL-10287

Problem:
ipa parameter optimization for tm2

Solution:
change the dyn_coeff of cpufreq and gpufreq, and the sustainable power

Verify:
ab311 pass

Change-Id: Iec472fef8cbd51486a697720ec3015a2e49f37b6
Signed-off-by: zhenxin.pu <zhenxin.pu@amlogic.com>
5 years agowakeup: fix endless loop in wakeup source show [1/1]
Jianxin Pan [Fri, 28 Jun 2019 05:23:55 +0000 (01:23 -0400)]
wakeup: fix endless loop in wakeup source show [1/1]

PD#SWPL-10134

Problem:
endless loop in wakeup source show

Solution:
fix endless loop in wakeup source show

Verify:
TL1

Change-Id: If2318e31388b4a656cf8d99058f8aeaf76ff97a0
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
5 years agoamvecm: fix screen flashing while applying gamma [1/1]
Xihai Zhu [Thu, 20 Jun 2019 09:59:20 +0000 (05:59 -0400)]
amvecm: fix screen flashing while applying gamma [1/1]

PD#TV-6785

Problem:
screen flash while applying gamma

Solution:
apply gamma directly without disable/enable

Verify:
TL1

Change-Id: Iedce17b97608542630dc21d603f3d9c813322375
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
5 years agoamvecm: fix factory mode test pattern abnormal LC effect [1/1]
Xihai Zhu [Thu, 27 Jun 2019 07:26:15 +0000 (03:26 -0400)]
amvecm: fix factory mode test pattern abnormal LC effect [1/1]

PD#TV-5977

Problem:
customer platform, when LC is on, test pattern abnormal

Solution:
there is two frame delay for LC histogram, do not enable LC precess
before it is ready

Verify:
TL1

Change-Id: I78febb9f978dba44faff74677d84075fdf1fd8c7
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
5 years agoethernet: g12b/A exphy,change default param [1/1]
Zhuo Wang [Fri, 28 Jun 2019 05:04:57 +0000 (13:04 +0800)]
ethernet: g12b/A exphy,change default param [1/1]

PD#SWPL-10391

Problem:
g12b revA and revB need one code for two parameter

Solution:
dts set g12b revB parameter
read chipversion,if g12b revA, change the parameter by default value

Verify:
verify on g12b w200 board,revA and revB

Change-Id: I9cc4cd6c370207dce22dd0c7df51a6c71397e235
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
5 years agoefuse: fix potential memory info leakage issue [1/1]
Jiamin Ma [Tue, 18 Jun 2019 06:00:43 +0000 (14:00 +0800)]
efuse: fix potential memory info leakage issue [1/1]

PD#OTT-4656

Problem:
When handling the set attribute IOCTL EFUSE_INFO_GET the driver
makes a call to efuse_getinfo(line 177) passing it a potentially
non-null terminated string. efuse_getinfo() function then uses
this potentially non-null terminated string in strcmp (line 99).
the method efuse_getinfo does not cater to non-null terminated
strings and thus can likely be made to overrun the "item" string
beyond any printable ascii data.
Further more, if attackers can control the item value well enough,
the function efuse_getinfo can be used to potentially disclose
values in kernel memory i.e. by checking the results of lots of
strcmp calls on items values, essentially acting as an oracle for
memory values surrounding the efusekey_info[n].keyname variable in
stack memory.

Solution:
force a null terminator for the keyname argument before comparing
it to kernel memory

Verify:
U200

Change-Id: I851dd7045d0a9e7855e9899c4745eac475cb9233
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
5 years agoethernet: add interface to delay rx/tx clk [1/1]
Zhuo Wang [Wed, 12 Jun 2019 08:07:22 +0000 (16:07 +0800)]
ethernet: add interface to delay rx/tx clk [1/1]

PD#SWPL-9720

Problem:
difference window area between chips

Solution:
add interface to custom

Verify:
verify on g12a u200 board

Change-Id: I589c890e36961f533bffae557337b24a09f1bf41
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
5 years agovideo: move a print info to debug control [1/1]
shuanglong.wang [Thu, 27 Jun 2019 08:08:49 +0000 (16:08 +0800)]
video: move a print info to debug control [1/1]

PD#SWPL-10306

Problem:
omxpts is not update print too many

Solution:
move a print info to debug control, the condition to check
whether omxpts is not set for while is not accurate

Verify:
verify by mainline

Change-Id: I387cc6aee718182a8ff99838e9741443236dd1f9
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
5 years agoosd: add osd sw_sync [1/1]
Pengcheng Chen [Mon, 29 Apr 2019 08:51:19 +0000 (16:51 +0800)]
osd: add osd sw_sync [1/1]

PD#SWPL-9736

Problem:
osd fence crash when play AIV H264 video

Solution:
add osd sw_sync

Verify:
Verified with raven,w400

Change-Id: I309af0e3718221e2309460a990ef0badb9e8bd39
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoosd: modify VIU_MISC_CTRL1 conditions [1/1]
Jian Cao [Tue, 25 Jun 2019 13:04:05 +0000 (21:04 +0800)]
osd: modify VIU_MISC_CTRL1 conditions [1/1]

PD#SWPL-5522

Problem:
S912 display S912 Android P support for osd

Solution:
modify VIU_MISC_CTRL1 for gxm

Verify:
verified on gxm-q201

Change-Id: I2bccfb3fe03864e55d41ab4f9ecf4db68d9dfbea
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agodolby: fix osd1 last line abnormal [3/3]
yao liu [Mon, 24 Jun 2019 09:52:21 +0000 (17:52 +0800)]
dolby: fix osd1 last line abnormal [3/3]

PD#SWPL-6807

Problem:
green line displayed when osd alpha 0xff/0x00 continuous

Solution:
close osd matrix, osd always output rgb format and
use osd1_hdr2_mat do rgb2yuv
At the same time, need disable osd1_hdr2_mtx
when dv on

Verify:
g12a/g12b/sm1

Change-Id: I1fdb11707f30a1938167b6bfc8e6ec6bce5485eb
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agohdr: fix osd1 last line abnormal [2/3]
MingLiang Dong [Thu, 30 May 2019 11:52:30 +0000 (19:52 +0800)]
hdr: fix osd1 last line abnormal [2/3]

PD#SWPL-9042

Problem:
osd1 last line abnormal

Solution:
use osd1 hdr mtx workaround

Verify:
verify on TL1

Change-Id: I04b848d996d0c819c9eb841ac1da4b927b42383d
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoosd: modify VPP_OSD_SC_DUMMY_DATA alpha conditions [1/1]
Jian Cao [Mon, 24 Jun 2019 11:04:18 +0000 (19:04 +0800)]
osd: modify VPP_OSD_SC_DUMMY_DATA alpha conditions [1/1]

PD#TV-6994

Problem:
When ATV Mode has no signal
the bright line interference at the bottom

Solution:
modify VPP_OSD_SC_DUMMY_DATA alpha value

Verify:
verified on txlx-r311

Change-Id: Icc5039f80bd794ed5adb98e22fbf41f52758ef83
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoaudio: init volume and mute for tas5782m [1/1]
bing.jiang [Fri, 21 Jun 2019 08:49:21 +0000 (16:49 +0800)]
audio: init volume and mute for tas5782m  [1/1]

PD#SWPL-10115

Problem:
    There is no mute amixer scontrol for tas5782
    set volume and mute in init tas5782m

Solution:
    Add mute function for tas5782
    set volume and mute in init tas5782m

Verify:
    S400_SBR A113

Change-Id: I4b25da42620407e24f0b26e62bae21cc12081f7c
Signed-off-by: bing.jiang <bing.jiang@amlogic.com>
5 years agovdin: tl1 1g platform,hdmi in black screen [1/1]
zhiwei.yuan [Tue, 25 Jun 2019 06:54:37 +0000 (14:54 +0800)]
vdin: tl1 1g platform,hdmi in black screen [1/1]

PD#SWPL-9473

Problem:
vdec cann't release memory in time

Solution:
add retry mechanism for allocate mem fail

Verify:
verified by t962x2_x301

Change-Id: If75e81c75da067bdbbd641614c7d2b2dbdc3799a
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agounifykey: support operate efusekey for 32bit [1/1]
Zhongfu Luo [Mon, 24 Jun 2019 08:14:04 +0000 (16:14 +0800)]
unifykey: support operate efusekey for 32bit [1/1]

PD#TV-7131

Problem:
unifykey: can operate efusekey under 32bit

Solution:
unifykey: add operate efusekey support for 32bit

Verify:
TL1 skt board verify pass

Change-Id: I0e0175554e180bb70da01e751ec5bcde4771c7a6
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
5 years agoamvecm: fix cm size delay one frame [1/1]
MingLiang Dong [Wed, 29 May 2019 11:46:39 +0000 (19:46 +0800)]
amvecm: fix cm size delay one frame [1/1]

PD#TV-5968

Problem:
cm size set delay one frame

Solution:
get cm size from scaler, and set size with rdma

Verify:
verify on TL1

Change-Id: I9d1ef3167a4717a20c5d77a4cd7674d5a417526c
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agohdmitx: fix valid_mode effects color attribute [1/1]
Zongdong Jiao [Wed, 12 Jun 2019 12:19:45 +0000 (20:19 +0800)]
hdmitx: fix valid_mode effects color attribute [1/1]

PD#OTT-4372

Problem:
Need add a extra hdmi_format_para for valid_mode

Solution:
Add a extra hdmi_format_para for valid_mode
Also, fix cedst_en assginment and wrong aud ACR/N parameters when
kernel bootup, need to get current vinfo then set right ARC/N.

Verify:
G12/U212

Change-Id: Ib59986d7436a578daeb7055aa41a379e9381a99b
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agohdmitx: optimise the sup_2160p60hz of DV [1/1]
Zongdong Jiao [Sat, 22 Jun 2019 10:48:11 +0000 (18:48 +0800)]
hdmitx: optimise the sup_2160p60hz of DV [1/1]

PD#SWPL-10065

Problem:
TV claims that supporting DV version2, but it lacks
the Max_TMDS_Clock2 600MHz

Solution:
if max tmds clock is less than 600MHz, clear sup_2160p60hz

Verify:
G12/U212

Change-Id: I77c024dfa860bca60020db689c2a07ae8f502528
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agodeinterace: add codec mm interface [1/1]
Jihong Sui [Thu, 6 Jun 2019 06:19:09 +0000 (14:19 +0800)]
deinterace: add codec mm interface [1/1]

PD#OTT-3688

Problem:
add di when playing encrypted stream(DRM)

Solution:
1. add codec mm interface;
2. set flag_cma '4' in dts for codec mm;

Verify:
verified on u212

Change-Id: If969899e0d5a457a038660c22a1e85dedcfcb40b
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agoclk: x301: cpu hangup when play 3D game [1/1]
Jian Hu [Mon, 24 Jun 2019 06:29:37 +0000 (14:29 +0800)]
clk: x301: cpu hangup when play 3D game [1/1]

PD#SWPL-9471

Problem:
it will hangup when play 3D game for a long time

Solution:
using the origin clk-mux ops to register cpu clock

Verify:
test passed on x301

Change-Id: I1b977e3a9559ef5f376d4cb8a4735e943c07f525
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
5 years agovout: add poll support for ioctl [1/4]
Evoke Zhang [Thu, 20 Jun 2019 13:47:48 +0000 (21:47 +0800)]
vout: add poll support for ioctl [1/4]

PD#SWPL-8450

Problem:
need poll method for vout ioctl

Solution:
add poll support for vout ioctl

Verify:
x301

Change-Id: I9312e8ce9708d700f26d79ac5eadf762fac9bf62
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agovideo: modify omxpts compenstate condition [1/1]
shuanglong.wang [Mon, 24 Jun 2019 09:31:43 +0000 (17:31 +0800)]
video: modify omxpts compenstate condition [1/1]

PD#SWPL-9676

Problem:
h264 non-tunnel mode video, video resume play will frezee one frame
after pause

Solution:
modify omxpts compenstate condition to let pcr stop in time

Verify:
verify by nts

Change-Id: I719150064b0abe4fdfd230a2429cfdfc000ea786
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
5 years agoPM / wakeup: Rework wakeup source timer cancellation
Viresh Kumar [Fri, 8 Mar 2019 09:53:11 +0000 (15:23 +0530)]
PM / wakeup: Rework wakeup source timer cancellation

commit 1fad17fb1bbcd73159c2b992668a6957ecc5af8a upstream.

If wakeup_source_add() is called right after wakeup_source_remove()
for the same wakeup source, timer_setup() may be called for a
potentially scheduled timer which is incorrect.

To avoid that, move the wakeup source timer cancellation from
wakeup_source_drop() to wakeup_source_remove().

Moreover, make wakeup_source_remove() clear the timer function after
canceling the timer to let wakeup_source_not_registered() treat
unregistered wakeup sources in the same way as the ones that have
never been registered.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 4.4+ <stable@vger.kernel.org> # 4.4+
[ rjw: Subject, changelog, merged two patches together ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: Iae10e0d836e4933ef0311c72508c5cf246bbe437

5 years agoamvecm: Revert "amvecm: add sharpness0 cvbs table in driver" [2/4]
Bencheng Jing [Fri, 21 Jun 2019 06:44:56 +0000 (14:44 +0800)]
amvecm: Revert "amvecm: add sharpness0 cvbs table in driver" [2/4]

PD#SWPL-8450

Problem:
add cvbs table in db

Solution:
remove cvbs table in driver

Verify:
U212

Change-Id: I5db52c6bbf8f00f94834d8bf151135892602b56a
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agodeinterlace: enable pulldown for G12A/G12B [1/1]
Jihong Sui [Fri, 21 Jun 2019 08:23:35 +0000 (16:23 +0800)]
deinterlace: enable pulldown for G12A/G12B [1/1]

PD#SWPL-10047

Problem:
enable pulldown for G12A/G12B

Solution:
enable pulldown;

Verify:
U212

Change-Id: I25f19868d64326ffba6694e6d3e365b3d6da7c00
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
5 years agodi: fix the garbage in ColorBar.mp4 [1/1]
Bencheng Jing [Wed, 19 Jun 2019 13:10:22 +0000 (21:10 +0800)]
di: fix the garbage in ColorBar.mp4 [1/1]

PD#SWPL-7071

Problem:
reg_dnr_dm_chrmen not follow db

Solution:
disable chroma dm for ott according to vlsi-baozheng

Verify:
u212

Change-Id: If530c5c5f47e132b01a2cb31a96347f2f465afda
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
5 years agoppmgr: modify first frame garbage. [1/1]
renjiang.han [Sat, 15 Jun 2019 15:16:39 +0000 (23:16 +0800)]
ppmgr: modify first frame garbage. [1/1]

PD#SWPL-9350

Problem:
ppmgr first frame garbage for afbc.

Solution:
alloc canvas.

Verify:
on u212

Change-Id: Ifd8d865240fee07f37d8ed47b224a39f24eac3d4
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
5 years agoppmgr: add compatibility with doublewrite. [1/1]
renjiang.han [Wed, 12 Jun 2019 09:06:39 +0000 (17:06 +0800)]
ppmgr: add compatibility with doublewrite. [1/1]

PD#SWPL-9350

Problem:
For output with compressed and uncompressed formats,
ppmgr recognizes the compressed format and returns directly.

Solution:
add compatibility with doublewrite.

Verify:
on u212

Change-Id: I9fffa720deee80b5db4ef21086c4638a630f9a80
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
5 years agoppmgr: Interlaced video only shows half. [1/1]
renjiang.han [Tue, 11 Jun 2019 13:40:03 +0000 (21:40 +0800)]
ppmgr: Interlaced video only shows half. [1/1]

PD#SWPL-9350

Problem:
Interlaced video only shows half.

Solution:
Interlaced video height is divided by 2.

Verify:
on U212

Change-Id: I983e3369687eeb55f03d3e7f8474b9e37549440f
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
5 years agoppmgr: add phy_addr add support. [6/6]
renjiang.han [Wed, 5 Jun 2019 12:55:47 +0000 (20:55 +0800)]
ppmgr: add phy_addr add support. [6/6]

PD#SWPL-9350

Problem:
ppmgr not support vf with phy_addr.

Solution:
config canvas

Verify:
on U212

Change-Id: I96629ed6287edaf4e7d7a2673ff604e99e3b12df
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
5 years agovout: add adjustment for hpd event monitor [1/1]
Hang Cheng [Fri, 14 Jun 2019 05:59:32 +0000 (13:59 +0800)]
vout: add adjustment for hpd event monitor [1/1]

PD#OTT-4604

Problem:
1.Before systemcontrol starts up, vout monitor takes
place to monitor hpd event of hdmi, but vout server
module is indepent with hdmi module, so the hpd status
that vout server got may out of sync with hdmi. If
the monitor interval is larger than hpd reset duration,
for example, the vout server monitor frequency
for hpd event is 500ms once, but hpd reset duration
of TV is smaller, 20ms~200ms..., vout server may miss
some hpd events, thus there will be no notifications
from vout server to set new output mode.
2.If vout monitor timeout before systemcontrol starts
up, hpd events happen during the interval will
not be handled.

Solution:
add adjustment of hpd monitor time and interval

Verify:
A311D

Change-Id: Ic6c371362c63baf50de3c5849fdbcdc5ec22ef61
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
5 years agokasan: fix panic issue when open kasan with vmap stack [1/1]
Tao Zeng [Mon, 24 Jun 2019 10:39:48 +0000 (18:39 +0800)]
kasan: fix panic issue when open kasan with vmap stack [1/1]

PD#SWPL-10141

Problem:
When open kasan with vmap stack on ARM32 platform, there
will be a panic issue which pc is running out of range:
[ 56.726530@2] PC is at 0x50
[ 56.729301@2] LR is at 0x0

Solution:
Close kasan when open vmap stack on ARM32

Verify:
TL1

Change-Id: Id82eb27543e8eade86b281cde9e160b8bf4e7878
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>