Commit Graph

104 Commits

Author SHA1 Message Date
lele xiang 1c3575f03a dmaheap: CF1 add codec_mm dmaheap. [1/1]
PD#SWPL-90930

Problem:
5.15 not support ion default

Solution:
add codec_mm dmaheap instead of codec_mm_cma

Verify:
ohm-sc2

Change-Id: I104883ff9ce0c19141fb90f35e492a76962dbecd
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2022-09-07 20:06:44 +08:00
shipeng.sun 0c40a7cedb damabufmanage: CF1 support alloc cma memory [1/1]
PD#SWPL-88808

Problem:
1.support alloc cma memory by dmabufmanager
2.update secure vdec dmabuf pool

Solution:
1.support alloc cma memory by dmabufmanager
2.Update secure vdec dmabufpool capacity by maxallocsize

Verify:
S905X4-AH212

Change-Id: I3ca8ceec06097eb848072cc45d5b7bd7b3d854ac
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2022-09-07 20:06:43 +08:00
Miaohong Chen 0d2fdc169a codec_mm: CB2 Scatter memory leakage. [1/1]
PD#SWPL-86524

Problem:
Probability of scatter memory leak
when switching resolutions frequently.
The reason is that the scatter map is an array.
Since the buffer is not limited,
the number of buffers exceeds the upper limit of the array.
When alloc scatter memory,
there is no map array record.
And the release is unsuccessful, memory leaks occur.

Solution:
increase map array size.

Verify:
sc2

Change-Id: Iad837fb8d2b80a21a368d289b6826eae5860ee61
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
2022-09-07 20:06:43 +08:00
min.yang fcfd8c5383 demod: use orginal dvb-core [1/1]
PD#SWPL-89132

Problem:
use dvb-core to ko.

Solution:
1.delete dvb_frontend.c
2.change included header path.

Verify:
verified by ohm and oppen.

Change-Id: I76c8b59f5b232ddaa84bf5deb258f70be825eea6
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-09-07 20:06:43 +08:00
chuangcheng peng 7687f59168 dvb-core: use origion dvb-core in kernel [2/2]
PD#SWPL-89132

Problem:
use dvb-core to ko

Solution:
put aml modification to dvb-core

Verify:
not verified, compile pass

Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
Change-Id: If400a437e48a4e1c0f8193b56e2f54d06660e806
2022-09-07 20:06:43 +08:00
qinglin.li 073082327a debug: add filp_open debug function [2/3]
PD#SWPL-88149

Problem:
add filp_open debug function used to relabel

Solution:
add filp_open debug function

Verify:
sc2

Change-Id: Iba99f9008ad475d2666cd25fac2c188c49b4a2dc
2022-09-07 20:06:43 +08:00
Rong Chen 5e3ee02786 sdio: limited to 167M [1/1]
PD#SWPL-89453

Problem:
Some are unstable running 200M

Solution:
limited to 167M

Verify:
sc2_ah212

Change-Id: I99e15c4e42ff177e53993822a078434d5202b995
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2022-09-07 20:06:42 +08:00
Jianxiong Pan b1de07e0e6 config: move memory configs to optimize file. [1/1]
PD#SWPL-89149

Problem:
need to meet GKI requirement.

Solution:
move memory configs to optimize file.

Verify:
c2_af400.

Change-Id: I2e1c6b6a225f28cc72c28a6523178e238c813347
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-09-07 20:06:42 +08:00
miaohong chen f02304af39 codec_mm: CB2 Scatter memory leakage. [1/1]
PD#SWPL-86524

Problem:
Probability of scatter memory leak
when switching resolutions frequently.
The reason is that the scatter map is an array.
Since the buffer is not limited,
the number of buffers exceeds the upper limit of the array.
When alloc scatter memory,
there is no map array record.
And the release is unsuccessful, memory leaks occur.

Solution:
Record the applied scatter context with linked list.

