Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
2b297b0d
Commit
2b297b0d
authored
May 08, 2018
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/gr/gf100-: virtualise init_40601c
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
3ac72e98
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
1 deletion
+18
-1
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
+11
-1
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/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
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c
View file @
2b297b0d
...
...
@@ -1914,6 +1914,12 @@ gf100_gr_new_(const struct gf100_gr_func *func, struct nvkm_device *device,
return
0
;
}
void
gf100_gr_init_40601c
(
struct
gf100_gr
*
gr
)
{
nvkm_wr32
(
gr
->
base
.
engine
.
subdev
.
device
,
0x40601c
,
0xc0000000
);
}
void
gf100_gr_init_fecs_exceptions
(
struct
gf100_gr
*
gr
)
{
...
...
@@ -2024,7 +2030,10 @@ gf100_gr_init(struct gf100_gr *gr)
nvkm_wr32
(
device
,
0x404000
,
0xc0000000
);
nvkm_wr32
(
device
,
0x404600
,
0xc0000000
);
nvkm_wr32
(
device
,
0x408030
,
0xc0000000
);
nvkm_wr32
(
device
,
0x40601c
,
0xc0000000
);
if
(
gr
->
func
->
init_40601c
)
gr
->
func
->
init_40601c
(
gr
);
nvkm_wr32
(
device
,
0x404490
,
0xc0000000
);
nvkm_wr32
(
device
,
0x406018
,
0xc0000000
);
nvkm_wr32
(
device
,
0x405840
,
0xc0000000
);
...
...
@@ -2099,6 +2108,7 @@ gf100_gr = {
.
init_zcull
=
gf100_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_fecs_exceptions
=
gf100_gr_init_fecs_exceptions
,
.
init_40601c
=
gf100_gr_init_40601c
,
.
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
View file @
2b297b0d
...
...
@@ -132,6 +132,7 @@ struct gf100_gr_func {
void
(
*
init_swdx_pes_mask
)(
struct
gf100_gr
*
);
void
(
*
init_fecs_exceptions
)(
struct
gf100_gr
*
);
void
(
*
init_ds_hww_esr_2
)(
struct
gf100_gr
*
);
void
(
*
init_40601c
)(
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
;
...
...
@@ -154,6 +155,7 @@ void gf100_gr_init_vsc_stream_master(struct gf100_gr *);
void
gf100_gr_init_zcull
(
struct
gf100_gr
*
);
void
gf100_gr_init_num_active_ltcs
(
struct
gf100_gr
*
);
void
gf100_gr_init_fecs_exceptions
(
struct
gf100_gr
*
);
void
gf100_gr_init_40601c
(
struct
gf100_gr
*
);
void
gf117_gr_init_zcull
(
struct
gf100_gr
*
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf104.c
View file @
2b297b0d
...
...
@@ -120,6 +120,7 @@ gf104_gr = {
.
init_zcull
=
gf100_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_fecs_exceptions
=
gf100_gr_init_fecs_exceptions
,
.
init_40601c
=
gf100_gr_init_40601c
,
.
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
View file @
2b297b0d
...
...
@@ -118,6 +118,7 @@ gf108_gr = {
.
init_zcull
=
gf100_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_fecs_exceptions
=
gf100_gr_init_fecs_exceptions
,
.
init_40601c
=
gf100_gr_init_40601c
,
.
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
View file @
2b297b0d
...
...
@@ -92,6 +92,7 @@ gf110_gr = {
.
init_zcull
=
gf100_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_fecs_exceptions
=
gf100_gr_init_fecs_exceptions
,
.
init_40601c
=
gf100_gr_init_40601c
,
.
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
View file @
2b297b0d
...
...
@@ -156,6 +156,7 @@ gf117_gr = {
.
init_zcull
=
gf117_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_fecs_exceptions
=
gf100_gr_init_fecs_exceptions
,
.
init_40601c
=
gf100_gr_init_40601c
,
.
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
View file @
2b297b0d
...
...
@@ -183,6 +183,7 @@ gf119_gr = {
.
init_zcull
=
gf100_gr_init_zcull
,
.
init_num_active_ltcs
=
gf100_gr_init_num_active_ltcs
,
.
init_fecs_exceptions
=
gf100_gr_init_fecs_exceptions
,
.
init_40601c
=
gf100_gr_init_40601c
,
.
mmio
=
gf119_gr_pack_mmio
,
.
fecs
.
ucode
=
&
gf100_gr_fecs_ucode
,
.
gpccs
.
ucode
=
&
gf100_gr_gpccs_ucode
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment