Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
99eb45f9
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
99eb45f9
编写于
6月 22, 2016
作者:
T
Tony Lindgren
浏览文件
操作
浏览文件
下载
差异文件
Merge commit '
c0053bd5
' into omap-for-v4.8/soc
上级
218092af
c0053bd5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
52 addition
and
5 deletion
+52
-5
arch/arm/mach-omap2/Kconfig
arch/arm/mach-omap2/Kconfig
+8
-0
arch/arm/mach-omap2/omap-secure.h
arch/arm/mach-omap2/omap-secure.h
+1
-0
arch/arm/mach-omap2/omap-smp.c
arch/arm/mach-omap2/omap-smp.c
+43
-5
未找到文件。
arch/arm/mach-omap2/Kconfig
浏览文件 @
99eb45f9
...
...
@@ -240,4 +240,12 @@ endmenu
endif
config OMAP5_ERRATA_801819
bool "Errata 801819: An eviction from L1 data cache might stall indefinitely"
depends on SOC_OMAP5 || SOC_DRA7XX
help
A livelock can occur in the L2 cache arbitration that might prevent
a snoop from completing. Under certain conditions this can cause the
system to deadlock.
endmenu
arch/arm/mach-omap2/omap-secure.h
浏览文件 @
99eb45f9
...
...
@@ -46,6 +46,7 @@
#define OMAP5_DRA7_MON_SET_CNTFRQ_INDEX 0x109
#define OMAP5_MON_AMBA_IF_INDEX 0x108
#define OMAP5_DRA7_MON_SET_ACR_INDEX 0x107
/* Secure PPA(Primary Protected Application) APIs */
#define OMAP4_PPA_L2_POR_INDEX 0x23
...
...
arch/arm/mach-omap2/omap-smp.c
浏览文件 @
99eb45f9
...
...
@@ -50,6 +50,39 @@ void __iomem *omap4_get_scu_base(void)
return
scu_base
;
}
#ifdef CONFIG_OMAP5_ERRATA_801819
void
omap5_erratum_workaround_801819
(
void
)
{
u32
acr
,
revidr
;
u32
acr_mask
;
/* REVIDR[3] indicates erratum fix available on silicon */
asm
volatile
(
"mrc p15, 0, %0, c0, c0, 6"
:
"=r"
(
revidr
));
if
(
revidr
&
(
0x1
<<
3
))
return
;
asm
volatile
(
"mrc p15, 0, %0, c1, c0, 1"
:
"=r"
(
acr
));
/*
* BIT(27) - Disables streaming. All write-allocate lines allocate in
* the L1 or L2 cache.
* BIT(25) - Disables streaming. All write-allocate lines allocate in
* the L1 cache.
*/
acr_mask
=
(
0x3
<<
25
)
|
(
0x3
<<
27
);
/* do we already have it done.. if yes, skip expensive smc */
if
((
acr
&
acr_mask
)
==
acr_mask
)
return
;
acr
|=
acr_mask
;
omap_smc1
(
OMAP5_DRA7_MON_SET_ACR_INDEX
,
acr
);
pr_debug
(
"%s: ARM erratum workaround 801819 applied on CPU%d
\n
"
,
__func__
,
smp_processor_id
());
}
#else
static
inline
void
omap5_erratum_workaround_801819
(
void
)
{
}
#endif
static
void
omap4_secondary_init
(
unsigned
int
cpu
)
{
/*
...
...
@@ -64,12 +97,15 @@ static void omap4_secondary_init(unsigned int cpu)
omap_secure_dispatcher
(
OMAP4_PPA_CPU_ACTRL_SMP_INDEX
,
4
,
0
,
0
,
0
,
0
,
0
);
/*
* Configure the CNTFRQ register for the secondary cpu's which
* indicates the frequency of the cpu local timers.
*/
if
(
soc_is_omap54xx
()
||
soc_is_dra7xx
())
if
(
soc_is_omap54xx
()
||
soc_is_dra7xx
())
{
/*
* Configure the CNTFRQ register for the secondary cpu's which
* indicates the frequency of the cpu local timers.
*/
set_cntfreq
();
/* Configure ACR to disable streaming WA for 801819 */
omap5_erratum_workaround_801819
();
}
/*
* Synchronise with the boot thread.
...
...
@@ -218,6 +254,8 @@ static void __init omap4_smp_prepare_cpus(unsigned int max_cpus)
if
(
cpu_is_omap446x
())
startup_addr
=
omap4460_secondary_startup
;
if
(
soc_is_dra74x
()
||
soc_is_omap54xx
())
omap5_erratum_workaround_801819
();
/*
* Write the address of secondary startup routine into the
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录