Commit Graph

214 Commits

Author SHA1 Message Date
yao zhang1 a24ea130f9 bootup: Optimize k5.15 boot log. [1/1]
PD#SWPL-142042

Problem:
Too many logs affect performance.

Solution:
Optimize boot log.

Verify:
sc2

Test:
DRM-OSD-2

Change-Id: I5a9435c350074206226a164fdf3f2eb64e4683a1
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2023-10-30 18:59:09 +08:00
Pengcheng Chen 97d2559438 vpp: add pre_vsync support [1/1]
PD#SWPL-136709

Problem:
pre_vsync rdma not work

Solution:
1. fix pre vsync rdma not work
2. add pre_vsync video process

Verify:
t3x_revb

Change-Id: Idea48258140934374b2be6e951d7128f3081604f
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-10-09 20:11:31 +08:00
Jianxiong Pan 1f6599c5fd zapper: rename CONFIG_AMLOGIC_ZAPPER_CUT_C1A. [1/1]
PD#SWPL-140594

Problem:
rename CONFIG_AMLOGIC_ZAPPER_C1A.

Solution:
CONFIG_AMLOGIC_ZAPPER_CUT_C1A.

Verify:
build pass.

Test:
run on s1a board normally.

Change-Id: I3a8ab8d81af2c4d14b51c117ac16d75f3980adac
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-10-09 20:08:39 +08:00
zhenteng.tian f4ec3d9000 uvm: memory leak when local play switch. [1/1]
PD#SWPL-141651

Problem:
Dmabuf don't put when check error in get vframe.

Solution:
Add put flow in get vframe.

Verify:
T3X

Change-Id: I095b15d8af3d54ba2e54c90021e1e12ca2db53c2
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2023-10-09 20:06:39 +08:00
Tianhua Sun 649152e669 uvm: adjust get DV type from vframe [1/1]
PD#SWPL-140007

Problem:
cannot get DV type from vframe->signal_type

Solution:
vframe->discard_dv_data set to flase means this video is DV

Verify:
tyson

Change-Id: I7da204885583481db7148919368a4d37101b1718
Signed-off-by: Tianhua Sun <tianhua.sun@amlogic.com>
2023-10-07 17:35:03 +08:00
lele xiang c2247ff904 codec_mm: CF1 codec_mm optimization for slot centralization. [1/1]
PD#SWPL-138577

Problem:
codec_mm optimization for slot centralization.

Solution:
When a large number of scatter buffers are not used,
pages replacement is carried out so that
the corresponding slot can be released

Verify:
ohm

Change-Id: Ia2188f4afae8811230278e0a779cb583a92185d2
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2023-09-25 21:39:38 +08:00
Pengcheng Chen 4495b80f72 rdma: add rdma debug trace [1/1]
PD#SWPL-140345

Problem:
add rdma debug trace

Solution:
add rdma debug trace

Verify:
t3x

Change-Id: I9d7206015da081a593ca644451878b3864a45584
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-09-19 20:09:48 +08:00
Nanxin Qin a2da5907e0 media: CF1 add feature for dmabuf status dumping. [1/1]
PD#SWPL-137630

Problem:
codec mm adds the interface for dmabuf status dumping.

Solution:
The dmabuf infos interface is mainly used to view
the status of dmabuf and track the status that dmabuf
is referenced by a process. It can provide a convenient
way for memory leakage and find the leaking process.

Verify:
ohm

Change-Id: Ib2acf59ae1cc52e5b21c19afc1053fdf3b5e4bd7
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2023-09-14 13:29:12 +08:00
lele xiang ed9ade9e33 codec_mm: CF1 adjust the scatter alloc size and slot size. [1/1]
PD#SWPL-138573

Problem:
codec mm scatter allocation optimization.

Solution:
(1)adjust the size of scatter alloc unit to 512kb.
(2)adjust the slot size of scatter to 8MB

Verify:
ohm

Change-Id: Ia5d34bc1b6f12faa25f4949df5e0552e227c43ad
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2023-09-13 23:05:03 +08:00
yuhua.lin 412b6658e5 vpp: fix vpp coverity issue [1/1]
PD#SWPL-136244

Problem:
fix vpp coverity issue

Solution:
compile it

Verify:
t7c

Change-Id: I67b861a24a3b55dd753275d642f8fc0e8ccb79a7
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-09-13 23:05:03 +08:00
Hao Shi 03cc914af2 codec_mm: free unused tvp_pool when mem not enough [1/1]
PD#SWPL-121008

Problem:
Codec_mm TVP_POOL Timely Release

Solution:
release unused tvp_pool when codec mem not enough

Verify:
SC2

Change-Id: If4078a5dd711f68086c62415fda9105423339438
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2023-09-13 22:31:06 +08:00
Jianxiong Pan 41f73dbdb3 mm: fix the multi-core startup crash problem caused by tvp. [1/1]
PD#SWPL-121825

Problem:
system crash when multi-core startup.

Solution:
alloc memory before clear page table.

Verify:
ohm.

Change-Id: If30f7b4163d6ddbe5eaf816b1ff7c3530c3601e9
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-09-13 20:37:27 +08:00
Pengcheng Chen 65af3fc7b5 vpp: disable rdma lut_dma suspend/resume [1/1]
PD#SWPL-136331

Problem:
disable rdma lut_dma suspend/resume

Solution:
disable rdma lut_dma suspend/resume

Verify:
ohm, t5m

Change-Id: I42aa8f82e7f96600c9095f4d5453eb3f6cae57f6
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-09-13 16:03:42 +08:00
qiyao.zhou 9b286b1012 uvm: panic when dump vf for security play. [1/1]
PD#SWPL-137562

Problem:
CPU don't access security buf for dump.

Solution:
Return directly when dump for security play.

Verify:
s5

Change-Id: Ia2f45e96c697ffe0e12529debfe2187b54237ee5
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-09-13 15:14:51 +08:00
Hangyu Li e95b3a850f tee: rename AML_TEE,AML_OPTEE to AMLOGIC_AMLTEE,AMLOGIC_OPTEE [1/1]
PD#SWPL-136287

Problem:
The configuration name in kernel 5.15 is starting with "AMLOGIC_",
in order to unify configuration name, modify AML_TEE,AML_OPTEE to
AMLOGIC_AMLTEE,AMLOGIC_OPTEE.

Solution:
rename AMLTEE,AMLOGIC_OPTEE to AMLOGIC_AMLTEE,AMLOGIC_OPTEE

Verify:
Android + Kernel 5.15

Change-Id: I25be69bb990b7e86026790a9a64f64a473e9adfc
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-09-13 15:09:04 +08:00
Jian Cao a9a44e3236 vpp: video lowlatency optimize [1/1]
PD#SWPL-132066

Problem:
need to support video lowlatency

Solution:
video lowlatency optimize

Verify:
s1a-bg201

Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Change-Id: Ie8a6f4c72314f9acf7202e7d86721403842d5499
2023-09-13 15:08:05 +08:00
kun.liu e41819e2d5 decoder: CF2 enrich information of not enough memory. [1/1]
PD#SWPL-132331

Problem:
Calling the codec_mm_dump function cannot fully print log information

Solution:
1.Optimize printing with not enough code mm
2.Adjust the codec mm printing method to fully output logs

Verify:
ah212

Change-Id: I969ba16bb4f22f07e8e59fde1e560cb459397504
Signed-off-by: kun.liu <kun.liu@amlogic.com>
2023-09-13 15:07:04 +08:00
binqi zhang c1e16793a9 meson-cma: add cache sync after allocation [1/1]
PD#SWPL-119274

Problem:
cma buffer has cache problem for the cts case

Solution:
add cache sync after allocation

Verify:
AndroidU ohm

Change-Id: I017f44108ac6f437fd963ef020159289fc848a9a
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
2023-09-05 20:47:29 +08:00
miaohong chen 962cb42a2c v4ldec: CF1 dma buffer alloc delay for interlaced stream. [1/3]
PD#SWPL-119524

Problem:
Due to the post-positioning of di,
the vb2 buffer is directly thrown from the decoder to the upper layer.
Since each vb2 buffer can only be returned by the upper layer,
it can be thrown to the upper layer again. For interlaced streams,
two fields need to be output, so the second field cannot be output.

