platform/kernel/linux-amlogic.git
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>
Signed-off-by: Luan Yuan <luan.yuan@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 agoarm64: dts: VIM2: add memory-region for logo
Nick Xie [Mon, 5 Aug 2019 07:33:39 +0000 (15:33 +0800)]
arm64: dts: VIM2: add memory-region for logo

Signed-off-by: Nick Xie <nick@khadas.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 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 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 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>
Signed-off-by: Luan Yuan <luan.yuan@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>
Signed-off-by: Luan Yuan <luan.yuan@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 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 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 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 agowifi: export set_usb_wifi_power [1/1]
Rongjun Chen [Wed, 16 Jan 2019 08:27:35 +0000 (16:27 +0800)]
wifi: export set_usb_wifi_power [1/1]

PD#TV-2088

Problem:
wifi can not power in driver

Solution:
export set_usb_wifi_power

Verify:
franklin

Change-Id: Ic6fb75133533c395cd96e9d82f14427cf40cee96
Signed-off-by: Rongjun Chen <rongjun.chen@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 agoPPMGR: modify phys_to_virt to codec_mm_vmap. [5/5]
renjiang.han [Thu, 21 Mar 2019 03:16:43 +0000 (11:16 +0800)]
PPMGR: modify phys_to_virt to codec_mm_vmap. [5/5]

PD#TV-2649

Problem:
Kernel panic with phys_to_virt.

Solution:
Replace phys_to_virt with codec_mm_vmap.

Verify:
on u212

Change-Id: Ib3f94f66d37463490720cd1348b4ec94ad12aa15
Signed-off-by: renjiang.han <renjiang.han@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 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 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 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 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 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 agoamvecm: sdr2hdr function set by uplayer, driver default disable [1/1]
MingLiang Dong [Wed, 16 Jan 2019 06:36:29 +0000 (01:36 -0500)]
amvecm: sdr2hdr function set by uplayer, driver default disable [1/1]

PD#SWPL-4255

Problem:
UI disable SDR TO HDR, reboot BOX,
TV flicker white and then display ok when connect hdr tv

Solution:
dr2hdr function set by uplayer, kernel default disable

Verify:
verify on G12A

Change-Id: Iea5a1e0be9b5665bb7deb785b6b5faa702ef1664
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
5 years agoarm64: dts: change ftrace-size
Nick Xie [Mon, 5 Aug 2019 07:26:32 +0000 (15:26 +0800)]
arm64: dts: change ftrace-size

Signed-off-by: Nick Xie <nick@khadas.com>
5 years agodts: debug: enable ftrace_ramoops for new tm2 dts [1/1]
Jianxin Pan [Mon, 15 Apr 2019 06:28:50 +0000 (14:28 +0800)]
dts: debug: enable ftrace_ramoops for new tm2 dts [1/1]

PD#SWPL-6028

Problem:
enable ftrce in ramoops for new tm2 dtbs

Solution:
enable ftrce in ramoops for new tm2 dtbs

Verify:
verified ok

Change-Id: Ia7ee3b11784a69ef7d6b7671f9ad75c14ae477f7
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
debug: improve ftrace_ramoops for io trace [2/2]

PD#SWPL-6028

Problem:
improve ftrace_ramoops to debug bus hang

Solution:
1. in uboot
setenv initargs $initargs ramoops_io_en=1 loglevel=3;save;reset
2. in linux command line:
cat /sys/module/kernel/parameters/ramoops_io_en
to check if success.
3. after watchdog reboot, get trace data with:
cat /sys/fs/pstore/ftrace-ramoops-0

Verify:
TL1 x301

Change-Id: If1a2582b40a3ded31eedef5355eb0b8a5bf495c3
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
debug: save irqflag locally when ftrace_ramoops io [1/1]

PD#SWPL-6028

Problem:
save irqflag locally when ftrace_ramoops io

Solution:
save irqflag locally when ftrace_ramoops io

Verify:
TL1 x301

Change-Id: I6df9700cceaccc97dc983d88ada73197a6968f73
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
debug: do not print old_size when ftrace_size is 0 [1/1]

PD#SWPL-6028

Problem:
do not print old_size when ftrace_size is 0

Solution:
do not print old_size when ftrace_size is 0

Verify:
TL1 x301

Change-Id: I00a71c83fede14a2606c5e7eea5d8c4fdaeb5553
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
dts: change ftrace-size. [1/1]

PD#SWPL-6028

Problem:
add ftrace-size.

Solution:
add ftrace-size.

Verify:
no.

Change-Id: I42d34edf665632dfe29d04df192964238b8e3df8
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agomedia: add interface for checks the video profile. [1/2]
Nanxin Qin [Sun, 26 May 2019 16:22:30 +0000 (00:22 +0800)]
media: add interface for checks the video profile. [1/2]

PD#SWPL-8648

Problem:
add interface for checks the video profile

Solution:
add interface for checks the video profile

Verify:
u212

Change-Id: I95d0df62fae2debc6c0cc5a4d2adf002122b7630
Signed-off-by: Nanxin Qin <nanxin.qin@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 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 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 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 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 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 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 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 agoDolby: HDR-001-TC5: VID and GFX doesn't match [1/1]
yao liu [Fri, 21 Jun 2019 07:46:18 +0000 (15:46 +0800)]
Dolby: HDR-001-TC5: VID and GFX doesn't match [1/1]

PD#SWPL-8159

Problem:
HDR-001-TC5 source is dv, need graphic max 300
HDR-001-TC3 source is hdr, need graphic max 210

Solution:
Set 300 for DV source and 210 for HDR source in LL mode

Verify:
Verified on U212

Change-Id: I93c71ee51fc128d9d01113d4e24d4df1786901e2
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agoamlvideo: Optimize reduce latency of input frame [1/1]
shipeng.sun [Tue, 28 May 2019 11:42:22 +0000 (19:42 +0800)]
amlvideo: Optimize reduce latency of input frame [1/1]

PD#SWPL-8068
PD#SWPL-8069

Problem:
1. use select to polling frame.

Solution:
1. add when use video layer amlvideo support poll
2. add trace debug info

Verify:
Verify on marconi

Change-Id: Ib1ae87b4b7ab35b075bc357953abe43e3410232a
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
5 years agoionvideo: fix latency and crash [1/1]
jintao xu [Tue, 7 May 2019 03:09:04 +0000 (11:09 +0800)]
ionvideo: fix latency and crash [1/1]

PD#SWPL-8069

Problem:
1.about 2ms latency due to sleep
2.crash while poll ionvideo

Solution:
1.use semaphore instead of sleep
2.fix poll function
3.add trace info for ionvideo

Verify:
U212

Change-Id: Idde64151541d826ba6a6cd1abcc901e80f0e4b45
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
5 years agoDolby: garbage images on screen when output 720 [1/1]
yao liu [Mon, 17 Jun 2019 13:50:30 +0000 (21:50 +0800)]
Dolby: garbage images on screen when output 720 [1/1]

PD#SWPL-9805

Problem:
dolby graphics core setting is marginal at 720@50 or 720@60

Solution:
Leave more margin in vertical potch for graphic core
Another modification: force update core2 and core3 reg
when dolby-vision on

Verify:
local build test on dolby tv 720@50/720@60/1080p24hz

Change-Id: I1019d2c1564230b0e42516fe1a7732ba25b2e8bf
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agocamera: fix gc2145 mipi camera preview mosaic [1/1]
Guosong Zhou [Tue, 18 Jun 2019 06:51:49 +0000 (14:51 +0800)]
camera: fix gc2145 mipi camera preview mosaic [1/1]

PD#IPTV-3374

Problem:
gc2145 mipi camera preview have mosaic when take picture

Solution:
add delay when camera set setting finished

Verify:
verify on S905D3-AC202

Change-Id: Ieb6c64804ea5cbea9c9c66be57352b6ed5955ed1
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agovout: add vout2 vpu_clkc init if needed [1/1]
Evoke Zhang [Fri, 31 May 2019 09:48:22 +0000 (17:48 +0800)]
vout: add vout2 vpu_clkc init if needed [1/1]

PD#TV-5428

Problem:
need viu2 display support

Solution:
add vout2 init mode support

Verify:
u200

Change-Id: I1a8e0b5b448f5c6052703e59d78090992d5812bf
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
5 years agoosd: viu2_osd0 logo init [1/1]
Jian Cao [Fri, 31 May 2019 02:56:15 +0000 (10:56 +0800)]
osd: viu2_osd0 logo init [1/1]

PD#TV-5427

Problem:
enable support for parsing VIU2 boot parameters

Solution:
add this support in driver

Verify:
verified on TL1-X301

Change-Id: I2b2dc97bc76a8816a2c1e17ce5689e2679867011
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoge2d: move ge2d canvas_config to ge2d process thread [1/1]
Pengcheng Chen [Tue, 28 May 2019 09:58:42 +0000 (17:58 +0800)]
ge2d: move ge2d canvas_config to ge2d process thread [1/1]

PD#OTT-4320

Problem:
ge2d canvas_config have been overwritten

Solution:
move ge2d canvas_config from ge2d config to ge2d process

Verify:
w400

Change-Id: I6733751435f9185c8f96287c5308145898c8b8a7
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
gdc: gdc dmabuf multi-process support [1/1]

PD#OTT-4320

Problem:
gdc phys have been overwritten when dma fd is same from diff process

Solution:
when get phys by dma fd, used struct dma_buf instead of dma fd

Verify:
w400

Change-Id: I6e990c9fda9245db0d92053cc011fc6f9507db72
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
ge2d: ge2d dmabuf multi-process support [1/1]

PD#OTT-4320

Problem:
ge2d phys have been overwritten when dma fd is same from diff process

Solution:
when get phys addr by dma fd, used struct dma_buf instead of dma fd

Verify:
w400

Change-Id: Idb32bc61d33345d370db4eb6bcb04351d854f069
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agogdc: add gdc cpu cost optimize [1/1]
Pengcheng Chen [Fri, 19 Apr 2019 02:58:19 +0000 (10:58 +0800)]
gdc: add gdc cpu cost optimize [1/1]

PD#SWPL-7422

Problem:
gdc ioctl have cpu usage issue

Solution:
1. dma buffer alloc gdc module,when dma buf exported, fd and phys
address can be recorded.driver can get phys address via fd internally.
2. dmabuf alloc by other driver module, need used gdc_dma_buffer_map/
gdc_dma_buffer_unmap to get phys address.

Verify:
Newman & W400 board

Change-Id: Ie270589a19dfae4fa750241fb5721154221f2448
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
ge2d: ge2d cpu cost optimize [2/2]

PD#SWPL-7422

Problem:
ge2d ioctl have cpu usage issue

Solution:
1. dma buffer alloc gdc module,when dma buf exported, fd and phys
address can be recorded.driver can get phys address via fd internally.
2. dmabuf alloc by other driver module, need used gdc_dma_buffer_map/
gdc_dma_buffer_unmap to get phys address.

Verify:
Newman & W400 board

Change-Id: I78d03b52e574daf2e8b2d53eb8fdfde06357ebfe
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agogdc: add gdc multi plane fd support [1/1]
Pengcheng Chen [Tue, 2 Apr 2019 09:08:28 +0000 (17:08 +0800)]
gdc: add gdc multi plane fd support [1/1]

PD#SWPL-7421

Problem:
gdc output not support multi plane fd

Solution:
add gdc multi plane fd support

Verify:
Verfied on G12B-W400

Change-Id: I898c027f068f92af5101fe65487baf1dfbec7c35
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
ge2d: add ge2d multi plane fd support [2/2]

PD#SWPL-7421

Problem:
ge2d not support multi plane fd

Solution:
add ge2d multi plane fd support

Verify:
Verfied on G12B-W400

Change-Id: Ia8a529833d5c53a70eaa2094f8110635e4f184c1
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoclk: correct HHI_APICALGDC_CNTL addr offset [1/2]
Jian Cao [Fri, 12 Apr 2019 11:37:47 +0000 (19:37 +0800)]
clk: correct HHI_APICALGDC_CNTL addr offset [1/2]

PD#SWPL-7051

Problem:
reduce power consumption

Solution:
correct HHI_APICALGDC_CNTL addr offset

Verify:
Verified on g12b-w400

Change-Id: I539ea901984256f0a6da72c7305488a725936760
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
gdc: add clk control [2/2]

PD#SWPL-7051

Problem:
reduce power consumption

Solution:
add control of clk

Verify:
Verified on g12b-w400

Change-Id: I8001db369f5e0146459cdbad262017581116a0b9
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agogdc: add gdc interface with loading fw [1/2]
Jian Cao [Thu, 4 Apr 2019 14:34:15 +0000 (22:34 +0800)]
gdc: add gdc interface with loading fw [1/2]

PD#SWPL-4611

Problem:
add gdc interface with loading fw

Solution:
add new gdc interface to request firmware

Verify:
Verfied on G12B-W400

Change-Id: Id8e0d600eec5f4777511b1fc0e38a1773db9e9cb
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agogdc: add trace_mode debug node for gdc timeout issue [1/2]
Jian Cao [Thu, 4 Apr 2019 13:31:12 +0000 (21:31 +0800)]
gdc: add trace_mode debug node for gdc timeout issue [1/2]

PD#GH-27

Problem:
gdc timeout when gdc processing data

Solution:
add trace_mode debug node

Verify:
verified on G12B-W400

Change-Id: I85ee5a4203c9da1af755844125716a844da54ad3
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agogdc: ge2d: fix ge2d dma-buf no free memory issue [1/1]
Pengcheng Chen [Mon, 4 Mar 2019 04:43:49 +0000 (12:43 +0800)]
gdc: ge2d: fix ge2d dma-buf no free memory issue [1/1]

PD#SWPL-5685

Problem:
gdc&ge2d dma buf memory leak

Solution:
clear dmabuf alloc flag when dmabuf really free

Verify:
verified by w400

Change-Id: I914d93d795311fd6e3e34ca5bd64aaf4db3d4c7a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
gdc: fix gdc buffer index error caused crash issue [1/1]

PD#SWPL-5685

Problem:
gdc buffer index error when dma alloc called simultaneously

Solution:
add lock to gdc buffer index

Verify:
verified by w400

Change-Id: Ia5e41562675b594029fd5a0166561c0069739536
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
ge2d: fix ge2d buffer index error caused crash issue [2/2]

PD#SWPL-5685

Problem:
ge2d buffer index error when dma alloc called simultaneously

Solution:
add lock to ge2d buffer index

Verify:
verified by w400

Change-Id: I1efa4127fbcb939ade457a890769d59a146a0798
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
gdc: ge2d: output dma_buf need flush when alloc [1/1]

PD#SWPL-5685

Problem:
gdc output mismatch

Solution:
output dma_buf need flush when alloc

Verify:
verified by w400

Change-Id: Ie206b4f51bd1338420f63e0e06563b67d6d63c88
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
ge2d: change dma_buf to cacheable [1/2]

PD#SWPL-5685

Problem:
ge2d output dmabuf have high variance

Solution:
change dma_buf to cacheable

Verify:
verified by w400

Change-Id: Iff9356dd256ce69bd87e7e5a2b1feb9e74c49744
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
gdc: change dma_buf to cacheable [2/2]

PD#SWPL-5685

Problem:
gdc output dmabuf have high variance

Solution:
change dma_buf to cacheable

Verify:
verified by w400

Change-Id: Ide8cea975c7dd39bb9185fbb9ba0694d859c74e6
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
ge2d: add ge2d dmabuf 32bit compatible [1/2]

PD#SWPL-5685

Problem:
ge2d dmabuf not work under 32bit

Solution:
add ge2d dmabuf 32bit compatible

Verify:
verified by w400

Change-Id: I03011620fc67cdaf251f5ca1c7b0b512a8fc9a76
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoge2d: unmap ge2d dma_buf after ge2d process finished [1/1]
Pengcheng Chen [Sat, 2 Feb 2019 10:00:28 +0000 (18:00 +0800)]
ge2d: unmap ge2d dma_buf after ge2d process finished [1/1]

PD#SWPL-4839

Problem:
have risk of unmap ge2d dma_buf

Solution:
unmap ge2d dma_buf after ge2d process finished

Verify:
verify by w400

Change-Id: Ia84786b297f8e95cc9efc038300917c98d6b73f6
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
gdc: unmap gdc dma_buf after gdc process stop [2/2]

PD#SWPL-4839

Problem:
have risk of unmap gdc dma_buf

Solution:
unmap gdc dma_buf after gdc process stop

Verify:
verify by w400

Change-Id: If86ac881fd85a5c4b3583567c9748e87149c1d78
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoge2d: merge ge2d from amlogic-3.14-dev [1/1]
Jian Cao [Fri, 25 Jan 2019 08:40:51 +0000 (16:40 +0800)]
ge2d: merge ge2d from amlogic-3.14-dev  [1/1]

PD#SWPL-4355

Problem:
ge2d: fix ge2d bitblt error

Solution:
merge patch 'fix ge2d bitblt error' from amlogic-3.14-dev(PD#154877)

Verify:
verified on u200

Change-Id: I4a813810837814931c3cb68f9a0f8a0929b06540
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
ge2d: merge ge2d from amlogic-3.14-dev  [2/3]

PD#SWPL-4355

Problem:
ge2d: play video display mess when used ionvideo

Solution:
merge patch 'play video display mess when used ionvideo'
from amlogic-3.14-dev(PD#155143)

Verify:
verified on u200

Change-Id: Iaf34fe1d1c7e7637015dadaaf43e201cf28089b7
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
ge2d: merge ge2d from amlogic-3.14-dev  [3/3]

PD#SWPL-4355

Problem:
ge2d: Adjust scaler para when input is nv21 and output is rgb

Solution:
merge patch 'Adjust scaler para when input is nv21 and output is rgb'
from amlogic-3.14-dev(PD#15652)

Verify:
verified on u200

Change-Id: I199b07d683a01175ec17d4d34be6febd3083920c
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoge2d: fix strechblit issue for GE2D [1/1]
Jian Cao [Thu, 10 Jan 2019 08:55:53 +0000 (16:55 +0800)]
ge2d: fix strechblit issue for GE2D [1/1]

PD#SWPL-4075

Problem:
dst data is not normal by using strechblit function
such as 1920x1080 --> 640x360

Solution:
add bit width restriction for
horizontal scaler initial phase

Verify:
verified on g12b-w400

Change-Id: Ibcd85cc08f49254e90100beb952e711736531134
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
ge2d: add enhanced hsc adv num support [2/2]

PD#SWPL-4075

Problem:
add enhanced hsc adv num support

Solution:
add enhanced hsc adv num support

Verify:
verified on g12b-w400

Change-Id: I13b52a0b10e8f3830c57ff691ef3472a34cbe89c
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoge2d: add support for nv16 [1/1]
Jian Cao [Thu, 3 Jan 2019 12:36:22 +0000 (20:36 +0800)]
ge2d: add support for nv16 [1/1]

PD#SWPL-3876

Problem:
add support for nv16

Solution:
add support for nv16

Verify:
verified on g12a-u200

Change-Id: I34c9179ed4fde43b9bd00caa9505ea4c8ee78eb0
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agoaudio: Add pcm slots configs [1/1]
Shuai Li [Thu, 6 Jun 2019 09:25:03 +0000 (17:25 +0800)]
audio: Add pcm slots configs [1/1]

PD#SWPL-4711

Problem:
BT pcm record doesn't work.

Solution:
Add pcm configs in DTS.

Verify:
ampere

Change-Id: I87c2cb62fb803527da089c5a2aea33752939e000
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agocommon: videosink: add dropping frame mechanism in amvideo [1/1]
Rico Yang [Thu, 30 May 2019 07:22:45 +0000 (15:22 +0800)]
common: videosink: add dropping frame mechanism in amvideo [1/1]

PD#OTT-4124

Problem:
video frames cannot be dropped when displayed in video layer

Solution:
add dropping frame mechanism in amvideo

Verify:
verified on franlin

Change-Id: I751883543adc5c840921bd5062484e56cde2c0fa
Signed-off-by: Rico Yang <wei.yang@amlogic.com>
 Conflicts:
drivers/amlogic/media/video_sink/video.c

5 years agop231: cannot open wifi. [2/2]
Luan Yuan [Thu, 20 Jun 2019 11:32:22 +0000 (19:32 +0800)]
p231: cannot open wifi. [2/2]

PD#SWPL-10117

Problem:
p231 can not enable wifi

Solution:
add pre-assign memory

Verify:
verify by p231

Change-Id: I10c11743033d049be2dbab0555d49f9e470d6f04
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agodts: logo addr overflows the max size in 1g platform.[1/1]
Luan Yuan [Mon, 17 Jun 2019 11:13:54 +0000 (19:13 +0800)]
dts: logo addr overflows the max size in 1g platform.[1/1]

PD#SWPL-9938

Problem:
logo addr overflows the max size in 1g platform.

Solution:
fixed it

Verify:
verify by fermi

Change-Id: Ic1edc545c702b10d88cd03ddc4b761f142457b43
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agoosd: add osd blend bypass function [1/1]
Pengcheng Chen [Fri, 31 May 2019 07:06:18 +0000 (15:06 +0800)]
osd: add osd blend bypass function [1/1]

PD#SWPL-9525

Problem:
dv certification need osd blend bypass

Solution:
add osd blend bypass function

Verify:
verified in sm1

Change-Id: Iabf5f8e41329a9220b1f9e5ccd7e0b0ab0dd7a3f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agoosd: screen blank when Plugin HDMI after system bootup in 15s [1/1]
Pengcheng Chen [Thu, 13 Jun 2019 10:27:15 +0000 (18:27 +0800)]
osd: screen blank when Plugin HDMI after system bootup in 15s [1/1]

PD#OTT-4292

Problem:
Root Cause:gralloc set afbcd = 1, but hwcomposer have no frame set,
hdmi plug and uboot logo update and osd_enable_hw() called, in this api,
there is a protection: if afbcd.enable set and phy_addr == 0 will
wait vsync till phy_addr != 0, this section code logic caused screen blank

Solution:
when gralloc set afbcd = 1, don't set afbcd.enable = 1,
it will update with hwcomposer post afbc frame.

Verify:
verify with Raven

Change-Id: I98a88cffd139832a34825adde7c21219937b63ce
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agocec: cmd read some time will loss msg [1/1]
Yong Qin [Wed, 19 Jun 2019 09:39:42 +0000 (17:39 +0800)]
cec: cmd read some time will loss msg [1/1]

PD#SWPL-9283

Problem:
android read cec, some time will lose msg

Solution:
del hal flag

Verify:
tl1

Change-Id: I2357ff2a09c60e930e64d663650a4d4509688c71
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agopicdec: memory pollution caused by GE2D [1/1]
Jian Cao [Tue, 11 Jun 2019 14:32:22 +0000 (22:32 +0800)]
picdec: memory pollution caused by GE2D [1/1]

PD#OTT-4501

Problem:
the dst canvas phy address for ge2d is overwritten
out of bound before processing

Solution:
alloc canvas index dynamically

Verify:
verified on g12b-w400

Change-Id: If021c087125928d5fb146118432c7ff427ea0dbb
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
5 years agolcd: add lcd tv driver when the panel disable in uboot [1/1]
shaochan.liu [Tue, 21 May 2019 07:59:46 +0000 (15:59 +0800)]
lcd: add lcd tv driver when the panel disable in uboot [1/1]

PD#SWPL-5937

Problem:
need screen initialization moved from uboot to kernel

Solution:
1, add lcd tv driver when the panel disable in uboot

Verify:
t962x2-x301

Change-Id: Ia7837db5f6581543b2a093357a264ee63dbd33a9
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
5 years agocpufreq: delete 100M and 250M cpu clk for g12b [1/1]
Hong Guo [Thu, 13 Jun 2019 07:38:59 +0000 (15:38 +0800)]
cpufreq: delete 100M and 250M cpu clk for g12b [1/1]

PD#OTT-4558

Problem:
delete 100M and 250M cpu clk for g12b

Solution:
delete 100M and 250M cpu clk for g12b

Verify:
test pass on g12b w400

Change-Id: Id8a858d5c56b44325e750702f1af3ca5cfd247c4
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agovdin: record video, video display green screen [1/1]
Yong Qin [Thu, 13 Jun 2019 03:02:10 +0000 (11:02 +0800)]
vdin: record video, video display green screen [1/1]

PD#SWPL-9172

Problem:
no more canvas id for vdin1 use

Solution:
the canvas id number need equal with frame number.

Verify:
tl1

Change-Id: Idff362218042c260c28116816d747260708f6355
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
5 years agoosd: display abnormal when 2nd osd laysers scope > 1080 [1/1]
Pengcheng Chen [Thu, 13 Jun 2019 10:18:12 +0000 (18:18 +0800)]
osd: display abnormal when 2nd osd laysers scope > 1080 [1/1]

PD#OTT-4277

Problem:
osd display abnormal when 2nd osd laysers scope > 1080
default osd scope value in disable channel is too small

Solution:
set default osd scope value in disable channel to 0xffffffff

Verify:
verified by S905D2-U200

Change-Id: I9983928d91c1ac4285f2a5acdffa5438722e4ab4
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agovdin: vdin write register fail sometimes due to gate clk is off [1/1]
zhiwei.yuan [Wed, 5 Jun 2019 11:48:42 +0000 (19:48 +0800)]
vdin: vdin write register fail sometimes due to gate clk is off [1/1]

PD#SWPL-9372

Problem:
write register after clk off

Solution:
write register after clk on

Verify:
verified by t962x2_x301

Change-Id: Id9639d98a5434a8be22f0de9bf4ed778b9cbeb9f
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agohdmitx: correct hpd trigger [1/1]
Zongdong Jiao [Thu, 13 Jun 2019 08:05:18 +0000 (16:05 +0800)]
hdmitx: correct hpd trigger [1/1]

PD#SWPL-8724

Problem:
When kernel boots up, there will be two irq status.
[    0.602639] hdmitx: system: irq 80000004 0
[    0.622658] hdmitx: system: irq 80000002 0

Solution:
Correct hpd trigger

Verify:
G12/U212

Change-Id: I3c913c6d46ac4e639032134c598050b5c77a047d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agohdmitx: add SCDC/CED function [1/1]
Zongdong Jiao [Fri, 14 Jun 2019 08:27:19 +0000 (16:27 +0800)]
hdmitx: add SCDC/CED function [1/1]

PD#SWPL-6361

Problem:
Lack SCDC/CED function to check Rx TMDS status

Solution:
Add SCDC/CED function
By default, this function is not open.
Enable it in board dts file like below:
  &amhdmitx {
cedst_en = <1>;
  };
Also, you can manually enable it by
  'echo 1 > /sys/class/amhdmitx/amhdmitx0/cedst_policy'
Then listen '/sys/class/extcon/hdmi_cedst/uevent'
and check 'cat /sys/class/amhdmitx/amhdmitx0/cedst_count'

Verify:
G12/U212

Change-Id: Ic9c90936bad643ea95d418d7b019eb37210d7123
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agodts: S905D3 gpio keypad [1/1]
Gongwei Chen [Mon, 17 Jun 2019 11:51:04 +0000 (19:51 +0800)]
dts: S905D3 gpio keypad [1/1]

PD#SWPL-9941

Problem:
The camera automatically takes pictures continuously

Solution:
modify S905D3 gpio keypad in dts

Verify:
Verify by Android P u202

Change-Id: I4edd1032ac460db296a8938d15ecd6ba1224f0ce
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
5 years agoosd: osd afbc decode err when dv enable and FF/FR [1/1]
Pengcheng Chen [Tue, 11 Jun 2019 09:28:52 +0000 (17:28 +0800)]
osd: osd afbc decode err when dv enable and FF/FR [1/1]

PD#SWPL-9344

Problem:
osd hold line is too small when dv enable

Solution:
enlarge osd hold line from 4 to 8

Verify:
verified by franklin

Change-Id: I81d1fe210fe6e9f9a065d7ff75178ef1807f3e43
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agocamera: add gc2145 mipi camera driver [1/2]
Guosong Zhou [Tue, 11 Jun 2019 06:00:03 +0000 (14:00 +0800)]
camera: add gc2145 mipi camera driver [1/2]

PD#SWPL-8903

Problem:
S905D3 project need bring up gc2145 mipi camera

Solution:
bring up gc2145 mipi camera on S905D3-AC202

Verify:
verify on S905D3-AC202

Change-Id: I5c7c3c551eca7ec20759e724c24d725f89641d96
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
5 years agocec: early suspend no report power sts [2/2]
Yong Qin [Mon, 25 Feb 2019 09:19:48 +0000 (17:19 +0800)]
cec: early suspend no report power sts [2/2]

PD#SWPL-5037

Problem:
system enter early suspend, not ack "report power sts"

Solution:
early suspend not called.
not use CONFIG_AMLOGIC_LEGACY_EARLY_SUSPEND

Verify:
g12a s905x2 android P

Change-Id: I0e2d691b927575b3a6b5e7c13668de9bbf6519f7
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agostaging: revert SWPL-9254 fixed issue. [1/1]
Luan Yuan [Tue, 18 Jun 2019 07:03:48 +0000 (15:03 +0800)]
staging: revert SWPL-9254 fixed issue. [1/1]

PD#SWPL-9788

Problem:
UI sliding is not smooth.

Solution:
revert SWPL-9254 two commits.

Verify:
verify by franklin/galilei

Revert "staging: android: ion: Call dma_map_sg for syncing and mapping [2/2]"

This reverts commit 4c0482c80ece66a40796c7b476a15640ed1eadfa.

Revert "staging: android: ion: Duplicate sg_table [1/2]"

This reverts commit b78959e21bea51b0ab1882b7c55a35c5d4f7fff1.

5 years agodeinterlace: add sysfs pulldown_enable. [1/1]
Luan Yuan [Tue, 18 Jun 2019 06:34:44 +0000 (14:34 +0800)]
deinterlace: add sysfs pulldown_enable. [1/1]

PD#SWPL-9750

Problem:
the system lost pulldown_enable

Solution:
fixed it

Verify:
verify by franklin

Change-Id: I2b5fe4f74ecf295bb44bdeecfeb6a5cc9188c3f3
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agodv: The first frame is abnormal when play video [1/1]
yao liu [Fri, 17 May 2019 09:32:59 +0000 (17:32 +0800)]
dv: The first frame is abnormal when play video [1/1]

PD#SWPL-6480

Problem:
core1 reg is set wrong for g12 and tm2

Solution:
correct core1 reg for g12 and tm2

Verify:
verified by u212

Change-Id: Ie9de107fce6f23ded1397827ebe95a00939df8c1
Signed-off-by: yao liu <yao.liu@amlogic.com>
5 years agoptsserv: add first pts64 check in. [1/1]
shihong.zheng [Sat, 8 Jun 2019 03:45:51 +0000 (11:45 +0800)]
ptsserv: add first pts64 check in. [1/1]

PD#OTT-4173

Problem:
video stuck after seek. first pts64 is
abnormal when lookup failed.

Solution:
add first pts64 checkin for lookup failed.

Verify:
w400

Change-Id: Ibb2a15815311598cf47c242cb4c369da0f0cbdd2
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
5 years agoRevert "AML: v4l2_qbuf"
Nick Xie [Mon, 5 Aug 2019 06:54:53 +0000 (14:54 +0800)]
Revert "AML: v4l2_qbuf"

This reverts commit 53da15132d8017b730a74357ed9d515efc253d99.

5 years agoarm64: defconfig: enable CONFIG_BLK_DEV_RAM
Nick Xie [Mon, 5 Aug 2019 06:47:32 +0000 (14:47 +0800)]
arm64: defconfig: enable CONFIG_BLK_DEV_RAM

Signed-off-by: Nick Xie <nick@khadas.com>
5 years agodefconfig: enable CONFIG_BLK_DEV_RAM [1/1]
Hanjie Lin [Tue, 4 Jun 2019 10:38:30 +0000 (18:38 +0800)]
defconfig: enable CONFIG_BLK_DEV_RAM [1/1]

PD#SWPL-8728

Problem:
{vts}[SEI 510] VtsKernelLtp module 2 fail
fgetxattr02 test failed

Solution:
enable CONFIG_BLK_DEV_RAM

Verify:
u212

Change-Id: I81c42803757f830f4da11fcb18baeaf28074cf26
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
5 years agohdmitx: rewrite multi-purpose VSIF [1/1]
Zongdong Jiao [Tue, 21 May 2019 06:51:08 +0000 (14:51 +0800)]
hdmitx: rewrite multi-purpose VSIF [1/1]

PD#SWPL-8788

Problem:
VSIF has multi-purpose: HDMI_4K, 3D, DV and HDR10+.
Need rewrite VSIF programming.

Solution:
rewrite multi-purpose VSIF

Verify:
G12/U212

Change-Id: I1db21d54c8ae873045661d1f00b930afcad5be60
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agodtv_demod: Play dtv stuttering when the temperature rising [1/1]
zhiwei.yuan [Thu, 11 Apr 2019 07:53:04 +0000 (15:53 +0800)]
dtv_demod: Play dtv stuttering when the temperature rising [1/1]

PD#SWPL-6985

Problem:
cfo track value is small

Solution:
increase cfo track val to avoid crystal jitter

Verify:
verified by t962x2_x301

Change-Id: Ifcf53f1d06eae204a82dc99154d18c38f370ebc1
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agodtv_demod: playing dtmb is not smooth when signal is non-standard [1/1]
zhiwei.yuan [Mon, 25 Mar 2019 09:28:35 +0000 (17:28 +0800)]
dtv_demod: playing dtmb is not smooth when signal is non-standard [1/1]

PD#SWPL-6286

Problem:
tps of non-standard signal is incorrect

Solution:
ignore calculating amplitude tps

Verify:
verified by t962x2_x301

Change-Id: Ibd3ff7bfe56ca604ad99fa7c6f457202c227c9ae
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
5 years agoosd: fix release dma buf error when vout1&2 run at same time.
sky zhou [Sat, 6 Apr 2019 11:35:34 +0000 (19:35 +0800)]
osd: fix release dma buf error when vout1&2 run at same time.

PD #SWPL-6027

Problem:
dmabuf panic when vout1,vout2 run at same time.

Solution:
When do pandisplay, only release the dma buf displayed
on current vout pipeline.

Verify:
Verify on macroni.

Change-Id: I8951d55f9f56cbfa509bcbe2906a108c5f50dbfe
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
5 years agoosd: add viu2 support for tl1 [1/1]
pengcheng chen [Tue, 20 Nov 2018 01:42:44 +0000 (09:42 +0800)]
osd: add viu2 support for tl1 [1/1]

PD#172587

Problem:
add viu2 support for tl1.

Solution:
add viu2 support for tl1.

Verify:
verified by x301

Change-Id: Ie728f6ee7e0c4c4062e5e12e3d80515d99d020f8
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
ff60d15 osd: calc osd parameters used num/den replace left/right shift
[1/1]
481d4f2 osd: set hdr size according osd blend0 out size  [1/1]
42b54ce osd: afbc decode error when loop viu1 to vdin [1/1]
91bda20 osd: fix afbc decoder error caused flicker in display [1/1]
799ba4c osd: fix hotplug hdmi causes system crash [1/1]
e9fadfe5 osd: fix osd afbc can't display on android5.1 [1/1]
1f8aa33 osd: frame just display on half screen [1/1]
7bcfa18 osd: set osd1 scaler before osd blend [1/1]
6913eaa osd: osd display color abnormal when run drm [1/1]
6862fb2 osd: add viu2 fence support [1/1]
f59b7a6 drm: a113d support drm issue [1/1]
50557a1 osd: reset afbcd flag when convert format value [1/1]
cfbcb3d osd: fix buidroot compile error issue [1/1]
6163540 osd: rdma write miss caused afbc mosaic [1/1]
032a712 osd: fix display frame offset caused osd display abnormal [1/1]
2c1269e osd: osd: recovey mode always blank [1/1]
3be570b osd: osd: reserve vs_ctrl bit for VPP [1/1]
40bfe97 osd: add viu2 support for tl1 [1/1]

osd: osd: reserve vs_ctrl bit for VPP [1/1]

PD#172587

Problem:
reserve vs_ctrl bit for VPP

Solution:
Avoid operating VPP_OFIFO_SIZE bit19 on OSD code

Verify:
verified on t962x2_x301

Change-Id: Ic450d6f64e2349d97d02f0802058b4031564fea4
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
osd: osd: recovey mode always blank [1/1]

PD#TV-1287

Problem:
recovey mode always blank

Solution:
set right condition to enable free_scale

Verify:
verified on P321 board

Change-Id: I2f70b9c5436b30156f157a3297a11a2ef1cfec67
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
osd: fix display frame offset caused osd display abnormal [1/1]

PD#OTT-1663

Problem:
display frame offset caused osd display abnormal

Solution:
remove unnecessary blend dst_data adjust

Verify:
Locally on raven

Change-Id: I38b97f6da750f5edea97416b4d7fc0172dea7466
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
osd: rdma write miss caused afbc mosaic [1/1]

PD#SWPL-4502

Problem:
afbc mosaic when bandwidth is high, root cause is
rdma write regs missed.

Solution:
1. add vsync line detected, if rdma write nearly
vsync, wait vsync needed
2. add rdma write detected, if rdma write missed
wait vsync needed
3. add tl1/g12b afbc backup

Verify:
Locally on tl1

Change-Id: If4fd303c3808525fa44e1118742a3e26830323f5
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
osd: fix buidroot compile error issue [1/1]

PD#SWPL-4502

Problem:
buidlroot compile error

Solution:
fix buidroot compile error issue

Verify:
buildroot make linux-build

Change-Id: I0277c2b3f439946ab680f4c34f30c16e31ea6034
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
osd: reset afbcd flag when convert format value [1/1]

PD#SWPL-5185

Problem:
"fence color format error 28" when test weston-simple-egl

Solution:
reset afbcd flag when convert format value

Verify:
Locally on g12b_w400

Change-Id: I81a9394288026bc596f6b3438cec72ceaad7749f
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
drm: a113d support drm issue [1/1]

PD#SH-397

Problem:
use  modetest to test A113D DRM function, displaying is incorrect

Solution:
add linear addr config for a113d drm mode

Verify:
verified on s400

Change-Id: Id6a2c6ad94bc0148815076561d9dc2ae8ded6884
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
osd: add viu2 fence support [1/1]

PD#SWPL-6384

Problem:
viu2 not support fence

Solution:
add viu2 fence support.

Verify:
test pass on tl1

Change-Id: I94a5e483c88cace79b7386bb918c203ada6b8274
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
osd: osd display color abnormal when run drm [1/1]

PD#SWPL-6867

Problem:
osd dispaly color abnormal because osd enable not update.

Solution:
update osd enalbe flag in drm process.

Verify:
Verified u212

Change-Id: I1c2e8b62d9d5af203c95d3d0ac940fb512dd8e5e
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
osd: set osd1 scaler before osd blend [1/1]

PD#SWPL-6596

Problem:
bring up osd for TM2

Solution:
set osd1 scaler before osd blend

Verify:
Verified on T962e2_ab319

Change-Id: I9e7d5fa83b2edc8e9359371695ea46fa3b39e09c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
osd: frame just display on half screen [1/1]

PD#SWPL-7039

Problem:
bring up osd for TM2
frame just display on half screen

Solution:
fix field_out_en value from array

Verify:
Verified on T962e2_ab319

Change-Id: Id07f3d813242f031125fcac11d3fa05205895448
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
osd: fix osd afbc can't display on android5.1 [1/1]

PD#SWPL-6869

Problem:
afbc can't display with android5.1, because blank enable
called before afbc set, which make osd enable not updated
and afbc not enable when hwc post frame

Solution:
if mali afbc enable, call osd enable.

Verify:
verified on x301

Change-Id: I1d727a586a66c6e7848d09dfb5c5b74ff7a2e3e6
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
osd: fix hotplug hdmi causes system crash [1/1]

PD#SWPL-7009

Problem:
hotplug hdmi causes system crash
when unplug hdmi display mode is null, hwc hasn't received
event and post frame normal but osd vsync lost, which caused
wait hw vsync timeout(1s), and fd leak.

Solution:
when process every frame, if display mode is null, exit frame process
just process fence.

Verify:
verified on Raven, franklin

Change-Id: Icbe7cd76776e46a6ed79c6cee3ea05772cc5f9d2
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
osd: fix afbc decoder error caused flicker in display [1/1]

PD#OTT-3000

Problem:
afbc decoder error caused flicker in display.

Solution:
close osd prefetch.

Verify:
Verified with raven

Change-Id: I44356c028b41e251f7a98b5e931b2cbd583b0829
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
osd: afbc decode error when loop viu1 to vdin [1/1]

PD#TV-5024

Problem:
afbc decode error when loop viu1 to vdin.

Solution:
set osd hold line to max if vinfo is dummy_panel

Verify:
Tl1 X301

Change-Id: I0ebb312d381accb1890233164f071a095310d2f1
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
osd: set hdr size according osd blend0 out size  [1/1]

PD#IPTV-2395

Problem:
osd last line have abnormal data

Solution:
set hdr size according osd blend0 out size

Verify:
Verfied on u212

Change-Id: Iad738b16fce066270c78213f1b696a802e1b8da6
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
osd: calc osd parameters used num/den replace left/right shift  [1/1]

PD#OTT-3615

Problem:
a line on the right displayed

Solution:
calc osd parameters used num/den replace left/right shift

Verify:
Verfied on u212

Change-Id: If59d9de0bb3c525d2b67d05ec449d458fbbcdfe2
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agohdmitx: replace I2C_REACTIVE with I2C_RESET logic [1/1]
Zongdong Jiao [Thu, 23 May 2019 12:59:32 +0000 (20:59 +0800)]
hdmitx: replace I2C_REACTIVE with I2C_RESET logic [1/1]

PD#OTT-3716

Problem:
In GX, there is the I2C_REACTIVE method to avoid the I2C hangup
issue. But it is fixed in G12, so need replace it.

Solution:
Replace I2C_REACTIVE with I2C_RESET logic

Verify:
G12/U212

Change-Id: I1ca2f77a213db0d7de067745b3701816b7c85c27
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
5 years agoaudio: fixed cvbs audio pop noise on g12a/b [1/1]
Zhe Wang [Thu, 13 Jun 2019 08:48:09 +0000 (16:48 +0800)]
audio: fixed cvbs audio pop noise on g12a/b [1/1]

PD#OTT-3760, PD#SWPL-8309

Problem:
startup ott, cvbs out with pop noise

Solution:
Set gpio init low

Verify:
verified by franklin

Change-Id: Ieb33e72473055fad69bc8e9a68ed0b0552e9f029
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agovpp: fix out of one pixel between video and the red frame [1/1]
Peng Yixin [Mon, 27 May 2019 14:00:15 +0000 (22:00 +0800)]
vpp: fix out of one pixel between video and the red frame [1/1]

PD#TV-5764

Problem:
Goto the wrong case when using ext_sar

Solution:
Using the correct case when using ext_sar

Verify:
verified on r311

Change-Id: I181b9e8d21917840729f2e487b3dae3f41cd2c5a
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
5 years agoosd: add afbc source crop support [2/2]
Pengcheng Chen [Tue, 26 Feb 2019 10:51:50 +0000 (18:51 +0800)]
osd: add afbc source crop support [2/2]

PD#OTT-2168

Problem:
media control bar can't displayed because afbc source crop not support

Solution:
add afbc source crop support

Verify:
verify on raven

Change-Id: Ib1f925aeea12ba18d8f976aba8c84f0738c41293
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
5 years agousb: panel type-c need support adb and u-disk [1/1]
he.he [Thu, 30 May 2019 06:54:52 +0000 (14:54 +0800)]
usb: panel type-c need support adb and u-disk [1/1]

PD#SWPL-9127

Problem:
the id pin of the type-c is aways high, whether it is connected to u disk
or usb cable.

Solution:
It need set vbus high when the usb mode is host only.

Verify:
test passed on sm1

Change-Id: I4ff8a9b5419b54828ecd797a78d149da98535dee
Signed-off-by: he.he <he.he@amlogic.com>
5 years agodts: reduce isp reserved mem [1/1]
Jiacheng Mei [Tue, 4 Jun 2019 09:33:02 +0000 (17:33 +0800)]
dts: reduce isp reserved mem [1/1]

PD#SWPL-70

Problem:
arm isp can't get reserved mem

Solution:
reduce isp reserved mem

Verify:
w400

Test: camera preview and capture OK

Change-Id: Icaf630a25a55d31ec3ed68cae48fb840017c9fc0
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
5 years agoaudio: fixed dtv audio clk setting error in samesource [1/1]
Zhe Wang [Tue, 11 Jun 2019 05:55:04 +0000 (13:55 +0800)]
audio: fixed dtv audio clk setting error in samesource [1/1]

PD#SWPL-9593

Problem:
dtv audio is heard slower in spk

Solution:
when mclk is changed, spdif clk changes correspondingly in samesource case

Verify:
X301

Change-Id: I15fcb598ba893762580f0a5aac856376af8c94ec
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoaudio: SM1/TM2: bringup EQ/DRC module [1/1]
Zhe Wang [Thu, 6 Jun 2019 12:22:32 +0000 (20:22 +0800)]
audio: SM1/TM2: bringup EQ/DRC module [1/1]

PD#SWPL-7606

Problem:
EQ/DRC module is out of work

Solution:
bringup EQ/DRC module

Verify:
verified on ac200

Change-Id: Ibd9b1e65aaed2ecd5f3086e4325d6b92fe34b040
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agoaudio: audio ABUS stuck issue [1/1]
Shuai Li [Tue, 4 Jun 2019 05:41:43 +0000 (13:41 +0800)]
audio: audio ABUS stuck issue [1/1]

PD#SWPL-9142

Problem:
Audio Abus may be stuck if it is stopped
when the burst is not finished.
And the stuck can't be recovered
unless reboot the system.

Solution:
Add check to make sure that the transfer
is over then start to disable the toddr fifo.

Verify:
TL1 stress test.

Change-Id: I28dcf84ddec421bc70370b2544f0bf1f3272e7b4
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
5 years agoaudio: enable clk before extern codec init when system resume [1/1]
Zhe Wang [Wed, 22 May 2019 10:40:17 +0000 (18:40 +0800)]
audio: enable clk before extern codec init when system resume [1/1]

PD#TV-6005

Problem:
change time sequence for extern AMP

Solution:
1) enable tdm clk before codec init, when system resume

Verify:
test on X301

Change-Id: I3d6411cd32fbc3496bed942c72b7bec408d66959
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
5 years agoaudio: fixed audio hw freq responds test fail [1/2]
Zhe Wang [Fri, 17 May 2019 07:23:56 +0000 (15:23 +0800)]
audio: fixed audio hw freq responds test fail [1/2]

PD#TV-5865

Problem:
audio hdmiin freq responds test fail

Solution:
enable hw audio resample filter

Verify:
X301 marconi

Change-Id: I78699848049abe6a6b1b682e5a7bb2130fb16c09
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
audio: set resample clk to mclk of tdm [1/2]

PD#TV-5865

Problem:
hdmiin frequency responds test fail.

Solution:
set resample clk to mclk of tdm

Verify:
X301

Change-Id: I22c92219bcea534bdec2bc526d535cacd971faa5
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
5 years agoaudio: meson: fix internal codec mixer api call [1/1]
Jian Xu [Mon, 27 May 2019 11:35:58 +0000 (19:35 +0800)]
audio: meson:  fix internal codec mixer api call [1/1]

PD#TV-6267

Problem:
internal codec pointer operation error

Solution:
use 4.9 ALSA standard API to get the codec handle.

Verify:
R311

Change-Id: I52567a914230083054dc0413f818356d71c83a53
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
5 years agoaudio: fix spdif not work on soundbar [1/1]
yujie.wu [Thu, 11 Apr 2019 02:38:54 +0000 (10:38 +0800)]
audio: fix spdif not work on soundbar [1/1]

PD#SWPL-6801

Problem:
  There is too much kernel print which
  blocks the system

Solution:
  Add condition to remove the print log

Verify:
  A113

Change-Id: I5762893b424e8201e2725f33854473097f1246b9
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
5 years agodi: add di for sm1 bringup [1/1]
Yong Qin [Fri, 22 Mar 2019 12:41:15 +0000 (20:41 +0800)]
di: add di for sm1 bringup [1/1]

PD#SWPL-5865

Problem:
SM1 bring up

Solution:
add the chipid

Verify:
sm

Change-Id: I9b738efea210b4fb3deb2dab9de6a443aabadb53
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>