GitHub/LineageOS/G12/android_kernel_amlogic_linux-4.9.git
21 months agoRevert "dvb-core: compatile with 32bit in 64bit kernel [1/1]"
Christian Hoffmann [Sat, 4 Feb 2023 18:19:39 +0000 (19:19 +0100)]
Revert "dvb-core: compatile with 32bit in 64bit kernel [1/1]"

This reverts commit 93f63edd13a85e1a681de86774f52fb7b740a380.

21 months agoRevert "net: stmmac: use correct DMA buffer size in the RX descriptor"
Christian Hoffmann [Tue, 31 Jan 2023 22:20:55 +0000 (23:20 +0100)]
Revert "net: stmmac: use correct DMA buffer size in the RX descriptor"

This reverts commit 231f1d4c1c1184bfa6b59031eb40958be50393d3.

21 months agoRevert "HID: core: move Usage Page concatenation to Main item [1/1]"
Christian Hoffmann [Tue, 31 Jan 2023 22:06:15 +0000 (23:06 +0100)]
Revert "HID: core: move Usage Page concatenation to Main item [1/1]"

This reverts commit e611bb331f9099d54274d5bd5cf68f233e254198.

21 months agokernel: source code upgrade for adt3-R [1/1]
Liang Ji [Fri, 19 Mar 2021 02:37:59 +0000 (10:37 +0800)]
kernel: source code upgrade for adt3-R [1/1]

in amlogic side
the tot CL:
    commit a02cbbb86f9a570b88f6a52d1fed52c8481f61f2
    Author: binqi zhang <binqi.zhang@amlogic.com>
    Date:   Mon Mar 15 17:27:12 2021 +0800

    uvm: fix kernel panic after exit playback [2/2]

    PD#SWPL-45047

    Problem:
    fixed realloc buffer size is not reasonable

    Solution:
    realloc buffer size need real buffer size

    Verify:
    adt3

    Change-Id: I307b37d4b12daf23eb4b8612e71af0452932a75a
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
Change-Id: Iead8da7ba7c8eef9767ce87cf22ac515d78feb91

4 years agocec: pw down save phy addr [1/1]
Yong Qin [Tue, 21 Jan 2020 12:53:16 +0000 (20:53 +0800)]
cec: pw down save phy addr [1/1]

PD#SWPL-19940

Problem:
sometime uboot got wrong phy addr

Solution:
power down save phy addr again

Verify:
g12a

Change-Id: I0a4c468e1c1752c4dcdc4d33a32e14db60dd67b5
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
4 years agoosd: fix osd bootanimation shift [2/2]
Pengcheng Chen [Mon, 2 Mar 2020 07:40:20 +0000 (15:40 +0800)]
osd: fix osd bootanimation shift [2/2]

PD#SWPL-19862

Problem:
osd regs init are different with meson-hwc setting

Solution:
osd regs init are different with meson-hwc setting

Verify:
franklin

Change-Id: Ic9f19a82859e1e18e57084935873b10057436e3b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agohdr: hdr10+ color abnormal for androidQ [1/1]
Cheng Wang [Fri, 27 Dec 2019 06:13:47 +0000 (14:13 +0800)]
hdr: hdr10+ color abnormal for androidQ [1/1]

PD#SWPL-18339

Problem:
play source of hdr10+ color abnormal on hdr_policy always
caused by PROC_MATCH value.

Solution:
Modify PROC_MATCH value.

Verify:
on newton

Change-Id: I3f86f67040b2e408dd92bcaaeceaa6dcb8b638cc
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
4 years agodts: add new unifykey [2/2]
Liang Ji [Wed, 11 Dec 2019 08:05:14 +0000 (16:05 +0800)]
dts: add new unifykey [2/2]

PD#SWPL-17914

Problem:
need a new unifykey for google smoking test

Solution:
add a new unifykey named oemkey

Verify:
x301, franklin, ampere

Change-Id: I64fbee1f2e2ae9d9c71fa02b0be033d7cd6c8a9d
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
4 years agodeadpool-y3: add oemkey [1/1]
Liang Ji [Wed, 5 Feb 2020 08:58:36 +0000 (16:58 +0800)]
deadpool-y3: add oemkey [1/1]

BUG=148900449

Problem:
deadpool y2 has the unifykey named oemkey
but deadpool y3 does not

Solution:
add the unifykey

Verify:
deadpool-y3

Change-Id: Ia4609709f277a90eca104bde7b21708ec2e4cd91
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
4 years agosuspend: fix freeze abort hangup which caused by insmod [1/1]
Qiufang Dai [Thu, 26 Dec 2019 04:05:22 +0000 (12:05 +0800)]
suspend: fix freeze abort hangup which caused by insmod [1/1]

PD#GH-134

Problem:
When freeze abort happen, it will lose device_unblock_probing(),
so device probe is blocked.

Solution:
When freeze abort happen, release device_block_probing

Verify:
SM1_S905D3_AC200

Change-Id: I3e591fe9ed392b6a4d30285817a91fbfec25336f
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
4 years agodeadpool: enable new mailbox routine for G12A [1/1]
Xindong Xu [Mon, 6 Jan 2020 10:07:42 +0000 (18:07 +0800)]
deadpool: enable new mailbox routine for G12A [1/1]

PD#SWPL-19014

Problem:
BL30 enable new mailbox routine for SM1
So G12A also need use the same mailbox routine

Solution:
Enable new mailbox routine in dts

Verify:
deadpool

Change-Id: I17ff88facb1763b22735d46e83bac493bbaec368
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
4 years agouvm: add meson uvm driver [1/1]
Tellen Yu [Fri, 20 Dec 2019 10:44:10 +0000 (18:44 +0800)]
uvm: add meson uvm driver [1/1]

PD#SWPL-18288

Problem:
For video display pipe, we need a way to avoid passing non-afbc data.

Solution:
add a new dma-buf allocation driver to do delay allocation.
trunk cl:http://scgit.amlogic.com:8080/#/c/94164/

Verify:
u212

Change-Id: I77ba7afc97ec7607700f3fdeb8baa147fa1483ad
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
Signed-off-by: Tellen Yu <tellen.yu@amlogic.com>
4 years agoMerge remote-tracking branch 'remotes/trunk/bringup/amlogic-4.9/sync20190611_forQ...
Xindong Xu [Fri, 3 Jan 2020 05:06:11 +0000 (13:06 +0800)]
Merge remote-tracking branch 'remotes/trunk/bringup/amlogic-4.9/sync20190611_forQ' into ref_head

4 years agodv: fix first frame garbage with dual dv [1/1]
Brian Zhu [Mon, 30 Dec 2019 16:09:21 +0000 (00:09 +0800)]
dv: fix first frame garbage with dual dv [1/1]

PD#SWPL-19310

Problem:
When playing dual layer dv streaming, first frame
may display green. BL layer is out of sync with EL
layer.

Solution:
Fix the case which will toggle one more EL vframe incorrecly.

Verify:
Verified by AC214

