Commit Graph

73 Commits

Author SHA1 Message Date
yuhua.lin ca591b404a vpp: add c3 video support [1/1]
PD#SWPL-74316

Problem:
add video_sink support

Solution:
add this support

Verify:
c3

Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
Change-Id: Ib5b5517a680f50f1d702ed59313a18fd6c9fe9e0
2022-05-31 14:36:14 +08:00
yuhua.lin 254fb69f91 osd: add c3 osd support [1/1]
PD#SWPL-74294

Problem:
need add c3 osd support

Solution:
complete it

Verify:
c3

Change-Id: I016d207263f1c374f890e93b782e723b2a28aab5
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-05-31 11:23:36 +08:00
yuhua.lin a6a5867b98 codec_io: c3 codec_io dts setting [1/1]
PD#SWPL-79103

Problem:
need modify c3 codec_io dts setting

Solution:
complete it

Verify:
s4d

Change-Id: I5980b719e33a1bc626ee8c09e7e01880be9115c7
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-05-31 11:16:20 +08:00
Jian Cao c570ac73a4 ge2d: add dma queue support [1/1]
PD#SWPL-74295

Problem:
implete the new feature driver

Solution:
add this support

Verify:
C3-PTM

Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Change-Id: Ica41e273ebe08ad6c28b1f2af74839ab667d57bc
2022-05-31 10:39:15 +08: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
hao.shi 04b1f3a147 register: dos_regiters managemant debug. [1/1]
PD#SWPL-78946

Problem:
Dosbus registers new management

Solution:
Dosbus registers new management

Verify:
s4

Signed-off-by: hao.shi <hao.shi@amlogic.com>
Change-Id: Id729a804b336c008cf378303b79f55bb3e245388
2022-05-29 19:10:18 -07:00
chuangcheng peng 455212b1b9 dvb: add dvb module [1/1]
PD#SWPL-77327

Problem:
need dvb feature

Solution:
add dvb feature

Verify:
compile pass, no verify

Change-Id: I6ae02c2685a09b31a53926ef341c1dbd65b98241
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2022-05-15 22:41:36 -07:00
Bichao Zheng 0d4c1967ad spinand: add spi nand support [1/1]
PD#SWPL-77466

Problem:
need to support spi nand

Solution:
1. add spi nand support
2. add spifc v2 support

Verify:
A1

Change-Id: I183e52931a3b87b7d13ce6b7d930c2e16a6e0a25
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2022-05-12 17:50:20 +08:00
chuangcheng peng 5c2db001ae smc: bringup [1/1]
PD#SWPL-77328

Problem:
bringup

Solution:
bringup

Verify:
not verified

Change-Id: I958f77eb2cd5629dd5ea2643d19e3a6344ae0cc7
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2022-05-10 02:11:08 -07:00
Zhuo Wang 486030f422 eth: gki bringup [2/2]
PD#SWPL-77313

Problem:
bringup eth

Solution:
bringup eth

Verify:
Verified on AP222_S905Y4#005

Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
Change-Id: I39ce9e905790c8a62ce8b5705a6443e0c56c81b5
2022-04-26 05:03:35 -07:00
Tao Zeng aa59c4f6ac mm: enable vmap stack on 32bit arch [2/2]
PD#SWPL-70022

Problem:
vmap stack is not enabled on 32bit arm arch

Solution:
Enable it

Verify:
local

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: Ie3a9c349c737ec4171c0fe31d5fd201b2a195c63
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2022-04-14 11:52:09 +08: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
yuhua.lin 1c6c47f42a video_sink: add video_sink support [1/1]
PD#SWPL-73628

Problem:
add video_sink support

Solution:
add this support

Verify:
s4d

Change-Id: I2f2c6ce16ae33f25fcca02ecb35cf282b023c6a8
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-03-31 05:10:36 -07:00
yuhua.lin 5b18de53bf osd: add osd support [1/1]
PD#SWPL-73591

Problem:
add osd support

Solution:
add this support

Verify:
s4d

Change-Id: Iac032d2f5081fe2a41b00da492edf99ec8d37703
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-03-28 19:09:48 +08:00
yuhua.lin 331a2effc1 rdma: add rdma support [1/1]
PD#SWPL-73592

Problem:
add rdma support

Solution:
add this support

Verify:
s4d

