Commit 8856d8e0 authored by Oded Gabbay's avatar Oded Gabbay

drm/amdkfd: reformat some debug prints

Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent 1549fcd1
...@@ -142,15 +142,14 @@ int kfd_doorbell_mmap(struct kfd_process *process, struct vm_area_struct *vma) ...@@ -142,15 +142,14 @@ int kfd_doorbell_mmap(struct kfd_process *process, struct vm_area_struct *vma)
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
pr_debug("kfd: mapping doorbell page in kfd_doorbell_mmap\n" pr_debug("mapping doorbell page:\n");
" target user address == 0x%08llX\n" pr_debug(" target user address == 0x%08llX\n",
" physical address == 0x%08llX\n" (unsigned long long) vma->vm_start);
" vm_flags == 0x%04lX\n" pr_debug(" physical address == 0x%08llX\n", address);
" size == 0x%04lX\n", pr_debug(" vm_flags == 0x%04lX\n", vma->vm_flags);
(unsigned long long) vma->vm_start, address, vma->vm_flags, pr_debug(" size == 0x%04lX\n",
doorbell_process_allocation()); doorbell_process_allocation());
return io_remap_pfn_range(vma, return io_remap_pfn_range(vma,
vma->vm_start, vma->vm_start,
address >> PAGE_SHIFT, address >> PAGE_SHIFT,
......
...@@ -215,8 +215,9 @@ static int acquire_packet_buffer(struct kernel_queue *kq, ...@@ -215,8 +215,9 @@ static int acquire_packet_buffer(struct kernel_queue *kq,
queue_address = (unsigned int *)kq->pq_kernel_addr; queue_address = (unsigned int *)kq->pq_kernel_addr;
queue_size_dwords = kq->queue->properties.queue_size / sizeof(uint32_t); queue_size_dwords = kq->queue->properties.queue_size / sizeof(uint32_t);
pr_debug("amdkfd: In func %s\nrptr: %d\nwptr: %d\nqueue_address 0x%p\n", pr_debug("rptr: %d\n", rptr);
__func__, rptr, wptr, queue_address); pr_debug("wptr: %d\n", wptr);
pr_debug("queue_address 0x%p\n", queue_address);
available_size = (rptr - 1 - wptr + queue_size_dwords) % available_size = (rptr - 1 - wptr + queue_size_dwords) %
queue_size_dwords; queue_size_dwords;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment