Commit Graph

14 Commits

Author SHA1 Message Date
qiankun.wang 44cc0c3c71 user fault: fix show_user_fault atomic sleep. [1/1]
PD#SWPL-140252

Problem:
The system will sleep in atomic,because 'show_user_data'
calls '__get_user' which calls 'might_sleep'.

Solution:
We use '__copy_from_user_inatomic' rather than
'__get_user'.

Verify:
T3x

Change-Id: I33368dcf371e528ea75b5f3e625c93109bf12907
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-09-25 21:36:57 +08:00
qiankun.wang e1d5f7dc52 secmon: filter out secure monitor region [1/1]
PD#SWPL-135009

Problem:
The function 'within_secmon_region' can
not filter out secure monitor region.

Solution:
'within_secmon_region' will get the
'secmon_start_virt' from the dts,and filter
out secure monitor region.

Verify:
SC2

Change-Id: Ie434e66d2b7ca6f269c7f8c0e06e1f53807b8a24
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-08-10 06:19:31 -07:00
qiankun.wang f5412875b9 secmon: modify the wrong config [2/2]
PD#SWPL-135009

Problem:
The config 'CONFIG_AMLOGIC_SEC' has been
converted to CONFIG_AMLOGIC_SECMON.

Solution:
delete the config 'CONFIG_AMLOGIC_SEC',and
add the config 'CONFIG_AMLOGIC_SECMON'.

Verify:
SC2

Change-Id: I664ce36b86af24ff3e92adcf31f6149ecf381dcb
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-08-09 04:29:35 -07:00
Jianxiong Pan ec8fd57021 mm: asynchronous initialization of user fault. [1/1]
PD#SWPL-112188

Problem:
it takes a long time to find symbols.

Solution:
asynchronous initialization of user fault.

Verify:
t5w.

Change-Id: If0327b8285ec722bd84a5dbc7e97419b5752120f
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-08-07 04:18:42 -07:00
Jianxiong Pan 80695386da user fault: fix arm64_show_signal kprobe fail. [1/1]
PD#SWPL-112188

Problem:
compiler optimization, resulting in unable to kprobe

Solution:
not kprobe the arm64_show_signal func.

Verify:
t215.

Change-Id: I2aac9ff78db34739050d5acba53bb5b7287d5ff0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-07-26 02:09:41 -07:00
Jianxiong Pan dbd033d9d2 user fault: reduce invalid printing. [1/1]
PD#SWPL-112188

Problem:
too much invalid printing.

Solution:
reduce invalid printing.

Verify:
local.

Change-Id: I9ece325044275b6ba8ae62110db02e8ceb09ded3
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-07-22 20:57:05 -07:00
Jianxiong Pan e5da787cbd mm: user fault modularity for arm64. [1/1]
PD#SWPL-112188

Problem:
gki2.0 support.

Solution:
user fault modularity.

Verify:
adt4.

Change-Id: Ied1bddbf25f0341659ba2231c07e8df20906749c
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-07-17 07:13:05 -07:00
Lei Zhang 4eac904433 debug: optimize log print [1/1]
PD#SWPL-125874

Problem:
log print deranged when use pr_cont

Solution:
optimize log print

Verify:
on SC2

Change-Id: If71749e1cb88dd19836869b84d86327b86ef0b17
Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
2023-06-14 18:21:04 -07:00
qiankun.wang 9f67545e23 panic: don't dump the problematic register data [1/1]
PD#SWPL-117678

Problem:
when dump call stack information,some problematic
registers data can cause synchronization error.

Solution:
add a judgment to filter out register information.

Verify:
SC2

Change-Id: I805b3d25b5e753cd8d9f25a724e06be942882c9f
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2023-04-10 23:04:19 -07:00
Lei Zhang b1e8999415 riscv: initial commit for C3 PXP [3/3]
PD#SWPL-94239

Problem:
initial commit for C3 PXP

Solution:
initial commit for C3 PXP

Verify:
on PXP

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I9ae658e27f152702d221e29ec6ed9283acb1b7ec
2022-12-02 08:48:00 -07:00
qinglin.li 55bb211b03 upgrade: upgrade kernel [1/1]
PD#SWPL-80398

Problem:
upgrade kernel with version 5.15.35

Solution:
upgrade kernel with version 5.15.35

Verify:
c2 and s4d

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ibc446d0d3f95c12aa46816cdf5376b04c050adc0
2022-05-10 02:59:41 -07:00
Lei Zhang ee2097d6c1 kaslr: Enable the kaslr function [6/8]
PD#SWPL-76164

Problem:
Enable the kaslr function

Solution:
Enable the kaslr functionfe

Verify:
on C2 AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I90159a03ce7c07be99eadeebb6f81898eefb0bfa
2022-04-20 00:51:23 -07:00
Jianxiong Pan 57ba3b1027 mm: arm32: add user fault debug support. [2/2]
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>
2022-03-10 00:34:08 -07:00
Jianxiong Pan 1100e5c44e mm: add user fault debug support. [2/2]
PD#SWPL-73676

Problem:
need user fault debug support.

Solution:
add user fault debug support.

Verify:
local.

Change-Id: I3741ef675c174b8e30f352f8d193aab0318cff9a
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-07 09:50:41 +08:00