Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
64b5ce1f
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
64b5ce1f
编写于
8月 20, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/falcon: switch to subdev printk macros
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
185eda33
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
13 deletion
+14
-13
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
+14
-13
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
浏览文件 @
64b5ce1f
...
...
@@ -31,13 +31,13 @@ nvkm_falcon_intr(struct nvkm_subdev *subdev)
u32
intr
=
nv_ro32
(
falcon
,
0x008
)
&
dispatch
&
~
(
dispatch
>>
16
);
if
(
intr
&
0x00000010
)
{
nv
_debug
(
falcon
,
"ucode halted
\n
"
);
nv
km_debug
(
subdev
,
"ucode halted
\n
"
);
nv_wo32
(
falcon
,
0x004
,
0x00000010
);
intr
&=
~
0x00000010
;
}
if
(
intr
)
{
nv
_error
(
falcon
,
"unhandled intr 0x
%08x
\n
"
,
intr
);
nv
km_error
(
subdev
,
"intr
%08x
\n
"
,
intr
);
nv_wo32
(
falcon
,
0x004
,
intr
);
}
}
...
...
@@ -69,8 +69,9 @@ vmemdup(const void *src, size_t len)
int
_nvkm_falcon_init
(
struct
nvkm_object
*
object
)
{
struct
nvkm_device
*
device
=
nv_device
(
object
);
struct
nvkm_falcon
*
falcon
=
(
void
*
)
object
;
struct
nvkm_subdev
*
subdev
=
&
falcon
->
engine
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
const
struct
firmware
*
fw
;
char
name
[
32
]
=
"internal"
;
int
ret
,
i
;
...
...
@@ -95,10 +96,10 @@ _nvkm_falcon_init(struct nvkm_object *object)
falcon
->
code
.
limit
=
(
caps
&
0x000001ff
)
<<
8
;
falcon
->
data
.
limit
=
(
caps
&
0x0003fe00
)
>>
1
;
nv
_debug
(
falcon
,
"falcon version: %d
\n
"
,
falcon
->
version
);
nv
_debug
(
falcon
,
"secret level: %d
\n
"
,
falcon
->
secret
);
nv
_debug
(
falcon
,
"code limit: %d
\n
"
,
falcon
->
code
.
limit
);
nv
_debug
(
falcon
,
"data limit: %d
\n
"
,
falcon
->
data
.
limit
);
nv
km_debug
(
subdev
,
"falcon version: %d
\n
"
,
falcon
->
version
);
nv
km_debug
(
subdev
,
"secret level: %d
\n
"
,
falcon
->
secret
);
nv
km_debug
(
subdev
,
"code limit: %d
\n
"
,
falcon
->
code
.
limit
);
nv
km_debug
(
subdev
,
"data limit: %d
\n
"
,
falcon
->
data
.
limit
);
/* wait for 'uc halted' to be signalled before continuing */
if
(
falcon
->
secret
&&
falcon
->
version
<
4
)
{
...
...
@@ -147,7 +148,7 @@ _nvkm_falcon_init(struct nvkm_object *object)
ret
=
request_firmware
(
&
fw
,
name
,
nv_device_base
(
device
));
if
(
ret
)
{
nv
_error
(
falcon
,
"unable to load firmware data
\n
"
);
nv
km_error
(
subdev
,
"unable to load firmware data
\n
"
);
return
ret
;
}
...
...
@@ -162,7 +163,7 @@ _nvkm_falcon_init(struct nvkm_object *object)
ret
=
request_firmware
(
&
fw
,
name
,
nv_device_base
(
device
));
if
(
ret
)
{
nv
_error
(
falcon
,
"unable to load firmware code
\n
"
);
nv
km_error
(
subdev
,
"unable to load firmware code
\n
"
);
return
ret
;
}
...
...
@@ -173,15 +174,15 @@ _nvkm_falcon_init(struct nvkm_object *object)
return
-
ENOMEM
;
}
nv
_debug
(
falcon
,
"firmware: %s (%s)
\n
"
,
name
,
falcon
->
data
.
data
?
"static code/data segments"
:
"self-bootstrapping"
);
nv
km_debug
(
subdev
,
"firmware: %s (%s)
\n
"
,
name
,
falcon
->
data
.
data
?
"static code/data segments"
:
"self-bootstrapping"
);
/* ensure any "self-bootstrapping" firmware image is in vram */
if
(
!
falcon
->
data
.
data
&&
!
falcon
->
core
)
{
ret
=
nvkm_gpuobj_new
(
object
->
parent
,
NULL
,
falcon
->
code
.
size
,
256
,
0
,
&
falcon
->
core
);
if
(
ret
)
{
nv
_error
(
falcon
,
"core allocation failed, %d
\n
"
,
ret
);
nv
km_error
(
subdev
,
"core allocation failed, %d
\n
"
,
ret
);
return
ret
;
}
...
...
@@ -202,7 +203,7 @@ _nvkm_falcon_init(struct nvkm_object *object)
}
else
{
if
(
falcon
->
code
.
size
>
falcon
->
code
.
limit
||
falcon
->
data
.
size
>
falcon
->
data
.
limit
)
{
nv
_error
(
falcon
,
"ucode exceeds falcon limit(s)
\n
"
);
nv
km_error
(
subdev
,
"ucode exceeds falcon limit(s)
\n
"
);
return
-
EINVAL
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录