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>
PD#SWPL-154292
Problem:
support autopatch for linux
Solution:
support autopatch for linux
Verify:
local
Change-Id: Idaae5f82e6e07c89781ab53cf1a436cbdac36fe1
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
PD#SWPL-149337
Problem:
n/a
Solution:
bypass when check module version fail
Verify:
on a4
Change-Id: I01b6bcb689862c865db549768bede3123df04c96
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
PD#SWPL-135783
Problem:
1. need use regulator to delay dvfs voltage set;
2. for boot to kernel vddcpu/vddee voltage
change to max problem;
Solution:
1. (add dvfs delay time at a4/a5 k6.6) at 374414;
2. add init voltage at txhd2 trunk;
(add patch for a4 a5 k6.6 usb suspend issue, 384999)
Verify:
build pass
Change-Id: I8d5a2750d3ab5df2d949be710db5f1adf3659cb7
Signed-off-by: chengbing.wu <chengbing.wu@amlogic.com>
PD#SWPL-150034
Problem:
trace cannot be used.
Solution:
add more to white trace list.
Verify:
local.
Change-Id: Ie6a6cf45ceaf682bd3451917dd574a647712d2dc
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-151469
Problem:
the autopatch cannot patch to common with old name
Solution:
rename autopatch about vendor hook place_entity in commit cf74d1cb69
Verify:
local
Change-Id: Ifb08df2ee26ac814d250bebaa055c289615e6fa0
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-151469
Problem:
vendor hook android_rvh_place_entity do not exist in kernel6.6. Add it
in autopatch temporarily.
Solution:
add vendor hook android_rvh_place_entity for scheduler optimize
when debug
Verify:
local
Change-Id: I1c58b88090fd1e4ab8aff907532f417bc84971f8
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
PD#SWPL-150034
Problem:
support pcie whitelist.
Solution:
add aml fake smmu for pcie.
Verify:
local.
Change-Id: Ifff12d10d2fd7d234f3ab9330136cbc1a8b50827
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-150034
Problem:
There are too many trace event inodes
Solution:
Add white list for trace event, this can save about 10MB memory
Verify:
local.
Change-Id: I339ed6a95313335a1d94ce4aab479c2422c3d334
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-150034
Problem:
kernel size if too big.
Solution:
remove some configs.
Verify:
local.
Change-Id: I51b5cf892969bdc78b3ecaa2ca25665f6656e75a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>