PD#SWPL-196879
Problem:
Memory: 1919048K/2097152K available (16832K kernel code, 2014K rwdata,
11228K rodata, 4416K init, 584K bss, 18446744073709099852K reserved
Solution:
we initialize cma in advance in cma.c,
which results in that the cma counted twice.
Verify:
sc2.
Change-Id: Ia92b90c8876e58f8a875f3d59b780ce465a6e53a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-196487
Problem:
vts test /proc/sys/ node failed
function sysctl_check_table failed
because autopatch add a null node in kern_table struct
Solution:
remove null node in autopatch
Verify:
local
Change-Id: Ia3647494477b45c06b86ebd51a118718668f53d2
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-196879
Problem:
some page fall into cma pool, causing slow cma allocation.
Solution:
add GFP_NO_CMA flags.
Verify:
sc2.
Change-Id: I5a319b7ce85d735e14289786fb5b80cc59f73009
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-195291
Problem:
remove not need common15-6.6 autopatch
Solution:
remove not need common15-6.6 autopatch
Verify:
local
Change-Id: I7ef4017cfa8c5b4bcc77fa151941da1152b9d9cc
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-192258
Problem:
distinguish between various memory optimizations.
Solution:
rename slab and filecache related optimization.
Verify:
sc2.
Change-Id: I1ca896550cbaa1caf0a528ffa6da0f0035330ef8
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-193212
Problem:
SYS_ANALOG 's value is same with
SYS_DVBC2
Solution:
modify SYS_ANALOG 's value
Verify:
compile pass
Change-Id: If9fa4f47055e47ea27686b5f9b8f3fe2b3a56079
Signed-off-by: min.yang <min.yang@amlogic.com>
PD#SWPL-186095
Problem:
large slab optimization can not pass usercopy check.
Solution:
skip usercopy check for large slab alloc.
Verify:
a1.
Change-Id: Iadf6007df9e3904701ce66b4ab71bf1e3b1cdf7a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-182182
PD#SWPL-190334
Problem:
TEXTOFFSET was changed from 0x00208000 to 0x02008000, causing some
devices to fail to start.
1. t5d Android U upgrade project, ko becomes build, uImage size
increases to 36MB. It is too big to relocate.
2. There is only 48MB in 0x020080000~0x5000000 area, and cannot
open kasan.
Solution:
1. use new config CONFIG_AMLOGIC_RAMDUMP_TEXTOFFSET instead of
CONFIG_AMLOGIC_RAMDUMP. And TEXTOFFSET is 0x00208000 default.
2. Use a new solution instead of modifying TEXT. Specifically,
during kernel panic, move 0-24MB to a higher address. Reboot to
uboot and then copy back.
Verify:
T5D
Change-Id: Ifcbf7883969161ff2872d3300ee9b756dc949917
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
PD#SWPL-191023
Problem:
there are compile errors on kernel 6.12 because of missing dmabuf manager
Solution:
add dmabuf manager on kernel 6.12
Verify:
sc2
Change-Id: I7685afac9665cdd0ab53bf93b53be96bb6defc7c
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
PD#SWPL-188348
Problem:
ker6.12 souce code is old. And ramdump
is not working properly.
Solution:
1. sync ramdump.c from ker5.15.
2. enable CONFIG_AMLOGIC_RAMDUMP
3. modify TEXTOFFSET=0X0200800 for ker 32bit
Verify:
SC2_AH212
Change-Id: Id19ba0ef1302e9cf4cdf379d10c625519a8eef36
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
PD#SWPL-188508
Problem:
read no map memory failed when arm build
Solution:
check memory map when arm build
Verify:
local
Change-Id: Ic9b3d81f21c287ddab4b7c908bbd94c56139d8b4
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-183190
Problem:
After adding -Werror, warning should
be converted to error
Solution:
Add the compilation parameters for
KBUILD_AFLAGS and UAPI_CFLAGS
Verify:
build
Change-Id: If344319cb15d1012151c3fb7f76435b9a972d286
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-188894
Problem:
common_drivers dir is not normal position. move it out of common dir.
Solution:
move it out of common dir
Verify:
local
Change-Id: I949688e2e86d687ef205030a646975065860950a
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
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>
PD#SWPL-183292
Problem:
porting media dvb and audio modules
Solution:
1. porting dvb auto patches
2. modify strlcpy() to strscpy()
3. remove the flag DRM_UNLOCKED, need owner to check
4. modify the code due to the change of
the remove function in struct platform_driver
5. add the header file of linux/vmalloc.h for vmalloc() and vfree()
6. modify files_lookup_fd_rcu() to task_lookup_next_fdget_rcu()
7. use shrinker_alloc() to alloc memory and initialize
8. modify __assign_str(dst, src) to __assign_str(dst)
9. modify asoc_rtd_to_cpu() to snd_soc_rtd_to_cpu()
10. modify pwm_apply_state() to pwm_apply_might_sleep()
Verify:
local
Test:
probe success
Change-Id: I6105f65f79ee4a2c197fd6305f59fa064b583d6b
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
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>
PD#SWPL-183292
Problem:
porting usb and wireless modules
Solution:
1. porting usb and wireless modules
2. setting the default value of CONFIG_AMLOGIC_KERNEL_VERSION as 16612
3. modify the reset Makefile
Verify:
local
Change-Id: Ie3c99a75a1f3f439ebaa8d5cc852a654465fb379
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-179918
Problem:
remove all autopatch of 14-5.15
Solution:
remove all autopatch of 14-5.15
Verify:
local
Change-Id: If5981db6562291030908947f74cadc3f75baec7f
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-179932
Problem:
date format due to build failed
Solution:
fix date format due to build failed
Verify:
local
Change-Id: Iefaa34dd787232301a7fb7f83648c63188aa0563
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-160440
Problem:
need to add auto patch when lunch android
Solution:
add lunch_patches.txt for android
Verify:
ohm_wv4
Change-Id: I06fa02032b914fe47dcec895b5872d174a565a12
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
PD#SWPL-168953
Problem:
upstream fix kmalloc not init to zero
Solution:
upstream fix kmalloc not init to zero
Verify:
sc2
Change-Id: I188630ef21ca74dd61e2605151983c90201606fc
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
PD#SWPL-168212
Problem:
mtdblock report partition size wrong when meet bad block.
the problem is bring from commit <13f288bad852>
(mtdblock: improve mtdblock performance)
Solution:
correct the decrease size when meet bad block
Verify:
C3_C308L_AW419_SOCKET_V01_R05
Change-Id: Ib59984781c79a46acf19dd9dd88a64806746b91b
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
PD#SWPL-156093
Problem:
kernel 6 add a flag variation in struct mmc_blk_ioc_data
but set value to flag before use it, so it can be any value
Solution:
memset mmc_blk_ioc_data flag to 0
Verify:
a4
Change-Id: I7efbad65b8023682fe6f6ac159cbb4446a3193b7
Signed-off-by: Ruixuan.li <ruixuan.li@amlogic.com>
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>
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>