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
9862e600
Commit
9862e600
authored
Jan 04, 2011
by
Chris Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/i915/debugfs: Show the per-ring IMR
Signed-off-by:
Chris Wilson
<
chris@chris-wilson.co.uk
>
parent
0f46832f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
14 deletions
+24
-14
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_debugfs.c
+7
-1
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_irq.c
+4
-1
drivers/gpu/drm/i915/intel_ringbuffer.h
drivers/gpu/drm/i915/intel_ringbuffer.h
+13
-12
No files found.
drivers/gpu/drm/i915/i915_debugfs.c
View file @
9862e600
...
...
@@ -456,8 +456,14 @@ static int i915_interrupt_info(struct seq_file *m, void *data)
}
seq_printf
(
m
,
"Interrupts received: %d
\n
"
,
atomic_read
(
&
dev_priv
->
irq_received
));
for
(
i
=
0
;
i
<
I915_NUM_RINGS
;
i
++
)
for
(
i
=
0
;
i
<
I915_NUM_RINGS
;
i
++
)
{
if
(
IS_GEN6
(
dev
))
{
seq_printf
(
m
,
"Graphics Interrupt mask (%s): %08x
\n
"
,
dev_priv
->
ring
[
i
].
name
,
I915_READ_IMR
(
&
dev_priv
->
ring
[
i
]));
}
i915_ring_seqno_info
(
m
,
&
dev_priv
->
ring
[
i
]);
}
mutex_unlock
(
&
dev
->
struct_mutex
);
return
0
;
...
...
drivers/gpu/drm/i915/i915_irq.c
View file @
9862e600
...
...
@@ -349,9 +349,12 @@ static void notify_ring(struct drm_device *dev,
{
struct
drm_i915_private
*
dev_priv
=
dev
->
dev_private
;
u32
seqno
=
ring
->
get_seqno
(
ring
);
ring
->
irq_seqno
=
seqno
;
trace_i915_gem_request_complete
(
dev
,
seqno
);
ring
->
irq_seqno
=
seqno
;
wake_up_all
(
&
ring
->
irq_queue
);
dev_priv
->
hangcheck_count
=
0
;
mod_timer
(
&
dev_priv
->
hangcheck_timer
,
jiffies
+
msecs_to_jiffies
(
DRM_I915_HANGCHECK_PERIOD
));
...
...
drivers/gpu/drm/i915/intel_ringbuffer.h
View file @
9862e600
...
...
@@ -16,23 +16,24 @@ struct intel_hw_status_page {
#define I915_RING_READ(reg) i915_safe_read(dev_priv, reg)
#define I915_READ_TAIL(ring) I915_RING_READ(RING_TAIL(
ring
->mmio_base))
#define I915_WRITE_TAIL(ring, val) I915_WRITE(RING_TAIL(
ring
->mmio_base), val)
#define I915_READ_TAIL(ring) I915_RING_READ(RING_TAIL(
(ring)
->mmio_base))
#define I915_WRITE_TAIL(ring, val) I915_WRITE(RING_TAIL(
(ring)
->mmio_base), val)
#define I915_READ_START(ring) I915_RING_READ(RING_START(
ring
->mmio_base))
#define I915_WRITE_START(ring, val) I915_WRITE(RING_START(
ring
->mmio_base), val)
#define I915_READ_START(ring) I915_RING_READ(RING_START(
(ring)
->mmio_base))
#define I915_WRITE_START(ring, val) I915_WRITE(RING_START(
(ring)
->mmio_base), val)
#define I915_READ_HEAD(ring) I915_RING_READ(RING_HEAD(
ring
->mmio_base))
#define I915_WRITE_HEAD(ring, val) I915_WRITE(RING_HEAD(
ring
->mmio_base), val)
#define I915_READ_HEAD(ring) I915_RING_READ(RING_HEAD(
(ring)
->mmio_base))
#define I915_WRITE_HEAD(ring, val) I915_WRITE(RING_HEAD(
(ring)
->mmio_base), val)
#define I915_READ_CTL(ring) I915_RING_READ(RING_CTL(
ring
->mmio_base))
#define I915_WRITE_CTL(ring, val) I915_WRITE(RING_CTL(
ring
->mmio_base), val)
#define I915_READ_CTL(ring) I915_RING_READ(RING_CTL(
(ring)
->mmio_base))
#define I915_WRITE_CTL(ring, val) I915_WRITE(RING_CTL(
(ring)
->mmio_base), val)
#define I915_WRITE_IMR(ring, val) I915_WRITE(RING_IMR(ring->mmio_base), val)
#define I915_WRITE_IMR(ring, val) I915_WRITE(RING_IMR((ring)->mmio_base), val)
#define I915_READ_IMR(ring) I915_RING_READ(RING_IMR((ring)->mmio_base))
#define I915_READ_NOPID(ring) I915_RING_READ(RING_NOPID(
ring
->mmio_base))
#define I915_READ_SYNC_0(ring) I915_RING_READ(RING_SYNC_0(
ring
->mmio_base))
#define I915_READ_SYNC_1(ring) I915_RING_READ(RING_SYNC_1(
ring
->mmio_base))
#define I915_READ_NOPID(ring) I915_RING_READ(RING_NOPID(
(ring)
->mmio_base))
#define I915_READ_SYNC_0(ring) I915_RING_READ(RING_SYNC_0(
(ring)
->mmio_base))
#define I915_READ_SYNC_1(ring) I915_RING_READ(RING_SYNC_1(
(ring)
->mmio_base))
struct
intel_ring_buffer
{
const
char
*
name
;
...
...
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