Rev 5271 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5271 | Rev 6104 | ||
---|---|---|---|
Line 312... | Line 312... | ||
312 | mutex_unlock(&rdev->ring_lock); |
312 | mutex_unlock(&rdev->ring_lock); |
313 | return 0; |
313 | return 0; |
314 | } |
314 | } |
Line 315... | Line 315... | ||
315 | 315 | ||
316 | /* and then save the content of the ring */ |
316 | /* and then save the content of the ring */ |
317 | *data = kmalloc_array(size, sizeof(uint32_t), GFP_KERNEL); |
317 | *data = drm_malloc_ab(size, sizeof(uint32_t)); |
318 | if (!*data) { |
318 | if (!*data) { |
319 | mutex_unlock(&rdev->ring_lock); |
319 | mutex_unlock(&rdev->ring_lock); |
320 | return 0; |
320 | return 0; |
321 | } |
321 | } |
Line 493... | Line 493... | ||
493 | seq_printf(m, "last semaphore wait addr : 0x%016llx\n", |
493 | seq_printf(m, "last semaphore wait addr : 0x%016llx\n", |
494 | ring->last_semaphore_wait_addr); |
494 | ring->last_semaphore_wait_addr); |
495 | seq_printf(m, "%u free dwords in ring\n", ring->ring_free_dw); |
495 | seq_printf(m, "%u free dwords in ring\n", ring->ring_free_dw); |
496 | seq_printf(m, "%u dwords in ring\n", count); |
496 | seq_printf(m, "%u dwords in ring\n", count); |
Line 497... | Line 497... | ||
497 | 497 | ||
498 | if (!ring->ready) |
498 | if (!ring->ring) |
Line 499... | Line 499... | ||
499 | return 0; |
499 | return 0; |
500 | 500 | ||
501 | /* print 8 dw before current rptr as often it's the last executed |
501 | /* print 8 dw before current rptr as often it's the last executed |