Change-Id: I13b4a05716e800b8d25564a82d1d34d7198bf467
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agoG12A: enable new mailbox routine for G12A [3/3]
Qiufang Dai [Mon, 30 Dec 2019 08:58:09 +0000 (16:58 +0800)]
G12A: enable new mailbox routine for G12A [3/3]

PD#SWPL-19014

Problem:
BL30 enable new mailbox routine for SM1
So G12A also need use the same mailbox routine

Solution:
Enable new mailbox routine in dts

Verify:
S905D2_U200

Change-Id: I3582c9351c362d255996fed593ebed8581f82ae6
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
4 years agoMailbox: fix mailbox rx_size issue.[2/3]
Qiufang Dai [Mon, 30 Dec 2019 08:53:33 +0000 (16:53 +0800)]
Mailbox: fix mailbox rx_size issue.[2/3]

PD#SWPL-19014

Problem:
m3 channel (low mailbox) use wrong rx_size in mbox_handler

Solution:
m4 channel use read back rx_size, m3 use rx_size from package

Verify:
S905X3-AC214

Change-Id: I44a5a038b14f3d6860ffb01e733d56795696024f
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
4 years agovpp: add vframe src_fmt struct and function [1/1]
Brian Zhu [Fri, 27 Dec 2019 18:24:22 +0000 (02:24 +0800)]
vpp: add vframe src_fmt struct and function [1/1]

PD#SWPL-17729

Problem:
In new video pipeline, vfm map is changed. So vpp
can not get aux data from decode directly. It cause
the format of dv or hdr10+ content is incorrect.

Solution:
Add src_fmt struct in vframe, and whole src_fmt interface.
Let front-end updates src_fmt directly. Then vpp, dv or
hdr10+ module can get the sei data from it.

Verify:
Verifed on AC214

Change-Id: I96b7f84fa72c51ceec9e3ec28288ea0e7a726139
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agouvm: copy the vframe to dma_buf one time [1/1]
Ao Xu [Wed, 25 Dec 2019 04:13:24 +0000 (12:13 +0800)]
uvm: copy the vframe to dma_buf one time [1/1]

PD#SWPL-19184

Problem:
1. When playing 4K video and pressing the power button,
it will stuck for more than 2s.
2. For some memory pressue condition, ion_alloc will
alloc fail for CMA memory.

Solution:
1. only do the data copy from vframe once.
2. change heap type to system heap for afbc video case.

Verify:
u212

Change-Id: I778541577004fa77e0917ca612a48745d92f2fb7
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
4 years agocodec_mm: fix fastplay can not alloc twice [2/3]
Jian Wang [Tue, 24 Dec 2019 09:39:01 +0000 (17:39 +0800)]
codec_mm: fix fastplay can not alloc twice [2/3]

PD#SWPL-18391

Problem:
codec_mm_extpool_pool_release use
mgt->tvp_pool.total_size, not it
parm tvp_pool, when extpool is
cma_pool not tvp pool will duo to
total_size set error.

Solution:
use codec_mm_extpool_pool_release
parm tvp_pool total_size to set

Verify:
verify on u212

Change-Id: I83a5d988d7701cf6291250bd739c1c5b43143764
Signed-off-by: Jian Wang <jian.wang@amlogic.com>
4 years agodi: copy vframe pts_us64 to start_pts64 [1/1]
rongrong zhou [Wed, 25 Dec 2019 09:51:02 +0000 (17:51 +0800)]
di: copy vframe pts_us64 to start_pts64 [1/1]

PD#SWPL-18928

Problem:
DI first frame pts_us64 cause video discontinue

Solution:
copy pts_us64

Verify:
local

Change-Id: I86adf0e6221083a4205a07f7920a6d443b447c15
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
4 years agovideo_composer: window position is abnormal. [1/1]
renjiang.han [Tue, 24 Dec 2019 14:17:44 +0000 (22:17 +0800)]
video_composer: window position is abnormal. [1/1]

PD#SWPL-18923

Problem:
window position is abnormal.

Solution:
axis and crop need to be done at the same time.

Verify:
on U212

Change-Id: I9c3e2d16588b83734fa2d7d1dcf7acee21d0af02
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
4 years agovpp: check the vframe type for recycle buffer [1/1]
Brian Zhu [Thu, 26 Dec 2019 04:16:57 +0000 (12:16 +0800)]
vpp: check the vframe type for recycle buffer [1/1]

PD#SWPL-19012

Problem:
If the vframe is not from DI post wr, it may crash
in recycle flow.

Solution:
Double check the vframe type if it is DI post wr.
Filter the invaild buffer.

Verify:
Verified on AC214

Change-Id: I8d469ea578bd308bfe930a97b4182b6218c079ce
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agocodec_mm: add protect secure memory in codec_mm [1/1]
shipeng.sun [Mon, 23 Dec 2019 08:59:53 +0000 (16:59 +0800)]
codec_mm: add protect secure memory in codec_mm [1/1]

PD#SWPL-17811

Problem:
add protect secure memory in codec_mm

Solution:
add protect secure memory protect in codec_mm and
add flags to change old mode to debug

Verify:
Android Q + franklin

Test:
1. If tvp_mode set to 0 can be compatibility with
old mode.
2. In tvp_mode 1, if no protect tvp, the play will
full screen mosaic

Change-Id: Ie3b04c0a06377610f9a5a18fdec2feba70ba2f8d
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
4 years agotee: add api tee_protect_tvp_mem [1/1]
Pengguang Zhu [Tue, 3 Dec 2019 07:15:10 +0000 (15:15 +0800)]
tee: add api tee_protect_tvp_mem [1/1]

PD#SWPL-17811

Problem:
need API to protect mem for tvp

Solution:
add api tee_protect_tvp_mem

Verify:
Android Q + franklin

Test: manual

Change-Id: I46daec70a843524789aa63b32ef5e43111b65c66
Signed-off-by: Pengguang Zhu <pengguang.zhu@amlogic.com>
4 years agov4lvideo: add support for multiple input formats. [1/1]
renjiang.han [Tue, 24 Dec 2019 12:47:06 +0000 (20:47 +0800)]
v4lvideo: add support for multiple input formats. [1/1]

PD#SWPL-18704

Problem:
v4lvideo only supports NV21 input format.

Solution:
add support for multiple input formats.

Verify:
on U212

Change-Id: I1dc4a4cc863fe4e8e2c540e22642d828f8aef7df
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
4 years agovpp: add recycle buffer q after unreg [2/2]
Brian Zhu [Mon, 23 Dec 2019 06:27:26 +0000 (14:27 +0800)]
vpp: add recycle buffer q after unreg [2/2]

PD#SWPL-18786

Problem:
Need recycle the kept buffer from DI module. Otherwise
buffers will be leaked.

Solution:
Record pointers of the kept buffer vframe and call release
function of DI.

Verify:
Verified on newton

