Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
7108bfe4
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看板
提交
7108bfe4
编写于
8月 20, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/xtensa: switch to subdev printk macros
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
64b5ce1f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
7 deletion
+8
-7
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
+8
-7
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
浏览文件 @
7108bfe4
...
@@ -62,11 +62,11 @@ _nvkm_xtensa_intr(struct nvkm_subdev *subdev)
...
@@ -62,11 +62,11 @@ _nvkm_xtensa_intr(struct nvkm_subdev *subdev)
u32
unk10c
=
nv_ro32
(
xtensa
,
0xd0c
);
u32
unk10c
=
nv_ro32
(
xtensa
,
0xd0c
);
if
(
intr
&
0x10
)
if
(
intr
&
0x10
)
nv
_warn
(
xtensa
,
"Watchdog interrupt, engine hung.
\n
"
);
nv
km_warn
(
subdev
,
"Watchdog interrupt, engine hung.
\n
"
);
nv_wo32
(
xtensa
,
0xc20
,
intr
);
nv_wo32
(
xtensa
,
0xc20
,
intr
);
intr
=
nv_ro32
(
xtensa
,
0xc20
);
intr
=
nv_ro32
(
xtensa
,
0xc20
);
if
(
unk104
==
0x10001
&&
unk10c
==
0x200
&&
chan
&&
!
intr
)
{
if
(
unk104
==
0x10001
&&
unk10c
==
0x200
&&
chan
&&
!
intr
)
{
nv
_debug
(
xtensa
,
"Enabling FIFO_CTRL
\n
"
);
nv
km_debug
(
subdev
,
"Enabling FIFO_CTRL
\n
"
);
nvkm_mask
(
device
,
xtensa
->
addr
+
0xd94
,
0
,
xtensa
->
fifo_val
);
nvkm_mask
(
device
,
xtensa
->
addr
+
0xd94
,
0
,
xtensa
->
fifo_val
);
}
}
}
}
...
@@ -94,8 +94,9 @@ nvkm_xtensa_create_(struct nvkm_object *parent, struct nvkm_object *engine,
...
@@ -94,8 +94,9 @@ nvkm_xtensa_create_(struct nvkm_object *parent, struct nvkm_object *engine,
int
int
_nvkm_xtensa_init
(
struct
nvkm_object
*
object
)
_nvkm_xtensa_init
(
struct
nvkm_object
*
object
)
{
{
struct
nvkm_device
*
device
=
nv_device
(
object
);
struct
nvkm_xtensa
*
xtensa
=
(
void
*
)
object
;
struct
nvkm_xtensa
*
xtensa
=
(
void
*
)
object
;
struct
nvkm_subdev
*
subdev
=
&
xtensa
->
engine
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
const
struct
firmware
*
fw
;
const
struct
firmware
*
fw
;
char
name
[
32
];
char
name
[
32
];
int
i
,
ret
;
int
i
,
ret
;
...
@@ -111,12 +112,12 @@ _nvkm_xtensa_init(struct nvkm_object *object)
...
@@ -111,12 +112,12 @@ _nvkm_xtensa_init(struct nvkm_object *object)
ret
=
request_firmware
(
&
fw
,
name
,
nv_device_base
(
device
));
ret
=
request_firmware
(
&
fw
,
name
,
nv_device_base
(
device
));
if
(
ret
)
{
if
(
ret
)
{
nv
_warn
(
xtensa
,
"unable to load firmware %s
\n
"
,
name
);
nv
km_warn
(
subdev
,
"unable to load firmware %s
\n
"
,
name
);
return
ret
;
return
ret
;
}
}
if
(
fw
->
size
>
0x40000
)
{
if
(
fw
->
size
>
0x40000
)
{
nv
_warn
(
xtensa
,
"firmware %s too large
\n
"
,
name
);
nv
km_warn
(
subdev
,
"firmware %s too large
\n
"
,
name
);
release_firmware
(
fw
);
release_firmware
(
fw
);
return
-
EINVAL
;
return
-
EINVAL
;
}
}
...
@@ -128,8 +129,8 @@ _nvkm_xtensa_init(struct nvkm_object *object)
...
@@ -128,8 +129,8 @@ _nvkm_xtensa_init(struct nvkm_object *object)
return
ret
;
return
ret
;
}
}
nv
_debug
(
xtensa
,
"Loading firmware to address: 0x%
llx
\n
"
,
nv
km_debug
(
subdev
,
"Loading firmware to address: %010
llx
\n
"
,
xtensa
->
gpu_fw
->
addr
);
xtensa
->
gpu_fw
->
addr
);
for
(
i
=
0
;
i
<
fw
->
size
/
4
;
i
++
)
for
(
i
=
0
;
i
<
fw
->
size
/
4
;
i
++
)
nv_wo32
(
xtensa
->
gpu_fw
,
i
*
4
,
*
((
u32
*
)
fw
->
data
+
i
));
nv_wo32
(
xtensa
->
gpu_fw
,
i
*
4
,
*
((
u32
*
)
fw
->
data
+
i
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录