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
nexedi
linux
Commits
ea4a2bb5
Commit
ea4a2bb5
authored
May 08, 2018
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/gr/gf100-: virtualise patch_ltc, noting missing init
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
aedc49fd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
0 deletions
+20
-0
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
+3
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c
+12
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110b.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110b.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk208.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk208.c
+1
-0
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c
View file @
ea4a2bb5
...
...
@@ -1254,6 +1254,8 @@ gf100_grctx_generate_main(struct gf100_gr *gr, struct gf100_grctx *info)
grctx
->
bundle
(
info
);
grctx
->
pagepool
(
info
);
grctx
->
attrib
(
info
);
if
(
grctx
->
patch_ltc
)
grctx
->
patch_ltc
(
info
);
grctx
->
unkn
(
gr
);
gf100_grctx_generate_tpcid
(
gr
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h
View file @
ea4a2bb5
...
...
@@ -48,6 +48,8 @@ struct gf100_grctx_func {
u32
attrib_nr
;
u32
alpha_nr_max
;
u32
alpha_nr
;
/* other patch buffer stuff */
void
(
*
patch_ltc
)(
struct
gf100_grctx
*
);
};
extern
const
struct
gf100_grctx_func
gf100_grctx
;
...
...
@@ -80,6 +82,7 @@ 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
*
);
void
gk104_grctx_generate_unkn
(
struct
gf100_gr
*
);
void
gk104_grctx_generate_r418bb8
(
struct
gf100_gr
*
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c
View file @
ea4a2bb5
...
...
@@ -840,6 +840,17 @@ gk104_grctx_pack_ppc[] = {
* PGRAPH context implementation
******************************************************************************/
void
gk104_grctx_generate_patch_ltc
(
struct
gf100_grctx
*
info
)
{
struct
nvkm_device
*
device
=
info
->
gr
->
base
.
engine
.
subdev
.
device
;
u32
data0
=
nvkm_rd32
(
device
,
0x17e91c
);
u32
data1
=
nvkm_rd32
(
device
,
0x17e920
);
/*XXX: Figure out how to modify this correctly! */
mmio_wr32
(
info
,
0x17e91c
,
data0
);
mmio_wr32
(
info
,
0x17e920
,
data1
);
}
void
gk104_grctx_generate_bundle
(
struct
gf100_grctx
*
info
)
{
...
...
@@ -1005,4 +1016,5 @@ gk104_grctx = {
.
attrib_nr
=
0x218
,
.
alpha_nr_max
=
0x7ff
,
.
alpha_nr
=
0x648
,
.
patch_ltc
=
gk104_grctx_generate_patch_ltc
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110.c
View file @
ea4a2bb5
...
...
@@ -830,4 +830,5 @@ gk110_grctx = {
.
attrib_nr
=
0x218
,
.
alpha_nr_max
=
0x7ff
,
.
alpha_nr
=
0x648
,
.
patch_ltc
=
gk104_grctx_generate_patch_ltc
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk110b.c
View file @
ea4a2bb5
...
...
@@ -91,4 +91,5 @@ gk110b_grctx = {
.
attrib_nr
=
0x218
,
.
alpha_nr_max
=
0x7ff
,
.
alpha_nr
=
0x648
,
.
patch_ltc
=
gk104_grctx_generate_patch_ltc
,
};
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk208.c
View file @
ea4a2bb5
...
...
@@ -552,4 +552,5 @@ gk208_grctx = {
.
attrib_nr
=
0x218
,
.
alpha_nr_max
=
0x7ff
,
.
alpha_nr
=
0x648
,
.
patch_ltc
=
gk104_grctx_generate_patch_ltc
,
};
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