Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
b835c09b
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
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看板
提交
b835c09b
编写于
8月 20, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/mpeg: switch to subdev printk macros
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
109c2f2f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
18 deletion
+21
-18
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c
+7
-5
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv40.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv40.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c
+5
-5
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv50.c
+8
-7
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c
浏览文件 @
b835c09b
...
...
@@ -229,9 +229,9 @@ nv31_mpeg_intr(struct nvkm_subdev *subdev)
nvkm_wr32
(
device
,
0x00b230
,
0x00000001
);
if
(
show
)
{
nv
_error
(
mpeg
,
"ch %d [%s] 0x%08x 0x%08x 0x%08x 0x
%08x
\n
"
,
fifo
->
chid
(
fifo
,
engctx
),
nvkm_client_name
(
engctx
),
stat
,
type
,
mthd
,
data
);
nv
km_error
(
subdev
,
"ch %d [%s] %08x %08x %08x
%08x
\n
"
,
fifo
->
chid
(
fifo
,
engctx
),
nvkm_client_name
(
engctx
),
stat
,
type
,
mthd
,
data
);
}
spin_unlock_irqrestore
(
&
nv_engine
(
mpeg
)
->
lock
,
flags
);
...
...
@@ -263,7 +263,8 @@ nv31_mpeg_init(struct nvkm_object *object)
{
struct
nvkm_engine
*
engine
=
nv_engine
(
object
);
struct
nv31_mpeg
*
mpeg
=
(
void
*
)
object
;
struct
nvkm_device
*
device
=
mpeg
->
base
.
engine
.
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
mpeg
->
base
.
engine
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
struct
nvkm_fb
*
fb
=
device
->
fb
;
int
ret
,
i
;
...
...
@@ -292,7 +293,8 @@ nv31_mpeg_init(struct nvkm_object *object)
if
(
!
(
nvkm_rd32
(
device
,
0x00b200
)
&
0x00000001
))
break
;
)
<
0
)
{
nv_error
(
mpeg
,
"timeout 0x%08x
\n
"
,
nvkm_rd32
(
device
,
0x00b200
));
nvkm_error
(
subdev
,
"timeout %08x
\n
"
,
nvkm_rd32
(
device
,
0x00b200
));
return
-
EBUSY
;
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv40.c
浏览文件 @
b835c09b
...
...
@@ -98,7 +98,7 @@ nv40_mpeg_intr(struct nvkm_subdev *subdev)
nv31_mpeg_intr
(
subdev
);
if
((
stat
=
nvkm_rd32
(
device
,
0x00b800
)))
{
nv
_error
(
mpeg
,
"PMSRCH 0x
%08x
\n
"
,
stat
);
nv
km_error
(
subdev
,
"PMSRCH
%08x
\n
"
,
stat
);
nvkm_wr32
(
device
,
0x00b800
,
stat
);
}
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c
浏览文件 @
b835c09b
...
...
@@ -126,10 +126,10 @@ nv44_mpeg_intr(struct nvkm_subdev *subdev)
nvkm_wr32
(
device
,
0x00b230
,
0x00000001
);
if
(
show
)
{
nv
_error
(
mpeg
,
"ch %d [0x%08x %s] 0x%08x 0x%08x 0x%08x 0x
%08x
\n
"
,
chid
,
inst
<<
4
,
nvkm_client_name
(
engctx
),
stat
,
type
,
mthd
,
data
);
nv
km_error
(
subdev
,
"ch %d [%08x %s] %08x %08x %08x
%08x
\n
"
,
chid
,
inst
<<
4
,
nvkm_client_name
(
engctx
),
stat
,
type
,
mthd
,
data
);
}
nvkm_engctx_put
(
engctx
);
...
...
@@ -146,7 +146,7 @@ nv44_mpeg_me_intr(struct nvkm_subdev *subdev)
nv44_mpeg_intr
(
subdev
);
if
((
stat
=
nvkm_rd32
(
device
,
0x00b800
)))
{
nv
_error
(
mpeg
,
"PMSRCH 0x
%08x
\n
"
,
stat
);
nv
km_error
(
subdev
,
"PMSRCH
%08x
\n
"
,
stat
);
nvkm_wr32
(
device
,
0x00b800
,
stat
);
}
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv50.c
浏览文件 @
b835c09b
...
...
@@ -135,8 +135,8 @@ nv50_mpeg_intr(struct nvkm_subdev *subdev)
}
if
(
show
)
{
nv
_info
(
mpeg
,
"0x%08x 0x%08x 0x%08x 0x
%08x
\n
"
,
stat
,
type
,
mthd
,
data
);
nv
km_info
(
subdev
,
"%08x %08x %08x
%08x
\n
"
,
stat
,
type
,
mthd
,
data
);
}
nvkm_wr32
(
device
,
0x00b100
,
stat
);
...
...
@@ -146,15 +146,14 @@ nv50_mpeg_intr(struct nvkm_subdev *subdev)
static
void
nv50_vpe_intr
(
struct
nvkm_subdev
*
subdev
)
{
struct
nvkm_mpeg
*
mpeg
=
(
void
*
)
subdev
;
struct
nvkm_device
*
device
=
mpeg
->
engine
.
subdev
.
device
;
struct
nvkm_device
*
device
=
subdev
->
device
;
if
(
nvkm_rd32
(
device
,
0x00b100
))
nv50_mpeg_intr
(
subdev
);
if
(
nvkm_rd32
(
device
,
0x00b800
))
{
u32
stat
=
nvkm_rd32
(
device
,
0x00b800
);
nv
_info
(
mpeg
,
"PMSRCH: 0x
%08x
\n
"
,
stat
);
nv
km_info
(
subdev
,
"PMSRCH:
%08x
\n
"
,
stat
);
nvkm_wr32
(
device
,
0xb800
,
stat
);
}
}
...
...
@@ -183,7 +182,8 @@ int
nv50_mpeg_init
(
struct
nvkm_object
*
object
)
{
struct
nvkm_mpeg
*
mpeg
=
(
void
*
)
object
;
struct
nvkm_device
*
device
=
mpeg
->
engine
.
subdev
.
device
;
struct
nvkm_subdev
*
subdev
=
&
mpeg
->
engine
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
int
ret
;
ret
=
nvkm_mpeg_init
(
mpeg
);
...
...
@@ -208,7 +208,8 @@ nv50_mpeg_init(struct nvkm_object *object)
if
(
!
(
nvkm_rd32
(
device
,
0x00b200
)
&
0x00000001
))
break
;
)
<
0
)
{
nv_error
(
mpeg
,
"timeout 0x%08x
\n
"
,
nvkm_rd32
(
device
,
0x00b200
));
nvkm_error
(
subdev
,
"timeout %08x
\n
"
,
nvkm_rd32
(
device
,
0x00b200
));
return
-
EBUSY
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录