Commit Graph

4718 Commits

Author SHA1 Message Date
hongmei.kuang c56caec58f AV400: Add AV400V2 dts files. [1/1]
PD#SWPL-152752

Problem:
There is no AV400V2 dts file.

Solution:
Add AV400V2 dts files.

Verify:
AV400v2+D627.

Change-Id: I2737c29a89f42fd832b2fe6311624731a4bd19d9
Signed-off-by: hongmei.kuang <hongmei.kuang@amlogic.com>
2024-04-16 04:09:32 -07:00
Jianxiong Pan 362f8d1bd4 mm: fix check_heap_object error. [1/1]
PD#SWPL-156093

Problem:
slab optimite cause the copy_from_user check error.

Solution:
bypass the check for slab large allocation.

Verify:
local

Change-Id: Ia856bf79243e12a570b3854766b0707f7f5f92c1
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-15 01:45:36 -07:00
Jianxiong Pan 744ad3ec21 mm: fix pagetrace print error. [1/1]
PD#SWPL-156093

Problem:
pagetrace unable find the backtrace.

Solution:
add SCS config for error print.

Verify:
local.

Change-Id: Ib2a24fd8f72c0bad2da4ff760a7f23f12208752e
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-15 01:44:52 -07:00
Jianxiong Pan 2696df5867 mm: fix the aml_smmu not working problem. [1/1]
PD#SWPL-165128

Problem:
pcie unable to recognize the nvme device.

Solution:
update the aml_smmu code.

Verify:
sc2.

Change-Id: I3950d9b97f6d094c64ac1b2908db13156d5de451
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-12 00:15:38 -07:00
jinbiao 7e44370708 sdio: change sdio core_phase to 2. [1/1]
PD#SWPL-159163

Problem:
CMD19 is unresponsive when using gp0 as src clk.

Solution:
Change sdio core_phase to 2.

Verify:
A4_BA401_W2L

Change-Id: Idaa79ccbeee9bacbbba99f1a0936badee789de66
Signed-off-by: jinbiao <jinbiao.ou@amlogic.com>
2024-04-10 07:39:26 +00:00
Jianxiong Pan 3bd42d499f mm: enable pagetrace, aml_cma, userfault. [1/1]
PD#SWPL-160376

Problem:
porting pagetrace, aml_cma and userfault.

Solution:
set memory debug tools to ko.

Verify:
txhd2.

Change-Id: I1c683e2fe03645e53cf10a47c20bdbf0ef87771a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-07 14:20:00 +08:00
qinglin.li c145d36fac upgrade: upgrade kernel [1/1]
PD#SWPL-163225

Problem:
upgrade kernel

Solution:
upgrade kernel

Verify:
sc2

Change-Id: I31a1d23ee1a6ee12344d6fd3302e45a6e88ecbf6
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-04-02 04:59:27 -07:00
yiting.deng 50e103fc8a clk: a4: kernel6.6 upgrade clk-scmi [2/2]
PD#SWPL-161078

Problem:
a4 kernel6.6 upgrade clk-scmi

Solution:
1. update clk scmi(bl31 and kernel)
2. change to dvfs v2 to adapt scmi clk

Verify:
a4_ba400

Change-Id: I8b05e9c6aad5a18a9f64bb17f174915193c54446
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-04-02 01:51:06 -07:00
Jian Cao 9d8dbb037d vpp: dump current display buffer information [1/1]
PD#SWPL-161054

Problem:
vpp add log to print final display with timestamp and buffer address

Solution:
add this support

Verify:
t3x

Change-Id: I4df8f1fd1495291919e34942d3b2e4b6cb679713
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-04-01 14:26:46 +00:00
rong.wang 14e5a2131c deinterlace: add api to get input param for vpp [1/1]
PD#SWPL-160157

Problem:
add api to get input param for vpp when pre-link

Solution:
add api to get input param for vpp

Verify:
t5m

Change-Id: I5f1198c94dfc840f5024d1fdb61bda2f5c5e8f4e
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-03-29 05:49:09 -07:00
yufei.huan d76a18e46a deinterlace: module_parameters [1/1]
PD#SWPL-155968