Change-Id: Id62adea0bdde5e3b14a2ca00f45bf9e61be40d02
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agodeintlace: add recycle buffer q after unreg [1/2]
qianqian.cai [Mon, 23 Dec 2019 01:51:11 +0000 (09:51 +0800)]
deintlace: add recycle buffer q after unreg [1/2]

PD#SWPL-18786

Problem:
keep the buffer from DI need release

Solution:
modify the recycle flow

Verify:
newton

Change-Id: I2f7647468964236ac087704f60ef975c43549776
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
4 years agomailbox: sm1: pass irdeto ifcp testing [1/2]
Wayling Chen [Thu, 31 Oct 2019 11:05:08 +0000 (19:05 +0800)]
mailbox: sm1: pass irdeto ifcp testing [1/2]

PD#SWPL-15621

Problem:
1.irdeto ifcp can't work on amlogic mailbox.

Solution:
fix completion usage and mailbox payload offset
fix mailbox send buffer size to fit bl40_msg_buf struct

Verify:
    test pass on sm1 skt

Change-Id: Iea33427125b1f221241331730e2869d3b2b369f2
Signed-off-by: Wayling Chen <wayling.chen@amlogic.com>
4 years agodts: sm1: add dts parameters [1/1]
Shunzhou Jiang [Tue, 22 Oct 2019 07:08:54 +0000 (15:08 +0800)]
dts: sm1: add dts parameters [1/1]

PD#SWPL-15621

Problem:
add new feature

Solution:
add devnode and support duplex

Verify:
test pass on sm1 skt

Change-Id: I379800eda0090055a8af8e401f6413708e1a2466
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
4 years agotsync: fix video not smooth in vmaster mode [1/1]
Chao Liu [Thu, 21 Nov 2019 02:44:27 +0000 (10:44 +0800)]
tsync: fix video not smooth in vmaster mode [1/1]

PD#SWPL-15541

Problem:
video not smooth during playing dvb demo source.
When tsync in vmaster mode, the pcrscr increase video in every vsync,
no matter whether video buffer is enough or not.

Solution:
When underflow occurs, if tsync in vmaster mode, decrease pcrscr pts.
This will increase the buffer time and make playback smooth

Verify:
AC214

Change-Id: Ief0fc8aa1c79a48cfc6f2d6bb6964a8b193b7bf9
Signed-off-by: Chao Liu <chao.liu@amlogic.com>
4 years agovpp: init the blackout_policy as 0 [1/2]
Brian Zhu [Thu, 19 Dec 2019 13:17:02 +0000 (21:17 +0800)]
vpp: init the blackout_policy as 0 [1/2]

PD#SWPL-18346

Problem:
The default value of blackout_policy is incorrect. It
caused the black screen when decode reset

Solution:
init the blackout_policy as 0

Verify:
Verified on AC214

Change-Id: I24d8120b2268e176231995db1048ade688bbe19f
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agombox: sm1: add devnode and supoort duplex [1/1]
Shunzhou Jiang [Tue, 22 Oct 2019 07:54:40 +0000 (15:54 +0800)]
mbox: sm1: add devnode and supoort duplex [1/1]

PD#SWPL-15621

Problem:
add new feature

Solution:
add devnode and support duplex

Verify:
test pass on sm1 skt

Change-Id: I0990a08d611d039eb33e5f2a4ac4e8b86453c367
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
4 years agodvfs: update cpufreq tables for ac214 [1/1]
Hong Guo [Mon, 25 Nov 2019 01:52:07 +0000 (09:52 +0800)]
dvfs: update cpufreq tables for ac214 [1/1]

PD#SWPL-16915

Problem:
update cpufreq tables for ac214

Solution:
update cpufreq tables for ac214

Verify:
test pass on ac_214

Change-Id: I62941d8fe25d4e326fba06d1ba15a46ace3eff7c
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
4 years agodts: add video_composer for tm2_t962e2_ab311. [1/1]
renjiang.han [Thu, 19 Dec 2019 12:59:39 +0000 (20:59 +0800)]
dts: add video_composer for tm2_t962e2_ab311. [1/1]

PD#SWPL-18651

Problem:
dts of tm2_t962e2_ab311 has no video_composer.

Solution:
add video_composer for tm2_t962e2_ab311.

Verify:
on T962E2-AB311

Change-Id: Ib2c845179cb9954e2f3c658958af21341b402b9f
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
4 years agocec: no port out define in g12a, g12b dts [1/1]
Yong Qin [Thu, 12 Dec 2019 06:23:43 +0000 (14:23 +0800)]
cec: no port out define in g12a, g12b dts [1/1]

PD#SWPL-17700

Problem:
g12a, g12b android P,Q can't got port in/out info
at power on sequence.

Solution:
add output port define, modify dts, and port out
define

Verify:
g12a U212

Change-Id: I83120e56edb60c54d9868e0635f1b4bf517eb4d4
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
(cherry picked from commit 0c0dd13f356d8349513d0a72e98538b84d946027)

4 years agovideo_composer: fix black when hdmi hou-plug [1/1]
jintao xu [Wed, 18 Dec 2019 03:13:46 +0000 (11:13 +0800)]
video_composer: fix black when hdmi hou-plug [1/1]

PD#SWPL-17376

Problem:
black when hdmi hou-plug

Solution:
init last_vf when enable video_composer

Verify:
U212

Change-Id: I3ca03d0bf737ce142e1d25de8dd83986645a9870
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
4 years agoRevert "ftrace: enable preempt and irqsoff tracer default [1/1]"
Hanjie Lin [Thu, 5 Dec 2019 06:05:29 +0000 (23:05 -0700)]
Revert "ftrace: enable preempt and irqsoff tracer default [1/1]"

PD#SWPL-17514

This reverts commit feae23f568845360069cae8dfff155209c827276.

Change-Id: Id683e0b558b6255f53f4cfde0854cd53a01f2fab
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
4 years agouvm: add meson uvm driver [1/1]
Ao Xu [Tue, 10 Dec 2019 14:41:47 +0000 (22:41 +0800)]
uvm: add meson uvm driver [1/1]

PD#SWPL-18288

Problem:
For video display pipe, we need a way to avoid passing non-afbc data.

Solution:
add a new dma-buf allocation driver to do delay allocation.

Verify:
u212

Change-Id: I77ba7afc97ec7607700f3fdeb8baa147fa1483ad
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
4 years agohdmitx: Fix parsing of HDR10plus and Dovi VSVDBs [1/1]
Zongdong Jiao [Tue, 3 Dec 2019 07:53:48 +0000 (15:53 +0800)]
hdmitx: Fix parsing of HDR10plus and Dovi VSVDBs [1/1]

PD#SWPL-17786

Problem:
No dolby vision on latest Vizio TVs providing an EDID containing
both dolby vision and HDR10plus VSVDBs in the EDID.

Solution:
If an EDID contains both HDR10plus and Dovi VSVDBs, we are
incorrectly resetting both dovi and hdr10plus parsed info structs.
As a result, we are only left with the parsed info of the later
VSVDB in the EDID. So, if we have a hdr10plus VSVDB after dovi
VSVDB, dovi info will be reset while parsing for hdr10plus, and
we will not report any dovi capabilities to the frameworks. This
is what is happening on these TVs in question.

