Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
201ed6f6
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看板
提交
201ed6f6
编写于
5月 08, 2018
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/gr/gf100-: delete duplicated grctx init code
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
a5537f98
变更
12
显示空白变更内容
内联
并排
Showing
12 changed file
with
11 addition
and
152 deletion
+11
-152
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h
+0
-2
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c
+1
-31
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c
+1
-33
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110b.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk208.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk208.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
+1
-30
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm200.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm200.c
+1
-26
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c
+1
-24
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp104.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp107.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp107.c
+1
-1
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h
浏览文件 @
201ed6f6
...
...
@@ -108,7 +108,6 @@ void gk104_grctx_generate_alpha_beta_tables(struct gf100_gr *);
void
gk104_grctx_generate_gpc_tpc_nr
(
struct
gf100_gr
*
);
extern
const
struct
gf100_grctx_func
gk20a_grctx
;
void
gk104_grctx_generate_main
(
struct
gf100_gr
*
,
struct
gf100_grctx
*
);
void
gk104_grctx_generate_bundle
(
struct
gf100_grctx
*
);
void
gk104_grctx_generate_pagepool
(
struct
gf100_grctx
*
);
void
gk104_grctx_generate_patch_ltc
(
struct
gf100_grctx
*
);
...
...
@@ -137,7 +136,6 @@ void gm200_grctx_generate_r419a3c(struct gf100_gr *);
extern
const
struct
gf100_grctx_func
gm20b_grctx
;
extern
const
struct
gf100_grctx_func
gp100_grctx
;
void
gp100_grctx_generate_main
(
struct
gf100_gr
*
,
struct
gf100_grctx
*
);
void
gp100_grctx_generate_pagepool
(
struct
gf100_grctx
*
);
void
gp100_grctx_generate_smid_config
(
struct
gf100_gr
*
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c
浏览文件 @
201ed6f6
...
...
@@ -286,39 +286,9 @@ gf117_grctx_generate_attrib(struct gf100_grctx *info)
}
}
static
void
gf117_grctx_generate_main
(
struct
gf100_gr
*
gr
,
struct
gf100_grctx
*
info
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
const
struct
gf100_grctx_func
*
grctx
=
gr
->
func
->
grctx
;
u32
idle_timeout
;
nvkm_mc_unk260
(
device
,
0
);
gf100_gr_mmio
(
gr
,
grctx
->
hub
);
gf100_gr_mmio
(
gr
,
grctx
->
gpc
);
gf100_gr_mmio
(
gr
,
grctx
->
zcull
);
gf100_gr_mmio
(
gr
,
grctx
->
tpc
);
gf100_gr_mmio
(
gr
,
grctx
->
ppc
);
idle_timeout
=
nvkm_mask
(
device
,
0x404154
,
0xffffffff
,
0x00000000
);
grctx
->
bundle
(
info
);
grctx
->
pagepool
(
info
);
grctx
->
attrib
(
info
);
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gf100_gr_icmd
(
gr
,
grctx
->
icmd
);
nvkm_wr32
(
device
,
0x404154
,
idle_timeout
);
gf100_gr_mthd
(
gr
,
grctx
->
mthd
);
nvkm_mc_unk260
(
device
,
1
);
}
const
struct
gf100_grctx_func
gf117_grctx
=
{
.
main
=
gf1
17
_grctx_generate_main
,
.
main
=
gf1
00
_grctx_generate_main
,
.
unkn
=
gk104_grctx_generate_unkn
,
.
hub
=
gf117_grctx_pack_hub
,
.
gpc
=
gf117_grctx_pack_gpc
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c
浏览文件 @
201ed6f6
...
...
@@ -921,38 +921,6 @@ gk104_grctx_generate_gpc_tpc_nr(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x405b00
,
(
gr
->
tpc_total
<<
8
)
|
gr
->
gpc_nr
);
}
void
gk104_grctx_generate_main
(
struct
gf100_gr
*
gr
,
struct
gf100_grctx
*
info
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
const
struct
gf100_grctx_func
*
grctx
=
gr
->
func
->
grctx
;
u32
idle_timeout
;
nvkm_mc_unk260
(
device
,
0
);
gf100_gr_mmio
(
gr
,
grctx
->
hub
);
gf100_gr_mmio
(
gr
,
grctx
->
gpc
);
gf100_gr_mmio
(
gr
,
grctx
->
zcull
);
gf100_gr_mmio
(
gr
,
grctx
->
tpc
);
gf100_gr_mmio
(
gr
,
grctx
->
ppc
);
idle_timeout
=
nvkm_mask
(
device
,
0x404154
,
0xffffffff
,
0x00000000
);
grctx
->
bundle
(
info
);
grctx
->
pagepool
(
info
);
grctx
->
attrib
(
info
);
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gf100_gr_icmd
(
gr
,
grctx
->
icmd
);
nvkm_wr32
(
device
,
0x404154
,
idle_timeout
);
gf100_gr_mthd
(
gr
,
grctx
->
mthd
);
nvkm_mc_unk260
(
device
,
1
);
grctx
->
r418800
(
gr
);
}
void
gk104_grctx_generate_alpha_beta_tables
(
struct
gf100_gr
*
gr
)
{
...
...
@@ -1002,7 +970,7 @@ gk104_grctx_generate_alpha_beta_tables(struct gf100_gr *gr)
const
struct
gf100_grctx_func
gk104_grctx
=
{
.
main
=
g
k104
_grctx_generate_main
,
.
main
=
g
f100
_grctx_generate_main
,
.
unkn
=
gk104_grctx_generate_unkn
,
.
hub
=
gk104_grctx_pack_hub
,
.
gpc
=
gk104_grctx_pack_gpc
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c
浏览文件 @
201ed6f6
...
...
@@ -817,7 +817,7 @@ gk110_grctx_generate_r419eb0(struct gf100_gr *gr)
const
struct
gf100_grctx_func
gk110_grctx
=
{
.
main
=
g
k104
_grctx_generate_main
,
.
main
=
g
f100
_grctx_generate_main
,
.
unkn
=
gk104_grctx_generate_unkn
,
.
hub
=
gk110_grctx_pack_hub
,
.
gpc
=
gk110_grctx_pack_gpc
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110b.c
浏览文件 @
201ed6f6
...
...
@@ -71,7 +71,7 @@ gk110b_grctx_pack_tpc[] = {
const
struct
gf100_grctx_func
gk110b_grctx
=
{
.
main
=
g
k104
_grctx_generate_main
,
.
main
=
g
f100
_grctx_generate_main
,
.
unkn
=
gk104_grctx_generate_unkn
,
.
hub
=
gk110_grctx_pack_hub
,
.
gpc
=
gk110_grctx_pack_gpc
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk208.c
浏览文件 @
201ed6f6
...
...
@@ -532,7 +532,7 @@ gk208_grctx_pack_ppc[] = {
const
struct
gf100_grctx_func
gk208_grctx
=
{
.
main
=
g
k104
_grctx_generate_main
,
.
main
=
g
f100
_grctx_generate_main
,
.
unkn
=
gk104_grctx_generate_unkn
,
.
hub
=
gk208_grctx_pack_hub
,
.
gpc
=
gk208_grctx_pack_gpc
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
浏览文件 @
201ed6f6
...
...
@@ -955,38 +955,9 @@ gm107_grctx_generate_sm_id(struct gf100_gr *gr, int gpc, int tpc, int sm)
nvkm_wr32
(
device
,
TPC_UNIT
(
gpc
,
tpc
,
0x088
),
sm
);
}
static
void
gm107_grctx_generate_main
(
struct
gf100_gr
*
gr
,
struct
gf100_grctx
*
info
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
const
struct
gf100_grctx_func
*
grctx
=
gr
->
func
->
grctx
;
u32
idle_timeout
;
gf100_gr_mmio
(
gr
,
grctx
->
hub
);
gf100_gr_mmio
(
gr
,
grctx
->
gpc
);
gf100_gr_mmio
(
gr
,
grctx
->
zcull
);
gf100_gr_mmio
(
gr
,
grctx
->
tpc
);
gf100_gr_mmio
(
gr
,
grctx
->
ppc
);
idle_timeout
=
nvkm_mask
(
device
,
0x404154
,
0xffffffff
,
0x00000000
);
grctx
->
bundle
(
info
);
grctx
->
pagepool
(
info
);
grctx
->
attrib
(
info
);
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gf100_gr_icmd
(
gr
,
grctx
->
icmd
);
nvkm_wr32
(
device
,
0x404154
,
idle_timeout
);
gf100_gr_mthd
(
gr
,
grctx
->
mthd
);
grctx
->
r419e00
(
gr
);
}
const
struct
gf100_grctx_func
gm107_grctx
=
{
.
main
=
g
m107
_grctx_generate_main
,
.
main
=
g
f100
_grctx_generate_main
,
.
unkn
=
gk104_grctx_generate_unkn
,
.
hub
=
gm107_grctx_pack_hub
,
.
gpc
=
gm107_grctx_pack_gpc
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm200.c
浏览文件 @
201ed6f6
...
...
@@ -89,31 +89,6 @@ gm200_grctx_generate_r406500(struct gf100_gr *gr)
nvkm_wr32
(
gr
->
base
.
engine
.
subdev
.
device
,
0x406500
,
0x00000000
);
}
static
void
gm200_grctx_generate_main
(
struct
gf100_gr
*
gr
,
struct
gf100_grctx
*
info
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
const
struct
gf100_grctx_func
*
grctx
=
gr
->
func
->
grctx
;
u32
idle_timeout
;
gf100_gr_mmio
(
gr
,
gr
->
fuc_sw_ctx
);
idle_timeout
=
nvkm_mask
(
device
,
0x404154
,
0xffffffff
,
0x00000000
);
grctx
->
bundle
(
info
);
grctx
->
pagepool
(
info
);
grctx
->
attrib
(
info
);
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gf100_gr_icmd
(
gr
,
gr
->
fuc_bundle
);
nvkm_wr32
(
device
,
0x404154
,
idle_timeout
);
gf100_gr_mthd
(
gr
,
gr
->
fuc_method
);
grctx
->
r418e94
(
gr
);
}
void
gm200_grctx_generate_dist_skip_table
(
struct
gf100_gr
*
gr
)
{
...
...
@@ -138,7 +113,7 @@ gm200_grctx_generate_dist_skip_table(struct gf100_gr *gr)
const
struct
gf100_grctx_func
gm200_grctx
=
{
.
main
=
g
m2
00_grctx_generate_main
,
.
main
=
g
f1
00_grctx_generate_main
,
.
unkn
=
gk104_grctx_generate_unkn
,
.
bundle
=
gm107_grctx_generate_bundle
,
.
bundle_size
=
0x3000
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c
浏览文件 @
201ed6f6
...
...
@@ -120,32 +120,9 @@ gp100_grctx_generate_smid_config(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x405ba0
+
(
i
*
4
),
gpcs
[
i
]);
}
void
gp100_grctx_generate_main
(
struct
gf100_gr
*
gr
,
struct
gf100_grctx
*
info
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
const
struct
gf100_grctx_func
*
grctx
=
gr
->
func
->
grctx
;
u32
idle_timeout
;
gf100_gr_mmio
(
gr
,
gr
->
fuc_sw_ctx
);
idle_timeout
=
nvkm_mask
(
device
,
0x404154
,
0xffffffff
,
0x00000000
);
grctx
->
pagepool
(
info
);
grctx
->
bundle
(
info
);
grctx
->
attrib
(
info
);
grctx
->
unkn
(
gr
);
gf100_grctx_generate_floorsweep
(
gr
);
gf100_gr_icmd
(
gr
,
gr
->
fuc_bundle
);
nvkm_wr32
(
device
,
0x404154
,
idle_timeout
);
gf100_gr_mthd
(
gr
,
gr
->
fuc_method
);
}
const
struct
gf100_grctx_func
gp100_grctx
=
{
.
main
=
g
p
100_grctx_generate_main
,
.
main
=
g
f
100_grctx_generate_main
,
.
unkn
=
gk104_grctx_generate_unkn
,
.
bundle
=
gm107_grctx_generate_bundle
,
.
bundle_size
=
0x3000
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c
浏览文件 @
201ed6f6
...
...
@@ -88,7 +88,7 @@ gp102_grctx_generate_attrib(struct gf100_grctx *info)
const
struct
gf100_grctx_func
gp102_grctx
=
{
.
main
=
g
p
100_grctx_generate_main
,
.
main
=
g
f
100_grctx_generate_main
,
.
unkn
=
gk104_grctx_generate_unkn
,
.
bundle
=
gm107_grctx_generate_bundle
,
.
bundle_size
=
0x3000
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp104.c
浏览文件 @
201ed6f6
...
...
@@ -23,7 +23,7 @@
const
struct
gf100_grctx_func
gp104_grctx
=
{
.
main
=
g
p
100_grctx_generate_main
,
.
main
=
g
f
100_grctx_generate_main
,
.
unkn
=
gk104_grctx_generate_unkn
,
.
bundle
=
gm107_grctx_generate_bundle
,
.
bundle_size
=
0x3000
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp107.c
浏览文件 @
201ed6f6
...
...
@@ -31,7 +31,7 @@
const
struct
gf100_grctx_func
gp107_grctx
=
{
.
main
=
g
p
100_grctx_generate_main
,
.
main
=
g
f
100_grctx_generate_main
,
.
unkn
=
gk104_grctx_generate_unkn
,
.
bundle
=
gm107_grctx_generate_bundle
,
.
bundle_size
=
0x3000
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录