Commit Graph

649775 Commits

Author SHA1 Message Date
Ao Xu
1f2c3eb99d drm: add gem import interface to support drm-hwc [1/1]
PD#SWPL-11320

Problem:
current gem driver have not implementted the import interface.
For drm-hwc in android, gralloc allocate the dumb buffer, it
should use the import interface to import the allocated buffer
to the drm driver.

Solution:
implement the gem import interface

Verify:
g12a-u200

Change-Id: I32f7705fd67853a1000875b2af69fcaf700330e1
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2019-08-22 02:18:50 -07:00
Ao Xu
ecb30a5231 drm: add meson drm debugfs node [1/1]
PD#SWPL-12289

Problem:
drm driver has no debug sysfs file

Solution:
add follow sysfs node
1. dump the osd register
/sys/kernel/debug/dri/%minor%/vpu/reg_dump
2. dump the gem buffer image
/sys/kernel/debug/dri/%minor%/vpu/dump
3. set the gem buffer image store path
/sys/kernel/debug/dri/%minor%/vpu/imgpath
4. set 1 to disable the osd plane
/sys/kernel/debug/dri/%minor%/vpu/blank

Verify:
g12a-u200

Change-Id: I10746d65b09d3b530dc22720b8cee669fa120dde
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2019-08-22 02:18:31 -07:00
Zhe Wang
ebe3765560 audio: fixed regression of TV-8378 [1/1]
PD#SWPL-13063

Problem:
dd/ddp/dts isn't decoded when window swithing

Solution:
fixed regression of TV-8378

Verify:
X301 T972

Change-Id: Id85dde4b06af9ae9609a5ed269d884fa8500044b
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-08-22 01:30:50 -07:00
Ao Xu
98ea8959e7 drm: add afbc support in drm driver [1/1]
PD#SWPL-13092

Problem:
drm driver has no drm support

Solution:
add afbc block support

Verify:
g12a-u200

Change-Id: If2e57b63032e9f93be800bda652b80e560163231
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2019-08-22 00:53:18 -07:00
Tao Zeng
66930ace57 dmc: add function to set up dmc from bootargs [1/1]
PD#TV-8696

Problem:
DMC can't set up from bootargs. For easy debug, we need
set a monitor from bootargs.

Solution:
Add a funciton for this feature. You can using following patten
to set up a DMC monitor:

	dmc_montiro=[start_addr],[end_addr],[mask]

Example:
	setenv initargs $initargs dmc_monitor=0x0,0x20000000,0xff58
	This command set up monitor for following device on GXL:
	RANGE:0 - 20000000
	MONITOR DEVICE:
	    HDCP
	    HEVC
	    USB3.0
	    VPU READ1
	    VPU READ2
	    VPU READ3
	    VPU WRITE1
	    VPU WRITE2
	    VDEC
	    HCODEC
	    GE2DV

Verify:
P212

Change-Id: I864ff97325981fe62f18a4a4a24700b6b6ea7482
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-08-22 14:06:03 +08:00
Pengcheng Chen
678cc4f7b8 osd: add viu2 reg write optimize [1/1]
PD#TV-8354

Problem:
keystone screen blank probability,
viu2 reg write caused blank

Solution:
add viu2 reg write optimize, update reg that needed

Verify:
tl1

Change-Id: I17d1cdca2f9dec270ec61bd413b9f9753ab548a8
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-08-21 19:11:02 -07:00
Xihai Zhu
5f8c274cbb pixel_probe: enable the device for tl1 [2/2]
PD#SWPL-11790

Problem:
probe device is not enable

Solution:
have probe device enabled in tl1 device

Verify:
TL1

Change-Id: I6d6d5ecca2ab70cc0dec8973252f69587bc50915
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-08-21 00:58:43 -07:00
Xihai Zhu
6736e8c1cb amvecm: fix minor issue of CM histogram [1/1]
PD#SWPL-12885

Problem:
incorrect bin num of cm histogram

Solution:
have the value reflect register
spec correctly

Verify:
TL1

Change-Id: I77088cae29d716228c80fb31462585fdf67f34d9
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-08-21 00:57:49 -07:00
shaochan.liu
3c6c94e9f4 lcd: add tcon regs block write [1/1]
PD#TV-7849

Problem:
need support tcon regs block write for gamma tooling