Parse HDR10plus and Dovi VSVDBs independently of one another. Do
not reset parsed info of one while parsing for the other.

Since Dovi->HDR10+->Dovi transitions are not defined, send zero
drm/vsif packets while exiting HDR10+ playback if going to dovi
mode next.

Verify:
HDR10plus and Dovi capabilities can be simultaneously and correctly
reported to the frameworks.

Change-Id: I7a344638e5a923c88ef23f0b3a03480c5a564548
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
4 years agodv: Coverity defect cleanup [1/1]
yao liu [Thu, 14 Nov 2019 12:15:21 +0000 (20:15 +0800)]
dv: Coverity defect cleanup [1/1]

PD#SWPL-16534

Problem:
1.Null-checking vinfo
2.dead_error_condition
3.Err data type

Solution:
1.Add Null-checking
2.fix dead_error_condition in dump_setting
3.correct first_reseted data type

Verify:
U212

Change-Id: I1fd7d4059a231160f38684f92bd36866b6a569ba
Signed-off-by: yao liu <yao.liu@amlogic.com>
(cherry picked from commit a0e07f94dbe72dddd6839f418baa554a4d62b4ec)

4 years agovideo_composer: fix 3 channel crop error [1/1]
jintao xu [Thu, 12 Dec 2019 09:12:52 +0000 (17:12 +0800)]
video_composer: fix 3 channel crop error [1/1]

PD#SWPL-18034

Problem:
crop error when hdmi is 4k

Solution:
fix crop error

Verify:
Verify on u212

Change-Id: Id7f7599a64ab376e8b84ba891889e0ed38952266
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
4 years agoMerge "power: Disable unused modules [1/1]" into bringup/amlogic-4.9/sync20190611_forQ
Tellen Yu [Mon, 16 Dec 2019 10:47:55 +0000 (18:47 +0800)]
Merge "power: Disable unused modules [1/1]" into bringup/amlogic-4.9/sync20190611_forQ

4 years agopower: Disable unused modules [1/1]
henry.tsou [Mon, 16 Dec 2019 09:51:56 +0000 (17:51 +0800)]
power: Disable unused modules [1/1]

PD#GH-152
BUG=145966476

Problem:
Sabrina need to lower down more power

Solution:
Disable dvb/tuner/cvbsout module

Verify:
Sabrina-P2

Change-Id: I82655d038d61b4a9d017fb2d84a1c122a0a9f662
Signed-off-by: henry.tsou <henry.tsou@amlogic.com>
4 years agocodec_mm: enlarge reserved_block_mm_M [1/1]
rongrong zhou [Fri, 29 Nov 2019 12:17:34 +0000 (20:17 +0800)]
codec_mm: enlarge reserved_block_mm_M [1/1]

PD#SWPL-17471

Problem:
No mem ret=-10003, clear scatter cache!!

Solution:
enlarge reserved_block_mm_M

Verify:
U212

Change-Id: I567f6437cbfb5a5157c8903ce70fb5e2fc000e34
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
4 years agov4l2: drop frames [1/3]
rongrong zhou [Wed, 4 Dec 2019 07:04:22 +0000 (15:04 +0800)]
v4l2: drop frames [1/3]

PD#SWPL-17328

Problem:
drop frames

Solution:
1. add trace for debug
2. less than 256K, do not use codec_mm allocation
3. osd fence crash

Verify:
local

Change-Id: I3df0a1532b920570365e66cc48d81253831897c0
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
4 years agodv: do not use internal chip_id function by other modules [1/1]
Brian Zhu [Thu, 12 Dec 2019 06:46:40 +0000 (14:46 +0800)]
dv: do not use internal chip_id function by other modules [1/1]

PD#SWPL-18367

Problem:
amcsc used the wrong chip_id function from dolby vision driver,
but at the time, the dv driver maybe did not probe. So got the
wrong chip id state.

Solution:
Using the common chip id function.

Verify:
Verifed by u212

Change-Id: If27e861a2c8d8a586448f33cbaa70a81cbe2370f
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
(cherry picked from commit e58914e153138fc9655961a6ec67680e12699710)

4 years agovpp: set dv process after vd1_mif_correct [1/1]
Pengcheng Chen [Wed, 11 Dec 2019 08:02:04 +0000 (16:02 +0800)]
vpp: set dv process after vd1_mif_correct [1/1]

PD#SWPL-17905

Problem:
set corp right/bottom to 1 caused video flash

Solution:
set dv process after vd1_mif_correct

Verify:
Verify on franklin

Change-Id: I040ed7d3e061fe48b29fd17c97d45ad2bfccc58e
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agov4l2: drop frames [1/3]
rongrong zhou [Wed, 4 Dec 2019 07:04:22 +0000 (15:04 +0800)]
v4l2: drop frames [1/3]

PD#SWPL-17328

Problem:
drop frames

Solution:
1. add trace for debug
2. less than 256K, do not use codec_mm allocation
3. osd fence crash

Verify:
local

Change-Id: I3df0a1532b920570365e66cc48d81253831897c0
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
4 years agocodec_mm: enlarge reserved_block_mm_M [1/1]
rongrong zhou [Fri, 29 Nov 2019 12:17:34 +0000 (20:17 +0800)]
codec_mm: enlarge reserved_block_mm_M [1/1]

PD#SWPL-17471

Problem:
No mem ret=-10003, clear scatter cache!!

Solution:
enlarge reserved_block_mm_M

Verify:
U212

Change-Id: I567f6437cbfb5a5157c8903ce70fb5e2fc000e34
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
4 years agovpp: fix vd1 afbc mif regs overwritten by vd2 [1/1]
Pengcheng Chen [Tue, 10 Dec 2019 09:16:09 +0000 (17:16 +0800)]
vpp: fix vd1 afbc mif regs overwritten by vd2 [1/1]

PD#SWPL-18101

Problem:
vd1 afbc mif regs overwritten by vd2

Solution:
set vd2 afbc mif regs correctly

Verify:
Verify on ab301

Change-Id: I1b761134dd24413ae2af569b6d35b247de21ebcb
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agoamvideo: fix axis not update when video is paused [1/1]
jintao xu [Thu, 12 Dec 2019 05:47:29 +0000 (13:47 +0800)]
amvideo: fix axis not update when video is paused [1/1]

PD#SWPL-17536

Problem:
axis not update when video is paused

Solution:
update axis every vsync

Verify:
Verify on u212

Change-Id: Iad1629f750e9ba075cbb1737a8c0b66be7f7fed4
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
4 years agodi: increase di_cma for two channel di [1/2]
jintao xu [Tue, 10 Dec 2019 10:49:14 +0000 (18:49 +0800)]
di: increase di_cma for two channel di [1/2]

PD#SWPL-18329

Problem:
enable two channel di

Solution:
increase di_cma for two channel di

Verify:
Verify on u212

