Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
13bb199f
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看板
提交
13bb199f
编写于
19年前
作者:
P
Pete Popov
提交者:
Ralf Baechle
19年前
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix a cache snooping issue.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
d6460827
无相关合并请求
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
17 addition
and
9 deletion
+17
-9
arch/mips/au1000/common/dbdma.c
arch/mips/au1000/common/dbdma.c
+17
-9
未找到文件。
arch/mips/au1000/common/dbdma.c
浏览文件 @
13bb199f
...
...
@@ -141,12 +141,12 @@ static dbdev_tab_t dbdev_tab[] = {
{
DSCR_CMD0_AES_RX
,
DEV_FLAGS_IN
,
4
,
32
,
0x10300008
,
0
,
0
},
{
DSCR_CMD0_AES_TX
,
DEV_FLAGS_OUT
,
4
,
32
,
0x10300004
,
0
,
0
},
{
DSCR_CMD0_PSC0_TX
,
DEV_FLAGS_OUT
,
0
,
0
,
0x11a0001c
,
0
,
0
},
{
DSCR_CMD0_PSC0_RX
,
DEV_FLAGS_IN
,
0
,
0
,
0x11a0001c
,
0
,
0
},
{
DSCR_CMD0_PSC0_TX
,
DEV_FLAGS_OUT
,
0
,
16
,
0x11a0001c
,
0
,
0
},
{
DSCR_CMD0_PSC0_RX
,
DEV_FLAGS_IN
,
0
,
16
,
0x11a0001c
,
0
,
0
},
{
DSCR_CMD0_PSC0_SYNC
,
DEV_FLAGS_ANYUSE
,
0
,
0
,
0x00000000
,
0
,
0
},
{
DSCR_CMD0_PSC1_TX
,
DEV_FLAGS_OUT
,
0
,
0
,
0x11b0001c
,
0
,
0
},
{
DSCR_CMD0_PSC1_RX
,
DEV_FLAGS_IN
,
0
,
0
,
0x11b0001c
,
0
,
0
},
{
DSCR_CMD0_PSC1_TX
,
DEV_FLAGS_OUT
,
0
,
16
,
0x11b0001c
,
0
,
0
},
{
DSCR_CMD0_PSC1_RX
,
DEV_FLAGS_IN
,
0
,
16
,
0x11b0001c
,
0
,
0
},
{
DSCR_CMD0_PSC1_SYNC
,
DEV_FLAGS_ANYUSE
,
0
,
0
,
0x00000000
,
0
,
0
},
{
DSCR_CMD0_CIM_RXA
,
DEV_FLAGS_IN
,
0
,
32
,
0x14004020
,
0
,
0
},
...
...
@@ -430,7 +430,13 @@ au1xxx_dbdma_ring_alloc(u32 chanid, int entries)
cmd0
|=
DSCR_CMD0_SID
(
srcid
);
cmd0
|=
DSCR_CMD0_DID
(
destid
);
cmd0
|=
DSCR_CMD0_IE
|
DSCR_CMD0_CV
;
cmd0
|=
DSCR_CMD0_ST
(
DSCR_CMD0_ST_CURRENT
);
cmd0
|=
DSCR_CMD0_ST
(
DSCR_CMD0_ST_NOCHANGE
);
/* is it mem to mem transfer? */
if
(((
DSCR_CUSTOM2DEV_ID
(
srcid
)
==
DSCR_CMD0_THROTTLE
)
||
(
DSCR_CUSTOM2DEV_ID
(
srcid
)
==
DSCR_CMD0_ALWAYS
))
&&
((
DSCR_CUSTOM2DEV_ID
(
destid
)
==
DSCR_CMD0_THROTTLE
)
||
(
DSCR_CUSTOM2DEV_ID
(
destid
)
==
DSCR_CMD0_ALWAYS
)))
{
cmd0
|=
DSCR_CMD0_MEM
;
}
switch
(
stp
->
dev_devwidth
)
{
case
8
:
...
...
@@ -539,7 +545,8 @@ au1xxx_dbdma_ring_alloc(u32 chanid, int entries)
dp
->
dscr_dest0
=
dest0
;
dp
->
dscr_dest1
=
dest1
;
dp
->
dscr_stat
=
0
;
dp
->
sw_context
=
dp
->
sw_status
=
0
;
dp
->
sw_context
=
0
;
dp
->
sw_status
=
0
;
dp
->
dscr_nxtptr
=
DSCR_NXTPTR
(
virt_to_phys
(
dp
+
1
));
dp
++
;
}
...
...
@@ -591,9 +598,6 @@ _au1xxx_dbdma_put_source(u32 chanid, void *buf, int nbytes, u32 flags)
dp
->
dscr_cmd0
|=
DSCR_CMD0_IE
;
if
(
flags
&
DDMA_FLAGS_NOIE
)
dp
->
dscr_cmd0
&=
~
DSCR_CMD0_IE
;
/* Get next descriptor pointer.
*/
ctp
->
put_ptr
=
phys_to_virt
(
DSCR_GET_NXTPTR
(
dp
->
dscr_nxtptr
));
/*
* There is an errata on the Au1200/Au1550 parts that could result
...
...
@@ -608,6 +612,10 @@ _au1xxx_dbdma_put_source(u32 chanid, void *buf, int nbytes, u32 flags)
dma_cache_wback_inv
((
unsigned
long
)
dp
,
sizeof
(
dp
));
ctp
->
chan_ptr
->
ddma_dbell
=
0
;
/* Get next descriptor pointer.
*/
ctp
->
put_ptr
=
phys_to_virt
(
DSCR_GET_NXTPTR
(
dp
->
dscr_nxtptr
));
/* return something not zero.
*/
return
nbytes
;
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部