Solution:
The capture dma buffer is allocated in the decoder.
uvm only allocates an empty shell,
which is actually allocated by the decoder and replaces the dma buffer.

Verify:
ohm

Change-Id: Ic93fc379ad35d873ed3ef2bb0c5312254a08dee5
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
2023-08-20 23:03:36 -07:00
Jianxiong Pan b75016a67d zapper: remove c1a relate code. [1/1]
PD#SWPL-126879

Problem:
memory optimization.

Solution:
remove c1a relate code.

Verify:
s1a.

Test:
run on s1a board normally.

Change-Id: Idbd24a529666278295724f26d10f1a720877ca6a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-08-15 20:09:03 -07:00
hai.cao 7aaf4abf2c vpu: after resume vpu clk be set to 400MHz [1/1]
PD#SWPL-135293

Problem:
after resume vpu clk be set to 400MHz

Solution:
remove zapper cut config

Verify:
S1A

Change-Id: I07c8ee77a42ad497579be996d595ad60da4963ef
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-08-15 20:08:55 -07:00
hai.cao a22c87c260 canvas: for drm dynamic alloc [1/1]
PD#SWPL-133418

Problem:
drm alloc error

Solution:
reduce display and osd canvas

Verify:
s1a

Change-Id: I72c6c3e52260efbc56efdc20376d12c90d853f7b
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-08-15 10:37:50 +08:00
hai.cao fe3d2aa974 canvas: change canvas max number [1/1]
PD#SWPL-133418

Problem:
di dynamic alloc canvas_id over 128

Solution:
chang canvas max number

Verify:
s1a

Change-Id: I0d9f594d65d80fd09133edce415c857160b48ad6
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-08-15 10:37:50 +08:00
hai.cao 2a72aa2c26 vpu: vdec power down by video [1/1]
PD#SWPL-133158

Problem:
vdec power down by video

Solution:
fix it

Verify:
s1a

Change-Id: I4f6e5b75f3f9c1f8e3ce483b22bdfae732a9a3c3
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-08-15 10:36:50 +08:00
hai.cao c800e71fc2 canvas: s1a canvas bring up [1/1]
PD#SWPL-133418

Problem:
s1a canvas bring up

Solution:
config canvas

Verify:
s1a

Change-Id: Iedc98335eabd9709f52ccc5aca7e3ac79bd56595
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-08-15 10:36:50 +08:00
yao zhang1 3a96c7d87c Bringup: Fixed vpu probe fail [1/1]
PD#SWPL-131201

Problem:
Fixed vpu probe fail.

Solution:
Fixed vpu probe fail.

Verify:
s1a ptm

Change-Id: If64520e1592a91b93f0ec93a5ef4b8c878774194
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2023-08-15 10:36:49 +08:00
yuhua.lin b50e15aa46 ge2d: s1a ge2d bring up [1/1]
PD#SWPL-120807

Problem:
s1a ge2d bring up

Solution:
complete it

Verify:
ptm

Change-Id: I6b1482091d38170a10e7b7bc2af4b0f2bf7c59b1
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-08-15 10:36:49 +08:00
shihong.zheng 980d4b4001 s1a: s1a decoder bringup. [1/1]
PD#SWPL-120725

Problem:
s1a decoder bringup

Solution:
s1a decoder dts config

Verify:
pxp

Change-Id: I6c67e6437185ee60fb9f489ca890380369d35fb8
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2023-08-15 10:36:48 +08:00
hai.cao 0a69aa57c0 vpu: add vpu support [1/1]
PD#SWPL-120800

Problem:
add vpu support

Solution:
add vpu support

Verify:
S1A

Change-Id: I47c2bb830cc2e98d411dcf363b015a68b02d7986
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-08-15 10:36:03 +08:00
Tianhua Sun 66ab66772b uvm: add api to get timestamp from vframe [2/2]
PD#SWPL-132413

Problem:
need add api to get timestamp from vframe

Solution:
add api to get timestamp from vframe

Verify:
ohm

Change-Id: I1da571134ec677d2129caa919da11ad116ddc013
Signed-off-by: Tianhua Sun <tianhua.sun@amlogic.com>
2023-08-10 21:48:37 -07:00
Dezhi Kong 381adca16d uvm: add size check for 10bit [1/1]
PD#SWPL-132781

Problem:
memory trasngression access

Solution:
add size check for 10bit
force to 8bit process when check fail

Verify:
sc2-android-u

Change-Id: I601d0da54490d88ab60f0c1a6041fab261637de8
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2023-08-07 07:58:41 -07:00
Jian Cao a41cd80758 ge2d: correct the addr of blending layer [1/1]
PD#SWPL-133824

Problem:
the splash screen problem in the project test

Solution:
correct the addr of blending layer

Verify:
t7

Change-Id: Icd96b0256dc1b96845a4a06ad64e3e718ca870ad
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-07-30 23:59:04 -07:00
qiyao.zhou dd87895c19 uvm: add config for aipq&aisr. [2/3]
PD#SWPL-130224

Problem:
aipq/aisr config need match n2m status.

Solution:
add config for aipq&aisr according to n2m status.

Verify:
t3x

Change-Id: I1707684be85e177dd3055bcb89b855737c71c9e5
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-07-30 23:58:45 -07:00
shipeng.sun abffa8e6d1 dmabuf_manage: CB1 register channel info manage secmem resource [2/2]
PD#SWPL-133382

Problem:
register channel info manage secmem resource avoid codec2 service
or client crash secmem session doesn't release.

Solution:
register channel info manage secmem resource avoid codec2 service
or client crash secmem session doesn't release.

Verify:
S905X4

Change-Id: Iebe5d3cb4a404e6ce42f1274723e24cf1a829a32
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2023-07-26 00:11:51 -07:00
lele xiang 9e14a48cce codec_mm: CF1 Print index when alloc and release memory [1/1]
PD#SWPL-132333

Problem:
Print codec_mm alloc and release index

Solution:
Print codec_mm alloc and release index.

Verify:
sc2

Change-Id: I8e1d020ada122f12fb8eba3f464be9a933fb20fa
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2023-07-24 22:18:30 -07:00
Pengcheng Chen 536f0b28ab vpp: fix vpu gp1 clk disable/enable issue [1/1]
PD#SWPL-130599

Problem:
add vpu clk 744M/768M support

Solution:
1.remove gp1 clk enable when vpu probe
2.add vpu/gp1 clk disable/enable ctrl logic

Verify:
t3x

Change-Id: I2291e580ec64e53dbbe4db1683bd7ad4e84cc94b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-07-21 05:11:11 -07:00
qiyao.zhou 4e1c978389 vicp: add clock config in vicp. [1/1]
PD#SWPL-123979

Problem:
T3X suspend power dissipation for VICP.

Solution:
T3X suspend power dissipation for VICP.

Verify:
t3x

Change-Id: I28c8603f924627d5eb2be99b888d4a0f51286631
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-07-21 05:11:03 -07:00
yao liu e58b2f63bf amdv: hw5 idk crash in ko [1/1]
PD#SWPL-132351

Problem:
Ctx memory out of bounds

Solution:
allocate extra memory for ctx

Verify:
t3x

Change-Id: Ifdc3527b125c071880f7fc700f664a0560286a34
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-07-21 01:10:11 -07:00
shipeng.sun 9b4080fc3a dmabuf_manage: use secmem v2 implement secure vdec heap [1/3]
PD#SWPL-129785

Problem:
use secmem v2 implement secure vdec heap

Solution:
use secmem v2 implement secure vdec heap.

Verify:
sc2

Change-Id: If81debfd32ca00e2cf361c094e71392677d042de
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2023-07-20 05:12:22 -07:00
Hangyu Li bebc2f465a dts: config secure_vdec_reserved dts node [1/1]
PD#SWPL-132425

Problem:
1.secure_vdec_reserved memory should be reserved as no-map.
2.in some devices secure_vdec_reserved may exceed 4G.
3.tee_register_mem() in codec_mm.c should not force parameter as u32 type.

Solution:
1.add no-map attribute for secure_vdec_reserved dts node.
2.limit secure_vdec_reserved reserved in 0x0-0xe0000000 for some devices.
3.remove u32 type casting when call tee_register_mem().

Verify:
Android R + kernel5.15

Change-Id: Ife8cac2c4a4821a310d998766e69677c6eb2984e
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-07-19 21:22:55 -07:00
Dezhi Kong 01ae8c4408 uvm: sync size with gralloc [1/1]
PD#SWPL-128476

Problem:
uvm size calc sync

Solution:
uvm size calc sync from gralloc

Verify:
T5M

Change-Id: Ibcf2ffdcfd96525046c9aac009f8f81469c8a6c9
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2023-07-19 05:04:05 -07:00
Pengcheng Chen 8fbb0dd6ef vpp: add vpu clk 744M/768M support [1/1]
PD#SWPL-130599

Problem:
add vpu clk 744M/768M support

Solution:
1.add vpu clk 744M/768M support
2.default clk set by dts, current is 800M

Verify:
t3x

Change-Id: Ic423cbda5279e2c23e207a81ae62e8c8431ac8f1
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-07-18 01:50:22 -07:00
chen.xu 450d99e0fe aicolor: add patch for T3X aicolor feature bring up. [1/1]
PD#SWPL-130223

Problem:
T3X need support aicolor.

Solution:
uvm need support ai color.

Verify:
T3X

Change-Id: Ie09cb131e3e01d811fdb4ea880a8164d32c408ec
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-07-13 21:16:44 -07:00
chen.xu 7a7712fe26 aicolor: T3X aicolor feature bring up. [3/3]
PD#SWPL-130223

Problem:
T3X need support aicolor.

Solution:
uvm need support ai color.

Verify:
T3X

Change-Id: Ieb9d92a29961c98db4b484d4075a4bd693de48e8
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-07-13 01:16:08 -07:00
binqi zhang 48351c3c72 UVM: remove hwc flag when do find hook mode [1/1]
PD#SWPL-130768

Problem:
hwc flag will lead to find hook mode fail

Solution:
remove hwc flag when do find hook mode

Verify:
verify on S T5M

Change-Id: I4dc65e6a1da670c3243e3362fc52a9037d167a9e
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
2023-07-11 03:08:58 -07:00
Hao Shi 817f86d43c scatter: add scatter watermark [1/1]
PD#SWPL-120929

Problem:
a new scatter watermark

Solution:
set a minimum size for cma, and calculate
the remaining cma size as the maximum size
that can be allocated by scatter.

Verify:
sc2

Signed-off-by: Hao Shi <hao.shi@amlogic.com>
Change-Id: I56e251c783d19795cc87ce2831c134863ed3408e
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2023-07-07 06:54:38 -07:00
yuhua.lin 98e9db328a c1: add canvas/ge2d/gdc/codec_io support for c1 [1/1]
PD#SWPL-121227

Problem:
add canvas/ge2d/gdc/codec_io support for c1

Solution:
complete it

Verify:
c1

Change-Id: Ie1d593a5fd910d38844ebf2f0d3bcc32a5627779
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-07-07 14:28:27 +08:00
zehong.luo c901408e3e txhd2: reset reg addr offset need to change. [1/1]
PD#SWPL-127145

Problem:
txhd2 reset reg addr use error

Solution:
txhd2 reset reg addr need add offset to calculate correct value

Verify:
be311

Change-Id: I6dcf59731deff97571ecb7936926f12f06739941
Signed-off-by: zehong.luo <zehong.luo@amlogic.com>
2023-06-29 10:38:53 +08:00
hai.cao 13bdfaa5a9 codec_io: add codec_io support [1/1]
PD#SWPL-119965

Problem:
add codec_io rdma canvas support

Solution:
add these support

Verify:
txhd2

Change-Id: I9a6ca610f52d75ad105a0563cd079d2d5659d1dd
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-06-29 10:33:58 +08:00
hai.cao b1db8cc014 vpu: add vpu support [1/1]
PD#SWPL-119963

Problem:
add vpu support

Solution:
add vpu support

Verify:
TXHD2

Change-Id: Iee1a83e075125ef00e494157c253c034f7e84adb
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-06-29 10:33:57 +08:00