Change-Id: I2ec87a52fc3e3beea5daae80c24d877385ec6818
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
4 years agodeinterlace: fix buf for multi-view [1/1]
Jihong Sui [Mon, 25 Nov 2019 10:18:42 +0000 (18:18 +0800)]
deinterlace: fix buf for multi-view [1/1]

PD#SWPL-17405

Problem:
use di post write for multi-view;

Solution:
1. fix alloc mem err;
2. fix que out err;

Verify:
U212

Change-Id: I8fc4672aebfbde3d2809a1dc4e77e43e9e3a93fa
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
4 years agosw_sync: fix video_composer fence timeout issue [1/1]
Ao Xu [Tue, 10 Dec 2019 11:06:31 +0000 (19:06 +0800)]
sw_sync: fix video_composer fence timeout issue [1/1]

PD#SWPL-18237

Problem:
SF poll sync-a and sync-b, then merge them to sync-c.
sync-c refer the sync-b's fence in sync_merge function.
SF close sync-a, fence-a was released.
SF close sync-b, it just remove sync_pt from the timeline's
active_list, fence-b was not released due to the reference count.
OMX poll the sync-c, call fence_add_callback, but it will not
call enable_signaling because SF has polled fence-b.
It will lead OMX fence wait timeout.

Solution:
when SF call fence_remove_callback,
clear the FENCE_FLAG_ENABLE_SIGNAL_BIT.

Verify:
U212

Change-Id: I2ff690e5f73067b9289b9cbc35fa34a6362f0dfa
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
4 years agodeinterlace: for multi-view [1/1]
Jihong Sui [Fri, 22 Nov 2019 07:13:24 +0000 (15:13 +0800)]
deinterlace: for multi-view [1/1]

PD#SWPL-17405

Problem:
use di post write for multi-view;

Solution:
1. disable first frame bypass;
2. disable di recycle keep buf by self;
3. clear some print information;

Verify:
U212

Change-Id: Ibcad6c3e46fed2c94cd41638ffaf44dc7979c74f
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
4 years agovpp: fix afbc mif setting error caused vd2 display abnormal [1/1]
Pengcheng Chen [Thu, 5 Dec 2019 10:48:05 +0000 (18:48 +0800)]
vpp: fix afbc mif setting error caused vd2 display abnormal [1/1]

PD#SWPL-17687

Problem:
afbc vd2 mif width size set error

Solution:
fix afbc vd2 mif setting error issue

Verify:
Verify on X301

Change-Id: I4e24b58ab581e2f15fae1becb7120b6bbc951175
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit 7f43e78548f34f26d9bcaae7995a5b6c6365b5d7)

4 years agovpp: fix afbc mif setting error caused video display abnormal [1/1]
Pengcheng Chen [Wed, 4 Dec 2019 10:04:14 +0000 (18:04 +0800)]
vpp: fix afbc mif setting error caused video display abnormal [1/1]

PD#SWPL-17687

Problem:
afbc mif width size set error

Solution:
fix afbc mif setting error issue

Verify:
Verify on X301

Change-Id: I76e32cf6e86cdfa30b7d48f710c51a2032a66fa1
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit 8900537c81fb326bf2db8f1fa9bd62025c57b898)

4 years agoDV: display black at smpte mode [2/2]
yao liu [Tue, 26 Nov 2019 01:34:39 +0000 (09:34 +0800)]
DV: display black at smpte mode [2/2]

PD#SWPL-16027

Problem:
last_dst_format is wrong, it is DOVI even if on HDR TV

Solution:
Correct last_dst_format

Verify:
sm1

Change-Id: I77648ca989d3ff552cb4040d9f859d970eac7d98
Signed-off-by: yao liu <yao.liu@amlogic.com>
(cherry picked from commit ad3efd046fc08b6784cdd5184260edfc2acc85f4)

4 years agoosd: update osd freescaler reg every hwc cmd [1/1]
Pengcheng Chen [Tue, 26 Nov 2019 06:25:12 +0000 (14:25 +0800)]
osd: update osd freescaler reg every hwc cmd [1/1]

PD#SWPL-17309

Problem:
do switch resolution test, sc regs miss-set caused display garbage

Solution:
update osd freescaler reg every hwc cmd

Verify:
ac214

Change-Id: I4c09094a477442b6f9f7bd782f9360d98eff299c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit 7f7f09a1d6e305b1e9f219f5441e0844b39e7ac7)

4 years agovpp: fix video afbc crop setting error [1/1]
Pengcheng Chen [Wed, 20 Nov 2019 08:16:55 +0000 (16:16 +0800)]
vpp: fix video afbc crop setting error [1/1]

PD#SWPL-17266

Problem:
video afbc crop error setting caused display garbage

Solution:
fix video afbc crop setting error

Verify:
on TL1

Change-Id: Ida76aa4d9620b05c538ca522435648e88d531201
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit 70e1a798999eef093fd023abbbdd2502b48832e6)

4 years agoosd: add canvas alignment for line length [1/4]
Cao Jian [Fri, 22 Nov 2019 02:14:42 +0000 (10:14 +0800)]
osd: add canvas alignment for line length [1/4]

PD#SWPL-16902

Problem:
garbage screen for portrait panel in recovery mode

Solution:
add canvas alignment for line length
recovery takes it as framebuffer row_bytes

Verify:
g12b-w400

Change-Id: I9e94df3a7294fa3e388390e41eeb44e0588ec9d2
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
(cherry picked from commit 0b339b85f174b00cf213e9aaaa439591e6f279e5)

4 years agovpp: vpp video path vframe support RGB mode [1/1]
Pengcheng Chen [Wed, 6 Nov 2019 06:50:01 +0000 (14:50 +0800)]
vpp: vpp video path vframe support RGB mode [1/1]

PD#SWPL-15879

Problem:
video patch not support RGB mode

Solution:
vpp video path vframe support RGB mode

Verify:
TL1

Change-Id: Ic86be3eb9163e7e34a3f18886a5e87e8e1bab6fe
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit 8e7b325aee3ea07c68ee350287eb26f4fc19d41f)

4 years agovideo: fixed video coverity error [1/1]
Pengcheng Chen [Wed, 13 Nov 2019 07:20:56 +0000 (15:20 +0800)]
video: fixed video coverity error [1/1]

PD#SWPL-16572

Problem:
fixed video coverity error

Solution:
fixed video coverity error

Verify:
coverity check

Change-Id: I6c1d865b72148d9f4083300826ef023579cbdb11
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit 8babbb3dbdaf0f75d23b0fce031329c32d00920a)

4 years agoosd: fixed osd coverity error [1/1]
Pengcheng Chen [Fri, 15 Nov 2019 08:42:05 +0000 (16:42 +0800)]
osd: fixed osd coverity error [1/1]

PD#SWPL-13983

Problem:
fixed osd coverity error

Solution:
fixed osd coverity error

Verify:
coverity check

Change-Id: I5689930d4112493827dc07e22aa5d086dc2104d7
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit 4efcc5b340309d92fb79c7d6f473931327436244)

4 years agodts: modify display_size_default for recovery buffer [4/4]
Cao Jian [Mon, 25 Nov 2019 05:04:13 +0000 (13:04 +0800)]
dts: modify display_size_default for recovery buffer [4/4]

PD#SWPL-16902

Problem:
garbage screen for portrait panel in recovery mode

Solution:
modify display_size_default for recovery layout

Verify:
g12b-w400

Change-Id: Id42c8ed3ec824fdf00a598b25bde9c1f8383e532
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
(cherry picked from commit dffd6b54270d26bd1d8902ddf256a036bc779bd1)

4 years agogdc: fix gdc coverity issue [1/1]
Cao Jian [Fri, 15 Nov 2019 02:59:19 +0000 (10:59 +0800)]
gdc: fix gdc coverity issue [1/1]

PD#SWPL-13979

Problem:
coverity defect cleanup for gdc

Solution:
DEADCODE on aml_dmabuf_ops_attach()
RESOURCE_LEAK on aml_dma_alloc()
REVERSE_INULL on aml_dma_mmap()
USE_AFTER_FREE on aml_dma_put()
CHECKED_RETURN on gdc_platform_probe()
FORWARD_NULL on gdc_process_ex_info()/gdc_process_with_fw()
UNINIT on gdc_process_ex_info()/gdc_process_with_fw()
NO_EFFECT on gdc_log()

Verify:
coverity check

Change-Id: Iafd7eb5f74792300c68c50ffc5d0e36063cce906
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
(cherry picked from commit b28a8ac621c428437199386895a7ac3012e52905)

4 years agoEVT Thermal throttling control mechanism
henry.tsou [Mon, 9 Dec 2019 05:31:16 +0000 (13:31 +0800)]
EVT Thermal throttling control mechanism

PD#GH-141
BUG=138629630

Problem:
Change throttling setting fro EVT

Solution:
Change throttling setting fro EVT

Verify:
Sabrina-P2

Change-Id: I345359c40fe35598be8506f91522b3b0075a0013
Signed-off-by: henry.tsou <henry.tsou@amlogic.com>
4 years agoge2d: fix ge2d coverity issue [1/1]
Cao Jian [Thu, 14 Nov 2019 14:02:28 +0000 (22:02 +0800)]
ge2d: fix ge2d coverity issue [1/1]

PD#SWPL-13975

Problem:
coverity defect cleanup for ge2d

Solution:
DEADCODE on aml_dmabuf_ops_attach()
RESOURCE_LEAK on aml_dma_alloc()
REVERSE_INULL on aml_dma_mmap()
USE_AFTER_FREE on aml_dma_put()
COPY_PASTE_ERROR&FORWARD_NULL on build_ge2d_config()

Verify:
coverity check

Change-Id: I1b80cb993254adb1721dfb2e5b25db0248dca1a6
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
(cherry picked from commit 801723a61128d84861d64ee5336e6054169fea8b)

4 years agodv: improve the dv process flow [1/1]
Brian Zhu [Fri, 6 Dec 2019 14:57:09 +0000 (22:57 +0800)]
dv: improve the dv process flow [1/1]

PD#SWPL-18116

Problem:
Under keeping frame case, dv toggle frame with wrong
mode, it may cause non-dv effect .

Solution:
Improve the toggle flow , pass the correct mode into
dv driver. Then using the last meta data

Verify:
Verified on u212

Change-Id: I456bb16e16810c166aba23d07a3296595032861e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
(cherry picked from commit 7595b454438eddfd6332780a4109678730f831ab)

4 years agodv: add dv target output mode [1/1]
Brian Zhu [Fri, 8 Nov 2019 18:03:16 +0000 (02:03 +0800)]
dv: add dv target output mode [1/1]

PD#SWPL-16861

Problem:
HDR core get the wrong dv output state when vd1/vd switching.
It caused the HDR core setting incorret.

Solution:
Add the new interface to update the correct state.

Verify:
Verified on AC213

Change-Id: I3df18b967257ccfcb57c110b4dbc79100d290a80
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
(cherry picked from commit 9d31efae4a55eadf0beb62c404adb427fdd7d4ea)

4 years agovpp: display frame_width/height info for video_composer path [1/1]
Pengcheng Chen [Mon, 2 Dec 2019 09:30:48 +0000 (17:30 +0800)]
vpp: display frame_width/height info for video_composer path [1/1]

PD#SWPL-17616

Problem:
in video_composer path, frame_width/height is NA

Solution:
display frame_width/height info for video_composer path

Verify:
franklin

Change-Id: If334ca8186ee4b47ad0643f11c7ba1b0ea051f7f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agohdmitx: correct the threshold value of rxsense [1/1]
Zongdong Jiao [Wed, 4 Dec 2019 08:23:54 +0000 (16:23 +0800)]
hdmitx: correct the threshold value of rxsense [1/1]

PD#SWPL-17841

Problem:
need correct the threshold value of rxsense

Solution:
correct the threshold value of rxsense, regress OTT-1968 to trunk

Verify:
G12/U212

Change-Id: I53f370cf51c0ad39e92fd64a0cc98cc4680eea4d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
4 years agohdmitx: revert original hpd_state mark [1/1]
Zongdong Jiao [Wed, 4 Dec 2019 12:11:15 +0000 (20:11 +0800)]
hdmitx: revert original hpd_state mark [1/1]

PD#SWPL-17710

Problem:
Suppose hdmitx already output in uboot, and next kernel boots up,
the output will disable and then enable

Solution:
When hdmitx hpd_states initializes, read edid when hpd is high

Verify:
G12/U212

Change-Id: I538b8af2d59a7b2b34739f14d0b0cb6fd89aed2e
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
4 years agodeadpool: add dts for sm1_s905y3_deadpool [2/3]
Xindong Xu [Wed, 4 Dec 2019 07:55:59 +0000 (15:55 +0800)]
deadpool: add dts for sm1_s905y3_deadpool [2/3]

PD#SWPL-17745

Problem:
bring up deadpool Y3

Solution:
add dts for sm1_s905x3_deadpool

Verify:
deadpool

Change-Id: Ib64dcd319febb48ce0af645c0c4bc8e4409a7466
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
4 years agohdmitx: Fix parsing of HDR10plus and Dovi VSVDBs [1/1]
Zongdong Jiao [Tue, 3 Dec 2019 07:53:48 +0000 (15:53 +0800)]
hdmitx: Fix parsing of HDR10plus and Dovi VSVDBs [1/1]

PD#SWPL-17786

Problem:
No dolby vision on latest Vizio TVs providing an EDID containing
both dolby vision and HDR10plus VSVDBs in the EDID.

Solution:
If an EDID contains both HDR10plus and Dovi VSVDBs, we are
incorrectly resetting both dovi and hdr10plus parsed info structs.
As a result, we are only left with the parsed info of the later
VSVDB in the EDID. So, if we have a hdr10plus VSVDB after dovi
VSVDB, dovi info will be reset while parsing for hdr10plus, and
we will not report any dovi capabilities to the frameworks. This
is what is happening on these TVs in question.

