PD#SWPL-73676
Problem:
need add user fault function.
Solution:
add user fault debug.
Verify:
local.
Change-Id: Iee06a7ca439673833662f9cc3c83010ad81121a3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-73422
Problem:
When driver/kernel call kmalloc with large size, memory may waste
if size is not equal to 2^n. For example, driver call kmalloc with
size 129KB, kmalloc will allocate a 256KB memory block to caller.
Then 127kb memory will be wasted if this caller do not free it.
Solution:
Free tail of slab memory if size is not match to 2^n. This change
can save about 900KB memory after boot, and more than 100KB durning
runtime.
Verify:
local.
Change-Id: I19cfbdddc92b1c2050cbc17ea65feb4b01f0445d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-71764
Problem:
Need to bringup amlogic crypto driver for
kernel 5.15.
Solution:
1. Bringup amlogic crypto driver
2. Enable SHA1, DES, and ECB if they are
disabled by default.
3. Merged from 5.4 and 5.10
Verify:
1. Built-in driver on C2_AF400
2. GKI driver on S4D AP_222
Change-Id: I62487e615930070233c3a6b4a41b66edddf6f783
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
PD#SWPL-71865
Problem:
support USB for C2
Solution:
support USB for C2
Verify:
C2
Signed-off-by: he.he <he.he@amlogic.com>
Change-Id: I4e9b2823016e1296bf25281a38f69a8fe08e9b22
Signed-off-by: he.he <he.he@amlogic.com>
PD#SWPL-71754
Problem:
support iotrace driver
Solution:
support iotrace driver
Verify:
on s4d_ap222 and c2_af400
Change-Id: Iefaa724c118a9310ce1b7121c6685dce580db0d5
Signed-off-by: song.han <song.han@amlogic.com>
PD#SWPL-71741
Problem:
add module to bring cpu1 to linux
Solution:
add module to bring cpu1 to linux
Verify:
C2 AF400
Change-Id: Iac78df21a1edc46a158d78339be7bc0d394a658b
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
PD#SWPL-73189
Problem:
memory reclaim process is usually do when first allocate failed from buddy.
This will cause some process crash especially when memory is low, because
there is not enough time to do reclaim process.
Solution:
try to wake up kswapd process to reclaim memory if free memory is less
than high water mark. After apply this change, free memory is usually
keeps high than high_water mark.
Verify:
local.
Change-Id: I9c5f90bba778aacfe21aacb332ed19ad162b048b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
PD#SWPL-73048
Problem:
in kernel 5.15,emmc clock is not OK for C2 platform
Solution:
change the clock setting
Verify:
Local
Change-Id: I55820e08e7ba73e1c57e07fa762c237ae5127edb
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
PD#SWPL-72350
Problem:
add a tool to list how many memory cache files used in file
cache.
console:/ # cat /proc/filecache
Solution:
porting file cache from 5.4.
Verify:
local.
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Change-Id: I92420acab7333b75bbb5bca1075d3e401b027fb2
PD#SWPL-70022
Problem:
No vmap stack support on 5.15
Solution:
Porting it from 5.4
Verify:
local
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: Ie75bedb3072dfd90a5d74b64684c233186aada81
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I78552ad490938c455178e56395ff63e60b62a320
PD#SWPL-72254
Problem:
no mem debug on kernel5.15.
Solution:
porting mem debug from 5.4.
Verify:
local.
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Change-Id: Ie625011e90df9203686acbe52997149527a38daa
PD#SWPL-70022
Problem:
No cma optimization on 5.15
Solution:
1, add aml optimized cma driver, including use multi-core cma allocation
and quick cma free code;
2, add some interfaces for kernel mm logic change and porting some
interface to other driver usage.
Verify:
local
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I81cba90b1493f0dd81b61e5d24bc5eb455cdccc7
PD#SWPL-70022
Problem:
No slab trace on 5.15 kernel
Solution:
Porting it from 5.4
Verify:
local
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I25b732530f1253df24fbb2cd7d8d87c11fedccce
PD#SWPL-70022
Problem:
No pagetrace function on 5.15 kernel
Solution:
porting it from 5.4
Verify:
local
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: I16874164b9238a5ee8f0449ecda05377d6761a2a
PD#SWPL-68630
Problem:
porting thermal driver
Solution:
1. porting thermal driver
2. modify the function type of the member of
struct thermal_cooling_device_ops
state2power
power2state
get_requested_power
3. modify the function(cpu_hotplug.c) interface
cpu_up() --> add_cpu()
cpu_down() --> remove_cpu()
4. modify config and move module_init from meson_cooldev.c to meson_tsensor.c
5. modify pr_info() --> pr_debug() when probe
Verify:
s4d
Change-Id: I5eead0120dbc826cbb4282d28d7531018c826025
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
PD#SWPL-68520
Problem:
driver optimization
Solution:
1. read command line from bootargs nor /proc/cmdline
2. parse command line to param and value
3. support early_param and __setup
4. support module_param
5. use pr_debug nor gki_tool_debug
because can't pass parameters to it from the command line
Verify:
s4d
Change-Id: Ib2d7915018e3c1a70284340b30bf929e6bb64b41
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
PD#SWPL-66014
Problem:
modify the code to meet the checkpatch requirements
Solution:
modify the code to meet the checkpatch requirements
Verify:
local check
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I1e9dca5938bcde461e9403b5df7bc9a0f8c4d1bf
PD#SWPL-65807
Problem:
Modify the code to meet the checkpatch requirements
Solution:
git format-patch -1 --stdout | ../common/scripts/checkpatch.pl --strict -
The following items have not been repaired
1. DT compatible string
Verify:
local check
Change-Id: Ibde323f01e9daee35c521db29cefff9ffa9da2c9
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>