Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
e9fb9805
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
e9fb9805
编写于
1月 08, 2014
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nve0/fifo: document more intr status bits
As per Android GK20A driver. Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
9f8459cf
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
72 addition
and
5 deletion
+72
-5
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
+72
-5
未找到文件。
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c
浏览文件 @
e9fb9805
...
...
@@ -376,6 +376,11 @@ nve0_fifo_cclass = {
* PFIFO engine
******************************************************************************/
static
const
struct
nouveau_enum
nve0_fifo_sched_reason
[]
=
{
{
0x0a
,
"CTXSW_TIMEOUT"
},
{}
};
static
const
struct
nouveau_enum
nve0_fifo_fault_unit
[]
=
{
{}
};
...
...
@@ -436,7 +441,32 @@ static const struct nouveau_bitfield nve0_fifo_pbdma_intr[] = {
};
static
void
nve0_fifo_isr_vm_fault
(
struct
nve0_fifo_priv
*
priv
,
int
unit
)
nve0_fifo_intr_sched
(
struct
nve0_fifo_priv
*
priv
)
{
u32
intr
=
nv_rd32
(
priv
,
0x00254c
);
u32
code
=
intr
&
0x000000ff
;
nv_error
(
priv
,
"SCHED_ERROR ["
);
nouveau_enum_print
(
nve0_fifo_sched_reason
,
code
);
pr_cont
(
"]
\n
"
);
}
static
void
nve0_fifo_intr_chsw
(
struct
nve0_fifo_priv
*
priv
)
{
u32
stat
=
nv_rd32
(
priv
,
0x00256c
);
nv_error
(
priv
,
"CHSW_ERROR 0x%08x
\n
"
,
stat
);
nv_wr32
(
priv
,
0x00256c
,
stat
);
}
static
void
nve0_fifo_intr_dropped_fault
(
struct
nve0_fifo_priv
*
priv
)
{
u32
stat
=
nv_rd32
(
priv
,
0x00259c
);
nv_error
(
priv
,
"DROPPED_MMU_FAULT 0x%08x
\n
"
,
stat
);
}
static
void
nve0_fifo_intr_fault
(
struct
nve0_fifo_priv
*
priv
,
int
unit
)
{
u32
inst
=
nv_rd32
(
priv
,
0x2800
+
(
unit
*
0x10
));
u32
valo
=
nv_rd32
(
priv
,
0x2804
+
(
unit
*
0x10
));
...
...
@@ -500,7 +530,7 @@ nve0_fifo_swmthd(struct nve0_fifo_priv *priv, u32 chid, u32 mthd, u32 data)
}
static
void
nve0_fifo_i
sr_pbdma_intr
(
struct
nve0_fifo_priv
*
priv
,
int
unit
)
nve0_fifo_i
ntr_pbdma
(
struct
nve0_fifo_priv
*
priv
,
int
unit
)
{
u32
stat
=
nv_rd32
(
priv
,
0x040108
+
(
unit
*
0x2000
));
u32
addr
=
nv_rd32
(
priv
,
0x0400c0
+
(
unit
*
0x2000
));
...
...
@@ -537,19 +567,56 @@ nve0_fifo_intr(struct nouveau_subdev *subdev)
u32
mask
=
nv_rd32
(
priv
,
0x002140
);
u32
stat
=
nv_rd32
(
priv
,
0x002100
)
&
mask
;
if
(
stat
&
0x00000001
)
{
u32
stat
=
nv_rd32
(
priv
,
0x00252c
);
nv_error
(
priv
,
"BIND_ERROR 0x%08x
\n
"
,
stat
);
nv_wr32
(
priv
,
0x002100
,
0x00000001
);
stat
&=
~
0x00000001
;
}
if
(
stat
&
0x00000010
)
{
nv_error
(
priv
,
"PIO_ERROR
\n
"
);
nv_wr32
(
priv
,
0x002100
,
0x00000010
);
stat
&=
~
0x00000010
;
}
if
(
stat
&
0x00000100
)
{
nv
_warn
(
priv
,
"unknown status 0x00000100
\n
"
);
nv
e0_fifo_intr_sched
(
priv
);
nv_wr32
(
priv
,
0x002100
,
0x00000100
);
stat
&=
~
0x00000100
;
}
if
(
stat
&
0x00010000
)
{
nve0_fifo_intr_chsw
(
priv
);
nv_wr32
(
priv
,
0x002100
,
0x00010000
);
stat
&=
~
0x00010000
;
}
if
(
stat
&
0x00800000
)
{
nv_error
(
priv
,
"FB_FLUSH_TIMEOUT
\n
"
);
nv_wr32
(
priv
,
0x002100
,
0x00800000
);
stat
&=
~
0x00800000
;
}
if
(
stat
&
0x01000000
)
{
nv_error
(
priv
,
"LB_ERROR
\n
"
);
nv_wr32
(
priv
,
0x002100
,
0x01000000
);
stat
&=
~
0x01000000
;
}
if
(
stat
&
0x08000000
)
{
nve0_fifo_intr_dropped_fault
(
priv
);
nv_wr32
(
priv
,
0x002100
,
0x08000000
);
stat
&=
~
0x08000000
;
}
if
(
stat
&
0x10000000
)
{
u32
units
=
nv_rd32
(
priv
,
0x00259c
);
u32
u
=
units
;
while
(
u
)
{
int
i
=
ffs
(
u
)
-
1
;
nve0_fifo_i
sr_vm
_fault
(
priv
,
i
);
nve0_fifo_i
ntr
_fault
(
priv
,
i
);
u
&=
~
(
1
<<
i
);
}
...
...
@@ -563,7 +630,7 @@ nve0_fifo_intr(struct nouveau_subdev *subdev)
while
(
temp
)
{
u32
unit
=
ffs
(
temp
)
-
1
;
nve0_fifo_i
sr_pbdma_intr
(
priv
,
unit
);
nve0_fifo_i
ntr_pbdma
(
priv
,
unit
);
temp
&=
~
(
1
<<
unit
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录