Commit Graph

19 Commits

Author SHA1 Message Date
biao.sun b63798e5e7 print: optimize print info [1/1]
PD#SWPL-241730

Problem:
too much print info

Solution:
remove unnecessary print info

Verify:
sc2

Change-Id: I1ecb473c3095a1be608336a9047e7beca31121d8
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2026-01-07 01:50:36 -08:00
yao zhang1 88ea1e31f2 license: Fix amlogic drivers license. [1/1]
PD#SWPL-217731

Problem:
Fix amlogic license.

Solution:
Fix amlogic license.

Verify:
all chip

Change-Id: I36cc711e44a201ec944c6b0b54c0d21ab671b068
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2025-09-25 03:48:58 -07:00
Jianxiong Pan 450465a0a7 mm: aml_smmu: move aml_smmu ko to memory_ext directory. [1/1]
PD#SWPL-188508

Problem:
optee depends to aml_smmu ko.

Solution:
make aml_smmu independent.

Verify:
sc2.

Change-Id: Ief77a87d7862ebfacacaaa92e971b19b0e5e9ba0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-24 00:27:10 -07:00
Jianxiong Pan 37543cc405 mm: aml_smmu: can not find the symbol. [1/1]
PD#SWPL-188508

Problem:
aml_smmu can not find the symbol.

Solution:
update the symbol

Verify:
sc2.

Change-Id: Ia4f3a29e0275ac0a053d8ee5f42e86f3396796c9
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-23 23:50:53 -07:00
Jianxiong Pan c4058b76a5 mm: 32bit: add filecache function. [1/1]
PD#SWPL-188508

Problem:
print filechche info.

Solution:
add filecache debug tool.

Verify:
sc2.

Change-Id: I0008db0adc16bab64d72e5154fac46f749e66630
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-23 23:37:22 -07:00
Wanwei Jiang a73692ccfe bringup: upgrade kernel from 6.11 to 6.12 [1/1]
PD#SWPL-188184

Problem:
upgrade kernel from 6.11 to 6.12

Solution:
AML_KERNEL_VERSION	3
UPSTREAM_VERSION	"5a81cc3248a2"
AML_PATCH_VERSION	"5a81cc3248a2"
MERGE_DATE		"2024-10-09"
1. modify build script
2. port auto patch and move common-mainline to common16-6.12
3. modify the code due to the change of
the remove output_poll_changed in struct drm_mode_config_funcs
4. modify the code due to the change of the remove GPIOF_DIR_OUT
5. modify the code due to the change of the remove no_llseek
6. modify the code due to the change of the struct fd
7. modify the code due to the change of the struct mem_cgroup_reclaim_iter
8. modify the code due to the change of the file unaligned.h

Verify:
local

Test:
bootup to console in fatload mode

Change-Id: I98629ea9e68fca121176682d31dc73b8a8c936f8
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-10-09 18:51:40 -07:00
Wanwei Jiang 911eeadc02 bringup: upgrade kernel from 6.6.10 to 6.6.11 [1/1]
PD#SWPL-183292

Problem:
upgrade kernel from 6.6.10 to 6.6.11

Solution:
1. modify auto patches
2. modify the code due to the change of
the remove function in struct platform_driver
3. modify the code due to the change of
the match function in struct bus_type
4. modify some page function to folio function
5. modify spi module due to some functions changed

Verify:
local

Change-Id: I92c266b6a1bbae363abd0ff50d7f3037e90bc624
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-09-26 15:05:50 +08:00
Jianxiong Pan e7f50e0dae mm: add aml memory debug tools. [1/1]
PD#SWPL-185599

Problem:
add aml memory debug tools

Solution:
enable aml smmu for pcie white list.
enable filecache, watchpoint, userfault, mem_debug, reg_access.

Verify:
sc2.

Change-Id: I2549778560672bc66dcdfe767b5f81f8585293d5
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-09-13 14:39:16 +08: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
Dezhen Wang 17548f36a0 kernel6.6: support clang build for a4 and a5 [1/1]
PD#SWPL-156726

Problem:
support clang build for a4 and a5

Solution:
fix build error

Verify:
a4 a5

Change-Id: I9aa3e06010344c9a313365d3dcdf1b10b4f75904
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-02-21 04:05:40 -07:00
Jianxiong Pan ea5f9fa169 mm: move aml_smmu ko to memory_debug directory. [1/1]
PD#SWPL-150034

Problem:
reduce the ko number.

Solution:
move aml_smmu ko to memory_debug directory.

Verify:
local.

Change-Id: If537a6a6493a9944319caa344ad8e3a73c294179
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-01-19 03:11:39 -07:00
Dezhen Wang bcfa0ee2e4 bring up: revert compatibility code for kernel 6.6 [1/1]
PD#SWPL-151245

Problem:
kernel6.6 will not distinguish different versions of kernel.
so we do not make compatibility code in 6.6.

Solution:
revert compatibility code for kernel 6.6.

Verify:
local

Test:
local

Change-Id: I24b8acac62cec05ffb2f637a86f91789f1d0b905
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-01-11 18:46:45 -07:00
Jianxiong Pan 68d6934858 mm: enable file cache. [1/1]
PD#SWPL-150034

Problem:
enable filecache.

Solution:
enable filecache.

Verify:
local.

Change-Id: I26a748ad1ce98a6824bff67e93884356ccb6fdd3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-01-02 20:01:37 -07:00
Jianxiong Pan e34c1c43ab mm: replace vendor hook with kprobe. [1/1]
PD#SWPL-150034

Problem:
no corresponding vendor hook.

Solution:
use kprobe to get not export function/variable.

Verify:
local.

Change-Id: I6c7abe40fd4d6e7802fe30b2426ace5cbb7ab067
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-12-29 01:36:17 -07:00
Wanwei Jiang 43461aec82 kernel6.6: bring up [1/1]
PD#SWPL-145682

Problem:
bring up kernel6.6

Solution:
1. porting kernel6.6
2. compatible with different kernel versions
3. bring up kernel6.6

Verify:
sc2 c2 a4 a5

Test:
None

Change-Id: Ie22af0abc8ea96261e8a8cc7804b58565aedd904
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-14 16:55:55 +08:00
Jianxiong Pan ce218b6b98 mm: reduce the print log in momeory module. [1/1]
PD#SWPL-141371

Problem:
optimize memory log.

Solution:
reduce the print log.

Verify:
local.

Change-Id: Id5b9a9240bc94d49f6d311a1f4084ffdf0a5a13a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-05 22:23:43 -07:00
Jianxiong Pan 84069bf36e mm: fix the filecache not work when dis MEMCG. [1/1]
PD#SWPL-112186

Problem:
cat /proc/filecache not work.

Solution:
change the vendor hook to pass data.

Verify:
s4_ap222.

Change-Id: I6233927a0649f1ad16710ab9370bb7507832ef80
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-03-23 05:12:29 -07:00
Wanwei Jiang 87c507d22d porting: compatible with common14-5.15 [1/2]
PD#SWPL-109858

Problem:
compatible with common14-5.15

Solution:
compatible with common14-5.15

Verify:
sc2

Change-Id: I12e0e796e95cf54d37f76ad9f01a0ff9852e779e
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-02-13 19:41:56 -08:00
Wanwei Jiang c780df0b08 memory: combine memory_ext addr_tool and reg_access modules [1/1]
PD#SWPL-95684

Problem:
combine memory_ext addr_tool and reg_access modules

Solution:
result: amlogic-memory-debug.ko
original:
	file_cache.ko
	watch_point.ko
	amlogic-reg.ko
	amlogic-ddr.ko

Verify:
sc2/s4d

Change-Id: Id143e085dd26c0b57631dbab4c003534905d0661
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-11-05 12:31:14 +08:00