]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/radeon: always dump the ring content if it's available
authorChristian König <christian.koenig@amd.com>
Mon, 23 Mar 2015 10:32:59 +0000 (11:32 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Mar 2015 14:17:43 +0000 (10:17 -0400)
Dumping is still possible if a ring isn't ready, only when it
isn't allocated at all we need to abort here.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_ring.c

index 2456f69efd2310233fac5c75a314a9060abe1a17..8c7872339c2a6f5e94bf601c47ed421e5caee352 100644 (file)
@@ -495,7 +495,7 @@ static int radeon_debugfs_ring_info(struct seq_file *m, void *data)
        seq_printf(m, "%u free dwords in ring\n", ring->ring_free_dw);
        seq_printf(m, "%u dwords in ring\n", count);
 
-       if (!ring->ready)
+       if (!ring->ring)
                return 0;
 
        /* print 8 dw before current rptr as often it's the last executed