Commit Graph

14 Commits

Author SHA1 Message Date
Jianxin Pan 11155146ab zapper: remove unused code of media module. [1/1]
PD#SWPL-116862

Problem:
media module memory optimization.

Solution:
disable the unused code for zapper.
reduce vmalloc used size from 17324k to 12556k.

Verify:
t215.

Test:
play video normally.

Change-Id: Iaa4c95c6641d76f80a11493c5c84f624cdac6424
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2023-04-27 21:24:07 -07:00
binqi zhang ba45af3f5b ion: fix alloc error & warning log [1/1]
PD#SWPL-118477

Problem:
A lot of alloc fail log when running cts

Solution:
Pick change a64fdb8 from kernel 5.4

Verify:
verify on R T5M

Change-Id: I4b8418df06cbba4fe1393af5a46080a9d3b7526b
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
2023-04-18 02:12:13 -07:00
Dezhi Kong be7cc61fb6 uvm: add valhall support for t5m [1/3]
PD#SWPL-113559

Problem:
valhall don't support lazy map process
t5m don't support video screencap
cts accuracy will fail on t5m

Solution:
add valhall support

Verify:
T5M

Change-Id: I3ade8ff97aad9d9cb03286ed7c0a788d1a640317
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2023-03-29 00:13:06 -07:00
Wanwei Jiang 355c200523 cma: compatible with common14-5.15 [1/1]
PD#SWPL-109858

Problem:
the interface of function cma_alloc change

Solution:
modify it to compatible with common14-5.15

Verify:
sc2

Test:
bring up to home

Change-Id: I6edac5d1bcc17de4f0edabdb5b254debef592d72
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-02-23 05:46:08 -08:00
Ao Xu fc37c31be0 drm: fix emulated fbdev compile issue [1/1]
PD#SWPL-99839

Problem:
5.15 dmabuf change to dmaheap
5.15 ion change to amlogic private driver

Solution:
fix emulated fbdev compile issue

Verify:
sc2-ah212

Test:
DRM-OSD-26

Change-Id: I62e1712644856e5b7485845cedf2f33055129fff
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2022-12-28 00:39:23 -08:00
Jianxiong Pan 84db0bfa95 gki: not export cma_mmu_op() func to meet gki requirements. [1/3]
PD#SWPL-94445

Problem:
the system cannot export new func for ko.

Solution:
not export cma_mmu_op() func.

Verify:
sc2_a212.

Change-Id: I8e146339f51838cc004739af77496111152df9ca
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-10-01 00:43:53 +08:00
Yongjie Zhu 7843125ae8 ion: secure_ion alloc protect [1/1]
PD#SWPL-89810

Problem:
secure ion_alloc crash

Solution:
add secure_ion flag check

Verify:
sc2 kernel5.15

Change-Id: Id82646b6e37e70797957852dbcb77b4ece9ad16e
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2022-09-07 20:06:42 +08:00
shipeng.sun 66a6d829f7 dmabuf: Support dmabuf manager implement v3 [1/1]
PD#SWPL-89594

Problem:
Support dmabuf manager implement v3

Solution:
Support dmabuf manager implement v3, sync some code from
kernel 54.

Verify:
ohm

Change-Id: Ifd46d14c6de1514306f21a0ff10f21565f1600ca
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2022-09-07 20:06:42 +08:00
Yongjie Zhu 6492b8d054 ion: kernel5.15 add cache flush after alloc [1/1]
PD#SWPL-78227

Problem:
add cache flush after allocation ion memory

Solution:
add cache flush after allocation ion memory

Verify:
sc2 kernel5.15

Change-Id: Iff15ea8a8a6d2e92511f0bb265bcea6408434b64
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2022-06-10 15:41:12 +08:00
yujun.zhang 54bd40dae9 drm: add drm driver support [1/1]
PD#SWPL-82197

Problem:
no drm driver support

Solution:
add drm driver support

Verify:
ap222

Change-Id: I331a75afe6087278ebf9de27ae36a346539d09a8
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2022-06-07 04:47:30 -07:00
Yongjie Zhu 78e99bfc22 ion: move ion.h to include [1/1]
PD#SWPL-78227

Problem:
drm driver need use ion function

Solution:
move ion.h to common_driver/include

Verify:
s4d

Change-Id: I06b800c9394a3337c7e44363768687ed917110f2
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2022-05-29 19:28:59 -07:00
wanwei.jiang af26eeaf9d media: enable the same config as kernel 5.4 [1/1]
PD#SWPL-77521

Problem:
enable the same config as kernel 5.4

Solution:
enable the same config as kernel 5.4

Verify:
s4d

Change-Id: I73f6eb8a896956337503477f32c218fe465cddda
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-04-11 20:57:12 +08:00
wanwei.jiang 15656eb157 media: porting media driver [1/1]
PD#SWPL-77521

Problem:
porting media driver from kernel 5.4

Solution:
porting media driver from kernel 5.4

Verify:
s4d and C2 AF400

Change-Id: I63bb8316e271db8b7d0e6e524399ebde9a1456a6
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-04-07 22:56:37 +08:00
Yongjie Zhu d29984fd7c ion: add ion driver for kernel5.15 [1/1]
PD#SWPL-72034

Problem:
kernel5.15 c2 need ion driver

Solution:
add ion driver for kernel5.15

Verify:
s4d_ap222

Change-Id: I605871c76538364d3687d4ac25fbaf371f6711f8
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2022-03-10 03:25:52 -07:00