Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
0a5b9730
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看板
提交
0a5b9730
编写于
5月 08, 2018
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/gr/gf100-: virtualise init_sked_hww_esr
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
2b297b0d
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
26 addition
and
4 deletion
+26
-4
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
+4
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
+2
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
+8
-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
+2
-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/gp100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c
+2
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp107.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp107.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp10b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp10b.c
+1
-0
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
浏览文件 @
0a5b9730
...
...
@@ -2036,6 +2036,10 @@ gf100_gr_init(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x404490
,
0xc0000000
);
nvkm_wr32
(
device
,
0x406018
,
0xc0000000
);
if
(
gr
->
func
->
init_sked_hww_esr
)
gr
->
func
->
init_sked_hww_esr
(
gr
);
nvkm_wr32
(
device
,
0x405840
,
0xc0000000
);
nvkm_wr32
(
device
,
0x405844
,
0x00ffffff
);
nvkm_mask
(
device
,
0x419cc0
,
0x00000008
,
0x00000008
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h
浏览文件 @
0a5b9730
...
...
@@ -133,6 +133,7 @@ struct gf100_gr_func {
void
(
*
init_fecs_exceptions
)(
struct
gf100_gr
*
);
void
(
*
init_ds_hww_esr_2
)(
struct
gf100_gr
*
);
void
(
*
init_40601c
)(
struct
gf100_gr
*
);
void
(
*
init_sked_hww_esr
)(
struct
gf100_gr
*
);
void
(
*
init_ppc_exceptions
)(
struct
gf100_gr
*
);
void
(
*
set_hww_esr_report_mask
)(
struct
gf100_gr
*
);
const
struct
gf100_gr_pack
*
mmio
;
...
...
@@ -163,6 +164,7 @@ int gk104_gr_init(struct gf100_gr *);
void
gk104_gr_init_vsc_stream_master
(
struct
gf100_gr
*
);
void
gk104_gr_init_rop_active_fbps
(
struct
gf100_gr
*
);
void
gk104_gr_init_ppc_exceptions
(
struct
gf100_gr
*
);
void
gk104_gr_init_sked_hww_esr
(
struct
gf100_gr
*
);
int
gk20a_gr_init
(
struct
gf100_gr
*
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk104.c
浏览文件 @
0a5b9730
...
...
@@ -380,6 +380,12 @@ gk104_clkgate_pack[] = {
* PGRAPH engine/subdev functions
******************************************************************************/
void
gk104_gr_init_sked_hww_esr
(
struct
gf100_gr
*
gr
)
{
nvkm_wr32
(
gr
->
base
.
engine
.
subdev
.
device
,
0x407020
,
0x40000000
);
}
static
void
gk104_gr_init_fecs_exceptions
(
struct
gf100_gr
*
gr
)
{
...
...
@@ -451,7 +457,7 @@ gk104_gr_init(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x408030
,
0xc0000000
);
nvkm_wr32
(
device
,
0x404490
,
0xc0000000
);
nvkm_wr32
(
device
,
0x406018
,
0xc0000000
);
nvkm_wr32
(
device
,
0x407020
,
0x40000000
);
gr
->
func
->
init_sked_hww_esr
(
gr
);
nvkm_wr32
(
device
,
0x405840
,
0xc0000000
);
nvkm_wr32
(
device
,
0x405844
,
0x00ffffff
);
nvkm_mask
(
device
,
0x419cc0
,
0x00000008
,
0x00000008
);
...
...
@@ -527,6 +533,7 @@ gk104_gr = {
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gk104_gr_init_rop_active_fbps
,
.
init_fecs_exceptions
=
gk104_gr_init_fecs_exceptions
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
mmio
=
gk104_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk104_gr_fecs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110.c
浏览文件 @
0a5b9730
...
...
@@ -343,6 +343,7 @@ gk110_gr = {
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gk104_gr_init_rop_active_fbps
,
.
init_fecs_exceptions
=
gf100_gr_init_fecs_exceptions
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
mmio
=
gk110_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk110_gr_fecs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk110b.c
浏览文件 @
0a5b9730
...
...
@@ -109,6 +109,7 @@ gk110b_gr = {
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gk104_gr_init_rop_active_fbps
,
.
init_fecs_exceptions
=
gf100_gr_init_fecs_exceptions
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
mmio
=
gk110b_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk110_gr_fecs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk208.c
浏览文件 @
0a5b9730
...
...
@@ -168,6 +168,7 @@ gk208_gr = {
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_rop_active_fbps
=
gk104_gr_init_rop_active_fbps
,
.
init_fecs_exceptions
=
gf100_gr_init_fecs_exceptions
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
mmio
=
gk208_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gk208_gr_fecs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
浏览文件 @
0a5b9730
...
...
@@ -378,7 +378,7 @@ gm107_gr_init(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x408030
,
0xc0000000
);
nvkm_wr32
(
device
,
0x404490
,
0xc0000000
);
nvkm_wr32
(
device
,
0x406018
,
0xc0000000
);
nvkm_wr32
(
device
,
0x407020
,
0x40000000
);
gr
->
func
->
init_sked_hww_esr
(
gr
);
nvkm_wr32
(
device
,
0x405840
,
0xc0000000
);
nvkm_wr32
(
device
,
0x405844
,
0x00ffffff
);
nvkm_mask
(
device
,
0x419cc0
,
0x00000008
,
0x00000008
);
...
...
@@ -456,6 +456,7 @@ gm107_gr = {
.
init_rop_active_fbps
=
gk104_gr_init_rop_active_fbps
,
.
init_bios_2
=
gm107_gr_init_bios_2
,
.
init_fecs_exceptions
=
gf100_gr_init_fecs_exceptions
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
mmio
=
gm107_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gm107_gr_fecs_ucode
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
浏览文件 @
0a5b9730
...
...
@@ -106,7 +106,7 @@ gm200_gr_init(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x408030
,
0xc0000000
);
nvkm_wr32
(
device
,
0x404490
,
0xc0000000
);
nvkm_wr32
(
device
,
0x406018
,
0xc0000000
);
nvkm_wr32
(
device
,
0x407020
,
0x40000000
);
gr
->
func
->
init_sked_hww_esr
(
gr
);
nvkm_wr32
(
device
,
0x405840
,
0xc0000000
);
nvkm_wr32
(
device
,
0x405844
,
0x00ffffff
);
nvkm_mask
(
device
,
0x419cc0
,
0x00000008
,
0x00000008
);
...
...
@@ -202,6 +202,7 @@ gm200_gr = {
.
init_rop_active_fbps
=
gm200_gr_init_rop_active_fbps
,
.
init_fecs_exceptions
=
gf100_gr_init_fecs_exceptions
,
.
init_ds_hww_esr_2
=
gm200_gr_init_ds_hww_esr_2
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
2
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c
浏览文件 @
0a5b9730
...
...
@@ -76,7 +76,7 @@ gp100_gr_init(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x408030
,
0xc0000000
);
nvkm_wr32
(
device
,
0x404490
,
0xc0000000
);
nvkm_wr32
(
device
,
0x406018
,
0xc0000000
);
nvkm_wr32
(
device
,
0x407020
,
0x40000000
);
gr
->
func
->
init_sked_hww_esr
(
gr
);
nvkm_wr32
(
device
,
0x405840
,
0xc0000000
);
nvkm_wr32
(
device
,
0x405844
,
0x00ffffff
);
nvkm_mask
(
device
,
0x419cc0
,
0x00000008
,
0x00000008
);
...
...
@@ -134,6 +134,7 @@ gp100_gr = {
.
init_rop_active_fbps
=
gp100_gr_init_rop_active_fbps
,
.
init_fecs_exceptions
=
gp100_gr_init_fecs_exceptions
,
.
init_ds_hww_esr_2
=
gm200_gr_init_ds_hww_esr_2
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
2
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c
浏览文件 @
0a5b9730
...
...
@@ -51,6 +51,7 @@ gp102_gr = {
.
init_swdx_pes_mask
=
gp102_gr_init_swdx_pes_mask
,
.
init_fecs_exceptions
=
gp100_gr_init_fecs_exceptions
,
.
init_ds_hww_esr_2
=
gm200_gr_init_ds_hww_esr_2
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
3
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp107.c
浏览文件 @
0a5b9730
...
...
@@ -37,6 +37,7 @@ gp107_gr = {
.
init_swdx_pes_mask
=
gp102_gr_init_swdx_pes_mask
,
.
init_fecs_exceptions
=
gp100_gr_init_fecs_exceptions
,
.
init_ds_hww_esr_2
=
gm200_gr_init_ds_hww_esr_2
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
1
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp10b.c
浏览文件 @
0a5b9730
...
...
@@ -35,6 +35,7 @@ gp10b_gr = {
.
init_rop_active_fbps
=
gp100_gr_init_rop_active_fbps
,
.
init_fecs_exceptions
=
gp100_gr_init_fecs_exceptions
,
.
init_ds_hww_esr_2
=
gm200_gr_init_ds_hww_esr_2
,
.
init_sked_hww_esr
=
gk104_gr_init_sked_hww_esr
,
.
init_ppc_exceptions
=
gk104_gr_init_ppc_exceptions
,
.
rops
=
gm200_gr_rops
,
.
ppc_nr
=
1
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录