Verify:
sc2

Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
Change-Id: Iae68510e5ab300b7ab58d7504c101556ca6d86e9
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
min.yang da163c664f Demod: porting demod to 5.15 [1/1]
PD#SWPL-84715

Problem:
sc2 kernel5.15 need porting demod.

Solution:
1.modify dts
2.add tuner demod attach callback

Verify:
compile pass, be normal at S905x4-ah212.

Change-Id: Ia740ccfc44a42018c36a4d18159dca9d9bd0ddee
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-09-07 20:06:42 +08:00
min.yang 57756e2b3c Demod: porting from 5.4 to 5.15 [1/1]
PD#SWPL-77329

Problem:
s4d need porting demod and tuner.

Solution:
1.porting dtv-demod.
2.porting dvb-extern.

Verify:
compile pass, be normal on s905Y4.

Change-Id: I1533c15047089a1215e042b064770e11ff2ed21a
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-09-07 20:06:42 +08:00
Ao Xu eac3d58656 soft_fbc: move soft_fbc interface to uvm dir [1/1]
PD#SWPL-80927

Problem:
decouple v4lvideo and soft_fbc

Solution:
move soft_fbc interface to uvm dir

Verify:
ap222

Change-Id: I3c3f036baedbfd87bb5d3edcf3a3226c35bdda78
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2022-09-07 20:06:42 +08:00
Jianxiong Pan 414d252f96 cma: sync the cma code with 5.4. [2/2]
PD#SWPL-92714

Problem:
there is no cma relate changes.

Solution:
add cma allocating judgment.

Verify:
sc2_ah212.

Change-Id: Ic7916812bf1dfae4afa1daf393c684077e261fc0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-09-01 23:01:45 -07:00
qinglin.li 0afabe230c debug file: add debug file function [1/2]
PD#SWPL-88882

Problem:
kernel through to user space rw files

Solution:
add debug file function

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I760ac112d21b2ba9d0a86f725771455627d8154f
2022-08-18 20:38:55 +08:00
Long 1b0b89a1c6 emmc : vendor hook change to timer func [1/1]
PD#SWPL-89620

Problem:
change way to add dtb key device

Solution:
revise code

Verify:
c2 af400

Change-Id: I186fbc477ce9215b8218f54f8a364dd029ea5822
Signed-off-by: Long <long.yu@amlogic.com>
2022-08-15 04:14:12 -07:00
yuhua.lin 35c053d1c6 dewarp: update for support C3 [1/1]
PD#SWPL-86990

Problem:
support c3 dewarp

Solution:
complete it

Verify:
C3

Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
Change-Id: If82dc7e51b59614fd3af71a581a544abe7b9ac3b
2022-08-12 01:22:33 -07:00
he.he 2fd0d0d314 usb: A separate macro contains USB modifications [2/2]
PD#SWPL-89165

Problem:
A separate macro contains USB modifications for common Dir,
so when CONFIG_AMLOGIC_COMMON_USB = n will not affect
the normal function of USB

Solution:
add CONFIG_AMLOGIC_COMMON_USB

Verify:
SC2

Change-Id: I4f20e4bccdfcec113a7d643b1e2a85b80754f0fa
Signed-off-by: he.he <he.he@amlogic.com>
2022-08-01 19:17:04 +08:00
qinglin.li 0549e5a81a printk: fix insert info crossinglen when lenth than log_line_max [2/2]
PD#SWPL-70486

Problem:
insert info crossinglen when lenth than log_line_max

Solution:
not insert info when lenth than log_line_max

Verify:
c3

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ic9026546f3a0c5c28abfc564ab0b13b192c7e753
2022-07-25 08:53:11 -07:00
Bichao Zheng 2a4446af15 spi nand: c3 fix mtd0 write&read fail [1/1]
PD#SWPL-88624

Problem:
1. swupdate mtd0 fail

