Commit Graph

2193 Commits

Author SHA1 Message Date
Ray
2a636ea2ee tee: disable by default
Fixes weird h264 reset bug
2023-05-12 16:27:16 +09:00
Chris
eee54bb0b9 Revert "cec: cec a bus busy cause system hold [1/1]"
This reverts commit e5617679de.

Change-Id: I23415ecad6254a65ddcf92b171fbce15ca0fac8c
2023-05-09 08:59:38 +09:00
chunlong.cao
87e7c07df2 [display]amvecm: aml_vecm_init Initialization bug [1/1]
PD#OTT-10492

Problem:
    function of aml_vecm_init Initialization bug.

Solution:
    Add support for G12B chips

Verify:
   on W400

Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
Change-Id: I8398676a99d0957daf1fbc4fbb207d1c39e2e320
2023-04-27 09:33:37 +09:00
Pengcheng Chen
e21136bd5e osd: fix reboot quiescent caused screen blank issue [1/1]
PD#SWPL-17605

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

Solution:
in resume, reset afbc_start to 0

Verify:
franklin

Change-Id: I6e019ee88a3cfeb5d39db4777a7c2ac6c9648b02
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-04-21 13:52:38 +09:00
yao liu
1473adce54 vpp code style modify [1/1]
PD#SWPL-59491

Problem:
vpp code style modify

Solution:
vpp code style modify

Verify:
sm1

Signed-off-by: yao liu <yao.liu@amlogic.com>
Change-Id: I0ff44f15d441413a70366d86cabaee69a73587f7
2023-04-21 13:52:38 +09:00
yuhua.lin
5e9e5f621b ge2d: ge2d strechblit consumes too much time [1/1]
PD#SWPL-60558

Problem:
ge2d strechblit consumes too much time

Solution:
move cache sync in lib

Verify:
w400

Change-Id: I76d14e67dca6bd2fa05a7d3900c011367bf21884
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-04-21 13:52:38 +09:00
chunlong.cao
d93a456063 Revert "lcd: fix lcd_extern device probe mistake [1/1]"
This reverts commit 5802fddc1a48cc97aab51d7e394f80b7fd0ea02f.
2023-04-21 13:52:37 +09:00
Evoke Zhang
9aba57f769 lcd: fix lcd_extern device probe mistake [1/1]
PD#SWPL-36737

Problem:
lcd_extern device can't probe when enter kernel

Solution:
fix lcd_extern device probe mistake

Verify:
ak301

Change-Id: I869806bf85e5bec16bb1956862f7fd2000359a8f
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-04-21 13:52:37 +09:00
Xingxing Wang
68e3843a22 cpufreq: mutex flow modification in set rate api [1/1]
PD#SWPL-37459

Problem:
[AVA][Askey][AndroidQ][s905x4]console hang after
executing performance mode to 2 boxes.

Solution:
unlock mutex when set rate failed

Verify:
SC2 AH212

Change-Id: Ia097721ebe07e7a2c049921d5f7efddd356ebf58
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-04-21 13:52:37 +09:00
chunlong.cao
51897c7f2f Revert "ge2d: t5: add ge2d support [1/1]"
This reverts commit 529c6f4f398b0783f9d19ad03dccd48d2511565c.

Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
Change-Id: Id751430c9532e2570f3ebf24633da8f66838a921
2023-04-21 13:52:36 +09:00
Cao Jian
77e2034375 ge2d: add custom stride support [1/1]
PD#SWPL-29770

Problem:
accept customized picture stride

Solution:
add this support

Verify:
w400

Change-Id: I582286f0f19a617b728cc262f1616a8fce6091b2
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2023-04-21 13:52:36 +09:00
Cao Jian
7e699a3907 ge2d: use offset when getting plane paddr [1/1]
PD#SWPL-37010

Problem:
yv12 u & v output error if plane_number is set 1

Solution:
every plane offset is not used
use offset when getting plane paddr

Verify:
w400

Change-Id: I489e9730024659e4aea0dfb0ba2ca33f22d04338
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2023-04-21 13:52:36 +09:00
Cao Jian
a7d4bbc988 ge2d: add hw capability flags [1/1]
PD#SWPL-35263

