Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
bc3cfd18
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看板
提交
bc3cfd18
编写于
1月 15, 2020
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/flcn: specify EMEM address from subdev
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
ca3190e3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
8 deletion
+9
-8
drivers/gpu/drm/nouveau/include/nvkm/engine/falcon.h
drivers/gpu/drm/nouveau/include/nvkm/engine/falcon.h
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/sec2/tu102.c
drivers/gpu/drm/nouveau/nvkm/engine/sec2/tu102.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/falcon/base.c
drivers/gpu/drm/nouveau/nvkm/falcon/base.c
+0
-1
drivers/gpu/drm/nouveau/nvkm/falcon/v1.c
drivers/gpu/drm/nouveau/nvkm/falcon/v1.c
+6
-6
未找到文件。
drivers/gpu/drm/nouveau/include/nvkm/engine/falcon.h
浏览文件 @
bc3cfd18
...
...
@@ -30,7 +30,6 @@ struct nvkm_falcon {
u8
version
;
u8
secret
;
bool
debug
;
bool
has_emem
;
struct
nvkm_memory
*
core
;
bool
external
;
...
...
@@ -84,6 +83,7 @@ struct nvkm_falcon_func {
void
(
*
load_imem
)(
struct
nvkm_falcon
*
,
void
*
,
u32
,
u32
,
u16
,
u8
,
bool
);
void
(
*
load_dmem
)(
struct
nvkm_falcon
*
,
void
*
,
u32
,
u32
,
u8
);
void
(
*
read_dmem
)(
struct
nvkm_falcon
*
,
u32
,
u32
,
u8
,
void
*
);
u32
emem_addr
;
void
(
*
bind_context
)(
struct
nvkm_falcon
*
,
struct
nvkm_memory
*
);
int
(
*
wait_for_halt
)(
struct
nvkm_falcon
*
,
u32
);
int
(
*
clear_interrupt
)(
struct
nvkm_falcon
*
,
u32
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
浏览文件 @
bc3cfd18
...
...
@@ -92,6 +92,7 @@ gp102_sec2_flcn = {
.
load_imem
=
nvkm_falcon_v1_load_imem
,
.
load_dmem
=
nvkm_falcon_v1_load_dmem
,
.
read_dmem
=
nvkm_falcon_v1_read_dmem
,
.
emem_addr
=
0x01000000
,
.
bind_context
=
gp102_sec2_flcn_bind_context
,
.
wait_for_halt
=
nvkm_falcon_v1_wait_for_halt
,
.
clear_interrupt
=
nvkm_falcon_v1_clear_interrupt
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sec2/tu102.c
浏览文件 @
bc3cfd18
...
...
@@ -27,6 +27,7 @@ tu102_sec2_flcn = {
.
load_imem
=
nvkm_falcon_v1_load_imem
,
.
load_dmem
=
nvkm_falcon_v1_load_dmem
,
.
read_dmem
=
nvkm_falcon_v1_read_dmem
,
.
emem_addr
=
0x01000000
,
.
bind_context
=
gp102_sec2_flcn_bind_context
,
.
wait_for_halt
=
nvkm_falcon_v1_wait_for_halt
,
.
clear_interrupt
=
nvkm_falcon_v1_clear_interrupt
,
...
...
drivers/gpu/drm/nouveau/nvkm/falcon/base.c
浏览文件 @
bc3cfd18
...
...
@@ -170,7 +170,6 @@ nvkm_falcon_oneinit(struct nvkm_falcon *falcon)
break
;
case
NVKM_ENGINE_SEC2
:
debug_reg
=
0x408
;
falcon
->
has_emem
=
true
;
break
;
case
NVKM_SUBDEV_GSP
:
debug_reg
=
0x0
;
/*XXX*/
...
...
drivers/gpu/drm/nouveau/nvkm/falcon/v1.c
浏览文件 @
bc3cfd18
...
...
@@ -89,18 +89,17 @@ nvkm_falcon_v1_load_emem(struct nvkm_falcon *falcon, void *data, u32 start,
}
}
static
const
u32
EMEM_START_ADDR
=
0x1000000
;
void
nvkm_falcon_v1_load_dmem
(
struct
nvkm_falcon
*
falcon
,
void
*
data
,
u32
start
,
u32
size
,
u8
port
)
{
const
struct
nvkm_falcon_func
*
func
=
falcon
->
func
;
u8
rem
=
size
%
4
;
int
i
;
if
(
start
>=
EMEM_START_ADDR
&&
falcon
->
has_emem
)
if
(
func
->
emem_addr
&&
start
>=
func
->
emem_addr
)
return
nvkm_falcon_v1_load_emem
(
falcon
,
data
,
start
-
EMEM_START_ADDR
,
size
,
start
-
func
->
emem_addr
,
size
,
port
);
size
-=
rem
;
...
...
@@ -152,11 +151,12 @@ void
nvkm_falcon_v1_read_dmem
(
struct
nvkm_falcon
*
falcon
,
u32
start
,
u32
size
,
u8
port
,
void
*
data
)
{
const
struct
nvkm_falcon_func
*
func
=
falcon
->
func
;
u8
rem
=
size
%
4
;
int
i
;
if
(
start
>=
EMEM_START_ADDR
&&
falcon
->
has_emem
)
return
nvkm_falcon_v1_read_emem
(
falcon
,
start
-
EMEM_START_ADDR
,
if
(
func
->
emem_addr
&&
start
>=
func
->
emem_addr
)
return
nvkm_falcon_v1_read_emem
(
falcon
,
start
-
func
->
emem_addr
,
size
,
port
,
data
);
size
-=
rem
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录