Problem:
clear module_param

Solution:
clear module_param

Verify:
a4

Change-Id: Ib847abcf59ae4ddd6985ce6b402dd59e1eb43b44
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2024-03-29 02:01:16 -07:00
Jian Cao ab0fc5d93a vpp: avoid rdma write over vsync [1/1]
PD#SWPL-158630

Problem:
enc line number is not correct under mode 1080i

Solution:
1. avoid rdma write over vsync
2. fix 1080i over vsync calc

Verify:
s1a

Change-Id: I10fba2e443e1e1c3167560ed6e3cd014247c4efc
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-03-27 01:22:06 -07:00
Liming Xue 6b2b34f2cc a5: support suspend/resume [1/1]
PD#SWPL-159598

Problem:
kernel6.6 A5 dtsi missed pm-support attribute causes dsp suspend failed

Solution:
fixed

Verify:
a5

Change-Id: I0a39daacf26347e82936ef1e8dd4feae72277eb2
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-03-26 16:42:42 +08:00
Dezhen Wang bfd440bead scripts: support closed source modules build to Independent folder [1/2]
PD#SWPL-158464

Problem:
support closed source modules build to Independent folder and copy
to android output folder

Solution:
add closed source modules list to blacklist

Verify:
local

Change-Id: Ibd9be1c7e8e7eb1b043fd10e96436cb1d96f78a1
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-03-22 04:24:16 -07:00
haotian.qu 0685ce90ac fdtoverlay: fdtoverlay support delete dts node. [1/1]
PD#SWPL-150301

Problem:
Fdtoverlay cann't support remove unnecessary dts node.

Solution:
Add __removenode__ key work to support the function.

Verify:
local

Change-Id: Ia586fdd02b9be1d227ab527c3bbf363ab1ff4604
Signed-off-by: haotian.qu <haotian.qu@amlogic.com>
2024-03-22 00:12:38 -07:00
jiabin.chen d5bfdb47e3 wifi: Update PWM parameters [1/1]
PD#SWPL-155135

Problem:
32,768k is not accurate

Solution:
Update PWM parameters

Verify:
a5 a4

Change-Id: I5b548666e57648f0313b728ddc89ffb7bcb63b35
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2024-03-21 05:43:07 -07:00
Junyi Zhao ebbcd363d6 i2c: no i2c in recovery mode [1/1]
PD#SWPL-161849

Problem:
no i2c in recovery mode

Solution:
add ko to load in recovery mode

Verify:
T7c an400

Change-Id: I14ab19508a45da0d0538c9ed95b75d266ce98046
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-03-20 23:42:38 -07:00
Dezhen Wang 3bf41c9833 scripts: support building command SKIP_RM_OUTDIR=1 for smarthome [1/2]
PD#SWPL-161245

Problem:
building command SKIP_RM_OUTDIR=1 will fail because last build remain
the staging dir

Solution:
remove staging dir in last build

Verify:
local

Change-Id: I057b5d33def309197b43627ff88976a86580ce4a
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-03-20 07:57:01 -07:00
yuhua.lin c2a5ca41d3 gdc: optimize memory consumption for creating a new instance. [1/1]
PD#SWPL-159062

Problem:
the new instance occupies a significant amount of memory.

Solution:
remove pre-allocated queue items in the instance
and allocate them only when needed.

Verify:
t7

Change-Id: I2f5601657f52f31c42a2a6d7af4518428eead069
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-03-20 06:13:27 -07:00
yuhua.lin 5559b58d39 ge2d: optimize memory consumption for creating a new instance. [1/1]
PD#SWPL-159062

Problem:
the new instance occupies a significant amount of memory.

Solution:
remove pre-allocated queue items in the instance
and allocate them only when needed.

Verify:
txhd2

Change-Id: I83e8bd344accf86717368a6d7ceec22bf8bd0068
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-03-20 06:13:15 -07:00
Jianxiong Pan ded47e5dda mm: update mix zram code. [1/1]
PD#SWPL-161080

