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
5c5ae715
Commit
5c5ae715
authored
Jul 05, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvc0-/gr: remove some more of the hardcoded register writes
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
d196e16e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
28 deletions
+6
-28
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c
+6
-12
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd7.c
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd7.c
+0
-8
drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c
drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c
+0
-8
No files found.
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvc0.c
View file @
5c5ae715
...
...
@@ -929,11 +929,13 @@ nvc0_grctx_generate_tpcid(struct nvc0_graph_priv *priv)
void
nvc0_grctx_generate_r406028
(
struct
nvc0_graph_priv
*
priv
)
{
u32
tmp
=
0
,
i
;
u32
tmp
[
GPC_MAX
/
8
]
=
{},
i
=
0
;
for
(
i
=
0
;
i
<
priv
->
gpc_nr
;
i
++
)
tmp
|=
priv
->
tpc_nr
[
i
]
<<
(
i
*
4
);
nv_wr32
(
priv
,
0x406028
,
tmp
);
nv_wr32
(
priv
,
0x405870
,
tmp
);
tmp
[
i
/
8
]
|=
priv
->
tpc_nr
[
i
]
<<
((
i
%
8
)
*
4
);
for
(
i
=
0
;
i
<
4
;
i
++
)
{
nv_wr32
(
priv
,
0x406028
+
(
i
*
4
),
tmp
[
i
]);
nv_wr32
(
priv
,
0x405870
+
(
i
*
4
),
tmp
[
i
]);
}
}
void
...
...
@@ -1069,14 +1071,6 @@ nvc0_grctx_generate_main(struct nvc0_graph_priv *priv, struct nvc0_grctx *info)
nvc0_grctx_generate_tpcid
(
priv
);
nvc0_grctx_generate_r406028
(
priv
);
nv_wr32
(
priv
,
0x40602c
,
0x00000000
);
nv_wr32
(
priv
,
0x405874
,
0x00000000
);
nv_wr32
(
priv
,
0x406030
,
0x00000000
);
nv_wr32
(
priv
,
0x405878
,
0x00000000
);
nv_wr32
(
priv
,
0x406034
,
0x00000000
);
nv_wr32
(
priv
,
0x40587c
,
0x00000000
);
nvc0_grctx_generate_r4060a8
(
priv
);
nvc0_grctx_generate_r418bb8
(
priv
);
nvc0_grctx_generate_r406800
(
priv
);
...
...
drivers/gpu/drm/nouveau/core/engine/graph/ctxnvd7.c
View file @
5c5ae715
...
...
@@ -231,14 +231,6 @@ nvd7_grctx_generate_main(struct nvc0_graph_priv *priv, struct nvc0_grctx *info)
nvc0_grctx_generate_tpcid
(
priv
);
nvc0_grctx_generate_r406028
(
priv
);
nv_wr32
(
priv
,
0x40602c
,
0x00000000
);
nv_wr32
(
priv
,
0x405874
,
0x00000000
);
nv_wr32
(
priv
,
0x406030
,
0x00000000
);
nv_wr32
(
priv
,
0x405878
,
0x00000000
);
nv_wr32
(
priv
,
0x406034
,
0x00000000
);
nv_wr32
(
priv
,
0x40587c
,
0x00000000
);
nvc0_grctx_generate_r4060a8
(
priv
);
nve4_grctx_generate_r418bb8
(
priv
);
nvc0_grctx_generate_r406800
(
priv
);
...
...
drivers/gpu/drm/nouveau/core/engine/graph/ctxnve4.c
View file @
5c5ae715
...
...
@@ -937,14 +937,6 @@ nve4_grctx_generate_main(struct nvc0_graph_priv *priv, struct nvc0_grctx *info)
nvc0_grctx_generate_tpcid
(
priv
);
nvc0_grctx_generate_r406028
(
priv
);
nv_wr32
(
priv
,
0x40602c
,
0x00000000
);
nv_wr32
(
priv
,
0x405874
,
0x00000000
);
nv_wr32
(
priv
,
0x406030
,
0x00000000
);
nv_wr32
(
priv
,
0x405878
,
0x00000000
);
nv_wr32
(
priv
,
0x406034
,
0x00000000
);
nv_wr32
(
priv
,
0x40587c
,
0x00000000
);
nve4_grctx_generate_r418bb8
(
priv
);
nvc0_grctx_generate_r406800
(
priv
);
...
...
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