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
6eb70826
Commit
6eb70826
authored
Mar 26, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/gr/gk104-: correct crop/zrop num_active_fbps setting
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
3740c825
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
14 deletions
+11
-14
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/ctxgk104.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c
+9
-7
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
+1
-7
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.h
View file @
6eb70826
...
...
@@ -88,6 +88,7 @@ void gk104_grctx_generate_bundle(struct gf100_grctx *);
void
gk104_grctx_generate_pagepool
(
struct
gf100_grctx
*
);
void
gk104_grctx_generate_unkn
(
struct
gf100_gr_priv
*
);
void
gk104_grctx_generate_r418bb8
(
struct
gf100_gr_priv
*
);
void
gk104_grctx_generate_rop_active_fbps
(
struct
gf100_gr_priv
*
);
extern
struct
nvkm_oclass
*
gk110_grctx_oclass
;
extern
struct
nvkm_oclass
*
gk110b_grctx_oclass
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgk104.c
View file @
6eb70826
...
...
@@ -940,6 +940,14 @@ gk104_grctx_generate_r418bb8(struct gf100_gr_priv *priv)
nv_wr32
(
priv
,
0x40780c
+
(
i
*
4
),
data
[
i
]);
}
void
gk104_grctx_generate_rop_active_fbps
(
struct
gf100_gr_priv
*
priv
)
{
const
u32
fbp_count
=
nv_rd32
(
priv
,
0x120074
);
nv_mask
(
priv
,
0x408850
,
0x0000000f
,
fbp_count
);
/* zrop */
nv_mask
(
priv
,
0x408958
,
0x0000000f
,
fbp_count
);
/* crop */
}
void
gk104_grctx_generate_main
(
struct
gf100_gr_priv
*
priv
,
struct
gf100_grctx
*
info
)
{
...
...
@@ -970,13 +978,7 @@ gk104_grctx_generate_main(struct gf100_gr_priv *priv, struct gf100_grctx *info)
nv_wr32
(
priv
,
0x4064d0
+
(
i
*
0x04
),
0x00000000
);
nv_wr32
(
priv
,
0x405b00
,
(
priv
->
tpc_total
<<
8
)
|
priv
->
gpc_nr
);
if
(
priv
->
gpc_nr
==
1
)
{
nv_mask
(
priv
,
0x408850
,
0x0000000f
,
priv
->
tpc_nr
[
0
]);
nv_mask
(
priv
,
0x408958
,
0x0000000f
,
priv
->
tpc_nr
[
0
]);
}
else
{
nv_mask
(
priv
,
0x408850
,
0x0000000f
,
priv
->
gpc_nr
);
nv_mask
(
priv
,
0x408958
,
0x0000000f
,
priv
->
gpc_nr
);
}
gk104_grctx_generate_rop_active_fbps
(
priv
);
nv_mask
(
priv
,
0x419f78
,
0x00000001
,
0x00000000
);
gf100_gr_icmd
(
priv
,
oclass
->
icmd
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c
View file @
6eb70826
...
...
@@ -982,13 +982,7 @@ gm107_grctx_generate_main(struct gf100_gr_priv *priv, struct gf100_grctx *info)
nv_wr32
(
priv
,
0x405b00
,
(
priv
->
tpc_total
<<
8
)
|
priv
->
gpc_nr
);
if
(
priv
->
gpc_nr
==
1
)
{
nv_mask
(
priv
,
0x408850
,
0x0000000f
,
priv
->
tpc_nr
[
0
]);
nv_mask
(
priv
,
0x408958
,
0x0000000f
,
priv
->
tpc_nr
[
0
]);
}
else
{
nv_mask
(
priv
,
0x408850
,
0x0000000f
,
priv
->
gpc_nr
);
nv_mask
(
priv
,
0x408958
,
0x0000000f
,
priv
->
gpc_nr
);
}
gk104_grctx_generate_rop_active_fbps
(
priv
);
gf100_gr_icmd
(
priv
,
oclass
->
icmd
);
nv_wr32
(
priv
,
0x404154
,
0x00000400
);
...
...
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