Re: [PATCH 5/5] drm/i915: Use CSB helper in debugfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/5/2016 6:30 PM, Ben Widawsky wrote:
Since we extracted it for use in error state, we may as well use it in debugfs
too.

Signed-off-by: Ben Widawsky <benjamin.widawsky@xxxxxxxxx>

Reviewed-by: Michel Thierry <michel.thierry@xxxxxxxxx>

(depends on patch 4/5, where I have a small request)

---
  drivers/gpu/drm/i915/i915_debugfs.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 3b05bd1..0b829fa 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2099,8 +2099,7 @@ static int i915_execlists(struct seq_file *m, void *data)
                            read_pointer, write_pointer);

                 for (i = 0; i < GEN8_CSB_ENTRIES; i++) {
-                       status = I915_READ(RING_CONTEXT_STATUS_BUF_LO(ring, i));
-                       ctx_id = I915_READ(RING_CONTEXT_STATUS_BUF_HI(ring, i));
+                       intel_lrc_get_context_status(ring, i, &status, &ctx_id);

                         seq_printf(m, "\tStatus buffer %d: 0x%08X, context: %u\n",
                                    i, status, ctx_id);
--
2.6.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux