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
834b21f5
Commit
834b21f5
authored
Apr 14, 2016
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/fb/gk20a,gm20b: setup mmu debug buffer registers at init()
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
99c59172
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
+0
-5
drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk20a.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk20a.c
+4
-0
No files found.
drivers/gpu/drm/nouveau/nvkm/engine/gr/gk20a.c
View file @
834b21f5
...
...
@@ -22,7 +22,6 @@
#include "gf100.h"
#include "ctxgf100.h"
#include <subdev/fb.h>
#include <subdev/timer.h>
#include <nvif/class.h>
...
...
@@ -220,7 +219,6 @@ int
gk20a_gr_init
(
struct
gf100_gr
*
gr
)
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
struct
nvkm_fb
*
fb
=
device
->
fb
;
const
u32
magicgpc918
=
DIV_ROUND_UP
(
0x00800000
,
gr
->
tpc_total
);
u32
data
[
TPC_MAX
/
8
]
=
{};
u8
tpcnr
[
GPC_MAX
];
...
...
@@ -241,9 +239,6 @@ gk20a_gr_init(struct gf100_gr *gr)
return
ret
;
/* MMU debug buffer */
nvkm_wr32
(
device
,
0x100cc8
,
nvkm_memory_addr
(
fb
->
mmu_wr
)
>>
8
);
nvkm_wr32
(
device
,
0x100ccc
,
nvkm_memory_addr
(
fb
->
mmu_rd
)
>>
8
);
if
(
gr
->
func
->
init_gpc_mmu
)
gr
->
func
->
init_gpc_mmu
(
gr
);
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/fb/gk20a.c
View file @
834b21f5
...
...
@@ -21,11 +21,15 @@
*/
#include "priv.h"
#include <core/memory.h>
static
void
gk20a_fb_init
(
struct
nvkm_fb
*
fb
)
{
struct
nvkm_device
*
device
=
fb
->
subdev
.
device
;
nvkm_mask
(
device
,
0x100c80
,
0x00000001
,
0x00000000
);
/* 128KiB lpg */
nvkm_wr32
(
device
,
0x100cc8
,
nvkm_memory_addr
(
fb
->
mmu_wr
)
>>
8
);
nvkm_wr32
(
device
,
0x100ccc
,
nvkm_memory_addr
(
fb
->
mmu_rd
)
>>
8
);
}
static
const
struct
nvkm_fb_func
...
...
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