Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
8856d8e0
Commit
8856d8e0
authored
May 04, 2015
by
Oded Gabbay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/amdkfd: reformat some debug prints
Signed-off-by:
Oded Gabbay
<
oded.gabbay@gmail.com
>
parent
1549fcd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c
drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c
+7
-8
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
+3
-2
No files found.
drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c
View file @
8856d8e0
...
...
@@ -142,14 +142,13 @@ int kfd_doorbell_mmap(struct kfd_process *process, struct vm_area_struct *vma)
vma
->
vm_page_prot
=
pgprot_noncached
(
vma
->
vm_page_prot
);
pr_debug
(
"kfd: mapping doorbell page in kfd_doorbell_mmap
\n
"
" target user address == 0x%08llX
\n
"
" physical address == 0x%08llX
\n
"
" vm_flags == 0x%04lX
\n
"
" size == 0x%04lX
\n
"
,
(
unsigned
long
long
)
vma
->
vm_start
,
address
,
vma
->
vm_flags
,
doorbell_process_allocation
());
pr_debug
(
"mapping doorbell page:
\n
"
);
pr_debug
(
" target user address == 0x%08llX
\n
"
,
(
unsigned
long
long
)
vma
->
vm_start
);
pr_debug
(
" physical address == 0x%08llX
\n
"
,
address
);
pr_debug
(
" vm_flags == 0x%04lX
\n
"
,
vma
->
vm_flags
);
pr_debug
(
" size == 0x%04lX
\n
"
,
doorbell_process_allocation
());
return
io_remap_pfn_range
(
vma
,
vma
->
vm_start
,
...
...
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
View file @
8856d8e0
...
...
@@ -215,8 +215,9 @@ static int acquire_packet_buffer(struct kernel_queue *kq,
queue_address
=
(
unsigned
int
*
)
kq
->
pq_kernel_addr
;
queue_size_dwords
=
kq
->
queue
->
properties
.
queue_size
/
sizeof
(
uint32_t
);
pr_debug
(
"amdkfd: In func %s
\n
rptr: %d
\n
wptr: %d
\n
queue_address 0x%p
\n
"
,
__func__
,
rptr
,
wptr
,
queue_address
);
pr_debug
(
"rptr: %d
\n
"
,
rptr
);
pr_debug
(
"wptr: %d
\n
"
,
wptr
);
pr_debug
(
"queue_address 0x%p
\n
"
,
queue_address
);
available_size
=
(
rptr
-
1
-
wptr
+
queue_size_dwords
)
%
queue_size_dwords
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment