Commit Graph

226 Commits

Author SHA1 Message Date
Jianxiong Pan 5e3a10bb02 pagetrace: stat the atomic allocation. [1/1]
PD#SWPL-245461

Problem:
allocation failure.

Solution:
stat the atomic allocation.

Verify:
local.

Change-Id: I7f550b3a4f4bd7a8c2881ef773ae00821bbb3ec7
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-12-16 05:30:01 -08:00
Jianxiong Pan b5d3aa7622 cma: switch cma_enabled in kthread. [1/1]
PD#SWPL-239917

Problem:
need modify cma_enable vi swap ratio.

Solution:
switch cma_enabled in task.

Verify:
local.

Change-Id: I5f7cfc488df0b67e9c9c423526e6975b70c29962
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-12-03 01:01:22 -08:00
Jianxiong Pan a4881f376b pagetrace: system crash when close it. [1/1]
PD#SWPL-236939

Problem:
system crash when close pgaetrace.

Solution:
fix these defects.

Verify:
local.

Change-Id: I516b9dac653f79782d078a73be7e195c4b6cec05
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-10-29 00:36:55 -07:00
biao.sun 68210271ca debug: print regs address and value when mte is enabled [1/1]
PD#SWPL-233326

Problem:
can not print regs value when mte is enabled

Solution:
ignore address bit[59:56]

Verify:
s6

Change-Id: I13d8c1af29b8d1ce829e08d0e273f6d5a5aa81b2
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2025-10-16 00:09:06 -07:00
Jianxiong Pan 308a389363 pagetrace: show large slab memory. [1/1]
PD#SWPL-205374

Problem:
show large slab memory detail.

Solution:
cat /proc/mem_large_slab
==============================
count(KB)            kaddr, function
------------------------------
   18528, ffffffee8cbfa7ac, mmc_mq_init_request
   10512, ffffffee871fafcc, bcmdhd_init_wlan_mem [amlogic_wireless]
    2048, ffffffee869bd708, dim_probe [aml_media]
     416, ffffffee86799464, rdma_ins_setting [aml_media]
     256, ffffffee86b31920, vf_pool_alloc [aml_media]
     256, ffffffee8668fe3c, normal_key_init [amlogic_efuse_unifykey]
     128, ffffffee86673120, meson_mmc_probe [amlogic_mmc]
     128, ffffffee867af32c, codec_mm_scatter_mgt_alloc_in [aml_media]
      64, ffffffee86a85538, vpp_lut3d_table_init [aml_media]
      64, ffffffee8679b5ac, rdma_part_table_register [aml_media]
      64, ffffffee86a090fc, amlvideo2_driver_probe [aml_media]
      64, ffffffee8d579ba8, nf_conntrack_h323_init

Verify:
local.

Change-Id: I848c46c07ab90e2f407728fd4d57c302e131c839
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-10-10 20:31:31 -07:00
Jianxiong Pan 883eada47b pagetrace: show hardware memory. [1/1]
PD#SWPL-205374

Problem:
shows memory not counted by meminfo.

Solution:
cat /proc/mem_hardware
==============================
count(KB)            kaddr, function
------------------------------
    2056, ffffffee8c447d54, mempool_alloc_pages
    1504, ffffffee8c7a3f2c, blk_mq_alloc_map_and_rqs
    1360, ffffffee8d54b8ac, alloc_large_system_hash
     256, ffffffee8c37f130, allocate_cmdlines_buffer
     160, ffffffee8c477690, pcpu_populate_chunk
      80, ffffffee8c2f7cd8, fill_page_cache_func
      64, ffffffee8c365410, __rb_allocate_pages
      64, ffffffee8d555a70, iomap_dio_init

Verify:
local.

Change-Id: Id86d7cdbd4aee15232e034f8402df158c001d48d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-10-09 19:18:14 -07:00
Jianxiong Pan 57baa06a9c mm: cma allocation continues to busy and exit. [1/1]
PD#SWPL-229451

Problem:
cma task loading up to 100%.

Solution:
exit cma allocation when page isolate failed.

Verify:
local.

Change-Id: Ibc04f26c33fc616d1ecba8ac6606c1bc60260327
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-09-28 02:31:01 -07: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 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
Jianxiong Pan 5a8a90af1c mm: export the cma priority interface to the module. [1/1]
PD#SWPL-229258

Problem:
some scenarios hope to dynamically modify the cma task priority.

Solution:
provide interface to set cma task priority.

Verify:
local.

Change-Id: Ic0ce3ef8d58923e8506789864553bde36afba4fe
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-09-12 03:56:57 -07:00
Jianxiong Pan 4faea8d07f mm: provide interface to set cma task priority. [1/1]
PD#SWPL-229258

Problem:
some scenarios hope to dynamically modify the cma task priority.

Solution:
provide interface to set cma task priority.

Verify:
local.

Change-Id: I72ad141f3535a9173f622ff73c79c96440aa76da
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-09-08 01:19:00 -07:00
Jianxiong Pan 4fa9cce6f5 mm: profile cma pool usage. [1/1]
PD#SWPL-225018

Problem:
statistic cma pool usage.

Solution:
echo cma_name > /proc/cma_stat
cat /proc/cma_stat
or call get_cma_stat() to get info;

Verify:
local.

Change-Id: I39ad7e9fbc6ad8b1bf75e40d2f3074ccd77b0f2b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-09-05 04:49:33 -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
Jianxiong Pan 623502fb52 mm: sync memory related patches from 5.15. [1/1]
PD#SWPL-225609

Problem:
sync memory related patches from 5.15.

Solution:
sync memory related patches from 5.15.

Verify:
local;

Change-Id: I010fa5dc436d486bc46b7d49f8e0b32057c05ac7
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-08-20 09:08:02 -07:00
Jianxiong Pan dfa9ca1d2a smmu: init iommu domain for pcie devices. [1/1]
PD#SWPL-227107

Problem:
pcie devices not work.

Solution:
init iommu domain to skip pcie check.

Verify:
s6.

Change-Id: Ibe66284c319453b3747a9cb0142b7819f61ce6e0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-08-18 08:40:52 -07:00
Jianxiong Pan c4d107cde5 mm: close ARM64_PTR_AUTH_KERNEL in vmap stack. [1/1]
PD#SWPL-225609

Problem:
ARM64_PTR_AUTH_KERNEL not allow stack pointer modification.

Solution:
close ARM64_PTR_AUTH_KERNEL in vmap stack.

Verify:
s6.

Change-Id: I16a9f48e763946dad2cab74a24f100052eef722a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-08-16 22:55:21 -07:00
biao.sun 6028b05420 smmu: dynamic adjust swiotlb and atomic pool size. [1/1]
PD#SWPL-226241

Problem:
dynamic adjust swiotlb and atomic pool size.

Solution:
dynamic adjust swiotlb and atomic pool size.

Verify:
sc2.

Change-Id: I006f72b8c8f06d70b27676c7ca080ab1311c5e79
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2025-08-13 04:53:48 -07:00
biao.sun 4a87f274e0 dts: sync dts debug and memory change [1/1]
PD#SWPL-224608

Problem:
sync dts from kernel5.15

Solution:
sync dts from kernel5.15

Verify:
T5D

Change-Id: Ie7b7249102bdfe5811e1703cebd7d45e939f1dc5
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2025-08-11 05:14:25 -07:00
Jianxiong Pan 4e5c60c425 vmap: enable vmap stack in nogki config. [1/1]
PD#SWPL-225609

Problem:
gki10 kernel can not boot.

Solution:
vmap stack break gki, can not be used in gki10.

Verify:
local.

Change-Id: I37db1c1f0a237fe36e9348b726fe370e2e1514f0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-08-07 07:21:04 -07:00
Tao Zeng 63b4ca630c amfc: sync driver from 5.15 [1/2]
PD#SWPL-223138

Problem:
amfc driver is too old compared with 5.15

Solution:
sync it from 5.15

Verify:
S6