Solution:
1. add front info page support.

Verify:
c3

Change-Id: I99da5578b4d130656924fcdbd96ac7e85a1d0d8e
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2022-07-21 03:53:12 -07:00
wanwei.jiang 249f5a941a kernel: merge from android13-5.15 [1/1]
PD#SWPL-87897

Problem:
build error

Solution:
1. add config
2. fix memory build error

Verify:
s4d sc2 a1 c2 c3

Change-Id: If8f5575461fa5da65f2c8d941eaba70508016b89
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-07-12 19:20:44 -07:00
Evoke Zhang dc423d62b9 lcd: support bt656/1120 for c3 [1/1]
PD#SWPL-83883

Problem:
need support BT656/1120 for c3

Solution:
add bt656/1120 support for c3

Verify:
aw419

Change-Id: I178027bc58bb46c9d4efba35e764a662b166008e
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2022-07-11 18:47:32 -07:00
Yao Jie b1f12219b1 rtc: add meson rtc driver [1/1]
PD#SWPL-83844

Problem:
Need add meson rtc driver

Solution:
Add meson rtc driver

Verify:
C3-AW419

Change-Id: I970d6603ec50c573e5973bf60e9b256492c0a568
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2022-07-01 02:53:44 -07:00
Jian Cao 7536d1a5e6 ge2d: fix the problem that the interrupts cannot be generated [1/1]
PD#SWPL-83708

Problem:
for the dma queue mode
the problem that the interrupts cannot be generated

Solution:
modify the condition to wait for hardware processing done

Verify:
c3

Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Change-Id: I8a839341a07f9b6663a4777344fad174e1062d96
2022-07-01 02:13:58 -07:00
Pengcheng Chen d2fbe4fb3f vpp: add vpp/vd1 testpattern [1/1]
PD#SWPL-83709

Problem:
add vpp/vd1 testpattern

Solution:
add vpp/vd1 testpattern

Verify:
c3

Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
Change-Id: I299bca2f5684fdc32ef9c16ba679f20de83cc6c0
2022-06-30 18:20:41 +08:00
donghui.wang 2a51d3a323 backlight: add c3 support [1/1]
PD#SWPL-83969

Problem:
need support c3

Solution:
add c3 support

Verify:
skt aw419

Change-Id: I851a9097a3b599baac30ce1bd784432333064ff3
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2022-06-30 18:20:41 +08:00
Evoke Zhang 9fab98da3d lcd: add c3 support [2/2]
PD#SWPL-83882

Problem:
need support c3

Solution:
add c3 support

Verify:
skt aw419

Change-Id: I3fa488213087a4214362b4a36a6f2d5e143fdc1b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2022-06-30 18:20:41 +08:00
Yue Wang c81866beb5 C3: usb: c3 usb driver [1/1]
PD#SWPL-83845

Problem:
c3 usb driver.

Solution:
c3 usb driver.

Verify:
aw419

Change-Id: I618b54a562d1d3a934f9b875fbd05f0a0f9ef720
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2022-06-30 18:09:28 +08:00
Bichao Zheng 7b68997a51 spinand: C3 add spinand support [1/1]
PD#SWPL-83836

Problem:
need add spinand support

Solution:
1. enabled spinand default
2. disabled emmc
3. add new partition
4. enabled ubifs support

Verify:
c3_aw419

Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
Change-Id: Ic1e679d30f5bd23cb30115fe380b9a08e60b18f3
2022-06-30 18:09:28 +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
Bin.Wang2 f12ba6b47c amvecm: porting amvecm kernel 5.15 for S4/A1 [1/1]
PD#SWPL-77462

Problem:
kernel5.15 for S4D/A1

Solution:
sync kernel5.15 amvecm file for S4D/A1

Verify:
S4D

Change-Id: I018445b78be3751c217ee779aac3b6c42e910afc
Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
2022-06-04 06:24:42 -07:00
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