Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
00e1b5dc
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看板
提交
00e1b5dc
编写于
1月 15, 2020
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/gr/gf100-: move fecs/gpccs ucode into their substructures
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
0033f15b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
25 addition
and
22 deletion
+25
-22
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
+12
-10
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
+5
-4
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
+4
-4
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
+4
-4
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
浏览文件 @
00e1b5dc
...
...
@@ -1701,12 +1701,14 @@ gf100_gr_init_ctxctl_ext(struct gf100_gr *gr)
if
(
nvkm_secboot_is_managed
(
sb
,
NVKM_SECBOOT_FALCON_FECS
))
secboot_mask
|=
BIT
(
NVKM_SECBOOT_FALCON_FECS
);
else
gf100_gr_init_fw
(
gr
->
fecs
.
falcon
,
&
gr
->
fuc409c
,
&
gr
->
fuc409d
);
gf100_gr_init_fw
(
gr
->
fecs
.
falcon
,
&
gr
->
fecs
.
inst
,
&
gr
->
fecs
.
data
);
if
(
nvkm_secboot_is_managed
(
sb
,
NVKM_SECBOOT_FALCON_GPCCS
))
secboot_mask
|=
BIT
(
NVKM_SECBOOT_FALCON_GPCCS
);
else
gf100_gr_init_fw
(
gr
->
gpccs
.
falcon
,
&
gr
->
fuc41ac
,
&
gr
->
fuc41ad
);
gf100_gr_init_fw
(
gr
->
gpccs
.
falcon
,
&
gr
->
gpccs
.
inst
,
&
gr
->
gpccs
.
data
);
if
(
secboot_mask
!=
0
)
{
int
ret
=
nvkm_secboot_reset
(
sb
,
secboot_mask
);
...
...
@@ -2023,10 +2025,10 @@ gf100_gr_dtor(struct nvkm_gr *base)
nvkm_falcon_del
(
&
gr
->
gpccs
.
falcon
);
nvkm_falcon_del
(
&
gr
->
fecs
.
falcon
);
nvkm_blob_dtor
(
&
gr
->
f
uc409c
);
nvkm_blob_dtor
(
&
gr
->
f
uc409d
);
nvkm_blob_dtor
(
&
gr
->
fuc41ac
);
nvkm_blob_dtor
(
&
gr
->
fuc41ad
);
nvkm_blob_dtor
(
&
gr
->
f
ecs
.
inst
);
nvkm_blob_dtor
(
&
gr
->
f
ecs
.
data
);
nvkm_blob_dtor
(
&
gr
->
gpccs
.
inst
);
nvkm_blob_dtor
(
&
gr
->
gpccs
.
data
);
vfree
(
gr
->
bundle
);
vfree
(
gr
->
method
);
...
...
@@ -2146,10 +2148,10 @@ gf100_gr_new_(const struct gf100_gr_func *func, struct nvkm_device *device,
return
ret
;
if
(
gr
->
firmware
)
{
if
(
gf100_gr_ctor_fw
(
gr
,
"fecs_inst"
,
&
gr
->
f
uc409c
)
||
gf100_gr_ctor_fw
(
gr
,
"fecs_data"
,
&
gr
->
f
uc409d
)
||
gf100_gr_ctor_fw
(
gr
,
"gpccs_inst"
,
&
gr
->
fuc41ac
)
||
gf100_gr_ctor_fw
(
gr
,
"gpccs_data"
,
&
gr
->
fuc41ad
))
if
(
gf100_gr_ctor_fw
(
gr
,
"fecs_inst"
,
&
gr
->
f
ecs
.
inst
)
||
gf100_gr_ctor_fw
(
gr
,
"fecs_data"
,
&
gr
->
f
ecs
.
data
)
||
gf100_gr_ctor_fw
(
gr
,
"gpccs_inst"
,
&
gr
->
gpccs
.
inst
)
||
gf100_gr_ctor_fw
(
gr
,
"gpccs_data"
,
&
gr
->
gpccs
.
data
))
return
-
ENODEV
;
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
浏览文件 @
00e1b5dc
...
...
@@ -79,18 +79,19 @@ struct gf100_gr {
struct
{
struct
nvkm_falcon
*
falcon
;
struct
nvkm_blob
inst
;
struct
nvkm_blob
data
;
struct
mutex
mutex
;
u32
disable
;
}
fecs
;
struct
{
struct
nvkm_falcon
*
falcon
;
struct
nvkm_blob
inst
;
struct
nvkm_blob
data
;
}
gpccs
;
struct
nvkm_blob
fuc409c
;
struct
nvkm_blob
fuc409d
;
struct
nvkm_blob
fuc41ac
;
struct
nvkm_blob
fuc41ad
;
bool
firmware
;
/*
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
浏览文件 @
00e1b5dc
...
...
@@ -333,10 +333,10 @@ gk20a_gr_new(struct nvkm_device *device, int index, struct nvkm_gr **pgr)
if
(
ret
)
return
ret
;
if
(
gf100_gr_ctor_fw
(
gr
,
"fecs_inst"
,
&
gr
->
f
uc409c
)
||
gf100_gr_ctor_fw
(
gr
,
"fecs_data"
,
&
gr
->
f
uc409d
)
||
gf100_gr_ctor_fw
(
gr
,
"gpccs_inst"
,
&
gr
->
fuc41ac
)
||
gf100_gr_ctor_fw
(
gr
,
"gpccs_data"
,
&
gr
->
fuc41ad
))
if
(
gf100_gr_ctor_fw
(
gr
,
"fecs_inst"
,
&
gr
->
f
ecs
.
inst
)
||
gf100_gr_ctor_fw
(
gr
,
"fecs_data"
,
&
gr
->
f
ecs
.
data
)
||
gf100_gr_ctor_fw
(
gr
,
"gpccs_inst"
,
&
gr
->
gpccs
.
inst
)
||
gf100_gr_ctor_fw
(
gr
,
"gpccs_data"
,
&
gr
->
gpccs
.
data
))
return
-
ENODEV
;
ret
=
gk20a_gr_load_sw
(
gr
,
""
,
0
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
浏览文件 @
00e1b5dc
...
...
@@ -142,14 +142,14 @@ gm200_gr_new_(const struct gf100_gr_func *func, struct nvkm_device *device,
/* Load firmwares for non-secure falcons */
if
(
!
nvkm_secboot_is_managed
(
device
->
secboot
,
NVKM_SECBOOT_FALCON_FECS
))
{
if
((
ret
=
gf100_gr_ctor_fw
(
gr
,
"gr/fecs_inst"
,
&
gr
->
f
uc409c
))
||
(
ret
=
gf100_gr_ctor_fw
(
gr
,
"gr/fecs_data"
,
&
gr
->
f
uc409d
)))
if
((
ret
=
gf100_gr_ctor_fw
(
gr
,
"gr/fecs_inst"
,
&
gr
->
f
ecs
.
inst
))
||
(
ret
=
gf100_gr_ctor_fw
(
gr
,
"gr/fecs_data"
,
&
gr
->
f
ecs
.
data
)))
return
ret
;
}
if
(
!
nvkm_secboot_is_managed
(
device
->
secboot
,
NVKM_SECBOOT_FALCON_GPCCS
))
{
if
((
ret
=
gf100_gr_ctor_fw
(
gr
,
"gr/gpccs_inst"
,
&
gr
->
fuc41ac
))
||
(
ret
=
gf100_gr_ctor_fw
(
gr
,
"gr/gpccs_data"
,
&
gr
->
fuc41ad
)))
if
((
ret
=
gf100_gr_ctor_fw
(
gr
,
"gr/gpccs_inst"
,
&
gr
->
gpccs
.
inst
))
||
(
ret
=
gf100_gr_ctor_fw
(
gr
,
"gr/gpccs_data"
,
&
gr
->
gpccs
.
data
)))
return
ret
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录