Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
8856d8e0
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8856d8e0
编写于
5月 04, 2015
作者:
O
Oded Gabbay
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/amdkfd: reformat some debug prints
Signed-off-by:
N
Oded Gabbay
<
oded.gabbay@gmail.com
>
上级
1549fcd1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
10 deletion
+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
未找到文件。
drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c
浏览文件 @
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
浏览文件 @
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
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录