Problem:
build failed when enable amlogic mix zram.

Solution:
update mix zram function.

Verify:
local.

Change-Id: I3c7c06d21301af66e7839aa2fb846966e3606b93
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-03-19 10:14:50 +08:00
Ruixuan.li 3b77e53c4a emmc: add attr in kenrel kernel 6.6 [1/1]
PD#SWPL-159376

Problem:
up level need attr

Solution:
add attr for up level

Verify:
av400

Change-Id: Ia1d41e0dfbb2d19c6cc8f7d18e866b8ae7c77319
Signed-off-by: Ruixuan.li <ruixuan.li@amlogic.com>
2024-03-18 13:41:02 -07:00
qinglin.li fcb9f3ca3a scripts: support build kmi check [1/1]
PD#SWPL-160329

Problem:
support build kmi check

Solution:
support build kmi check

Verify:
local

Change-Id: I36a8e16a9aba9450560ef1a71e909b574571dc96
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-18 03:46:52 -07:00
Jian Cao da0fcc5e47 osd: add to active_list when sync_pt_create [1/1]
PD#SWPL-160039

Problem:
fence signal time is incorrect

Solution:
when creating a sync pt
add it to the active_list of the timeline
to prevent it from being signaled in time

Verify:
g12b

Change-Id: I83385f7657f5c9c7cf0ee88c841dc05e073c0def
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-03-18 03:46:36 -07:00
qinglin.li 1d6e8fabfb dmc_monitor: fix dmc error due to crash [1/1]
PD#SWPL-160944

Problem:
fix c2 reg error
fix port name is null due to strstr crash

Solution:
fix c2 reg error
fix port name is null due to strstr crash
update to dmc version to 1.5

Verify:
c2

Change-Id: I02f6528d0d61a3dff42852f8e479439993fadaa5
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:49 -08:00
qinglin.li 9c31897d06 ddr_bandwidth: irq request flag mismatch [1/1]
PD#SWPL-160944

Problem:
genirq: Flags mismatch irq 38.
00002084 (dmc_monitor) vs. 00000084 (ddr_bandwidth)

Solution:
fix irq use same irq flag

Verify:
local

Change-Id: I98e45e57ae4e1d1c57553b64ace0795f0f7f4eaa
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:45 -08:00
qinglin.li e9e86bec65 dmc_monitor: disabled dmc monitor alone with ddr_tool [1/1]
PD#SWPL-160189

Problem:
disabled dmc monitor alone with ddr_tool
modify dmc monitor depend on page trace
update dmc version to 1.4

Solution:
disabled dmc monitor with ddr_tool
modify dmc monitor depend on page trace

Verify:
local

Change-Id: Ib9d0463ee0734c3b8ae1dc27b1e0cacf69a605fa
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:37 -08:00
qinglin.li 5c44e983d1 dmc_monitor: fix io_mem array get error [1/1]
PD#SWPL-147355

Problem:
io_mem array get error

Solution:
fix io_mem array get error
update dmc version to 1.3

Verify:
local

Change-Id: I95b69d5c8a06b984858c73d6e2564c8d17214680
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:33 -08:00
qinglin.li 5992853bcb dmc_monitor: optimize port and subport name save [1/1]
PD#SWPL-147355

Problem:
optimize port and subport name save

Solution:
update dmc version to 1.2
optimize port and subport name save

Verify:
local

Change-Id: I2e293ad8b359cdef93475ee976ddc0562e1593e5
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:29 -08:00
qinglin.li e0a5e57585 dmc_monitor: fix irq thread null pointer [1/1]
PD#SWPL-147355

Problem:
old soc may creat a secure but irq thread not be init
when first irq set

Solution:
fix irq thread null pointer
update dmc version to 1.1

Verify:
g12a

Change-Id: I1f0e99db992d52f0acb8e66eb906f0d89bb52b32
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:25 -08:00
qinglin.li 783281ea84 dmc_monitor: use dmc irq thread when irq ratio is too high [1/1]
PD#SWPL-147355

