Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
1eed206f
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看板
提交
1eed206f
编写于
8月 20, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/ce: switch to subdev printk macros
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
7108bfe4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
10 deletion
+10
-10
drivers/gpu/drm/nouveau/nvkm/engine/ce/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/ce/gk104.c
+1
-2
drivers/gpu/drm/nouveau/nvkm/engine/ce/gm204.c
drivers/gpu/drm/nouveau/nvkm/engine/ce/gm204.c
+1
-2
drivers/gpu/drm/nouveau/nvkm/engine/ce/gt215.c
drivers/gpu/drm/nouveau/nvkm/engine/ce/gt215.c
+8
-6
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/ce/gk104.c
浏览文件 @
1eed206f
...
@@ -64,11 +64,10 @@ gk104_ce_intr(struct nvkm_subdev *subdev)
...
@@ -64,11 +64,10 @@ gk104_ce_intr(struct nvkm_subdev *subdev)
{
{
struct
nvkm_device
*
device
=
subdev
->
device
;
struct
nvkm_device
*
device
=
subdev
->
device
;
const
int
idx
=
nv_subidx
(
subdev
)
-
NVDEV_ENGINE_CE0
;
const
int
idx
=
nv_subidx
(
subdev
)
-
NVDEV_ENGINE_CE0
;
struct
nvkm_engine
*
ce
=
(
void
*
)
subdev
;
u32
stat
=
nvkm_rd32
(
device
,
0x104908
+
(
idx
*
0x1000
));
u32
stat
=
nvkm_rd32
(
device
,
0x104908
+
(
idx
*
0x1000
));
if
(
stat
)
{
if
(
stat
)
{
nv
_warn
(
ce
,
"unhandled intr 0x
%08x
\n
"
,
stat
);
nv
km_warn
(
subdev
,
"intr
%08x
\n
"
,
stat
);
nvkm_wr32
(
device
,
0x104908
+
(
idx
*
0x1000
),
stat
);
nvkm_wr32
(
device
,
0x104908
+
(
idx
*
0x1000
),
stat
);
}
}
}
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/ce/gm204.c
浏览文件 @
1eed206f
...
@@ -64,11 +64,10 @@ gm204_ce_intr(struct nvkm_subdev *subdev)
...
@@ -64,11 +64,10 @@ gm204_ce_intr(struct nvkm_subdev *subdev)
{
{
struct
nvkm_device
*
device
=
subdev
->
device
;
struct
nvkm_device
*
device
=
subdev
->
device
;
const
int
idx
=
nv_subidx
(
subdev
)
-
NVDEV_ENGINE_CE0
;
const
int
idx
=
nv_subidx
(
subdev
)
-
NVDEV_ENGINE_CE0
;
struct
nvkm_engine
*
ce
=
(
void
*
)
subdev
;
u32
stat
=
nvkm_rd32
(
device
,
0x104908
+
(
idx
*
0x1000
));
u32
stat
=
nvkm_rd32
(
device
,
0x104908
+
(
idx
*
0x1000
));
if
(
stat
)
{
if
(
stat
)
{
nv
_warn
(
ce
,
"unhandled intr 0x
%08x
\n
"
,
stat
);
nv
km_warn
(
subdev
,
"intr
%08x
\n
"
,
stat
);
nvkm_wr32
(
device
,
0x104908
+
(
idx
*
0x1000
),
stat
);
nvkm_wr32
(
device
,
0x104908
+
(
idx
*
0x1000
),
stat
);
}
}
}
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/ce/gt215.c
浏览文件 @
1eed206f
...
@@ -76,6 +76,7 @@ gt215_ce_intr(struct nvkm_subdev *subdev)
...
@@ -76,6 +76,7 @@ gt215_ce_intr(struct nvkm_subdev *subdev)
struct
nvkm_engine
*
engine
=
nv_engine
(
subdev
);
struct
nvkm_engine
*
engine
=
nv_engine
(
subdev
);
struct
nvkm_falcon
*
falcon
=
(
void
*
)
subdev
;
struct
nvkm_falcon
*
falcon
=
(
void
*
)
subdev
;
struct
nvkm_object
*
engctx
;
struct
nvkm_object
*
engctx
;
const
struct
nvkm_enum
*
en
;
u32
dispatch
=
nv_ro32
(
falcon
,
0x01c
);
u32
dispatch
=
nv_ro32
(
falcon
,
0x01c
);
u32
stat
=
nv_ro32
(
falcon
,
0x008
)
&
dispatch
&
~
(
dispatch
>>
16
);
u32
stat
=
nv_ro32
(
falcon
,
0x008
)
&
dispatch
&
~
(
dispatch
>>
16
);
u64
inst
=
nv_ro32
(
falcon
,
0x050
)
&
0x3fffffff
;
u64
inst
=
nv_ro32
(
falcon
,
0x050
)
&
0x3fffffff
;
...
@@ -90,17 +91,18 @@ gt215_ce_intr(struct nvkm_subdev *subdev)
...
@@ -90,17 +91,18 @@ gt215_ce_intr(struct nvkm_subdev *subdev)
chid
=
fifo
->
chid
(
fifo
,
engctx
);
chid
=
fifo
->
chid
(
fifo
,
engctx
);
if
(
stat
&
0x00000040
)
{
if
(
stat
&
0x00000040
)
{
nv_error
(
falcon
,
"DISPATCH_ERROR ["
);
en
=
nvkm_enum_find
(
gt215_ce_isr_error_name
,
ssta
);
nvkm_enum_print
(
gt215_ce_isr_error_name
,
ssta
);
nvkm_error
(
subdev
,
"DISPATCH_ERROR %04x [%s] "
pr_cont
(
"] ch %d [0x%010llx %s] subc %d mthd 0x%04x data 0x%08x
\n
"
,
"ch %d [%010llx %s] subc %d "
chid
,
inst
<<
12
,
nvkm_client_name
(
engctx
),
subc
,
"mthd %04x data %08x
\n
"
,
mthd
,
data
);
ssta
,
en
?
en
->
name
:
""
,
chid
,
inst
<<
12
,
nvkm_client_name
(
engctx
),
subc
,
mthd
,
data
);
nv_wo32
(
falcon
,
0x004
,
0x00000040
);
nv_wo32
(
falcon
,
0x004
,
0x00000040
);
stat
&=
~
0x00000040
;
stat
&=
~
0x00000040
;
}
}
if
(
stat
)
{
if
(
stat
)
{
nv
_error
(
falcon
,
"unhandled intr 0x
%08x
\n
"
,
stat
);
nv
km_error
(
subdev
,
"intr
%08x
\n
"
,
stat
);
nv_wo32
(
falcon
,
0x004
,
stat
);
nv_wo32
(
falcon
,
0x004
,
stat
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录