Parse HDR10plus and Dovi VSVDBs independently of one another. Do
not reset parsed info of one while parsing for the other.

Since Dovi->HDR10+->Dovi transitions are not defined, send zero
drm/vsif packets while exiting HDR10+ playback if going to dovi
mode next.

Verify:
HDR10plus and Dovi capabilities can be simultaneously and correctly
reported to the frameworks.

Change-Id: I7a344638e5a923c88ef23f0b3a03480c5a564548
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
4 years agohdmitx: add a fake hpd for system test [1/1]
Zongdong Jiao [Fri, 15 Nov 2019 08:03:43 +0000 (16:03 +0800)]
hdmitx: add a fake hpd for system test [1/1]

PD#SWPL-16891

Problem:
For automatical test, the HDMI cable are always connected between Tx and Rx
without manully action.

Solution:
add a fake hpd for system test
echo 0[1] > /sys/class/amhdmitx/amhdmitx0/fake_plug

Verify:
G12/U212

Change-Id: I826fc0094845a13066a1535a4a87727b4ecad452
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
(cherry picked from commit e764ebfccc9502eb027f20527b58f7d4f509d1fd)

4 years agohdmitx: update edid attach after reading once [1/1]
Zongdong Jiao [Mon, 25 Nov 2019 14:10:13 +0000 (22:10 +0800)]
hdmitx: update edid attach after reading once [1/1]

PD#SWPL-17476

Problem:
After kernel boots up, there will no edid info for vinfo

Solution:
Need update edid attach after reading once
In kernel init, hdmitx / vout / edid with attach once time
Normal replug, plugin / edid / uevent / mode setting / attach
Also, init DRM_DB[0] data.

Verify:
G12/U212

Change-Id: I188f0972c882a17efcbc568ef7d0db861b9b6c0a
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
(cherry picked from commit 1c185cb0c069638c6391f424637f57abdaf99570)

4 years agohdmitx: optimize for power up flow [1/1]
Hang Cheng [Wed, 20 Nov 2019 10:04:26 +0000 (18:04 +0800)]
hdmitx: optimize for power up flow [1/1]

PD#SWPL-17155

Problem:
box set env to 2160p30hz 422,12bit, connect to
Hisense LED50EC660US 4K TV which only support
maximum 3G mode, then power on box, the hpd is
low when run hdmitx hpd command, so hdmi is not
set. after enter kernel, vout set 2160p30hz
before edid is read, and the color space is
forcely changed to rgb, but the color depth is
still 12bit, so TV can't detect normally.

Solution:
keep hpd state low until edid read finishes,
so that the mode vout set is filtered by edid

Verify:
S905X3

Change-Id: I11d126c4a2165ffaf3892534b1602bad3d78618d
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
(cherry picked from commit f0a8ac5dcd74b92919e9ae55dd88de781c567c91)

4 years agohdmitx: Coverity(upgraded) defect cleanup: hdmitx [1/1]
Zhengrong.Zhu [Fri, 22 Nov 2019 11:16:30 +0000 (19:16 +0800)]
hdmitx: Coverity(upgraded) defect cleanup: hdmitx [1/1]

PD#SWPL-16574

Problem:
Coverity(upgraded) defect cleanup: hdmitx

Solution:
Modify code according to coverity

Verify:
verify on the board of U212

Change-Id: Iac69fb896dd22b38ae56b58701d6fd26aefe958c
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
(cherry picked from commit cbbac9335c19d09c6bf50e6069d79f973129210a)

4 years agohdmitx: Playback HLG video color is abnormal during playing [1/1]
Zhengrong.Zhu [Fri, 15 Nov 2019 10:37:54 +0000 (18:37 +0800)]
hdmitx: Playback HLG video color is abnormal during playing [1/1]

PD#SWPL-16374

Problem:
Playback HLG video color display is abnormal during playing

Solution:
Modify code related to color space.

Verify:
verify on the board of U212

Change-Id: Ie01ba1f9931a5e8f12bd1cfd70fd9ea752194f9b
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
(cherry picked from commit 82f2f9ff78c08c1b51738501dac9c6f213d4b33f)

4 years agohdmitx: fix sda hold low issue [1/1]
Zongdong Jiao [Fri, 25 Oct 2019 08:29:51 +0000 (16:29 +0800)]
hdmitx: fix sda hold low issue [1/1]

PD#SWPL-8231

Problem:
When HDMI cable plugin, the SDA may hold low forever or for short time.

Solution:
Add sw_reset_flt reset to resolve hold low forever issue

Verify:
G12/Dongle

Change-Id: I53bbf704bb48a2cd3cc2ebef1444c69ad1623e87
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
(cherry picked from commit b5c467ea8c3f6cd180b0cd00fa6a5413252119d4)

4 years agocec: cec b ARB timing cause cec 9.6.1 fail [1/1]
Yong Qin [Sun, 1 Dec 2019 07:41:26 +0000 (15:41 +0800)]
cec: cec b ARB timing cause cec 9.6.1 fail [1/1]

PD#SWPL-17658

Problem:
ARB timing setting is too large, it will cause
cec cts 9.6.1 fail

Solution:
reducec ARB timing

Verify:
sm1-AC214

Change-Id: If6bab18b729fc6f1dc010aa6289dc3e887a0f6f6
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
4 years agoamvideo: add dv support for video_receiver [1/2]
Brian Zhu [Tue, 26 Nov 2019 17:55:13 +0000 (01:55 +0800)]
amvideo: add dv support for video_receiver [1/2]

PD#SWPL-17393

Problem:
video receiver has no dv vframe operation.

Solution:
Add dv vframe operation.

Verify:
Verifed by u212

Change-Id: I0caf24d85a0d6d8382c13d72d9a439390ac21047
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
4 years agomedia_module: h264 playback crash [1/1]
Peng Yixin [Wed, 27 Nov 2019 09:57:59 +0000 (17:57 +0800)]
media_module: h264 playback crash [1/1]

PD#SWPL-17322

Problem:
    h264 playback crash.

Solution:
    Determine wether file_vf is null

Verify:
    U212

Change-Id: I1643c43ef0eb55aa88beeb47b2f3c8c180b9a5a2
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
4 years agohdmitx: update PHY parameters [2/2]
Zongdong Jiao [Wed, 9 Oct 2019 12:54:05 +0000 (20:54 +0800)]
hdmitx: update PHY parameters [2/2]

PD#SWPL-14962

Problem:
need update PHY parameters on condition

Solution:
update PHY parameters on condition

Verify:
SM1/S905D3

Change-Id: I29cae7298140ab7a41a55b8891d4acd74fec8f5e
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
4 years agoMerge "osd: fix reboot quiescent caused screen blank issue [1/1]" into bringup/amlogi...
Tellen Yu [Fri, 29 Nov 2019 05:56:36 +0000 (13:56 +0800)]
Merge "osd: fix reboot quiescent caused screen blank issue [1/1]" into bringup/amlogic-4.9/sync20190611_forQ