Problem:
acquire HW capabilities at runtime

Solution:
add hw capability flags

Verify:
on w400

Change-Id: I6cab307cd5e3df848da72de64370b71826d30377
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2023-04-21 13:52:36 +09:00
Cao Jian
87ea2f5e78 ge2d: add ioctl to attach/detach [1/1]
PD#SWPL-33277

Problem:
reduce cache invalidate actions
while doing bulk actions to improve the performance

Solution:
add ioctl to attach/detach dma fd

Verify:
on sm1/w400

Change-Id: Iea8fae9e483ff70044da748c78d8641c52a0c65d
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2023-04-21 13:52:35 +09:00
Cao Jian
690e290f04 ge2d: unify power on and off macro [1/1]
PD#SWPL-33136

Problem:
unify power on off macro for powerdomain interface

Solution:
unify the macro

Verify:
t5 & sm1

Change-Id: I7306ae089ec9fd72f7da6d45ab6e8911a1e9c4cf
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2023-04-21 13:52:35 +09:00
Cao Jian
4d07716e42 ge2d: t5: add ge2d support [1/1]
PD#SWPL-32146

Problem:
need add ge2d support for t5

Solution:
add ge2d support

Verify:
on PTM

Change-Id: Iacb6771df7b349530b6f1913fcc51aa6532f837f
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2023-04-21 13:52:35 +09:00
Cao Jian
c003ef6bea osd: add member copying in CONFIG_COMPAT [1/1]
PD#SWPL-32539

Problem:
on a64_32 platform
green screen if GE2D_STRIDE_CUSTOM is set

Solution:
add member copying in CONFIG_COMPAT

Verify:
c1

Change-Id: I47b3d2bba6eb1825c96416fd593668bb397fde87
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2023-04-21 13:52:35 +09:00
renjiang.han
2a0849472a ppmgr: The picture is incorrect due to alignment issues. [1/1]
PD#SWPL-36752

Problem:
The picture is incorrect due to alignment issues using GDC rotation.

Solution:
When using GDC rotation, the width of the buffer and the width
of the effective area are transmitted to the GDC drive.

Verify:
on A311D-W400

Change-Id: I6fabb794750dbb971fc270a174b48dd24965bc9b
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2023-04-21 13:52:35 +09:00
renjiang.han
0e4bc14772 ppmgr: add support gdc rotate. [1/1]
PD#SWPL-28849

Problem:
ppmgr uses ge2d for lower rotation efficiency.

Solution:
ppmgr uses gdc to do 1080p rotation.

Verify:
on w400

Change-Id: I81c7f3c3ababa2518e733608c89ac50074bbdbe9
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2023-04-21 13:52:35 +09:00
renjiang.han
0587c27531 ppmgr: configure buffer and canvas according to rotation requirements. [1/1]
PD#SWPL-27018

Problem:
The mismatch between the width and height of the buffer
and canvas results in garbage.

Solution:
Configure buffer and canvas according to rotation requirements.

Verify:
on U212

Change-Id: Ied08838ad4d4fc7628be55cd2de58f91562030c0
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2023-04-21 13:52:35 +09:00
renjiang.han
f4bb60c4ff ppmgr: support 4k & 1080 rotation for vdin. [1/1]
PD#SWPL-26142

Problem:
vdin is compressed in 1080 & 4k output, but ppmgr does
not support compressed format.

Solution:
If rotation is required, ppmgr informs vdin to output yuv.

Verify:
ab301

Change-Id: Ifebda530dad1c1a57a0415389543d48a8d4fbef2
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2023-04-21 13:52:35 +09:00
renjiang.han
24b9f69d9d ppmgr: The picture format is not rotated. [1/1]
PD#SWPL-18297

Problem:
The picture shows abnormality after ppmgr.

Solution:
The picture format is not rotated.

Verify:
on U212

Change-Id: I259554c2f7cb3a5eeb4e90c1c3e135d5005a6f01
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2023-04-21 13:52:34 +09:00
Cao Jian
9587417431 gdc: add the stride support in gdc_process_phys [1/1]
PD#SWPL-36752

Problem:
Support the stride in physical address configuration

Solution:
add this support

Verify:
verified on g12b

Change-Id: Ic85384af6b67687e9f437319f6bc397c6e39a0cc
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2023-04-21 13:52:34 +09:00
Tao Zeng
1c6529b998 rodata: optimize memory usage of rodata section [5/5]
PD#SWPL-31258

Problem:
Kernel RO data is too large, about 4.5mb on 32bit and 5.9mb on
64bit kernel

Solution:
1, replace __FILE__ definition, using relative path instead of
absolute path. This can help to save about 50KB memory. For example:
[   36.820945@0] WARNING: CPU: 0 PID: 4817 at /mnt/fileroot/tao.zeng/p-android/
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 common/drivers/amlogic/memory_ext/page_trace.c:973
				 ~~~~~~ absolute path
		 pagetrace_write+0x10/0x18
[   42.792868@1] WARNING: CPU: 1 PID: 4864 at drivers/amlogic/
                 memory_ext/page_trace.c:973 pagetrace_write+0x10/0x18

2, replace __FUNC__ definition. using kallsyms interface to print function
instead of build in const string. This change can save about 100KB rodata.

Verify:
x301

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I65e4e9eb61a2226002557759833e4e16ed37b92e
2023-04-21 13:52:34 +09:00
Tao Zeng
2a7548129f rodata: optimize memory usage of rodata section [4/5]
PD#SWPL-31258

Problem:
Kernel RO data is too large, about 4.5mb on 32bit and 5.9mb on
64bit kernel

Solution:
1, optimize kallsyms compress code. This can help to increase
about 18% of compress ratio and save about 200 ~ 500KB under
different config.

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I4c058fbb22d89bc50c81fa3266ee0f7613f076f2
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2023-04-21 13:52:34 +09:00
Tao Zeng
5b574c9eda mm: add more functions to check cma alloc/free user [1/1]
PD#SWPL-5301

Problem:
Sometimes we need to catch who allcated/free cma pools

Solution:
Add more functions in pagetrace

Verify:
x301

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I06c114441fc20c8fbde853be9ecb0fc96fd00111
2023-04-21 13:52:34 +09:00
Tao Zeng
ea094c64aa mm: fix Lost RAM too large problem when playing 4k [1/2]
PD#SWPL-16990

Problem:
Lost RAM will be over 200MB when playing 4K.

Solution:
Add cma pages in /proc/meminfo and give a information
for android layer to count them.

Verify:
x301

Change-Id: I99d1ded53ed351a5cb0d24f0e03850a55ef0d272
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2023-04-21 13:52:34 +09:00
Cao Jian
479ffdf842 gdc: add a probed flag to avoid crash [1/1]
PD#SWPL-29848

Problem:
on platforms which GDC are not supported
if create_gdc_work_queue is invoked
a crash occurs

Solution:
add a probed flag to avoid crash
add a interface is_gdc_supported to query

Verify:
g12b/tm2

Change-Id: I65b88294822d8a2c7429d375039fee962b9612aa
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2023-04-21 13:52:33 +09:00
Cao Jian
dfd7a2da8e gdc: support phy addr configuration [1/1]
PD#SWPL-15157

Problem:
GDC Driver Support physical address configuration

Solution:
add this support

Verify:
verified on g12b

Change-Id: I8aee517a13bb2a65c021279cc3b54bd9861fc20c
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2023-04-21 13:52:33 +09:00
hang cheng
3cdb821e1b hdmitx: double confirm the ACR packet is enabled [1/1]
PD#SWPL-34731

Problem:
the ACR packet is not enabled with very low probability

Solution:
double confirm the ACR packet is enabled
simultaneously with audio sample packet

Verify:
AC214

Signed-off-by: hang cheng <hang.cheng@amlogic.com>
Change-Id: Ie7a142a739f8928b34dd1904176786f8664d6f18
2023-04-21 13:52:33 +09:00
renjiang.han
49eba5bef4 ppmgr: rotate to exit with garbage. [1/1]
PD#SWPL-35488

