Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
add354dd
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
add354dd
编写于
10月 29, 2010
作者:
C
Chris Wilson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/i915: Record BSD engine error state
Signed-off-by:
N
Chris Wilson
<
chris@chris-wilson.co.uk
>
上级
6aa56062
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
24 addition
and
0 deletion
+24
-0
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_debugfs.c
+6
-0
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_drv.h
+5
-0
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_irq.c
+9
-0
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/i915_reg.h
+4
-0
未找到文件。
drivers/gpu/drm/i915/i915_debugfs.c
浏览文件 @
add354dd
...
...
@@ -634,6 +634,12 @@ static int i915_error_state(struct seq_file *m, void *unused)
seq_printf
(
m
,
" IPEIR: 0x%08x
\n
"
,
error
->
bcs_ipeir
);
seq_printf
(
m
,
" INSTDONE: 0x%08x
\n
"
,
error
->
bcs_instdone
);
seq_printf
(
m
,
" seqno: 0x%08x
\n
"
,
error
->
bcs_seqno
);
seq_printf
(
m
,
"Video (BSD) command stream:
\n
"
);
seq_printf
(
m
,
" ACTHD: 0x%08x
\n
"
,
error
->
vcs_acthd
);
seq_printf
(
m
,
" IPEHR: 0x%08x
\n
"
,
error
->
vcs_ipehr
);
seq_printf
(
m
,
" IPEIR: 0x%08x
\n
"
,
error
->
vcs_ipeir
);
seq_printf
(
m
,
" INSTDONE: 0x%08x
\n
"
,
error
->
vcs_instdone
);
seq_printf
(
m
,
" seqno: 0x%08x
\n
"
,
error
->
vcs_seqno
);
}
seq_printf
(
m
,
"Render command stream:
\n
"
);
seq_printf
(
m
,
" ACTHD: 0x%08x
\n
"
,
error
->
acthd
);
...
...
drivers/gpu/drm/i915/i915_drv.h
浏览文件 @
add354dd
...
...
@@ -154,6 +154,11 @@ struct drm_i915_error_state {
u32
bcs_ipeir
;
u32
bcs_instdone
;
u32
bcs_seqno
;
u32
vcs_acthd
;
/* gen6+ bsd engine */
u32
vcs_ipehr
;
u32
vcs_ipeir
;
u32
vcs_instdone
;
u32
vcs_seqno
;
u32
instpm
;
u32
instps
;
u32
instdone1
;
...
...
drivers/gpu/drm/i915/i915_irq.c
浏览文件 @
add354dd
...
...
@@ -595,6 +595,7 @@ static void i915_capture_error_state(struct drm_device *dev)
error
->
error
=
0
;
if
(
INTEL_INFO
(
dev
)
->
gen
>=
6
)
{
error
->
error
=
I915_READ
(
ERROR_GEN6
);
error
->
bcs_acthd
=
I915_READ
(
BCS_ACTHD
);
error
->
bcs_ipehr
=
I915_READ
(
BCS_IPEHR
);
error
->
bcs_ipeir
=
I915_READ
(
BCS_IPEIR
);
...
...
@@ -602,6 +603,14 @@ static void i915_capture_error_state(struct drm_device *dev)
error
->
bcs_seqno
=
0
;
if
(
dev_priv
->
blt_ring
.
get_seqno
)
error
->
bcs_seqno
=
dev_priv
->
blt_ring
.
get_seqno
(
&
dev_priv
->
blt_ring
);
error
->
vcs_acthd
=
I915_READ
(
VCS_ACTHD
);
error
->
vcs_ipehr
=
I915_READ
(
VCS_IPEHR
);
error
->
vcs_ipeir
=
I915_READ
(
VCS_IPEIR
);
error
->
vcs_instdone
=
I915_READ
(
VCS_INSTDONE
);
error
->
vcs_seqno
=
0
;
if
(
dev_priv
->
bsd_ring
.
get_seqno
)
error
->
vcs_seqno
=
dev_priv
->
bsd_ring
.
get_seqno
(
&
dev_priv
->
bsd_ring
);
}
if
(
INTEL_INFO
(
dev
)
->
gen
>=
4
)
{
error
->
ipeir
=
I915_READ
(
IPEIR_I965
);
...
...
drivers/gpu/drm/i915/i915_reg.h
浏览文件 @
add354dd
...
...
@@ -305,6 +305,10 @@
#define INSTDONE 0x02090
#define NOPID 0x02094
#define HWSTAM 0x02098
#define VCS_INSTDONE 0x1206C
#define VCS_IPEIR 0x12064
#define VCS_IPEHR 0x12068
#define VCS_ACTHD 0x12074
#define BCS_INSTDONE 0x2206C
#define BCS_IPEIR 0x22064
#define BCS_IPEHR 0x22068
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录