Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
04547482
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
04547482
编写于
5月 08, 2018
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/gr/gf100-: virtualise init_400054
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
6df6d2b9
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
32 addition
and
4 deletion
+32
-4
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
+9
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
+3
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf104.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf110.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf110.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf119.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf119.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
+2
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110b.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk208.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk208.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
+8
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
+2
-1
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
浏览文件 @
04547482
...
...
@@ -1914,6 +1914,12 @@ gf100_gr_new_(const struct gf100_gr_func *func, struct nvkm_device *device,
return
0
;
}
void
gf100_gr_init_400054
(
struct
gf100_gr
*
gr
)
{
nvkm_wr32
(
gr
->
base
.
engine
.
subdev
.
device
,
0x400054
,
0x34ce3464
);
}
void
gf100_gr_init_shader_exceptions
(
struct
gf100_gr
*
gr
,
int
gpc
,
int
tpc
)
{
...
...
@@ -2122,7 +2128,8 @@ gf100_gr_init(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x40011c
,
0xffffffff
);
nvkm_wr32
(
device
,
0x400134
,
0xffffffff
);
nvkm_wr32
(
device
,
0x400054
,
0x34ce3464
);
if
(
gr
->
func
->
init_400054
)
gr
->
func
->
init_400054
(
gr
);
gf100_gr_zbc_init
(
gr
);
...
...
@@ -2162,6 +2169,7 @@ gf100_gr = {
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
init_shader_exceptions
=
gf100_gr_init_shader_exceptions
,
.
init_400054
=
gf100_gr_init_400054
,
.
mmio
=
gf100_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
浏览文件 @
04547482
...
...
@@ -141,6 +141,7 @@ struct gf100_gr_func {
void
(
*
init_tex_hww_esr
)(
struct
gf100_gr
*
,
int
gpc
,
int
tpc
);
void
(
*
init_504430
)(
struct
gf100_gr
*
,
int
gpc
,
int
tpc
);
void
(
*
init_shader_exceptions
)(
struct
gf100_gr
*
,
int
gpc
,
int
tpc
);
void
(
*
init_400054
)(
struct
gf100_gr
*
);
void
(
*
set_hww_esr_report_mask
)(
struct
gf100_gr
*
);
const
struct
gf100_gr_pack
*
mmio
;
struct
{
...
...
@@ -167,6 +168,7 @@ void gf100_gr_init_419cc0(struct gf100_gr *);
void
gf100_gr_init_419eb4
(
struct
gf100_gr
*
);
void
gf100_gr_init_tex_hww_esr
(
struct
gf100_gr
*
,
int
,
int
);
void
gf100_gr_init_shader_exceptions
(
struct
gf100_gr
*
,
int
,
int
);
void
gf100_gr_init_400054
(
struct
gf100_gr
*
);
void
gf117_gr_init_zcull
(
struct
gf100_gr
*
);
...
...
@@ -180,6 +182,7 @@ void gk110_gr_init_419eb4(struct gf100_gr *);
void
gm107_gr_init_504430
(
struct
gf100_gr
*
,
int
,
int
);
void
gm107_gr_init_shader_exceptions
(
struct
gf100_gr
*
,
int
,
int
);
void
gm107_gr_init_400054
(
struct
gf100_gr
*
);
int
gk20a_gr_init
(
struct
gf100_gr
*
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf104.c
浏览文件 @
04547482
...
...
@@ -125,6 +125,7 @@ gf104_gr = {
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
init_shader_exceptions
=
gf100_gr_init_shader_exceptions
,
.
init_400054
=
gf100_gr_init_400054
,
.
mmio
=
gf104_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
浏览文件 @
04547482
...
...
@@ -123,6 +123,7 @@ gf108_gr = {
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
init_shader_exceptions
=
gf100_gr_init_shader_exceptions
,
.
init_400054
=
gf100_gr_init_400054
,
.
mmio
=
gf108_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf110.c
浏览文件 @
04547482
...
...
@@ -97,6 +97,7 @@ gf110_gr = {
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
init_shader_exceptions
=
gf100_gr_init_shader_exceptions
,
.
init_400054
=
gf100_gr_init_400054
,
.
mmio
=
gf110_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c
浏览文件 @
04547482
...
...
@@ -161,6 +161,7 @@ gf117_gr = {
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
init_shader_exceptions
=
gf100_gr_init_shader_exceptions
,
.
init_400054
=
gf100_gr_init_400054
,
.
mmio
=
gf117_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf117_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf117_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf119.c
浏览文件 @
04547482
...
...
@@ -188,6 +188,7 @@ gf119_gr = {
.
init_419eb4
=
gf100_gr_init_419eb4
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
init_shader_exceptions
=
gf100_gr_init_shader_exceptions
,
.
init_400054
=
gf100_gr_init_400054
,
.
mmio
=
gf119_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
浏览文件 @
04547482
...
...
@@ -495,7 +495,7 @@ gk104_gr_init(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x40011c
,
0xffffffff
);
nvkm_wr32
(
device
,
0x400134
,
0xffffffff
);
nvkm_wr32
(
device
,
0x400054
,
0x34ce3464
);
gr
->
func
->
init_400054
(
gr
);
gf100_gr_zbc_init
(
gr
);
...
...
@@ -537,6 +537,7 @@ gk104_gr = {
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
init_shader_exceptions
=
gf100_gr_init_shader_exceptions
,
.
init_400054
=
gf100_gr_init_400054
,
.
mmio
=
gk104_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk104_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gk104_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c
浏览文件 @
04547482
...
...
@@ -363,6 +363,7 @@ gk110_gr = {
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
init_shader_exceptions
=
gf100_gr_init_shader_exceptions
,
.
init_400054
=
gf100_gr_init_400054
,
.
mmio
=
gk110_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk110_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gk110_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110b.c
浏览文件 @
04547482
...
...
@@ -115,6 +115,7 @@ gk110b_gr = {
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
init_shader_exceptions
=
gf100_gr_init_shader_exceptions
,
.
init_400054
=
gf100_gr_init_400054
,
.
mmio
=
gk110b_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk110_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gk110_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk208.c
浏览文件 @
04547482
...
...
@@ -173,6 +173,7 @@ gk208_gr = {
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
init_shader_exceptions
=
gf100_gr_init_shader_exceptions
,
.
init_400054
=
gf100_gr_init_400054
,
.
mmio
=
gk208_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk208_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gk208_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
浏览文件 @
04547482
...
...
@@ -281,6 +281,12 @@ gm107_gr_pack_mmio[] = {
* PGRAPH engine/subdev functions
******************************************************************************/
void
gm107_gr_init_400054
(
struct
gf100_gr
*
gr
)
{
nvkm_wr32
(
gr
->
base
.
engine
.
subdev
.
device
,
0x400054
,
0x2c350f63
);
}
void
gm107_gr_init_shader_exceptions
(
struct
gf100_gr
*
gr
,
int
gpc
,
int
tpc
)
{
...
...
@@ -431,7 +437,7 @@ gm107_gr_init(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x40011c
,
0xffffffff
);
nvkm_wr32
(
device
,
0x400134
,
0xffffffff
);
nvkm_wr32
(
device
,
0x400054
,
0x2c350f63
);
gr
->
func
->
init_400054
(
gr
);
gf100_gr_zbc_init
(
gr
);
...
...
@@ -475,6 +481,7 @@ gm107_gr = {
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
init_504430
=
gm107_gr_init_504430
,
.
init_shader_exceptions
=
gm107_gr_init_shader_exceptions
,
.
init_400054
=
gm107_gr_init_400054
,
.
mmio
=
gm107_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gm107_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gm107_gr_gpccs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
浏览文件 @
04547482
...
...
@@ -144,7 +144,7 @@ gm200_gr_init(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x40011c
,
0xffffffff
);
nvkm_wr32
(
device
,
0x400134
,
0xffffffff
);
nvkm_wr32
(
device
,
0x400054
,
0x2c350f63
);
gr
->
func
->
init_400054
(
gr
);
gf100_gr_zbc_init
(
gr
);
...
...
@@ -206,6 +206,7 @@ gm200_gr = {
.
init_tex_hww_esr
=
gf100_gr_init_tex_hww_esr
,
.
init_504430
=
gm107_gr_init_504430
,
.
init_shader_exceptions
=
gm107_gr_init_shader_exceptions
,
.
init_400054
=
gm107_gr_init_400054
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
2
,
.
grctx
=
&
gm200_grctx
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录