Problem:
rotate to exit with garbage.

Solution:
after unreg is over, the buffer of ppmgr is released.

Verify:
on X301

Change-Id: I40cd59db0dee442fde034ccfb1c3f1afe86eb3ff
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2023-04-21 13:52:33 +09:00
Cao Jian
af20988661 osd: use viu2 logo output size for viu1 mode switch [1/1]
PD#SWPL-34685

Problem:
for dual logo, if viu1 interface(such as hdmi) is unplugged when booting
the viu2 display device will be used for viu1 after booting

Solution:
use viu2 logo output size for viu1 mode switch

Verify:
on sm1

Change-Id: I90819039fe46edc33d93d0114bdadb4c0de97b1e
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2023-04-21 13:52:33 +09:00
“maolin.zhou”
1c4c10f09e tsync: apts lookup failed because interpolate calc method invalid [1/1]
PD#SWPL-31520

Problem:
Because interpolate threshold setting is too small, this will lead to
failure of using the interpolate calculation method to look up right
audio pts.

Solution:
Increase the threshold of the apts interpolate value

Verify:
U212

Change-Id: I30d4ad7085f4774d932acf557784ffbb85169afb
Signed-off-by: maolin.zhou <maolin.zhou@amlogic.com>
2023-04-21 13:52:33 +09:00
jintao xu
f86181dd9d ionvideo: use alloc canvas [1/1]
PD#SWPL-28070

Problem:
ionvideo use ppmgr canvas

Solution:
ionvideo use alloc canvas

Verify:
T962X2-X301

Change-Id: Ic0f0f39eaeb129c4a5449b795dcb367964073275
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-04-21 13:52:33 +09:00
Zongdong Jiao
2c8a794002 hdmitx: fix wrong color under 480i/576i, Y422 [1/1]
PD#SWPL-31602

Problem:
Lack y422 setting for 480i/576i

Solution:
Add y422 setting for 480i/576i

Verify:
SM1/Newton

Change-Id: I3a1b766fc3e87dc70592cb3c3c4db8527ce9037d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2023-04-21 13:52:33 +09:00
Pengcheng Chen
f7c31b27d8 osd: osd not divide when format RGBX [1/1]
PD#SWPL-32340

Problem:
osd display abnormal when layer is premult_en and rgbx

Solution:
osd not divide when format RGBX

Verify:
u215

Change-Id: Icac55eddd3b5ca47350a585a377d2a54e3e5b0b1
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-04-21 13:52:33 +09:00
Zhengrong.Zhu
5bd85810ae hdmitx: In HDMI2.0 certification test, cannot be switched to 420 [1/1]
PD#SWPL-25446

Problem:
In the empty capmap processing, create the bitmap errorly.

Solution:
In the empty capmap processing, modify the code about the bitmap.

Verify:
Verify on the board of U212

Change-Id: I26d4d07692557c8d6b0df0c984282f81e13ab6c4
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
2023-04-21 13:52:33 +09:00
Zongdong Jiao
df12ca3fee hdmitx: need to support 1080i mode for DVI case [1/1]
PD#SWPL-23446

Problem:
The HDMI ATC Lab requires to support 1080i mode for DVI case

Solution:
Add 1080i mode for DVI case

Verify:
G12

Change-Id: I9285a9669176793e55a6f0fe8007702b4c2f239f
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2023-04-21 13:52:33 +09:00
Zongdong Jiao
8696ec962f hdmitx: remove DDC glitch filter in plugout [1/1]
PD#SWPL-22926

Problem:
hdcp_tx22 may still work at the beginning of plugout, and reset
DDC glitch filter may hold SDA as low

Solution:
Remove DDC glitch filter in plugout

Verify:
sm1

Change-Id: Ifdc760f8246ee38ab2525835be5d29fd37cdfc7c
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2023-04-21 13:52:33 +09:00
Zongdong Jiao
8b50f64bd3 hdmitx: resend scdc/div40 in probe stage [1/1]
PD#SWPL-25274

Problem:
The TV and mbox may power up simutanously. If the uboot output
4k 4.5G or 6G signal, it also send the SCDC/DIV40, but TV may
discard DIV40 during itself bootup. And next TV will generate
the HPD, but mbox may discard this HPD during the probe stage.
So TV may display nothing, while mbox still output normally.

Solution:
Resend scdc/div40 in probe stage

Verify:
G12

Change-Id: I3276889541596b42acc6d0e05a48953a4e9a63b1
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2023-04-21 13:52:33 +09:00
Zongdong Jiao
d8544983eb hdmitx: add hdcp limitation [1/1]
PD#SWPL-24787

Problem:
For some type's chip, there is no 4k output, and there
will no need the hdcp22

Solution:
Add hdcp limitation

Verify:
805x/y

Change-Id: I36bf7b89d614a738bfca2d5c50a14d2355063792
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2023-04-21 13:52:33 +09:00
changqing.gao
10339a40a3 config: remove unused configs on ref-board [1/1]
PD#SWPL-27983

Problem:
code size of kernel is too large

Solution:
remove unused but default enabled configs for refernce-board
merge from:a3242b3096d5b9423105e2695723244e7edee433

Verify:
ac214

Change-Id: I9b66178acf67971c0144c4b7141d676866d7b65a
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2023-04-21 13:52:32 +09:00
Tao Zeng
c97cac5c71 config: remove unused configs on ref-board [1/1]
PD#SWPL-27983

Problem:
code size of kernel is too large

Solution:
remove unused but default enabled configs for refernce-board
code size comparison(base on ARMv7):
------------------------------------------
             |   before(KB)  |   after(KB)
------------------------------------------
kernel code: |    14336      |   11456
rwdata:      |     1352      |    1195
rodata:      |     5144      |    4560
init:        |     1024      |    1024
bss:         |     1379      |    1327
------------------------------------------
summary:     |    22211      |   18538
------------------------------------------

This change can save about 3.6MB kernel code size

Verify:
x301

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: Iafc4b2a2b8dc55a42fbee197cc7272fd2c476cec
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2023-04-21 13:52:32 +09:00
long.yu
351c78def9 emmc: save clock reg after cali failure [1/1]
PD#SWPL-30974

Problem:
don't need to save the value of
the Clock register after a calibration failure

Solution:
save clock register

Verify:
txl

Change-Id: I79799967ee3417600df960492a94f868427effb2
Signed-off-by: long.yu <long.yu@amlogic.com>
2023-04-21 13:52:32 +09:00
Nanxin Qin
4be10acc4e media: fixed issue of fastplay mode. [1/2]
PD#SWPL-30672

Problem:
1. echo 1 > /sys/class/codec_mm/fastplay_enable
fail with single mode playback on arch 32bit.

2. add codec_mm_memset to avoid vmap fail.

Solution:
fixed issue of reserve memory alloc from CMA.

Verify:
u212

Change-Id: I8823427dfde16d1811132d11c8bab0fe71f1d641
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2023-04-21 13:52:32 +09:00
Chris
6179a9c421 ODROID-N2/N2L: Fill uuid if not exists.
If uuid is empty, it will be replaced by CPU id.

Change-Id: Iae971a089bb317817574eb26119c931dbbc7856c
2022-10-12 12:42:20 +09:00
Chris
d07dda58d2 ODROID-COMMON: Fix not to display recovery screen.
Change-Id: I3e7a341f182b793784d8870956eae1d30d46921e
2022-07-20 12:32:35 +09:00
ckkim
fa571b1da5 ODROID-COMMON:UART minimum baud rate modify(110).
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: Iad06bdf188ac4c7c1184ffb93dccbb5bc7c334bf
2022-07-19 16:51:32 +09:00
Chris
62633eabb8 ODROID-COMMON:VU7C EDID modify. Display Product name : HK_VU7C
Change-Id: I7528b1a655ce385cc5f0fc3a55f4e4d1a08fd830
2022-03-15 09:22:36 +09:00
Chris
382003407b ODROID-COMMON:Add LT8619C HDMI to LVDS converter driver
Change-Id: I387b9ca86b0f3ec34f3da6d82ab9d57dadf8e84b
2022-03-15 09:21:07 +09:00