Problem:
due to lockup when dmc irq ratio is too high

Solution:
use dmc irq thread when irq ratio is too high

Verify:
local

Change-Id: Ie13d584f81563e3c2e111fb5d6033f0e2aa0d337
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-03-15 03:30:22 -08:00
Jiucheng Xu 6c243f8c29 ddr_tool: add ddr bandwidth trace for 5.15 [1/1]
PD#SWPL-156027

Problem:
5.15 has no ddr bandwidth trace tool

Solution:
add tools

Verify:
G12A

Change-Id: Ifc4a471809078de7a991ac98e5cd26cb19ec0297
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
2024-03-15 03:30:18 -08:00
qinglin.li a0d971d5c6 ddr_tool: add t3 && t3x ddr priority node support [1/1]
PD#SWPL-151626

Problem:
add t3 && t3x ddr priority node support

Solution:
add t3 && t3x ddr priority node support

Verify:
local

Change-Id: I5cb708db11e60774664a22e13865d4f48e558fa6
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:15 -08:00
Qinglin Li ff64e0e0d1 ddr_bandwidth: fix irq not disabled when mode close [2/2]
PD#SWPL-141263

Problem:
irq not disabled when mode close

Solution:
fix irq not disabled when mode close

Verify:
local

Change-Id: I632b145626e81cddf9aef3a05f7c1ee644c9c478
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:11 -08:00
qinglin.li f9b8dc46b3 ddr_bandwidth: fix irq not disabled when mode close [1/1]
PD#SWPL-141263

Problem:
irq not disabled when mode close

Solution:
fix irq not disabled when mode close

Verify:
local

Change-Id: I1ba42fbe47860838683bdd7a117aabb32b617daa
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-03-15 03:30:07 -08:00
Zelong Dong c020c5d4c5 pinctrl: enable debugfs to show gpio name and id [1/1]
PD#SWPL-160569

Problem:
gpio name and pin from debugfs was disabled

Solution:
enable debugfs to show gpio name and id

Verify:
a5_av400

Change-Id: Ic05587ed4d0bb7300721af828ae72f87b6683df4
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-03-15 03:29:39 -08:00
yuhua.lin ca704775ed ge2d: adjust the thread priority to real-time [1/1]
PD#SWPL-160254

Problem:
ge2d cost too much time occasionally

Solution:
adjust the thread priority to real-time

Verify:
s7

Change-Id: Ifdbb038518604f155862e13045a5e33779de4637
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-03-14 22:55:37 -08:00
Jianxin Pan d7abe0ec5e Merge "upgrade: android15-6.6 in 2024/03 [2/2]" into amlogic-6.6-dev 2024-03-14 19:22:34 -07:00
Dezhen Wang f6320f716d kernel6.6: optimise clang smarthome building for 6.6 [1/1]
PD#SWPL-156726

Problem:
support clang build for 6.6

Solution:
fix build error

Verify:
local

Change-Id: I8e5fe60e7cee109a3606b0f1aa55fbb3404999fc
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-03-14 16:41:02 -08:00
Wanwei Jiang 05ed255586 upgrade: android15-6.6 in 2024/03 [2/2]
PD#SWPL-160463

Problem:
record merge upstream information

Solution:
AML_KERNEL_VERSION      4
UPSTREAM_VERSION        "23e5041bd90d"
AML_PATCH_VERSION       "23e5041bd90d"
MERGE_DATE              "2024-03-13"

Verify:
a4/a5

Change-Id: I9e5545565e80832b588add194e1b22b1101cbfe4
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-03-14 19:02:50 +08:00
yuhua.lin 56a9e9a7c5 video: logo flash once time during boot up [1/1]
PD#SWPL-158924

Problem:
slice number is 0 when logo flash

Solution:
add protection for slice number

Verify:
s5

Change-Id: Iba581d787b49fcf8df3ebeb2ee4de68934391aba
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-03-13 05:08:18 -08:00
yuhua.lin 39fa40ca6b dewarp: dewarp fisheye mult-window error [1/1]
PD#SWPL-155600

Problem:
ddr size of cmd is not enough

Solution:
modify cmd_stride to 8191

Verify:
t7c

Change-Id: I91e91ad2022415e8a6f8c89b47d10ae3789d518d
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-03-13 16:14:54 +08:00
hongyu.chen1 c20fac41a4 spinlock: porting spinlock to kernel 6.6. [1/1]
PD#SWPL-157145

Problem:
kernel6.6 need support bak spinlock

Solution:
1.Migrate the driver to ensure normal functions.
2.Add the mbox communication configuration address

Verify:
ba400 and av400

Change-Id: I35f29a83aacb6f8366aa226abd60d4dfea41f8b2
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-03-07 17:53:11 +08:00
Liming Xue 710cec8945 dsp: release reserved memory [1/1]
PD#SWPL-159727

Problem:
a4 dsp reserved memory in dts,but a4 not have dsp core

Solution:
release reserved dsp memory

Verify:
a4

Change-Id: Ib300ec2b2bbc133a0ff17d7d25550a8f965b9352
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2024-03-05 00:06:31 -08:00
wei huang b5e4e7073d audio: A4/A5 kernel6.6 codec resume error [1/1]
PD#SWPL-158333

Problem:
1.It needs to pull up PDN pin by one codec which resume
first. So other codec doesn't need to pull up again and
just init codec. But it can't meet this requirement
now.So it causes this issue.
2.After resume from suspend, it should not keep register
setting with cache only when do register setting.

Solution:
1.Add logic that one codec which resume first will pull
up PDN pin for one time.So other codecs don't needs to
do this operation again.
2.After resume from suspend, it needs to disable cache only
status for register setting before setting register.

Verify:
Test on soundbar platform. It works well now.

Change-Id: I2114f9eb78172fb80ff675b2f04a782989050d8d
Signed-off-by: wei huang <wei.huang@amlogic.com>
2024-03-04 02:49:20 -08:00
hongmei.kuang a4656497ed BA401: Modify the number of AED configuration channels. [1/1]
PD#SWPL-154364

Problem:
Since the number of channels configured by the AED corresponds to the
number of channels used to play audio, when the current configuration
is 0x03,playing multi-channel audio will be abnormal.

Solution:
Modify the number of AED configuration channels.

Verify:
BA401+D627.

Change-Id: I1ee8910726e75089f6ac90dbe67378477a89c6be
Signed-off-by: hongmei.kuang <hongmei.kuang@amlogic.com>
2024-03-01 03:40:32 -08:00
Jian Cao d56814373a picdec: change output to full range [1/1]
PD#SWPL-158511

Problem:
256 greyscale have regular parallelism issues

Solution:
change output to full range

Verify:
txhd2

Change-Id: Id5d9110f7e8b6643343922ef247f3306ebdf4f43
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-03-01 03:05:29 -08:00
hai.cao fb2f6a56ca video: remove module parameters [1/1]
PD#SWPL-155817

Problem:
too many module parameters make booting slowly

Solution:
change module parameters to video node

Verify:
a4

Change-Id: Id7f386e8e136a7f8cb34c71fe3ca76c8f869bd97
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-03-01 01:23:23 -08:00
Peipeng.Zhao 5ec8487c7c avb: Enable device mapper driver for kernel6.6 [1/1]
PD#SWPL-159000

Problem:
device mapper is disable and cause avb2 fail

Solution:
Enable device mapper module driver

Verify:
A5/A4

Signed-off-by: Peipeng.Zhao <peipeng.zhao@amlogic.com>
Change-Id: Ieeb8f6feefdf0367de4fccbd52c9c97d6da78264
2024-02-29 19:46:55 +08:00
Jian Cao ec3e455ca7 osd/lut: check and clear module_param [1/1]
PD#SWPL-155851

Problem:
clear module_param

Solution:
clear module_param

Verify:
a4

Change-Id: I4d51707a401d0f631e48948958981cfad3909104
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-02-27 04:18:46 -08:00