Commit Graph

18 Commits

Author SHA1 Message Date
qiankun.wang bd5059f258 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-22 04:39:01 -07:00
Dezhen Wang dadc15697a coverity: fix [1/1]
PD#SWPL-136722

Problem:
coverity errors

Solution:
fix the coverity errors

Verify:
local

Change-Id: I5b210b5c44ee6a0e34c1c8b9685fe2d38cd52b1b
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-09-03 21:53:42 -07:00
xia.jin e9ff0c29c5 S1A: Silicon Bringup - Security driver - Audio firmware [1/1]
PD#SWPL-133086

Problem:
S1A silicon verify audio firmware

Solution:
add audio firmware driver

Verify:
S1A

Change-Id: Idf26f8acb63d365f6b659cf7eee48f52f8df3d12
Signed-off-by: xia.jin <xia.jin@amlogic.com>
2023-08-15 10:37:49 +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
xia.jin 078f9dd92e Dolby: run MS12 and HA at the same time [2/2]
PD#RSP-4361

Problem:
un MS12 and HA at the same time

Solution:
1 use smc call x3 to parse MS12 or HA in bl31
2 use dolby_fw_args->x3 to parse MS12 or HA in kernel

Verify:
t3/t7

Change-Id: I79ccf4a629177efccc03ab9c5878e390ec19dd53
Signed-off-by: xia.jin <xia.jin@amlogic.com>
2023-07-11 07:09:19 -07:00
Blance Tang 063d2ad7c9 C1A Zapper: Add DTS for C1A BF201 [1/1]
PD#SWPL-119112

Problem:
Add DTS for C1A BF201

Solution:
Add DTS for C1A BF201

Verify:
BF201 (C1A+AQ2432)

Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
Change-Id: Id6cd4c3ccdb231474c0bbb655af9a75c33d95875
2023-05-19 02:05:24 -07:00
qinglin.li 7938f7464a typo: fix typo error [1/1]
PD#SWPL-103514

Problem:
fix typo error

Solution:
fix typo error

Verify:
sc2

Change-Id: I33ef17c30cc8f156f0b4b401fe65ac7412329f75
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-12-01 22:51:49 -07:00
Wanwei Jiang 24ec321ee7 secmon: combine secmon and dolbyfw modules [1/1]
PD#SWPL-95684

Problem:
combine secmon and dolbyfw modules

Solution:
result: amlogic-secmon.ko
original:
	amlogic-secmon.ko
	amlogic-dolbyfw.ko

Verify:
sc2

Change-Id: Ibc809a6f9ec1850b050a2aca0660f0607afbd5b4
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-11-05 12:06:46 +08:00
pengzhao.liu c2a22ec002 typo: fix typo issue [1/1]
PD#SWPL-89627

Problem:
typo check issue

Solution:
fix typo issue

Verify:
Typo

Change-Id: I388cdac5f7d1e4448225c13aa91bb5d641e5d146
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2022-09-20 22:15:28 -07:00
wanwei.jiang dd14076118 efuse: porting efuse driver [1/1]
PD#SWPL-78980

Problem:
a1 efuse test fail

Solution:
1. modify share memory map from noncache to cache
2. use share memory interface which exported by secmonitor driver
3. porting the code of efuse_obj_read/write

Verify:
c2

Change-Id: Iba250028899eb69df3584c334bfbd7dbd56eb8c0
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-05-07 00:14:29 -07:00
wanwei.jiang 63f8585674 a1: drivers porting [1/1]
PD#SWPL-78980

Problem:
drivers porting

Solution:
rng secmon and cpu_info porting

Verify:
a1

Change-Id: I722c37c310207cb82fa4458dfb27cca078ec7307
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-04-20 19:14:56 -07:00
Lei Zhang 3faeb77a5a aarch32: bring up c2 for aarch32 [2/2]
PD#SWPL-71725

Problem:
bring up c2 for aarch32

Solution:
bring up c2 for aarch32

Verify:
on C2_AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I762a2066d07a0aae120524e2f5be6a5be59fe10a
2022-02-23 04:16:01 -07:00
qinglin.li 7c6316bebd printk : printk optimization [2/2]
PD#SWPL-70486

Problem:
use common tag in driver when printf

Solution:
set common pr_fmt in driver

Verify:
s4d

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ieee271d289e4d2f81258875d36288046b996a5d2
2022-02-14 19:55:32 -07:00
qinglin.li afe35bdd7f printk : printk optimization [1/2]
PD#SWPL-70486

Problem:
printk optimization

Solution:
modify the print level as a debug

Verify:
local check

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I8b92a33555103ef75c91217086efb9b85843d3c7
2022-02-14 19:30:13 -07:00
wanwei.jiang 1fdb3a336b config: follow porting guide [1/1]
PD#SWPL-67821

Problem:
follow the configure rules

Solution:
1. follow the configure rules
2. follow the module name rules
3. follow the directoy rules

Verify:
s4d

Change-Id: Iac68261fe7ce994240fcab2c6edc1f283a719b3d
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-17 19:22:25 +08:00
wanwei.jiang 2c3b01fcb9 secmon: confirm whether it has been mapped [1/1]
PD#SWPL-66601

Problem:
confirm whether it has been mapped

Solution:
ioremap_cache() will confirm whether it has been mapped.

Verify:
s4d

Change-Id: I861f123d8af8541739a3b13f943563c00791b550
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-15 15:58:50 +08:00
wanwei.jiang 24483b3139 secmon: modify the code to meet the checkpatch requirements [1/1]
PD#SWPL-66601

Problem:
modify the code to meet the checkpatch requirements

Solution:
modify the code to meet the checkpatch requirements
1. add test access secmon memory
2. add reading reserve memory range

Verify:
sd4

Change-Id: I3cf01f5f7b838bdeecb08760315d935c75d0988d
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-13 19:48:49 +08:00
wanwei.jiang d8cfbc189b secmon: init secmon driver [1/1]
PD#SWPL-66601

Problem:
porting secmon driver

Solution:
porting secmon driver, and modify function:
dma_alloc_from_contiguous() -> dma_alloc_coherent()

Verify:
s4d

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Ibe8cee8b91596dcb4caa14c254453faf37425d97
2021-12-09 15:10:33 +08:00