Commit Graph

16 Commits

Author SHA1 Message Date
Jianxiong Pan 5df4c6195f vmap: fix task bitmap mismatch issue. [1/1]
PD#SWPL-217821

Problem:
vmap cache is small, task bitmap is easily exhausted.

Solution:
task bitmap mismatch in alloc and free, delay set bitmap
in stack alloc.

Verify:
local.

Change-Id: Id6afec5354ea8a9f9a800ee6df24ba046a3fdf4e
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-09-24 20:22:45 -07:00
biao.sun 5ed6f75a04 vmap: protect and alloc harder vmap pages [1/1]
PD#SWPL-224608

Problem:
sync vmap_stack change from kernel5.15

Solution:
sync vmap_stack from kernel5.15

Verify:
sc2

Change-Id: I5da44a4f36faac497e99ccd01946856874b1111c
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2025-08-26 01:40:33 -07:00
Lei Zhang ae8f7a4020 preempt_rt: bringup preempt rt kernel [7/9]
PD#SWPL-201692

Problem:
spinlock is sleeping lock, cause BUG_ON in atomic context

Solution:
change spinlock to raw_spinlock

Verify:
on A5

Change-Id: Iea05aa36c58143d0efe880631d8906d9125fe55e
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2025-04-23 01:14:29 -07:00
biao.sun 9460c30e50 smc: can't patch to kernel for google [1/1]
PD#SWPL-208253

Problem:
can't patch to kernel for google

Solution:
modify in common_drivers

Verify:
SC2

Test:
boot and play video

Change-Id: If7adf4b52c10ec259f6ce4549f31b215895c828e
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2025-04-09 21:18:46 -07:00
Jianxiong Pan 3f361fc75e mm: add vmap stack for arm. [1/1]
PD#SWPL-201579

Problem:
thread stack optimization.

Solution:
dynamic allocation for thread stack.

Verify:
adt4.

Change-Id: I6f157e545460c35bbf2c7ec26e4058228d5e773e
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-03-05 20:04:20 -08:00
Jianxiong Pan a00c19af4d mm: add amlogic vmap stack for arm64. [1/1]
PD#SWPL-197160

Problem:
kernel stack optimization.

Solution:
add amlogic vmap stack for 64bit.

Verify:
sc2.

Change-Id: Ie3b059022e1ab8479f65921ec6fe171824fcd9a1
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-12-19 20:55:11 -08:00
Jianxiong Pan 21ac069019 mm: use msleep_interrupt in vmap_task. [1/1]
PD#SWPL-121825

Problem:
livelock detected too long uninterrupt in vma_thread.

Solution:
use msleep_interrupt() install of msleep().

Verify:
local.

Change-Id: I63fd52a73c2cb1a72bde78a50c17051d36db6320
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-10-30 02:27:52 -07:00
Jianxiong Pan cb8dc5466c vmap: fix __get_free_pages argument error [1/1]
PD#SWPL-101523

Problem:
The input parameter of the function "__get_free_pages"
in the function "aml_stack_alloc" is incorrect, the function
is in drivers\amlogic\memory_ext\vmap_stack.c

Solution:
fix input parameters

Verify:
TM2

Change-Id: I698ca5dc0beae707bbd50bcfad647cd9c8442d6d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-09-01 02:18:45 -07:00
Jianxiong Pan bf3e3cc085 typo: amlogic memory module. [1/1]
PD#SWPL-105283

Problem:
typo issues.

Solution:
fix the typo issues for amlogic memory.

Verify:
typo.

Change-Id: I68815aefe4e77b4406c7fcae33f7fbf9b399cb63
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-12-25 22:30:25 -08:00
yao zhang1 37365df098 config: C3 Kernel size optimize. [1/1]
PD#SWPL-95000

Problem:
Kernel size is too big

Solution:
Remove some CONFIGs

Verify:
c3 pass

Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
Change-Id: I13303e5e1e967961c6d1cc32a67465c423816276
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
2022-09-29 19:58:15 +08:00
pengzhao.liu b946ffb848 typo: clear typo problem [1/1]
PD#SWPL-89627

Problem:
clear typo problem

Solution:
clear typo problem

Verify:
s4d

Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
Change-Id: I9121c9d4b54df9b9a7c244182693e0fd616f5a9e
2022-09-07 20:06:45 +08:00
Jianxiong Pan dc17f6e61d kasan: delete the relative path reference of the header file. [1/1]
PD#SWPL-73890

Problem:
the use of relative paths in header files in not standardized.

Solution:
delete the relative path reference.

Verify:
build pass.

Change-Id: I62b0ced23211fb3d1759567ea7a47cda5b1f4cee
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-05-14 02:26:59 -07:00
Tao Zeng aa59c4f6ac mm: enable vmap stack on 32bit arch [2/2]
PD#SWPL-70022

Problem:
vmap stack is not enabled on 32bit arm arch

Solution:
Enable it

Verify:
local

Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
Change-Id: Ie3a9c349c737ec4171c0fe31d5fd201b2a195c63
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2022-04-14 11:52:09 +08:00
Jianxiong Pan 682148d7c2 kasan: fixed build error when enable kasan generic. [1/1]
PD#SWPL-73890

Problem:
build error in kasan generic mode.

Solution:
fix the error when enable kasan generic.

Verify:
local.

Change-Id: Iac0a11209921374a494dafb17c3d5fd56748b426
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-04 04:24:47 -07:00
Jianxiong Pan 097a5fef3d vmap: fix build error. [1/1]
PD#SWPL-72350

Problem:
build error.

Solution:
correct the argument type.

Verify:
local.

Change-Id: I08fc34ec5d9f35d8525f07b414064cb0221ebd44
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-02-23 02:17:38 -07:00
Tao Zeng d31b9dd061 mm: add vmap stack support [2/2]
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
2022-02-22 21:39:53 -07:00