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
4066c0ae
Commit
4066c0ae
authored
Oct 29, 2010
by
Chris Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/i915/debugfs: Display the contents of the BLT and BSD status pages
Signed-off-by:
Chris Wilson
<
chris@chris-wilson.co.uk
>
parent
e380f60b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_debugfs.c
+13
-3
No files found.
drivers/gpu/drm/i915/i915_debugfs.c
View file @
4066c0ae
...
...
@@ -445,10 +445,18 @@ static int i915_hws_info(struct seq_file *m, void *data)
struct
drm_info_node
*
node
=
(
struct
drm_info_node
*
)
m
->
private
;
struct
drm_device
*
dev
=
node
->
minor
->
dev
;
drm_i915_private_t
*
dev_priv
=
dev
->
dev_private
;
int
i
;
struct
intel_ring_buffer
*
ring
;
volatile
u32
*
hws
;
int
i
;
switch
((
uintptr_t
)
node
->
info_ent
->
data
)
{
case
RENDER_RING
:
ring
=
&
dev_priv
->
render_ring
;
break
;
case
BSD_RING
:
ring
=
&
dev_priv
->
bsd_ring
;
break
;
case
BLT_RING
:
ring
=
&
dev_priv
->
blt_ring
;
break
;
default:
return
-
EINVAL
;
}
hws
=
(
volatile
u32
*
)
dev_priv
->
render_ring
.
status_page
.
page_addr
;
hws
=
(
volatile
u32
*
)
ring
->
status_page
.
page_addr
;
if
(
hws
==
NULL
)
return
0
;
...
...
@@ -1087,7 +1095,9 @@ static struct drm_info_list i915_debugfs_list[] = {
{
"i915_gem_seqno"
,
i915_gem_seqno_info
,
0
},
{
"i915_gem_fence_regs"
,
i915_gem_fence_regs_info
,
0
},
{
"i915_gem_interrupt"
,
i915_interrupt_info
,
0
},
{
"i915_gem_hws"
,
i915_hws_info
,
0
},
{
"i915_gem_hws"
,
i915_hws_info
,
0
,
(
void
*
)
RENDER_RING
},
{
"i915_gem_hws_blt"
,
i915_hws_info
,
0
,
(
void
*
)
BLT_RING
},
{
"i915_gem_hws_bsd"
,
i915_hws_info
,
0
,
(
void
*
)
BSD_RING
},
{
"i915_ringbuffer_data"
,
i915_ringbuffer_data
,
0
,
(
void
*
)
RENDER_RING
},
{
"i915_ringbuffer_info"
,
i915_ringbuffer_info
,
0
,
(
void
*
)
RENDER_RING
},
{
"i915_bsd_ringbuffer_data"
,
i915_ringbuffer_data
,
0
,
(
void
*
)
BSD_RING
},
...
...
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