Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
1326fe64
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
1326fe64
编写于
7月 04, 2017
作者:
V
Vinod Koul
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'topic/bcm' into for-linus
上级
99efdb3e
1fc63cb4
变更
7
展开全部
显示空白变更内容
内联
并排
Showing
7 changed file
with
1853 addition
and
3 deletion
+1853
-3
Documentation/devicetree/bindings/dma/brcm,iproc-sba.txt
Documentation/devicetree/bindings/dma/brcm,iproc-sba.txt
+29
-0
crypto/async_tx/async_pq.c
crypto/async_tx/async_pq.c
+2
-3
drivers/dma/Kconfig
drivers/dma/Kconfig
+15
-0
drivers/dma/Makefile
drivers/dma/Makefile
+1
-0
drivers/dma/bcm-sba-raid.c
drivers/dma/bcm-sba-raid.c
+1785
-0
include/linux/raid/pq.h
include/linux/raid/pq.h
+1
-0
lib/raid6/mktables.c
lib/raid6/mktables.c
+20
-0
未找到文件。
Documentation/devicetree/bindings/dma/brcm,iproc-sba.txt
0 → 100644
浏览文件 @
1326fe64
* Broadcom SBA RAID engine
Required properties:
- compatible: Should be one of the following
"brcm,iproc-sba"
"brcm,iproc-sba-v2"
The "brcm,iproc-sba" has support for only 6 PQ coefficients
The "brcm,iproc-sba-v2" has support for only 30 PQ coefficients
- mboxes: List of phandle and mailbox channel specifiers
Example:
raid_mbox: mbox@67400000 {
...
#mbox-cells = <3>;
...
};
raid0 {
compatible = "brcm,iproc-sba-v2";
mboxes = <&raid_mbox 0 0x1 0xffff>,
<&raid_mbox 1 0x1 0xffff>,
<&raid_mbox 2 0x1 0xffff>,
<&raid_mbox 3 0x1 0xffff>,
<&raid_mbox 4 0x1 0xffff>,
<&raid_mbox 5 0x1 0xffff>,
<&raid_mbox 6 0x1 0xffff>,
<&raid_mbox 7 0x1 0xffff>;
};
crypto/async_tx/async_pq.c
浏览文件 @
1326fe64
...
@@ -62,9 +62,6 @@ do_async_gen_syndrome(struct dma_chan *chan,
...
@@ -62,9 +62,6 @@ do_async_gen_syndrome(struct dma_chan *chan,
dma_addr_t
dma_dest
[
2
];
dma_addr_t
dma_dest
[
2
];
int
src_off
=
0
;
int
src_off
=
0
;
if
(
submit
->
flags
&
ASYNC_TX_FENCE
)
dma_flags
|=
DMA_PREP_FENCE
;
while
(
src_cnt
>
0
)
{
while
(
src_cnt
>
0
)
{
submit
->
flags
=
flags_orig
;
submit
->
flags
=
flags_orig
;
pq_src_cnt
=
min
(
src_cnt
,
dma_maxpq
(
dma
,
dma_flags
));
pq_src_cnt
=
min
(
src_cnt
,
dma_maxpq
(
dma
,
dma_flags
));
...
@@ -83,6 +80,8 @@ do_async_gen_syndrome(struct dma_chan *chan,
...
@@ -83,6 +80,8 @@ do_async_gen_syndrome(struct dma_chan *chan,
if
(
cb_fn_orig
)
if
(
cb_fn_orig
)
dma_flags
|=
DMA_PREP_INTERRUPT
;
dma_flags
|=
DMA_PREP_INTERRUPT
;
}
}
if
(
submit
->
flags
&
ASYNC_TX_FENCE
)
dma_flags
|=
DMA_PREP_FENCE
;
/* Drivers force forward progress in case they can not provide
/* Drivers force forward progress in case they can not provide
* a descriptor
* a descriptor
...
...
drivers/dma/Kconfig
浏览文件 @
1326fe64
...
@@ -99,6 +99,21 @@ config AXI_DMAC
...
@@ -99,6 +99,21 @@ config AXI_DMAC
controller is often used in Analog Device's reference designs for FPGA
controller is often used in Analog Device's reference designs for FPGA
platforms.
platforms.
config BCM_SBA_RAID
tristate "Broadcom SBA RAID engine support"
depends on ARM64 || COMPILE_TEST
depends on MAILBOX && RAID6_PQ
select DMA_ENGINE
select DMA_ENGINE_RAID
select ASYNC_TX_DISABLE_XOR_VAL_DMA
select ASYNC_TX_DISABLE_PQ_VAL_DMA
default ARCH_BCM_IPROC
help
Enable support for Broadcom SBA RAID Engine. The SBA RAID
engine is available on most of the Broadcom iProc SoCs. It
has the capability to offload memcpy, xor and pq computation
for raid5/6.
config COH901318
config COH901318
bool "ST-Ericsson COH901318 DMA support"
bool "ST-Ericsson COH901318 DMA support"
select DMA_ENGINE
select DMA_ENGINE
...
...
drivers/dma/Makefile
浏览文件 @
1326fe64
...
@@ -17,6 +17,7 @@ obj-$(CONFIG_AMCC_PPC440SPE_ADMA) += ppc4xx/
...
@@ -17,6 +17,7 @@ obj-$(CONFIG_AMCC_PPC440SPE_ADMA) += ppc4xx/
obj-$(CONFIG_AT_HDMAC)
+=
at_hdmac.o
obj-$(CONFIG_AT_HDMAC)
+=
at_hdmac.o
obj-$(CONFIG_AT_XDMAC)
+=
at_xdmac.o
obj-$(CONFIG_AT_XDMAC)
+=
at_xdmac.o
obj-$(CONFIG_AXI_DMAC)
+=
dma-axi-dmac.o
obj-$(CONFIG_AXI_DMAC)
+=
dma-axi-dmac.o
obj-$(CONFIG_BCM_SBA_RAID)
+=
bcm-sba-raid.o
obj-$(CONFIG_COH901318)
+=
coh901318.o coh901318_lli.o
obj-$(CONFIG_COH901318)
+=
coh901318.o coh901318_lli.o
obj-$(CONFIG_DMA_BCM2835)
+=
bcm2835-dma.o
obj-$(CONFIG_DMA_BCM2835)
+=
bcm2835-dma.o
obj-$(CONFIG_DMA_JZ4740)
+=
dma-jz4740.o
obj-$(CONFIG_DMA_JZ4740)
+=
dma-jz4740.o
...
...
drivers/dma/bcm-sba-raid.c
0 → 100644
浏览文件 @
1326fe64
此差异已折叠。
点击以展开。
include/linux/raid/pq.h
浏览文件 @
1326fe64
...
@@ -142,6 +142,7 @@ int raid6_select_algo(void);
...
@@ -142,6 +142,7 @@ int raid6_select_algo(void);
extern
const
u8
raid6_gfmul
[
256
][
256
]
__attribute__
((
aligned
(
256
)));
extern
const
u8
raid6_gfmul
[
256
][
256
]
__attribute__
((
aligned
(
256
)));
extern
const
u8
raid6_vgfmul
[
256
][
32
]
__attribute__
((
aligned
(
256
)));
extern
const
u8
raid6_vgfmul
[
256
][
32
]
__attribute__
((
aligned
(
256
)));
extern
const
u8
raid6_gfexp
[
256
]
__attribute__
((
aligned
(
256
)));
extern
const
u8
raid6_gfexp
[
256
]
__attribute__
((
aligned
(
256
)));
extern
const
u8
raid6_gflog
[
256
]
__attribute__
((
aligned
(
256
)));
extern
const
u8
raid6_gfinv
[
256
]
__attribute__
((
aligned
(
256
)));
extern
const
u8
raid6_gfinv
[
256
]
__attribute__
((
aligned
(
256
)));
extern
const
u8
raid6_gfexi
[
256
]
__attribute__
((
aligned
(
256
)));
extern
const
u8
raid6_gfexi
[
256
]
__attribute__
((
aligned
(
256
)));
...
...
lib/raid6/mktables.c
浏览文件 @
1326fe64
...
@@ -125,6 +125,26 @@ int main(int argc, char *argv[])
...
@@ -125,6 +125,26 @@ int main(int argc, char *argv[])
printf
(
"EXPORT_SYMBOL(raid6_gfexp);
\n
"
);
printf
(
"EXPORT_SYMBOL(raid6_gfexp);
\n
"
);
printf
(
"#endif
\n
"
);
printf
(
"#endif
\n
"
);
/* Compute log-of-2 table */
printf
(
"
\n
const u8 __attribute__((aligned(256)))
\n
"
"raid6_gflog[256] =
\n
"
"{
\n
"
);
for
(
i
=
0
;
i
<
256
;
i
+=
8
)
{
printf
(
"
\t
"
);
for
(
j
=
0
;
j
<
8
;
j
++
)
{
v
=
255
;
for
(
k
=
0
;
k
<
256
;
k
++
)
if
(
exptbl
[
k
]
==
(
i
+
j
))
{
v
=
k
;
break
;
}
printf
(
"0x%02x,%c"
,
v
,
(
j
==
7
)
?
'\n'
:
' '
);
}
}
printf
(
"};
\n
"
);
printf
(
"#ifdef __KERNEL__
\n
"
);
printf
(
"EXPORT_SYMBOL(raid6_gflog);
\n
"
);
printf
(
"#endif
\n
"
);
/* Compute inverse table x^-1 == x^254 */
/* Compute inverse table x^-1 == x^254 */
printf
(
"
\n
const u8 __attribute__((aligned(256)))
\n
"
printf
(
"
\n
const u8 __attribute__((aligned(256)))
\n
"
"raid6_gfinv[256] =
\n
"
"{
\n
"
);
"raid6_gfinv[256] =
\n
"
"{
\n
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录