Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
c00bfd97
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
163
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c00bfd97
编写于
6月 03, 2014
作者:
V
Vineet Gupta
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARC: [arcfpga] Get rid of legacy BVCI latency unit support
Signed-off-by:
N
Vineet Gupta
<
vgupta@synopsys.com
>
上级
26bc8a9f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
87 deletion
+0
-87
arch/arc/plat-arcfpga/Kconfig
arch/arc/plat-arcfpga/Kconfig
+0
-32
arch/arc/plat-arcfpga/platform.c
arch/arc/plat-arcfpga/platform.c
+0
-55
未找到文件。
arch/arc/plat-arcfpga/Kconfig
浏览文件 @
c00bfd97
...
...
@@ -48,36 +48,4 @@ config ARC_SERIAL_BAUD
help
Baud rate for the ARC UART
menuconfig ARC_HAS_BVCI_LAT_UNIT
bool "BVCI Bus Latency Unit"
depends on ARC_BOARD_ML509 || ARC_BOARD_ANGEL4
help
IP to add artificial latency to BVCI Bus Based FPGA builds.
The default latency (even worst case) for FPGA is non-realistic
(~10 SDRAM, ~5 SSRAM).
config BVCI_LAT_UNITS
hex "Latency Unit(s) Bitmap"
default "0x0"
depends on ARC_HAS_BVCI_LAT_UNIT
help
There are multiple Latency Units corresponding to the many
interfaces of the system bus arbiter (both CPU side as well as
the peripheral side).
To add latency to ALL memory transaction, choose Unit 0, otherwise
for finer grainer - interface wise latency, specify a bitmap (1 bit
per unit) of all units. e.g. 1,2,12 will be 0x1003
Unit 0 - System Arb and Mem Controller
Unit 1 - I$ and System Bus
Unit 2 - D$ and System Bus
..
Unit 12 - IDE Disk controller and System Bus
config BVCI_LAT_CYCLES
int "Latency Value in cycles"
range 0 63
default "30"
depends on ARC_HAS_BVCI_LAT_UNIT
endif
arch/arc/plat-arcfpga/platform.c
浏览文件 @
c00bfd97
...
...
@@ -22,59 +22,6 @@
#include <plat/smp.h>
#include <plat/irq.h>
/*-----------------------BVCI Latency Unit -----------------------------*/
#ifdef CONFIG_ARC_HAS_BVCI_LAT_UNIT
int
lat_cycles
=
CONFIG_BVCI_LAT_CYCLES
;
/* BVCI Bus Profiler: Latency Unit */
static
void
__init
setup_bvci_lat_unit
(
void
)
{
#define MAX_BVCI_UNITS 12
unsigned
int
i
;
unsigned
int
*
base
=
(
unsigned
int
*
)
BVCI_LAT_UNIT_BASE
;
const
unsigned
long
units_req
=
CONFIG_BVCI_LAT_UNITS
;
const
unsigned
int
REG_UNIT
=
21
;
const
unsigned
int
REG_VAL
=
22
;
/*
* There are multiple Latency Units corresponding to the many
* interfaces of the system bus arbiter (both CPU side as well as
* the peripheral side).
*
* Unit 0 - System Arb and Mem Controller - adds latency to all
* memory trasactions
* Unit 1 - I$ and System Bus
* Unit 2 - D$ and System Bus
* ..
* Unit 12 - IDE Disk controller and System Bus
*
* The programmers model requires writing to lat_unit reg first
* and then the latency value (cycles) to lat_value reg
*/
if
(
CONFIG_BVCI_LAT_UNITS
==
0
)
{
writel
(
0
,
base
+
REG_UNIT
);
writel
(
lat_cycles
,
base
+
REG_VAL
);
pr_info
(
"BVCI Latency for all Memory Transactions %d cycles
\n
"
,
lat_cycles
);
}
else
{
for_each_set_bit
(
i
,
&
units_req
,
MAX_BVCI_UNITS
)
{
writel
(
i
+
1
,
base
+
REG_UNIT
);
/* loop is 0 based */
writel
(
lat_cycles
,
base
+
REG_VAL
);
pr_info
(
"BVCI Latency for Unit[%d] = %d cycles
\n
"
,
(
i
+
1
),
lat_cycles
);
}
}
}
#else
static
void
__init
setup_bvci_lat_unit
(
void
)
{
}
#endif
/*----------------------- Platform Devices -----------------------------*/
#if IS_ENABLED(CONFIG_SERIAL_ARC)
...
...
@@ -165,8 +112,6 @@ static void __init plat_fpga_early_init(void)
{
pr_info
(
"[plat-arcfpga]: registering early dev resources
\n
"
);
setup_bvci_lat_unit
();
arc_fpga_serial_init
();
#ifdef CONFIG_ISS_SMP_EXTN
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录