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
18d17221
Commit
18d17221
authored
6 years ago
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/gr/gf100-: virtualise r419e00
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
ad45a92b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c
+2
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
+12
-4
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c
View file @
18d17221
...
...
@@ -1430,6 +1430,8 @@ gf100_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
grctx
->
r418800
(
gr
);
if
(
grctx
->
r419eb0
)
grctx
->
r419eb0
(
gr
);
if
(
grctx
->
r419e00
)
grctx
->
r419e00
(
gr
);
}
#define CB_RESERVED 0x80000
...
...
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h
View file @
18d17221
...
...
@@ -67,6 +67,7 @@ struct gf100_grctx_func {
void
(
*
r419cb8
)(
struct
gf100_gr
*
);
void
(
*
r418800
)(
struct
gf100_gr
*
);
void
(
*
r419eb0
)(
struct
gf100_gr
*
);
void
(
*
r419e00
)(
struct
gf100_gr
*
);
};
extern
const
struct
gf100_grctx_func
gf100_grctx
;
...
...
This diff is collapsed.
Click to expand it.
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
View file @
18d17221
...
...
@@ -860,6 +860,16 @@ gm107_grctx_pack_ppc[] = {
* PGRAPH context implementation
******************************************************************************/
static
void
gm107_grctx_generate_r419e00
(
struct
gf100_gr
*
gr
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
nvkm_mask
(
device
,
0x419e00
,
0x00808080
,
0x00808080
);
nvkm_mask
(
device
,
0x419ccc
,
0x80000000
,
0x80000000
);
nvkm_mask
(
device
,
0x419f80
,
0x80000000
,
0x80000000
);
nvkm_mask
(
device
,
0x419f88
,
0x80000000
,
0x80000000
);
}
void
gm107_grctx_generate_bundle
(
struct
gf100_grctx
*
info
)
{
...
...
@@ -971,10 +981,7 @@ gm107_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
nvkm_wr32
(
device
,
0x404154
,
idle_timeout
);
gf100_gr_mthd
(
gr
,
grctx
->
mthd
);
nvkm_mask
(
device
,
0x419e00
,
0x00808080
,
0x00808080
);
nvkm_mask
(
device
,
0x419ccc
,
0x80000000
,
0x80000000
);
nvkm_mask
(
device
,
0x419f80
,
0x80000000
,
0x80000000
);
nvkm_mask
(
device
,
0x419f88
,
0x80000000
,
0x80000000
);
grctx
->
r419e00
(
gr
);
}
const
struct
gf100_grctx_func
...
...
@@ -1006,4 +1013,5 @@ gm107_grctx = {
.
dist_skip_table
=
gf117_grctx_generate_dist_skip_table
,
.
r406500
=
gm107_grctx_generate_r406500
,
.
gpc_tpc_nr
=
gk104_grctx_generate_gpc_tpc_nr
,
.
r419e00
=
gm107_grctx_generate_r419e00
,
};
This diff is collapsed.
Click to expand it.
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