Commit Graph

649653 Commits

Author SHA1 Message Date
Cao Jian
602b5bf65b osd: osd_mmap no more locks to release [1/1]
PD#SWPL-11768

Problem:
release one more mutex in osd_mmap

Solution:
remove mutex release in osd_mmap

Verify:
Verfied on p212

Change-Id: I139b80590740717ced321171ee665d0f6c0cd83f
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2019-07-29 19:29:29 -07:00
Keith Packard
9c779fb7d5 drm: Reorganize drm_pending_event to support future event types [v2]
PD#SWPL-4863

Place drm_event_vblank in a new union that includes that and a bare
drm_event structure. This will allow new members of that union to be
added in the future without changing code related to the existing vbl
event type.

Assignments to the crtc_id field are now done when the event is
allocated, rather than when delievered. This way, delivery doesn't
need to have the crtc ID available.

v2:
 * Remove 'dev' argument from create_vblank_event

	It wasn't being used anyways, and if we need it in the future,
	we can always get it from crtc->dev.

 * Check for MODESETTING before looking for crtc in queue_vblank_event

	UMS drivers will oops if we try to get a crtc, so make sure
	we're modesetting before we try to find a crtc_id to fill into
	the event.

(cherry picked from commit dc695b85fde88eca3ef3b03fcd82f15b6bc6e462)

Change-Id: I6f0feabcba9373fcc434b148752d9cd28bea67e6
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2019-07-29 18:52:54 -07:00
Brian Zhu
cb0491f2ca amcsc: remove the vout_device is NULL log [1/1]
PD#SWPL-11922

Problem:
When the vout_device point is NULL, amcsc will print too
many logs.

Solution:
Remove this warning log since the vout_device = NULL is
normal under TV or CVBS case.

Verify:
Verified by X301

Change-Id: I007e3970b8361e0cd79bfc81ee5205cbb262c0c1
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-07-29 07:03:35 -07:00
lingjie li
dd96e660ee drm: start hdcp work when the "Content Protection" was set thought atomic [1/1]
PD#SWPL-4866

Problem:
1. The old implement not support atomic. (the atomic check on am_meson
hdmi.c will disable CP,The set property function will not reached when
use atomic set CP)
2. The hdcp work kthread start and terminal not match cause coredump.

Problem:
need add hdcp function.

Solution:
Start hdcp work when the encoder enabled.stop when encoder disabled.
modified hdcp work state machine.

Verify:
On u212 drm backend, use drm-helper-client to set CP property.
need enable atomic on wayland.based on below CL
http://scgit.amlogic.com:8080/#/c/78810/1
http://scgit.amlogic.com:8080/#/c/78804/2
http://scgit.amlogic.com:8080/#/c/78811/1

Change-Id: If213b7def89ff1f1ec63b866a21a3323e098786f
Signed-off-by: lingjie li <lingjie.li@amlogic.com>
2019-07-29 05:02:18 -07:00
libo
dd999cbaf8 wifi: add tcp delay ack support [1/1]
PD#OTT-5388

Problem:
wifi rx throughput issue

Solution:
add tcp delay ack support
enable tcp dealy ack by following command:
echo 1 > /proc/sys/net/ipv4/tcp_use_userconfig
echo 60 > /proc/sys/net/ipv4/tcp_delack_seg

Verify:
u211

Change-Id: I060810b2800bae377388ba6ed9f9256597c9e6ea
Signed-off-by: libo <bo.li@amlogic.com>
2019-07-29 04:09:18 -07:00
Ao Xu
37c98ae778 drm: Pass CRTC ID in userspace vblank events
PD#SWPL-4863

With the atomic API, it is possible that a single commit affects
multiple crtcs. If the user requests an event with that commit, one
event will be sent for each CRTC, but it is not possible to distinguish
which crtc an event is for in user space. To solve this, the reserved
field in struct drm_vblank_event is repurposed to include the crtc_id
which the event is for.

The DRM_CAP_CRTC_IN_VBLANK_EVENT is added to allow userspace to query if
the crtc field will be set properly.

[daniels: Rebased, using Maarten's forward-port.]

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Daniel Stone <daniels@collabora.com>
Cc: Maarten Lankhorst <maarten.lankhorst@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170404165221.28240-2-daniels@collabora.com

Change-Id: Ide7657bdc38563d2de91edc2d649b53262002c39
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2019-07-29 03:46:57 -07:00
yujie.wu
0b3f192ebf audio: Disable Resample module for SPDIFIn [1/2]
PD#SWPL-9922

Problem:
  The spdif input doesn't work

Solution:
  Disable resample module for Spdif in

Verify:
  A113

Change-Id: I459555d485641884cc026459ebb4a92d99157d8a
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
2019-07-29 02:30:47 -07:00
Zhuo Wang
beac8b41e6 ethernet: debug function for reset [1/1]
PD#SWPL-11505

Problem:
STR may crash

Solution:
improve the suspend/rusume flow

Verify:
verify on g12a u200 board

Change-Id: Ie7b4759fd0d801c83eb3c1c314c402ae470b5e3f
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-07-29 00:08:03 -07:00
Yong Qin
58edb173f0 vdin: dec stop port close vdin flag is not right [1/1]
PD#TV-7934

Problem:
when port not open complitly, needn't send event to tv server

Solution:
add a condition to pretect

Verify:
tl1

Change-Id: I4fb6d7d1d247381c9cb13acabeece56dd6b6d1bc
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-28 23:44:38 -07:00
shaochan.liu
32e3323eac lcd: tcon: set od function [2/2]
PD#TV-7435

Problem:
when enable od function, the left half of the screen
display is abnormal after boot

Solution:
set od function

Verify:
x301

Change-Id: Ibe4f2e7e5d9bc46c6ce880715103e2cc69d4625b
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2019-07-28 22:32:47 -07:00
hualing chen
63db46f23d dvb: ci mcu: control CAM throw mcu and used api to control mcu. [2/9]
PD#SWPL-10659

Problem:
tsin and tsout pin not config.
ci mcu dts not add config.

Solution:
1 add tsin and tsout pinmux config.
2 add ci mcu dts config.

Verify:
verified on t962x3-t312 box.

Change-Id: Id8c271e41736e337c12141f879e97bc9673bb99e
Signed-off-by: hualing chen <hualing.chen@amlogic.com>
2019-07-28 22:30:04 -07:00
Hong Guo
627335e792 cpufreq: update dvfs voltage and pwm for g12b revb [1/1]
PD#SWPL-7636

Problem:
update dvfs voltage and pwm for g12b revb

Solution:
update dvfs voltage and pwm for g12b revb

Verify:
update dvfs voltage and pwm for g12b revb

Change-Id: I29deea791126fcb1819be380ed81bc2aa29eeec6
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-07-28 19:48:50 -07:00
Evoke Zhang
ed316b8533 avin_detect: fix avin_detect_flag mistak in probe [1/1]
PD#TV-7797

Problem:
cat detect avin signal

Solution:
fix avin_detect_flag in probe

Verify:
x301

Change-Id: I2ee1f7fa243d31262f4e156e84e63440fe812c09
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-07-26 18:39:31 +08:00
robin zhu
40acf218c9 dv: support PIP [1/1]
PD#SWPL-9950

Problem:
  not support VD1+VD2 PIP for DV+None_DV or 2xNone_DV
  need bypass HDR+ to HDR module when Sink support
  need always bypass to HDR module for HLG
  not fully support convert between format SDR/HDR(+)/HLG
  not support convert all format to IPT(DV)
  not support follow sink/follow src policy for PIP

Solution:
  add full matrix support to convert between SDR/HDR formats
  add support to convert all format to IPT(DV)
  rewrite policy, video process and tx handing for PIP

Verify:
  tested and merged in raven project
  need test on for src
  need test for sink(has regression, need to fix)

Change-Id: I001d9dcdcb94c95fb2b7651e726d1ebadc8f4551
Signed-off-by: robin zhu <robin.zhu@amlogic.com>
2019-07-25 23:12:35 -07:00
xianjun.liu
42fb43b491 MTD: slc-nand: fix signed integer overflow in erase_bootloader [1/1]
PD#SWPL-11771

Problem:
Hackers can use signed integer erase_boot_num to cause systems crash

Solution:
replace signed variable with unsigned variables

Verify:
AXG-S400

Change-Id: I9cc8d8f43c199f48e7d7bff2664bca740681d274
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2019-07-25 22:33:06 -07:00
xianjun.liu
982cb0f9a1 MTD: reset some important buf before free the buf [1/1]
PD#SWPL-11772

Problem:
Inadequate clearing of keys/dtbs/env buf in memory

Solution:
clear the corresponding buf before free the buf

Verify:
AXG-S400

Change-Id: I61971c11a41c7062270a3863ae711c856d66f332
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2019-07-25 22:32:21 -07:00
xianjun.liu
7165433972 Mtd: fix check return value for copy_from_user in uboot_write method [1/1]
PD#SWPL-11776

Problem:
missing return value check for copy_from_user in uboot_write method

Solution:
checking return value after call copy_from_user/copy_to_user

Verify:
AXG-S420

Change-Id: I087a341cbf0b603b2898e81773dc266d8e3debe1
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2019-07-25 22:31:00 -07:00
jiejing.wang
184c4b427c license: add license for audio source file [1/2]
PD#SWPL-11716

Problem:
some audio source has no license

Solution:
add license for audio source file

Verify:
verify by locally

Change-Id: I85e7a27a724f1d255e38f4a878475b38abc1dfd4
Signed-off-by: jiejing.wang <jiejing.wang@amlogic.com>
2019-07-25 20:43:05 +08:00
Evoke Zhang
85dbce3287 avin_detect: optimize avin detect driver [1/1]
PD#TV-7797

Problem:
avin ch2 affect to ch1 display

Solution:
optimize avin detect driver, add debug print

Verify:
x301

Change-Id: Icc89c5b44f187a30971e8c53c3019297ce72b816
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-07-25 05:27:10 -07:00
Hong Guo
8d22c0c502 dvfs: update cpu clk after adjust cpufeq for g12b big core [1/1]
PD#SWPL-11796

Problem:
update cpu clk after adjust cpufeq

Solution:
update cpu clk after adjust cpufeq

Verify:
test pass on g12b_w400

Change-Id: I5e4593e4b65de5f7536ddde793d682cc67df0e64
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-07-25 02:21:21 -07:00
Jian Hu
d1c682fe55 clk: g12a/b: add aclk_lock init [1/1]
PD#SWPL-11765

Problem:
open CONFIG_LOCK_STAT

BUG: spinlock bad magic on CPU#2, swapper/0/1
lock: aclk_lock+0x0/0x28, .magic: 00000000, .owner: swapper/0/1, .owner_cpu: 2
CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.9.113 #1
Hardware name: Generic DT based system
[bc001a5c+ 16][<c020e5f4>] show_stack+0x20/0x24
[bc001a84+ 40][<c06161e8>] dump_stack+0xb8/0xf4
[bc001aac+ 40][<c02a1428>] spin_dump+0xa0/0xf0
[bc001acc+ 32][<c02a1744>] do_raw_spin_unlock+0xb8/0x138
[bc001ae4+ 24][<c0fa35f4>] _raw_spin_unlock_irqrestore+0x34/0x9c
[bc001b2c+ 72][<c0690ce4>] clk_mux_set_parent+0xc0/0x148
[bc001b3c+ 16][<c06911d8>] clk_composite_set_parent+0x3c/0x40
[bc001b6c+ 48][<c068cccc>] clk_core_set_parent+0x18c/0x42c
[bc001b7c+ 16][<c068cf98>] clk_set_parent+0x2c/0x30
[bc001bb4+ 56][<c0ca7ad8>] aml_tdm_platform_probe+0x27c/0x748
[bc001bd4+ 32][<c06d69e0>] platform_drv_probe+0x60/0xc0
[bc001bfc+ 40][<c06d4734>] driver_probe_device+0x214/0x2c0

Solution:
add aclk_lock init

Verify:
test passed on g12b

Change-Id: I1214d044c279865065de237bfb1ecc7f9ea71699
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2019-07-25 02:18:28 -07:00
renjiang.han
a91050ea32 ppmgr: Unbound kstrdup and Potential Null Dereference. [1/1]
PD#OTT-4872

Problem:
Unbound kstrdup and Potential Null Dereference.

Solution:
Add a judgment on the return value and the null pointer.

Verify:
on u212

Change-Id: I1e493c8125e08d4a6fb9fb46f28309eba6f0e47b
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-07-25 01:03:53 -07:00
Pengcheng Chen
f9d7bffd8d dv: fix Buffer overflow in amdolby_vision due to string processing [1/1]
PD#OTT-5058

Problem:
Buffer overflow in amdolby_vision due to string processing

Solution:
add buffer limited when string buffer accepting commands (namely *parm);

Verify:
verified on Raven

Change-Id: Icd550f331efb2ee46e2f270e516df9942837f93d
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-25 01:02:36 -07:00
Jihong Sui
f193e14f82 deinterlace: add condition for force_prog [1/1]
PD#SWPL-11550

Problem:
force_prog only for progressive.

Solution:
add condition for force_prog

Verify:
TL1

Change-Id: I44e165c779eefcefcc18a286e66a598ffef1294f
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-07-24 22:39:05 -07:00
Chia-hung Duan
34e88644e8 build: fix uninitialized-use when build with prebuilt toolchain [1/1]
PD#SWPL-8241

Problem:
** SYNC FROM GOOGLE **
Build failed due to uninitialzed variable

Solution:
Init to reasonable value

Verify:
Build with Android prebuilt toolchain

Change-Id: I09615276b48b6253f8084743a7d50081cfc24ec4
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
2019-07-24 20:21:44 -07:00
Shuai Li
8f91ffe629 audio: Fix panic on add_timer [1/1]
PD#TV-7920

Problem:
Audio drive caused kernel panic.
BUG_ON timer_pending.

Solution:
Add timer will panic calling add_timer.
If timer is pending we need use mod_timer
to deal with this case.

Verify:
T962

Change-Id: Ib4143de384af40803609c3513ad07eeb3fe59bbf
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-07-24 20:08:07 -07:00
renjiang.han
0178c2ae2d amlvideo2: screenshot buffer leak. [1/1]
PD#TV-7948

Problem:
Amlvideo2 will not put the last buffer of vdin back.

Solution:
Return temp vf to vdin in amlvideo2.

Verify:
on X301

Change-Id: I6f7f604a8a0fa8f577d50e242968e0aa52450cda
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-07-25 10:25:54 +08:00
Evoke Zhang
ed94e98d08 tvafe: vbi: optimize vbi data parse [1/1]
PD#SWPL-10532

Problem:
teletext sometimes display abnormal

Solution:
optimize vbi data parse

Verify:
x301

Change-Id: I879208fd05dd188dc84fde7dd32a1c64504c57f8
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-07-24 01:06:51 -07:00
Bichao Zheng
b6243e7e3d irblaster: add irblaster support for tm2 t312 [1/1]
PD#SWPL-9909

Problem:
Need add irblaster support for tm2 T312.

Solution:
1. Enable irblaster controller.
2. Mux GPIOAO_4 to IR_REMOTE_OUT.

Verify:
verified on tm2 t96e2

Change-Id: If40c84c0dff0c1d771cd6bccc1c3ac5af8e728fd
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2019-07-24 00:09:31 -07:00
qi duan
f09f5a8b2a ethernet: g12a/b exphy use autocali [1/1]
PD#SWPL-10391

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

Solution:
if autocali in uboot, use autocali result
if no autocali,use the dts para

Verify:
verify on g12b w400 board,revA and revB

Change-Id: I4b48c67fba25eba4cb286470557ff0777009ec9f
Signed-off-by: qi duan <qi.duan@amlogic.com>
2019-07-23 21:14:48 -07:00
Evoke Zhang
92ef4642b7 vpu: fix mem_pd reg4 mistake for local dimming [1/1]
PD#SWPL-6798

Problem:
vpu mem_pd reg4 config is incorrect

Solution:
fix mem_pd reg4 config

Verify:
ab301

Change-Id: Ibeb732051c2ad4b46e55f66fe05fce440b450263
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-07-23 02:56:22 -07:00
Xiaoming Sui
2e4c078596 avsync: video: fix avsync issue when hdmiin [2/3]
PD#TV-6148

Problem:
the avsync test is failed when hdmiin.

Solution:
add the delay check and setting when avsync is lost.

Verify:
X301

Change-Id: I53c1a7f0ddb907afa83fbf65b280d1d1cb35a804
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
2019-07-23 02:32:03 -07:00
Bencheng Jing
c2a8401128 amvecm: fix dnlp_cuvbld_min and dnlp_cuvbld_max not load [1/1]
PD#SWPL-11528

Problem:
dnlp_cuvbld_min and dnlp_cuvbld_max not follow db

Solution:
add refresh in driver

Verify:
TL1

Change-Id: Id3a79c5b834c8e6fd3574c70efdf0982694b306c
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-07-23 02:28:33 -07:00
libo
c0ee2b9824 wifi: pull-down uart_cts_a pin for realtek bt [4/4]
PD#SWPL-7373

Problem:
realtek bt not work

Solution:
pull-down uart_cts_a pin

Verify:
ampere

Change-Id: I14f57d28d081077d89c681e2ecc95a25f706c64c
Signed-off-by: libo <bo.li@amlogic.com>
2019-07-23 01:38:20 -07:00
Ruixuan Li
815723d9f4 emmc: run hs400 166M busmode on sm1 [1/1]
PD#SWPL-10719

Problem:
right now the sm1 is run hs200 200M

Solution:
modify dts

Verify:
passed on sm1_ac200

Change-Id: I01c36c04293698b36cec116302cb104b22500d99
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2019-07-23 00:35:50 -07:00
Pengcheng Chen
93d5662002 rdma: add rdma multi reg trace function [1/1]
PD#SWPL-11388

Problem:
rdma not support multi reg trace

Solution:
add rdma multi reg trace function

Verify:
verify by g12b w400

Change-Id: I74496e11f85af5f2e9aa99108dfc5842eb98d9fc
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-22 20:17:40 -07:00
nengwen.chen
06edb02778 atv_demod: fix the CVBS output level [1/1]
PD#SWPL-11581, PD#TV-5622, PD#TV-8087, PD#TV-8088, PD#TV-8089

Problem:
fix the CVBS output level.

Solution:
1.fix peak level(1Vp-p).
2.fix sync head level(300+/-10%mv).
3.fix white level(700+/-10%mv).

Verify:
Verified by x301.

Change-Id: Ie4bd6ed0bb4d6db4443acae49ef98f1f4398d973
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-07-22 19:42:09 -07:00
shuanglong.wang
29c4a59b2c tsync: tunnel mode do not set first vpts for stream mode [1/2]
PD#SWPL-11210

Problem:
stream mode set vpts in check in pts

Solution:
tunnel mode do not set first vpts for stream mode

Verify:
verify by u212

Change-Id: Ic369b83411051a819eb65ad5d1585e26e0342f3f
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2019-07-22 18:29:33 -07:00
Ruixuan Li
432ce85b00 emmc: run hs400 166M busmod on sm1 [1/1]
PD#SWPL-10719

Problem:
hs400 200M not stable on sm1

Solution:
run hs400 166M busmod

Verify:
passed on sm1_ac200

Change-Id: I5e5f4db821e8360fdd3ccd6ce24df83446073cf2
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2019-07-21 22:36:18 -07:00
yicheng shen
3705fb2576 hdmitx: update the phy setting for TM2 [2/2]
PD#SWPL-10703

Problem:
HDMITX Eye Diagram of TM2 test fail

Solution:
Optimize the phy setting;

Verify:
TM2

Change-Id: Ib9f948aa85fe189754d7da002727309e7e32ca18
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-07-21 22:34:59 -07:00
Jianxin Pan
b1add6112d Merge "clk: g12b: fix cpu hangup when reboot [1/1]" into amlogic-4.9-dev 2019-07-21 19:45:31 -07:00
Ruixuan Li
fbe1994d2d emmc: rescan cmd delay windows to set cmd delay [1/1]
PD#SWPL-10095

Problem:
command delay may too close to the command edge

Solution:
rescan cmd delay windows and find cmd delay value
after data alignment

Verify:
passed on g12b

Change-Id: I258e93aa87e35c843c45f62c58af3609bebe0901
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2019-07-21 19:44:42 -07:00
MingLiang Dong
8400542a90 hdr: add hdmi hdr10+ support [1/1]
PD#SWPL-9850

Problem:
new feature, add hdmi hdr10+ support

Solution:
add hdmi hdr10+ support

Verify:
verify on TL1

Change-Id: I189d92d48dcce81ac8c9476d0c6f7b64a461a9e6
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-07-21 19:32:27 -07:00
Jian Hu
3b9d05bbc0 clk: g12b: fix cpu hangup when reboot [1/1]
PD#SWPL-11559

Problem:
it will hangup when reboot

Solution:
fix cpub clock parent name error

Verify:
test passed on g12b

Change-Id: I7c2732420d6040d8cb778c104f71f4397a1bb03a
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2019-07-21 19:24:25 -07:00
shaochan.liu
4a6f516d3f sm1: add slt panel config support [1/1]
PD#SWPL-8442

Problem:
need slt panel config(mipi2hdmi 720p) on basic board

Solution:
add slt panel config(mipi2hdmi 720p) on basic board

Verify:
sm1

Change-Id: Ia634216a5f0bc96f9a4838a2f0ec983bef8d0a3b
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2019-07-21 19:06:57 -07:00
Yong Qin
4d6b173486 vdin: add hdr10 pluse data in vframe [1/1]
PD#SWPL-9849

Problem:
add hdr10 pkt data into vframe structure

Solution:
according to hdmi rx hdr10p_on flag, copy hdr10p data
from hdmirx to vframe

Verify:
tl1

Change-Id: I4d3bcbcce4d1303a5e5d4cf57a7777e4fd1fd54c
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-19 17:32:36 +08:00
changqing.gao
38e45fb998 dts: sm1: reduce the CMA reserved memory [1/1]
PD#SWPL-11208

Problem:
system would auto reboot because of low free memory(Unmovable type)

Solution:
reduce the CMA reserved memory.
1.reduce ion_cma_reserved from 128MB to 48MB.(DDR size == 1G)
2.remove vdin0_cma_reserved which is not used for sm1.

Verify:
test passed on sm1

Change-Id: Ifdb31bd3451ad984305c5f08ba3b1be478c02cf4
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
2019-07-19 02:09:30 -07:00
Lei Yang
c8bf7d80f9 hdmirx: add packet analysis of hdr10plus [1/1]
PD#SWPL-9686

Problem:
hdmirx cannot support HDR10plus

Solution:
add packet analysis of hdr10plus.

Verify:
tm2_ab311.

Change-Id: Ic98c3fa57ce6da3262285febc587fb2cac2be0fa
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-07-19 02:06:05 -07:00
Bencheng Jing
f8dc7d06f7 mcdi: keep g12a/g12b/sm1 reg_mcdi_qmeen same as gxlx2 [1/2]
PD#SWPL-10411

Problem:
reg_mcdi_qmeen is enable by driver

Solution:
disable reg_mcdi_qmeen

Verify:
u212

Change-Id: I02887fab37a0bbeb43bfa83a4a5a2e446bebb9c1
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-07-19 15:59:12 +08:00
Pengcheng Chen
0353f8ec76 vpp: fix afbc scope set when video reverse [1/1]
PD#SWPL-9397

Problem:
afbc scope set error when video reverse and afbc width not aligned

Solution:
fix afbc scope set when video reverse

Verify:
Verify on TL1-x301

Change-Id: I1631c18192f438bfb6e60c3970789a903d0a3d19
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-18 23:05:08 -07:00