4 years agocpufreq: close pdvfs function by dts [1/1]
Hong Guo [Thu, 14 Nov 2019 06:00:42 +0000 (14:00 +0800)]
cpufreq: close pdvfs function by dts [1/1]

PD#SWPL-15870

Problem:
close pdvfs function by dts

Solution:
close pdvfs function by dts

Verify:
test pass on sm1_ac200

Change-Id: Id8e89b2d2deac3e4fcc9886ea9b719aa01e158bc
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
4 years agocpufreq: according efuse info to use different tables [1/2]
Hong Guo [Tue, 5 Nov 2019 08:20:45 +0000 (16:20 +0800)]
cpufreq: according efuse info to use different tables [1/2]

PD#SWPL-15870

Problem:
according efuse info to use different tables

Solution:
according efuse info to use different tables

Verify:
test pass on sm1_ac200

Change-Id: Iac842dea13e75c9b0cb81a9b18d002930bf0d513
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
4 years agoPDVFS: enable PDVFS feature [1/2]
henry.tsou [Thu, 21 Nov 2019 07:15:32 +0000 (15:15 +0800)]
PDVFS: enable PDVFS feature [1/2]

PD#GH-122

Problem:
Due to we has run out of thermal budget at Sabrina Gaming scenario, so the 200mW increase from new DVFS table will be a risk for us.
So we need smart DVFS table for more power saving

Solution:
Enable PDVFS feature

Verify:
Sabrina-P2
Sabrina-P1

Change-Id: Iea2e351fac765c8fb821603fa6724117cd9c7673

4 years agoosd: fix reboot quiescent caused screen blank issue [1/1]
Pengcheng Chen [Thu, 28 Nov 2019 10:53:26 +0000 (18:53 +0800)]
osd: fix reboot quiescent caused screen blank issue [1/1]

PD#SWPL-17605

Problem:
in reboot quiescent, suspend & resume caused afbc_cfg
reg set err

Solution:
in resume, reset afbc_start to 0

Verify:
franklin

Change-Id: I6e019ee88a3cfeb5d39db4777a7c2ac6c9648b02
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agoosd: fix reboot quiescent caused screen blank issue [1/1]
Pengcheng Chen [Thu, 28 Nov 2019 10:53:26 +0000 (18:53 +0800)]
osd: fix reboot quiescent caused screen blank issue [1/1]

PD#SWPL-17605

Problem:
in reboot quiescent, suspend & resume caused afbc_cfg
reg set err

Solution:
in resume, reset afbc_start to 0

Verify:
franklin

Change-Id: I6e019ee88a3cfeb5d39db4777a7c2ac6c9648b02
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
4 years agoosd: modify register table update area [1/1]
Cao Jian [Thu, 14 Nov 2019 02:27:35 +0000 (10:27 +0800)]
osd: modify register table update area [1/1]

PD#SWPL-16663

Problem:
display freezes and becomes slow/lags
while selecting PIP mode options in VLC app

Solution:
remove wait-vsync nearly vsync coming
use polling to avoid  long time waiting

Verify:
W400

Change-Id: I7498a68de3f6c45e0cd48aad2805f73a23adb7e6
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
(cherry picked from commit 6e8f000c86613d0c63712152c9fec3b219464fe6)

4 years agov4lvideo: fix cat dev panic [1/1]
jintao xu [Thu, 28 Nov 2019 06:24:40 +0000 (14:24 +0800)]
v4lvideo: fix cat dev panic [1/1]

PD#SWPL-17478

Problem:
cat /dev/video33 panic

Solution:
read return 0

Verify:
U212

Change-Id: Idcabf7eca7d99d020fb759261fd7f613da83b096
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
4 years agopartiton: change Q partition table [1/7]
Xindong Xu [Wed, 27 Nov 2019 02:00:03 +0000 (10:00 +0800)]
partiton: change Q partition table [1/7]

PD#SWPL-17483

Problem:
partition size is not enough

Solution:
1. add factory partition
2. change tee size to 32MB

Verify:
newton

Change-Id: I0a8cb2695fb67d1d6200f70864b31fcd7cee57bc
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
4 years agovideo_composer: fix tunnel mode seek black screen [1/1]
jintao xu [Wed, 27 Nov 2019 06:23:53 +0000 (14:23 +0800)]
video_composer: fix tunnel mode seek black screen [1/1]

PD#SWPL-17424

Problem:
tunnel mode seek black screen

Solution:
set block_policy 0 when sideband

Verify:
U212

Change-Id: Iac9aff1db39c0366178025fc06ca91571948fa7c
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
4 years agopartiton: change Q partition table [1/7]
Xindong Xu [Wed, 27 Nov 2019 02:00:03 +0000 (10:00 +0800)]
partiton: change Q partition table [1/7]

PD#SWPL-17483

Problem:
partition size is not enough

Solution:
1. add factory partition
2. change tee size to 32MB

Verify:
newton

Change-Id: I0a8cb2695fb67d1d6200f70864b31fcd7cee57bc
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
4 years agodeinterlace: cannot create duplicate filename '/class/deinterlace' [1/1]
Liang Ji [Tue, 26 Nov 2019 11:45:05 +0000 (19:45 +0800)]
deinterlace: cannot create duplicate filename '/class/deinterlace' [1/1]

PD#SWPL-17472

Problem:
cannot create duplicate filename '/class/deinterlace'

Solution
disable one deinterlace

Verify:
Deadpool, Sabrina

Change-Id: Iab19037e0f918157fbd7f8367abf2110bd30c2ea
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
4 years agov4l2: v4l2 vf video support [2/3]
rongrong zhou [Sat, 23 Nov 2019 10:49:24 +0000 (18:49 +0800)]
v4l2: v4l2 vf video support [2/3]

PD#SWPL-16226

Problem:
v4l2 can not display on vf video

Solution:
add v4l2 vf video support

Verify:
U212

Change-Id: If04fc991edaa57c202f1adcf6b1be6d453bb2af9
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
4 years agovideo_composer: add multiple video layer display. [1/1]
jintao xu [Mon, 12 Aug 2019 10:50:27 +0000 (18:50 +0800)]
video_composer: add multiple video layer display. [1/1]

PD#SWPL-5991

Problem:
video_composer bringup

Solution:
add v4lvideo态dma to display on the video layer via video_composer

Verify:
on U212

Change-Id: Iec1b75cc8c9aa0475912148a0687d95250aeb8a0
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
4 years agodv: graphic blend test failed [1/1]
yao liu [Tue, 19 Nov 2019 08:27:21 +0000 (16:27 +0800)]
dv: graphic blend test failed [1/1]

PD#SWPL-16994

Problem:
DV in/DV out case, gmax is high

Solution:
Set gmax to 300 for DV in/DV out case
By the way, remove err code in osd

Verify:
SM1

Change-Id: I9b73d57d424dc7609d284811c01a0d809d49c974
Signed-off-by: yao liu <yao.liu@amlogic.com>