Change-Id: I4414d4e3280d4db4c88408415aee940a422b49b8
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-03-28 18:24:46 +08:00
hao.shi 658c6c6125 decoder: add some headers to support media_modules [1/1]
PD#SWPL-72272

Problem:
some define is needed by media_modules

Solution:
add headers that needed

Verify:
s4

Change-Id: Ic5a24e6879d94c25db16a6328b98b812e94c55b5
Signed-off-by: hao.shi <hao.shi@amlogic.com>
2022-03-25 03:51:18 -07:00
Jianxiong Pan eda3eea39c mm: add watch point module. [2/2]
PD#SWPL-76021

Problem:
need add watch point driver.

Solution:
porting watch point driver.

Verify:
s4_ap222.

Change-Id: Ie4220735d607c8b865209d43f314eaad41a29a9a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-25 03:49:06 -07:00
hao.shi f34460cb00 codec_mm: CF2 codec_mm & vfm [1/1]
PD#SWPL-72686

Problem:
add codec_mm & vfm

Solution:
add codec_mm & vfm

Verify:
s4d

Change-Id: Icecc654eaa7468a17da97d0513adae849651d456
Signed-off-by: hao.shi <hao.shi@amlogic.com>
2022-03-25 01:01:07 -07:00
jiabin.chen dc40ec99c3 wifi: wifi & bt bringup [1/1]
PD#SWPL-72086

Problem:
k5.15 not support wifi bt

Solution:
add wifi bt files

Verify:
c2

Change-Id: I2c003e4e1b8bbf9ea60b184c5070a90101d98eba
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2022-03-24 20:01:34 +08:00
Rong Chen 48bfc73a33 sdio: support sdio reset. [1/1]
PD#SWPL-74441

Problem:
not support sdio reset

Solution:
support reset

Verify:
s4d

Change-Id: Id9f91e492d7394cec0f715c83077e2b7863e53c8
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2022-03-23 02:13:34 -07:00
jian zhou 735dd18642 audio: porting audio driver for s4d [1/1]
PD#SWPL-74630

Problem:
porting audio driver

Solution:
porting audio driver from kernel 5.4

Verify:
s4d

Signed-off-by: jian zhou <jian.zhou@amlogic.com>
Change-Id: I2ba44665f506c42564eea2b5b40f8465a008e876
2022-03-21 06:16:16 -07:00
qinglin.li 99e0de0d10 printk: fix printk length and count Re-add [2/2]
PD#SWPL-70486

Problem:
printk length and count Re-add

Solution:
fix printk length and count Re-add

Verify:
c2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I5ca8b883b4dc931c4d3d61381793fb1917247d23
2022-03-11 01:31:49 -07:00
jian zhou 16215b0bf8 audio: porting amaudio audiodsp audioinfo [1/1]
PD#SWPL-74329

Problem:
porting amaudio audiodsp audioinfo for 5.15

Solution:
porting amaudio audiodsp audioinfo from kernel 5.4

Verify:
s4d and C2 AF400

Change-Id: I2e68d726437802e42dd2da879387955ea471a31c
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2022-03-11 00:18:11 -07:00
Jianxiong Pan 57ba3b1027 mm: arm32: add user fault debug support. [2/2]
PD#SWPL-73676

Problem:
need add user fault function.

Solution:
add user fault debug.

Verify:
local.

Change-Id: Iee06a7ca439673833662f9cc3c83010ad81121a3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-10 00:34:08 -07:00
binbin.wang 01e7c2aee7 PM: C2: Porting pm driver for C2 [1/1]
PD#SWPL-73763

Problem:
Porting pm driver

Solution:
Porting

Verify:
none

Signed-off-by: binbin.wang <binbin.wang@amlogic.com>
Change-Id: I6801f5595a293bdb2e7940d020d7e75397c9b0d8
2022-03-06 19:22:04 -07:00
Jianxiong Pan 1100e5c44e mm: add user fault debug support. [2/2]
PD#SWPL-73676

Problem:
need user fault debug support.

Solution:
add user fault debug support.

Verify:
local.

Change-Id: I3741ef675c174b8e30f352f8d193aab0318cff9a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-07 09:50:41 +08:00
Jianxiong Pan 71008eab74 mm: save wasted memory by slab. [2/2]
PD#SWPL-73422

Problem:
When driver/kernel call kmalloc with large size, memory may waste
if size is not equal to 2^n. For example, driver call kmalloc with
size 129KB, kmalloc will allocate a 256KB memory block to caller.
Then 127kb memory will be wasted if this caller do not free it.

Solution:
Free tail of slab memory if size is not match to 2^n. This change
can save about 900KB memory after boot, and more than 100KB durning
runtime.

Verify:
local.

Change-Id: I19cfbdddc92b1c2050cbc17ea65feb4b01f0445d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-06 18:36:14 -07:00
wanwei.jiang daefdc103d audio: porting audio driver [1/1]
PD#SWPL-72014

Problem:
porting audio driver from kernel5.10

Solution:
porting audio driver from kernel5.10

Verify:
s4d and C2 AF400

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Ie69c274441619925df30ec20f85ae2b36e74bc6e
2022-03-04 11:13:37 +08:00
Mingyen Hung 1e8b4c307a crypto: bringup amlogic crypto driver [1/1]
PD#SWPL-71764

Problem:
Need to bringup amlogic crypto driver for
kernel 5.15.

Solution:
1. Bringup amlogic crypto driver
2. Enable SHA1, DES, and ECB if they are
disabled by default.
3. Merged from 5.4 and 5.10

Verify:
1. Built-in driver on C2_AF400
2. GKI driver on S4D AP_222

Change-Id: I62487e615930070233c3a6b4a41b66edddf6f783
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2022-03-03 04:13:47 -07:00
he.he 4851cd2970 usb: support USB for C2 [1/1]
PD#SWPL-71865

Problem:
support USB for C2

Solution:
support USB for C2

Verify:
C2

Signed-off-by: he.he <he.he@amlogic.com>
Change-Id: I4e9b2823016e1296bf25281a38f69a8fe08e9b22
Signed-off-by: he.he <he.he@amlogic.com>
2022-03-03 01:05:46 -07:00
song.han 296e2ed788 iotrace: support iotrace driver [2/2]
PD#SWPL-71754

Problem:
support iotrace driver

Solution:
support iotrace driver

Verify:
on s4d_ap222 and c2_af400

Change-Id: Iefaa724c118a9310ce1b7121c6685dce580db0d5
Signed-off-by: song.han <song.han@amlogic.com>
2022-03-01 19:56:52 -07:00
wanwei.jiang eb590ede93 freertos: add module to bring cpu1 to linux [1/2]
PD#SWPL-71741

Problem:
add module to bring cpu1 to linux

Solution:
add module to bring cpu1 to linux

Verify:
C2 AF400

Change-Id: Iac78df21a1edc46a158d78339be7bc0d394a658b
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-02-28 05:27:29 -07:00
Jianxiong Pan 5ff1e95368 mm: forward memory reclaim process. [1/2]
PD#SWPL-73189

Problem:
memory reclaim process is usually do when first allocate failed from buddy.
This will cause some process crash especially when memory is low, because
there is not enough time to do reclaim process.

Solution:
try to wake up kswapd process to reclaim memory if free memory is less
than high water mark. After apply this change, free memory is usually
keeps high than high_water mark.

Verify:
local.

Change-Id: I9c5f90bba778aacfe21aacb332ed19ad162b048b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-02-27 23:18:43 -07:00
yuhua.lin 1c432c7b92 gdc: add gdc support [1/1]
PD#SWPL-71875

Problem:
add gdc support

Solution:
add this support

Verify:
C2

Change-Id: I1c8b14ad5693599e538365f6f1e2f8f8dc267a03
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-02-27 19:51:58 -07:00
yuhua.lin ce6e72c033 ge2d: add ge2d support [1/1]
PD#SWPL-71874

Problem:
add ge2d support

Solution:
add this support

Verify:
C2

Change-Id: I3978f4284237104c14d4344f5716daf5963c9b87
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-02-27 19:51:43 -07:00
yuhua.lin e356b87269 canvas: add canvas support [1/1]
PD#SWPL-72032

Problem:
add canvas support

Solution:
add this support

Verify:
C2

Change-Id: Idbe0776fe5edaa2d2bb28a67df9aa94f009915d0
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-02-27 19:51:25 -07:00
yuhua.lin 3dba0c8c3c codec_io: add codec_io support [1/1]
PD#SWPL-72033

Problem:
add codec_io support

Solution:
add this support

Verify:
C2

Change-Id: I3addeef06e249f6c4cfa4ef026826e6368ec801f
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-02-27 19:50:59 -07:00
ziyi a46d66ea37 emmc: 64bit kernel 5.15 C2 (S4d) eMMC high speed(1\1)
PD#SWPL-73048

Problem:
in kernel 5.15,emmc clock is not OK for C2 platform

Solution:
change the clock setting

Verify:
Local

Change-Id: I55820e08e7ba73e1c57e07fa762c237ae5127edb
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2022-02-24 15:26:01 +08:00
wanwei.jiang d99bed68b8 mm: build error [1/1]
PD#SWPL-73109

Problem:
mm build error

Solution:
decoupling header file reference

Verify:
s4d and C2 AF400

Change-Id: Ifa4b45ef2cf71acd728db8eed9bc12ccf2c22733
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-02-24 10:44:15 +08:00
qinglin.li 0e0ad4ca72 printk: printk optimization [2/2]
PD#SWPL-70486

Problem:
printk add cpuid,cur_task,irq etc info.

Solution:
printk add cpuid,cur_task,irq etc info.

Verify:
s4d && c2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I9daa8bf7aeb158230871b4fa7505a6903ab4b32e
2022-02-23 16:57:56 +08:00
Jianxiong Pan ac2fc01c28 mm: add file cache statistic support. [1/1]
PD#SWPL-72350

Problem:
add a tool to list how many memory cache files used in file
cache.
console:/ # cat /proc/filecache

Solution:
porting file cache from 5.4.

Verify:
local.

Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Change-Id: I92420acab7333b75bbb5bca1075d3e401b027fb2
2022-02-22 23:03:03 -07:00
Tao Zeng d31b9dd061 mm: add vmap stack support [2/2]
PD#SWPL-70022

Problem:
No vmap stack support on 5.15

Solution:
Porting it from 5.4

Verify:
local

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: Ie75bedb3072dfd90a5d74b64684c233186aada81

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I78552ad490938c455178e56395ff63e60b62a320
2022-02-22 21:39:53 -07:00
Hanjie Lin 6e13c93fb7 debug_lockup: support c2 compile [1/1]
PD#SWPL-71728

Problem:
support c2 compile

Solution:
support c2 compile

Verify:
s4

Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
Change-Id: Iafbccb16a30a06cf03352ea6e33ebde2f8296511
2022-02-23 10:01:08 +08:00
Hanjie Lin 71de1a49bb debug_lockup: add support [2/2]
PD#SWPL-71728

Problem:
add debug_lockup support

Solution:
add debug_lockup support

Verify:
s4

Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
Change-Id: I578f6c22b8a41aae861871249248618230f18859
2022-02-22 03:18:28 -07:00
Jianxiong Pan d07381ec22 mm: add mem debug support. [1/1]
PD#SWPL-72254

Problem:
no mem debug on kernel5.15.

Solution:
porting mem debug from 5.4.

Verify:
local.

Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Change-Id: Ie625011e90df9203686acbe52997149527a38daa
2022-02-21 22:15:47 -07:00
Tao Zeng f39397f1ec mm: add cma optimization from 5.4 [2/2]
PD#SWPL-70022

Problem:
No cma optimization on 5.15

Solution:
1, add aml optimized cma driver, including use multi-core cma allocation
   and quick cma free code;
2, add some interfaces for kernel mm logic change and porting some
   interface to other driver usage.

Verify:
local

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I81cba90b1493f0dd81b61e5d24bc5eb455cdccc7
2022-02-15 15:51:02 +08:00
Tao Zeng 406bb47837 mm: add slab trace support [2/2]
PD#SWPL-70022

Problem:
No slab trace on 5.15 kernel

Solution:
Porting it from 5.4

Verify:
local

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I25b732530f1253df24fbb2cd7d8d87c11fedccce
2022-02-15 00:29:08 -07:00
Tao Zeng 0a649a2a65 mm: add pagetrace driver [2/2]
PD#SWPL-70022

Problem:
No pagetrace function on 5.15 kernel

Solution:
porting it from 5.4

Verify:
local

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I16874164b9238a5ee8f0449ecda05377d6761a2a
2022-02-15 00:24:39 -07:00
wanwei.jiang 08a2acfaea reboot: porting reboot driver [1/1]
PD#SWPL-70992

Problem:
porting reboot driver

Solution:
1. porting reboot driver
2. ptimizing log printing

Verify:
s4d

Change-Id: I51bf865af792c01e5be6c3a6d0bd069fa1b9f2fe
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-24 13:54:47 +08:00