Change-Id: Ia405e1ec397c2b06782126488f3a8171f234c9ec
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2025-07-23 00:31:33 -07:00
qinglin.li 39e602cd1b upgrade: common16-6.12 upgrade by July [1/3]
PD#SWPL-221547

Problem:
update include/linux/upstream_version.h
fix conflict

Solution:
AML_KERNEL_VERSION      9
UPSTREAM_VERSION        "eb58d7821a70"
AML_PATCH_VERSION       "eb58d7821a70"
MERGE_DATE              "2025-07-18"

Verify:
local

Change-Id: I7e188c33c2f4213bad29bf25e1e8425c921ce535
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-07-16 20:38:10 -07:00
yao zhang1 7ccedacd01 license: Fix amlogic license. [1/1]
PD#SWPL-217731

Problem:
Fix amlogic license.

Solution:
Fix amlogic license.

Verify:
all chip

Test:
license check pass

Change-Id: I05c47245ff58bf92abccaa7ca08a85524d73f924
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2025-06-23 21:15:59 -07:00
Wanwei Jiang 0ebbe91209 build: supports direct compilation using tools/bazel [1/4]
PD#SWPL-211590

Problem:
supports direct compilation using tools/bazel

Solution:
1. Default is the trunk's kernel, and can also be configured to
use the project kernel.
2. Default is the trunk's build.config.project, and can also be configured to
use the project's build.config.project.
3. Default is the trunk's Kconfig.ext_modules, and can also be configured to
use the project's Kconfig.ext_modules.
4. Default is the trunk's project.bzl, and can also be configured to
use the project's project.bzl. For other drivers' BUILD.bazel,
currently the corresponding GKI_CONFIG is automatically selected
based on the project. Other members are not distinguished at present.
5. Package all variables in project.bzl into a struct called project_configs,
which facilitates accessing the corresponding variables on a per-project basis.
6. Remove the DDK dependency check mechanism. However,
since it is protected by the configuration of the config, the impact is
not significant.
7. Change kernel_build to kernel_select in ddk_module.
8. support build command:
tools/bazel run --config=adt4 //project/sei/adt4:adt4_dist
./mk.sh --package adt4
9. Optimize the Bazel configure settings.
10. Optimize the copying of ko sources.
11. Optimize the copying of ko sources with debugging symbols.
12. Optimize the paths of some temporary files, so that the files are located
in the out directory instead of the /tmp directory.

Verify:
local

Test:
PB

Change-Id: I38f631215a41156910ae378c34c92de5a255309f
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-05-12 18:25:48 -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
Jianxiong Pan 9859397131 mm: remove large slab. [1/1]
PD#SWPL-209408

Problem:
remove large slab optimization

Solution:
close CONFIG_AMLOGIC_MEMORY_SLAB_LARGE

Verify:
g12b sm1

Change-Id: Icb9fa5672f97963d5f7e7089523b19368e72fd90
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2025-04-16 02:11:33 -07:00
qinglin.li 9294f0bbf9 scripts: use kernel build ddk_module_headers [1/1]
PD#SWPL-208157

Problem:
use kernel build ddk_module_headers

Solution:
use kernel build ddk_module_headers

Verify:
local

Test:
local

Change-Id: I68cb33366c826fcd58fdb0a040229011ea669064
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-04-15 04:35:40 -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
Dezhen Wang 6a583cc721 upgrade: kernel [1/1]
PD#SWPL-205130

Problem:
upgrade kernel

Solution:
upgrade kernel

Verify:
s7d

Change-Id: I0f3be75daaabdf9b77c85ee97adc638bcb59c5c9
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2025-03-31 21:55:33 -08:00
Wanwei Jiang 9abfc917cf kasan: arm [1/1]
PD#SWPL-205422

Problem:
build fail with kasan

Solution:
add header file

Verify:
sc2

Change-Id: I34b69db605da5d4d18af9d4cb8c2cac0e421e0d5
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-03-31 11:50:59 -08:00
Dezhen Wang 054039b58e scripts: add Kconfig and Makefile to common kernel source [1/1]
PD#SWPL-206164

Problem:
ddk_module cannot find Kconfig and Makefile in sub package

Solution:
add Kconfig and Makefile srcs to common kernel srcs

Verify:
local

Test:
local

Change-Id: I3e71b7e1ddea15e9d32efc0e6cb7e8e81b95b793
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2025-03-26 02:30:24 -08:00
Jianxiong Pan bc0c3408c7 mm: return fatal signal for cma alloc. [1/1]
PD#SWPL-207075

Problem:
the cma allocation caller can not get the value of the fatal signal.

Solution:
return fatal signal for cma alloc.

Verify:
local.

Change-Id: I3034f0eaa7bb61ae336a52f8cc5a972501e516ee
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-03-24 21:52:34 -08:00
Jianxiong Pan 676a2820a4 config: fix defects in memory kconfig. [1/1]
PD#SWPL-206667

Problem:
memory kconfig break gki requirement.

Solution:
fix defects in memory kconfig.

Verify:
local.

Change-Id: I5b5b34cff2e329b05830e3b4a06023ebf2762f0c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-03-24 04:39:21 -08:00
Jianxiong Pan 6b079a8fae mm: remove slab trace function. [1/1]
PD#SWPL-205422

Problem:
slabtrace and kasan conflict.

Solution:
slabtrace is no longer used, suggest delete.

Verify:
t5m.

Change-Id: Ie4a109fd3f15e3e1b3d1887a1510edb38a7e0c54
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-03-12 22:15:55 -08: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
Wanwei Jiang 22a093e819 ddk: optimize ddk build [1/1]
PD#SWPL-195997

Problem:
optimize ddk build

Solution:
optimize ddk build

Verify:
sc2

Test:
PB

Change-Id: I662f1e2a33ae0e5bdae97a70deb624964c5e1c5a
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-03-03 22:25:19 -08:00
Jianxiong Pan 7b459c2e49 mm: update pagetrace filter function list. [1/1]
PD#SWPL-201579

Problem:
common functions can not locate specific module.

Solution:
add more common functions in filter list.

Verify:
sc2.

Change-Id: Icbf48ff353a55cc42c40000605c5531231550af4
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-02-27 19:59:02 -08:00
Jianxiong Pan 07c6cfa3a4 mm: update alloc page gfp mask. [1/1]
PD#SWPL-201579

Problem:
avoid some pages entering cma pool.

Solution:
remove __GFP_CMA flag for some page.

Verify:
adt4.

Change-Id: I2487ee08ed6d91d08987beb32fc023930945700a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-02-26 06:07:20 -08:00
Wanwei Jiang cadab66c37 build: support ddk [1/1]
PD#SWPL-195997

Problem:
the drivers in the common_drivers directory can be built using DDK
with gki_20 mode, it is also compatible with the original build.

Solution:
add BUILD.bazel and modify build script

Verify:
sc2

Test:
PB

Change-Id: Ie138e63f4eec8715d976d421dc8a431bcfadd859
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-02-25 07:17:36 -08:00
Wanwei Jiang 0998513606 optimize: Makefile and header files [1/1]
PD#SWPL-195997

Problem:
optimize the Makefile and header files

Solution:
optimize the Makefile and header files

Verify:
sc2

Test:
PB

Change-Id: Ia90d24a18d125e162a2eaa26ffe4720095f101ac
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-02-25 04:17:41 -08:00
Jianxiong Pan 72f4637ccd pcie: enable aml_smmu whitelist. [1/1]
PD#SWPL-188508

Problem:
enable aml_smmu.

Solution:
enable aml_smmu.

Verify:
sc2.

Change-Id: Icd73b992cac742f23972f26df2e89821bc025d38
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-02-23 21:47:03 -08:00
qinglin.li 7766802d64 upgrade: kernel6.12 upgrade [1/1]
PD#SWPL-201584

Problem:
kernel6.12 upgrade

Solution:
AML_KERNEL_VERSION      6
UPSTREAM_VERSION        "fc99bcd94b4d"
AML_PATCH_VERSION       "fc99bcd94b4d"
MERGE_DATE              "2025-02-13"

Verify:
local

Change-Id: I0c5aa8d45f0f76be16bfc38012b62408c5d53c16
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-02-13 22:11:20 -08:00
Jianxiong Pan b2023ab316 mm: aml_smmu: get max_pfn from node instead of find symbol. [1/1]
PD#SWPL-200077

Problem:
aml smmu init failed.

Solution:
get max_pfn from node instead of find symbol.

Verify:
s6.

Change-Id: I65dec4fa5a0c9996af34c318fb5ac58f53f81aed
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-01-15 16:43:49 +08:00
Jianxiong Pan f831ea7c61 mm: module parameter clean for lowmemorykiller [1/1]
PD#SWPL-199995

Problem:
module parameter clean.

Solution:
remove unnecessary module parameters.

Verify:
local.

Change-Id: I01ed821c302c53febcd3ad784846c4925d249caa
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-01-14 19:00:12 -08:00
biao.sun c5076ee716 meson_atrace: add memory alloc and meminfo event [1/1]
PD#SWPL-196409

Problem:
add memory related trace info

Solution:
1, __alloc_page and __alloc_pages_slowpath: use trace event and vendor hook
2, cma_alloc: use vendor hook in aml_cma.ko
3, handle_pte_fault: use kretprobe
4, trace meminfo period

Verify:
sc2_ah212

Change-Id: I70212798beb3660836201e6ad5f3ebf7e27b66b8
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2025-01-10 02:56:38 -08:00
Jianxiong Pan e6e31b7e11 pagetrace: update caller list when load module. [1/1]
PD#SWPL-190703

Problem:
module function not filter in pagetrace.

Solution:
update caller list when load module.

Verify:
sc2.

Change-Id: I29137818fccbcc0a9a39b5b0414f1503b8dfedb1
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-01-09 03:02:37 -08:00
Jian Hu 68bc14b23e drivers: correct __setup return value. [1/1]
PD#SWPL-185687

Problem:
there is panic when envp_init stores over 32 members
Kernel panic - not syncing: Too many boot env vars at `reboot_mode=normal'
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.180-rksec-1.0 #2
Hardware name: Generic DT based system
[<b020a1b8>] show_stack+0x10/0x14
[<b0cbd7b4>] dump_stack+0x8c/0xa8
[<b0cad7a4>] panic+0x104/0x304
[<b1100b84>] start_kernel+0xa4/0x42c
[<b11004a4>] _sinittext+0x44/0x48

Solution:
set __setup return value as 1 to avoid envp_init full

Verify:
t5w

Test:
t5w

Change-Id: Ie0f5ada11318ab509bf7bd914e2af53213250f00
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2025-01-07 01:47:53 -08:00
Jianxiong Pan b975bc78e9 mm: try different memory target when cma alloc failed. [1/1]
PD#SWPL-197638

Problem:
page isolated failed in cma allocation.

Solution:
try different memory target.

Verify:
sc2.

Change-Id: I463c1f2fe5913307d785d7e13c6a3c548e37275e
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-12-24 00:09:44 -08:00
Jianxiong Pan 21e116a6a9 mm: fix large slab statistics error. [1/1]
PD#SWPL-197513

Problem:
Large slab optimization leads to statistical errors.

Solution:
correct statistics.

Verify:
sc2.

Change-Id: I69b6567fcc709fb0ecf97d7224d26df2a3b8717d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-12-22 17:48:07 -08:00
Hanjie Lin 86eed2b8bd user_fault: add mmap_read_trylock in show_vma [1/1]
PD#SWPL-197216

Problem:
mmap should be locked in show_vma or may caused WARNING

Solution:
add mmap_read_trylock

Verify:
sc2

Change-Id: I29cb7fc4f03b9db90c9e6daf98618657a4724f38
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2024-12-19 20:58:08 -08:00
Jianxiong Pan add13682c0 mm: enable aml_cma for gki20. [1/1]
PD#SWPL-196879

Problem:
enable aml_cma for gki20.

Solution:
add aml_cma.ko for gki20.

Verify:
sc2.

Change-Id: I360c4b77b632cea82e128c319283d5e425252019
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-12-19 20:57:36 -08:00