Solution:
add tcon regs block write

Verify:
x301

Change-Id: I4657bbd41ae5caa95ed35f8758e5d99eac79de44
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2019-08-20 23:05:10 -07:00
Xihai Zhu
90157135f1 amvecm: update pixel probe [1/2]
PD#SWPL-11790

Problem:
related register usage is wrong

Solution:
have probe register usage aligned with
correct spec

Verify:
TL1

Change-Id: I8345f58d96ac0f3447c47065a61c747907341c1d
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-08-20 07:38:15 -04:00
Zhe Wang
0760034557 audio: if hdmiin is unsatble, set default resample to 48K [2/2]
PD#TV-8378

Problem:
shutdown test for hdmiin, sometimes audio is silence.

Solution:
if hdmiin is unsatble, set default resample to 48K

Verify:
X301 T972

Change-Id: I31acc38772006646176092968eb23628e23dbaf7
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-08-20 03:51:25 -07:00
Zhe Wang
28386384b8 audio: disable some audio print messages for ATV str test [1/1]
PD#TV-8460

Problem:
ATV str test is stucked

Solution:
disable some audio print messages

Verify:
Verfied on marconi

Change-Id: I284c8afde3a6bc9ff3b8ebfe19360abbb152c3f8
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-08-20 03:48:01 -07:00
Yan Wang
b0b77c0408 pixel_probe: tl1 add pixel probe control for debug [1/1]
PD#SWPL-9137

Problem:
tl1 add APIs to control pixel probe for debug

Solution:
tl1 add APIs to control pixel probe for debug

Verify:
X301

this commit MUST not be merged into trunk!!!

Change-Id: I3a538ff3afdd80ef5669fac63a3ab5f43b8e1055
Signed-off-by: Yan Wang <yan.wang@amlogic.com>
2019-08-20 02:33:35 -07:00
Xihai Zhu
4905a1043c amvecm: further improvement for LC block artifect [1/2]
PD#SWPL-12867

Problem:
after some swtich or on/off operation, minor block
artifect is seen under super black pattern

Solution:
improve the temporal filter calculation and fine tune
related parameter as well

Verify:
TL1

Change-Id: If52360e458934d71438899b88d9246f1279ce524
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-08-20 00:13:18 -07:00
Jian Hu
a442c6d96b clk: tl1: add CLK_IGNORE_UNUSED flag for tcon clock [1/1]
PD#SWPL-12922

Problem:
the lcd display abnormal

Solution:
do not disable tcon clock,add
CLK_IGNORE_UNUSED flag for tcon clock

Verify:
tl1

Change-Id: If2ac02670c58a21604ce2a36ae353ceddd5ecae5
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2019-08-20 11:18:19 +08:00
Yong Qin
80b2c12a60 tvafe: adc pll FRQ can't over 4.8Ghz [1/1]
PD#SWPL-12753, PD#TV-8736

Problem:
ft had change the Max range to 4.8G, so adc pll can't
over than 4.8 Ghz.

Solution:
modify pll default setting

Verify:
tl1

Change-Id: I9f489300762f653f967e8c2219c79882236062ab
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-08-19 00:45:15 -07:00
Yong Qin
b7732f1dc5 cec: for sm1 support ARC [1/1]
PD#SWPL-12148

Problem:
no output config

Solution:
sm1 dts add output config

Verify:
sm1

Change-Id: Ie431b5e485c5ad199d2840070dbf940ff88912c0
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-08-18 20:13:56 -07:00
Jihong Sui
b391eea3db deinterlace: add di-multi folder v2 [2/3]
PD#SWPL-10064

Problem:
add di-multi folder

Solution:
1. add di_multi folder;
2. it can be enable by dts;
3. only one of di can be enabled at the same time;
4. no di-pq filse;

Verify:
U212

Change-Id: I8726d2430cf1beb58d0cd37c0358b7ea8e06c414
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-08-18 19:26:00 -07:00
nengwen.chen
433ca76390 atv_demod: fix non-standard signal [1/1]
PD#TV-7783

Problem:
fix non-standard signal.

Solution:
1.fix non-standard signal when channel scanning and playing.
2.disable demod afc when enable non standard.

Verify:
Verified by x301

Change-Id: I177e6eb5388e554e3166a65e23e3b7bdefac3e97
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-08-18 19:25:24 -07:00
nengwen.chen
0acbc9bc4e atv_demod: fixed null pointer when atv channel searching [1/1]
PD#TV-8777

