Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: always dump the ring content if it's available

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>

authored by

Christian König and committed by
Alex Deucher
1b01fc34 f2c9e560

+1 -1
+1 -1
drivers/gpu/drm/radeon/radeon_ring.c
··· 495 495 seq_printf(m, "%u free dwords in ring\n", ring->ring_free_dw); 496 496 seq_printf(m, "%u dwords in ring\n", count); 497 497 498 - if (!ring->ready) 498 + if (!ring->ring) 499 499 return 0; 500 500 501 501 /* print 8 dw before current rptr as often it's the last executed