Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
70b2cc8e
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看板
提交
70b2cc8e
编写于
9月 26, 2014
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/gk104-/fifo: handle copy engine class errors
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
9b4de93b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
42 addition
and
6 deletion
+42
-6
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
+42
-6
未找到文件。
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
浏览文件 @
70b2cc8e
...
...
@@ -792,7 +792,7 @@ nve0_fifo_intr_fault(struct nve0_fifo_priv *priv, int unit)
nouveau_engctx_put
(
engctx
);
}
static
const
struct
nouveau_bitfield
nve0_fifo_pbdma_intr
[]
=
{
static
const
struct
nouveau_bitfield
nve0_fifo_pbdma_intr
_0
[]
=
{
{
0x00000001
,
"MEMREQ"
},
{
0x00000002
,
"MEMACK_TIMEOUT"
},
{
0x00000004
,
"MEMACK_EXTRA"
},
...
...
@@ -827,9 +827,10 @@ static const struct nouveau_bitfield nve0_fifo_pbdma_intr[] = {
};
static
void
nve0_fifo_intr_pbdma
(
struct
nve0_fifo_priv
*
priv
,
int
unit
)
nve0_fifo_intr_pbdma
_0
(
struct
nve0_fifo_priv
*
priv
,
int
unit
)
{
u32
stat
=
nv_rd32
(
priv
,
0x040108
+
(
unit
*
0x2000
));
u32
mask
=
nv_rd32
(
priv
,
0x04010c
+
(
unit
*
0x2000
));
u32
stat
=
nv_rd32
(
priv
,
0x040108
+
(
unit
*
0x2000
))
&
mask
;
u32
addr
=
nv_rd32
(
priv
,
0x0400c0
+
(
unit
*
0x2000
));
u32
data
=
nv_rd32
(
priv
,
0x0400c4
+
(
unit
*
0x2000
));
u32
chid
=
nv_rd32
(
priv
,
0x040120
+
(
unit
*
0x2000
))
&
0xfff
;
...
...
@@ -840,11 +841,12 @@ nve0_fifo_intr_pbdma(struct nve0_fifo_priv *priv, int unit)
if
(
stat
&
0x00800000
)
{
if
(
!
nve0_fifo_swmthd
(
priv
,
chid
,
mthd
,
data
))
show
&=
~
0x00800000
;
nv_wr32
(
priv
,
0x0400c0
+
(
unit
*
0x2000
),
0x80600008
);
}
if
(
show
)
{
nv_error
(
priv
,
"PBDMA%d:"
,
unit
);
nouveau_bitfield_print
(
nve0_fifo_pbdma_intr
,
show
);
nouveau_bitfield_print
(
nve0_fifo_pbdma_intr
_0
,
show
);
pr_cont
(
"
\n
"
);
nv_error
(
priv
,
"PBDMA%d: ch %d [%s] subc %d mthd 0x%04x data 0x%08x
\n
"
,
...
...
@@ -853,10 +855,37 @@ nve0_fifo_intr_pbdma(struct nve0_fifo_priv *priv, int unit)
subc
,
mthd
,
data
);
}
nv_wr32
(
priv
,
0x0400c0
+
(
unit
*
0x2000
),
0x80600008
);
nv_wr32
(
priv
,
0x040108
+
(
unit
*
0x2000
),
stat
);
}
static
const
struct
nouveau_bitfield
nve0_fifo_pbdma_intr_1
[]
=
{
{
0x00000001
,
"HCE_RE_ILLEGAL_OP"
},
{
0x00000002
,
"HCE_RE_ALIGNB"
},
{
0x00000004
,
"HCE_PRIV"
},
{
0x00000008
,
"HCE_ILLEGAL_MTHD"
},
{
0x00000010
,
"HCE_ILLEGAL_CLASS"
},
{}
};
static
void
nve0_fifo_intr_pbdma_1
(
struct
nve0_fifo_priv
*
priv
,
int
unit
)
{
u32
mask
=
nv_rd32
(
priv
,
0x04014c
+
(
unit
*
0x2000
));
u32
stat
=
nv_rd32
(
priv
,
0x040148
+
(
unit
*
0x2000
))
&
mask
;
u32
chid
=
nv_rd32
(
priv
,
0x040120
+
(
unit
*
0x2000
))
&
0xfff
;
if
(
stat
)
{
nv_error
(
priv
,
"PBDMA%d:"
,
unit
);
nouveau_bitfield_print
(
nve0_fifo_pbdma_intr_1
,
stat
);
pr_cont
(
"
\n
"
);
nv_error
(
priv
,
"PBDMA%d: ch %d %08x %08x
\n
"
,
unit
,
chid
,
nv_rd32
(
priv
,
0x040150
+
(
unit
*
0x2000
)),
nv_rd32
(
priv
,
0x040154
+
(
unit
*
0x2000
)));
}
nv_wr32
(
priv
,
0x040148
+
(
unit
*
0x2000
),
stat
);
}
static
void
nve0_fifo_intr_runlist
(
struct
nve0_fifo_priv
*
priv
)
{
...
...
@@ -939,7 +968,8 @@ nve0_fifo_intr(struct nouveau_subdev *subdev)
u32
mask
=
nv_rd32
(
priv
,
0x0025a0
);
while
(
mask
)
{
u32
unit
=
__ffs
(
mask
);
nve0_fifo_intr_pbdma
(
priv
,
unit
);
nve0_fifo_intr_pbdma_0
(
priv
,
unit
);
nve0_fifo_intr_pbdma_1
(
priv
,
unit
);
nv_wr32
(
priv
,
0x0025a0
,
(
1
<<
unit
));
mask
&=
~
(
1
<<
unit
);
}
...
...
@@ -1022,6 +1052,12 @@ nve0_fifo_init(struct nouveau_object *object)
nv_wr32
(
priv
,
0x04010c
+
(
i
*
0x2000
),
0xfffffeff
);
/* INTREN */
}
/* PBDMA[n].HCE */
for
(
i
=
0
;
i
<
priv
->
spoon_nr
;
i
++
)
{
nv_wr32
(
priv
,
0x040148
+
(
i
*
0x2000
),
0xffffffff
);
/* INTR */
nv_wr32
(
priv
,
0x04014c
+
(
i
*
0x2000
),
0xffffffff
);
/* INTREN */
}
nv_wr32
(
priv
,
0x002254
,
0x10000000
|
priv
->
user
.
bar
.
offset
>>
12
);
nv_wr32
(
priv
,
0x002100
,
0xffffffff
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录