Problem:
fixed null pointer when atv chennel searching.

Solution:
1.fixed null pointer when atv channel searching.

Verify:
Verified by x301 and t972.

Change-Id: I3622d42f6a8dee634c601660b43e9dd9ba93c29d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-08-18 19:24:24 -07:00
Sunny Luo
99a32b7370 spi nor: spicc: change to use spicc to access spi nor [1/1]
PD#TV-8401

Problem:
Customer needs to access spi nor by the spicc.

Solution:
add spi nor interfaces in spicc driver.
add gd25q80c/FM25Q08A surpport

Verify:
tl1 x301

Change-Id: If94858d46c31fea6b37034a8b1dfe94a9e9f4603
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2019-08-18 19:07:31 -07:00
Xihai Zhu
dad601e7cf amvecm: fix LC super white/black pattern issue [1/2]
PD#SWPL-12142

Problem:
signal level of 107% block of super white/black pattern
diff via enable/disable LC

Solution:
it is special limit range pattern but some pixels
value > 235, use full range matrix to avoid clipping,
this is per VLSI'e suggestion

Verify:
tl1

Change-Id: I82d26105a2404218b0c575a578874f88ae75d6c9
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-08-16 08:09:12 -07:00
Hanjie Lin
d2cbe18aa3 perf_event: fix pmu deadlock issue [1/1]
PD#SWPL-3088

Problem:
smp_call_function_single() may cause deadlock.

Solution:
modify

Verify:
u200 w400

Change-Id: I86e9f67ed292245c5fe649e6750a6a406261552f
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2019-08-16 08:07:43 -07:00
MingLiang Dong
2930e582da hdr: optimize hdr2sdr config [1/1]
PD#SWPL-12515

Problem:
hdr video is dark compared with sdr video

Solution:
1. optimize hdr2sdr oo gain
2. fix hdr2sdr shift

Verify:
verify on TL1

Change-Id: I42cbe7bf2c05c610f25ec34fe00cb4a2b1f7b8a6
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-08-16 05:59:20 -07:00
Jihong Sui
e136ff601f deinterlace: add condition for recycle mirror buf [1/1]
PD#SWPL-11555

Problem:
there is jaggy in the seek process

Solution:
add condition for recycle mirror buf

Verify:
TL1

Change-Id: I13c17fd78386ef2cb5f44b4e8c33be3fa92e31e2
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-08-16 05:32:59 -07:00
Jihong Sui
449e9c6278 deinterlace: add di-multi v2 [1/3]
PD#SWPL-10064

Problem:
Prepare for adding multi-di

Solution:
1. add di_local for reserved mem alloc;
2. add dil_attach_ext_api for di_api;
3. move some setting to prob;
4. add interface for di pq;

Verify:
U212

Change-Id: I023694dffabed47fd62ec3fa90b8de9302ac341e
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-08-16 05:32:32 -07:00
yicheng shen
701d12f053 hdmirx: optimize the communication method with hdcp_rx22 [1/3]
PD#SWPL-2564

Problem:
hdcp_rx22 ocupy too much CPU resources

Solution:
1.Optimize hdcp_rx22 polling method
2.The driver code should match the hdcp_rx22 whose version is
HDCP2.2 RX0719

Verify:
Android P

Change-Id: I4e1ab48d4eb3b74de070a36cd719c67370f26505
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-08-15 20:10:37 -07:00
yicheng shen
934eeae795 hdmirx: update eARC port and 5V high or low status to audio [1/1]
PD#SWPL-12446

Problem:
Need update eARC port and 5V high or low status to audio

Solution:
update eARC port and 5V high or low status to audio

Verify:
TM2

Change-Id: Ie9891e045010e2020aa9ec64922f2810f6a0cb18
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-08-15 20:07:49 -07:00
Qianggui Song
b77519dcee ir: remove irq affinity in hard decode mode [1/1]
PD#SWPL-9797

Problem:
ir irq is binded to cup 1 and will re-set in every resume process.
cup 0 wakeup first in resume, if there comes a irq during resume in
a critical time it may occurs concurrency.

Solution:
remove irq affinity in hard decode mode and only use it in learning
mode.

Verify:
w400

