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
27517ddb
Commit
27517ddb
authored
Nov 11, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvd0/disp: hook evo up to debugging
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
64d9cc04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
drivers/gpu/drm/nouveau/nvd0_display.c
drivers/gpu/drm/nouveau/nvd0_display.c
+13
-0
No files found.
drivers/gpu/drm/nouveau/nvd0_display.c
View file @
27517ddb
...
...
@@ -84,6 +84,9 @@ evo_wait(struct drm_device *dev, int id, int nr)
put
=
0
;
}
if
(
nouveau_reg_debug
&
NOUVEAU_REG_DEBUG_EVO
)
NV_INFO
(
dev
,
"Evo%d: %p START
\n
"
,
id
,
disp
->
evo
[
id
].
ptr
+
put
);
return
disp
->
evo
[
id
].
ptr
+
put
;
}
...
...
@@ -91,6 +94,16 @@ static void
evo_kick
(
u32
*
push
,
struct
drm_device
*
dev
,
int
id
)
{
struct
nvd0_display
*
disp
=
nvd0_display
(
dev
);
if
(
nouveau_reg_debug
&
NOUVEAU_REG_DEBUG_EVO
)
{
u32
curp
=
nv_rd32
(
dev
,
0x640000
+
(
id
*
0x1000
))
>>
2
;
u32
*
cur
=
disp
->
evo
[
id
].
ptr
+
curp
;
while
(
cur
<
push
)
NV_INFO
(
dev
,
"Evo%d: 0x%08x
\n
"
,
id
,
*
cur
++
);
NV_INFO
(
dev
,
"Evo%d: %p KICK!
\n
"
,
id
,
push
);
}
nv_wr32
(
dev
,
0x640000
+
(
id
*
0x1000
),
(
push
-
disp
->
evo
[
id
].
ptr
)
<<
2
);
}
...
...
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