Change-Id: I26fad9f67665a2bfe9c6d2455559eb1d95e8b2ba
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2019-08-15 20:05:53 -07:00
Qianggui Song
97e2cf28ce ir: fix mem leak issue when probe [1/1]
PD#SWPL-12483

Problem:
during probe stage, some unused mems are not be freed.

Solution:
free mem after using.

Verify:
gxl_p212

Change-Id: I24a91d81f0db9fb1edbab8f63b4e8c7f940d5947
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2019-08-15 19:45:39 -07:00
Yong Qin
2b0050359c tvafe: atv black screen [1/1]
Revert "tvafe: Reg access protection [1/1]"

This reverts commit 8b95c783b4.

Change-Id: I113bb6708e07454c8d59ba1d0f89c9f8b43e686f
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-08-15 05:01:29 -07:00
Zongdong Jiao
ab7022facd hdmitx: parsing basic audio [1/1]
PD#SWPL-12779

Problem:
For some RX, the audio block of its EDID contains other audio
type(eg. DD), without PCM.

Solution:
Check the parsed EDID data, add default PCM type
when it contains other audio type w/o PCM.

Verify:
G12/U212

Change-Id: Ia343149ffd4e73970fd76c08a5fde4ee1fe78656
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-08-15 04:30:55 -07:00
Evoke Zhang
8068ba2f61 tvafe: add more parameters for fine tune non-std signal [1/1]
PD#TV-7783

Problem:
some non-std signal is not stable

Solution:
add more parameters for fine tune non-std signal

Verify:
x301

Change-Id: I926833778569c4aa3a6eae45224a46eae97f3dcf
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-08-15 04:30:33 -07:00
Evoke Zhang
fbf7967bda tvafe: add pq reg trust list protection [1/1]
PD#SWPL-12475

Problem:
sometimes pq reg wrong value will cause tvafe working abnormal

Solution:
add pq reg trust list protection

Verify:
x301

Change-Id: Ie498fec7a890c8eb2f4a7af660cef70c8da247dd
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-08-15 04:27:28 -07:00
Evoke Zhang
e99612d4bf lcd: fix special clk mistake for vbyone [2/2]
PD#SWPL-12609

Problem:
clk calculation mistake when use some special clk for vbyone

Solution:
fix special clk mistake for vbyone

Verify:
x301

Change-Id: If639f02a6ad9d3adeb87f46e3bb0e454e1148075
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-08-15 04:17:25 -07:00
Zongdong Jiao
a15846b953 hdmitx: remove a wrong hdcp control [1/1]
PD#SWPL-12775

Problem:
HDCP1.4 special test failed with analyzer (VA-1842)

Solution:
Remove a wrong hdcp control

Verify:
G12/U212

Change-Id: Ic17a8ee0cea4f7ec7cde992a74329385b0cac65a
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-08-15 00:13:46 -07:00
Yong Qin
8b95c783b4 tvafe: Reg access protection [1/1]
PD#TV-8258

Problem:
sometime tvafe reg is access after tvafe disabled,
cause system panic

Solution:
1.add reg access protection
2.hook function add protection condition

Verify:
x301

Change-Id: I331a3e9cd10ee2ba14d0f3c0768ce1df7e23c2f9
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-08-14 19:39:42 -07:00
zhiwei.yuan
79f682757f vdin: hdmi in 1080i,game mode shakes seriously [1/1]
PD#SWPL-9795

Problem:
field top/bottom is inverted in game mode

Solution:
invert top/bottom in game mode 2

Verify:
verified by t962x2_x301

Change-Id: If4eafef9d422a5ba1062a0e398741efcb21266f2
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-08-14 19:08:48 -07:00
Gongwei Chen
0ff4197cb4 dts: add ac214 [1/2]
PD#SWPL-12710

Problem:
add ac214

Solution:
add ac214 dts

Verify:
Verify by Android P ac214

Change-Id: I24890bce6506331bdb9d8dbe21e5697c334ffc3c
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-08-14 04:36:18 -07:00
yao liu
ceb0a86fe3 dolby: Display flickers with garbage image [1/1]
PD#OTT-5577

Problem:
when scale down, scaler+dolby h-timing too tight

Solution:
reduce htotal_add to 0xc0 when 4k output

Verify:
u212

Change-Id: I190ec235370d9ed75f9c1f477c1419c383b0a8e7
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-08-14 04:19:20 -07:00
huijie.huang
e4fc9798fb s905y3: ac223 bring up and power optimization [3/3]
PD#SWPL-12395

Problem:
S905Y3 AC223 bring up & power optimization

Solution:
1. kernel add AC223 board support
2. limit cpu to 1.5GHz
3. limit gpu to 500MHz
4. set hdmitx to dongle power save mode

Verify:
AC223

Change-Id: I0bb219b6ea1b924525d9c1d364666782e3371556
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2019-08-14 02:10:17 -07:00
huijie.huang
764a00ef19 dts: tm2 32bit version fix wifi cannot use [1/1]
PD#TV-8700

Problem:
TM2 32bit kernel wifi cannot use

Solution:
change wifi config in dts

Verify:
T962X3-AB301

Change-Id: Iabd2d5aa1b57d8f6fc46e68ca926452be5b8f6b4
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2019-08-14 00:31:28 -07:00
Ruixuan Li
13a30bd727 emmc: run hs400 200M busmode on tl1 [1/1]
PD#SWPL-11266

Problem:
the emmc clock source is 792M, the emmc speed
should be 198M

Solution:
modify dts from 200M to 198M

Verify:
passed on tl1_t962x2_x301

Change-Id: I9baf345db06039c5df8f5b7714a8fbb6e0143b68
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2019-08-13 22:07:47 -07:00
Hong Guo
aee9360136 dts: update s905x3 vddcpu pwm to 30 steps [1/1]
PD#SWPL-11792

Problem:
update s905x3 vddcpu pwm to 30 steps

Solution:
update s905x3 vddcpu pwm to 30 steps

Verify:
test pass on S905X3_AC213

Change-Id: I30bfe855e3bb0a4b0a33f6d9029a718b7de68829
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-08-13 20:15:30 -07:00
jian.zhou
1b90805072 audio: fix the sound phase is invert in speaker output [1/1]
PD#SWPL-7679

Problem:
the sound phase is invert in speaker output

Solution:
PWMR_X need match 1:No exchanged

Verify:
T962E2 AB311

Change-Id: Ib1720b6418ead08617f66b090783bab27e1d347e
Signed-off-by: jian.zhou <jian.zhou@amlogic.com>
2019-08-13 20:14:26 -07:00
Xihai Zhu
7b04897c70 amvecm: disable LC single peak curve patch [1/2]
PD#SWPL-12343

Problem:
patch for single peak curve is not really needed

Solution:
implement the curve by tunning parameters
also fix the tempor filter calculation issue causing
unexpected curve

Verify:
tl1

Change-Id: Ib338d8f54137c0dfe8f5a641037a4e77d2156b0a
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2019-08-13 20:05:55 -07:00
Evoke Zhang
2a32d7f039 tvafe: optimize DADC stability for tl1 [1/1]
PD#SWPL-12474

Problem:
sometime demod adc fail

Solution:
optimize DADC stability

Verify:
x301

Change-Id: I2202e4a11a9095ff79c0dd3f2afa1600d0e4e2df
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-08-13 19:13:26 -07:00
shaochan.liu
41b00c618e lcd: add lvds phy pull down sequence to avoid 1.8V power on pluse [2/2]
PD#SWPL-9313

Problem:
need add lvds phy pull down sequence

Solution:
add lvds phy pull down sequence

Verify:
t962x2_x301

Change-Id: Id8725bfe4de99afed14fee956dc3be3f73e72220
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2019-08-13 19:12:50 -07:00
Jihong Sui
8dbea6ae2c deinterlace: disable afbc for tl1/tm2 [1/1]
PD#TV-8024

Problem:
abnormal display in small window.

Solution:
turn off afbc temporary.

Verify:
tl1

Change-Id: I6f863330ed9261ef00b0d1c7bdeaa341a9aaa2ca
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-08-13 02:19:12 -07:00
zhiwei.yuan
eaf5dc1282 dtv_demod: tl1 DTMB, 674M frequency, not searchable [1/1]
PD#SWPL-12576

Problem:
dmd & dmx ts can't be synced

Solution:
change dmd ts sync to "searched"

Verify:
verified by t962x2_x301

Change-Id: I75014f746456b1dc8c7ffc57b98c92f5d001a6ec
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-08-13 00:30:57 -07:00