Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
3d2a812a
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
3d2a812a
编写于
9月 29, 2010
作者:
C
Chris Wilson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/i915/debug: Remove default WATCH_BUF
Replaced by tracepoints. Signed-off-by:
N
Chris Wilson
<
chris@chris-wilson.co.uk
>
上级
97d1ebaf
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
3 addition
and
53 deletion
+3
-53
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_drv.h
+0
-1
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem.c
+2
-51
drivers/gpu/drm/i915/i915_gem_debug.c
drivers/gpu/drm/i915/i915_gem_debug.c
+1
-1
未找到文件。
drivers/gpu/drm/i915/i915_drv.h
浏览文件 @
3d2a812a
...
...
@@ -75,7 +75,6 @@ enum plane {
#define DRIVER_PATCHLEVEL 0
#define WATCH_COHERENCY 0
#define WATCH_BUF 0
#define WATCH_EXEC 0
#define WATCH_RELOC 0
#define WATCH_INACTIVE 0
...
...
drivers/gpu/drm/i915/i915_gem.c
浏览文件 @
3d2a812a
...
...
@@ -1092,10 +1092,6 @@ i915_gem_set_domain_ioctl(struct drm_device *dev, void *data,
intel_mark_busy
(
dev
,
obj
);
#if WATCH_BUF
DRM_INFO
(
"set_domain_ioctl %p(%zd), %08x %08x
\n
"
,
obj
,
obj
->
size
,
read_domains
,
write_domain
);
#endif
if
(
read_domains
&
I915_GEM_DOMAIN_GTT
)
{
ret
=
i915_gem_object_set_to_gtt_domain
(
obj
,
write_domain
!=
0
);
...
...
@@ -1137,7 +1133,6 @@ i915_gem_sw_finish_ioctl(struct drm_device *dev, void *data,
{
struct
drm_i915_gem_sw_finish
*
args
=
data
;
struct
drm_gem_object
*
obj
;
struct
drm_i915_gem_object
*
obj_priv
;
int
ret
=
0
;
if
(
!
(
dev
->
driver
->
driver_features
&
DRIVER_GEM
))
...
...
@@ -1153,14 +1148,8 @@ i915_gem_sw_finish_ioctl(struct drm_device *dev, void *data,
return
ret
;
}
#if WATCH_BUF
DRM_INFO
(
"%s: sw_finish %d (%p %zd)
\n
"
,
__func__
,
args
->
handle
,
obj
,
obj
->
size
);
#endif
obj_priv
=
to_intel_bo
(
obj
);
/* Pinned buffers may be scanout, so flush the cache */
if
(
obj_priv
->
pin_count
)
if
(
to_intel_bo
(
obj
)
->
pin_count
)
i915_gem_object_flush_cpu_write_domain
(
obj
);
drm_gem_object_unreference
(
obj
);
...
...
@@ -2061,10 +2050,6 @@ i915_gem_object_wait_rendering(struct drm_gem_object *obj,
* it.
*/
if
(
obj_priv
->
active
)
{
#if WATCH_BUF
DRM_INFO
(
"%s: object %p wait for seqno %08x
\n
"
,
__func__
,
obj
,
obj_priv
->
last_rendering_seqno
);
#endif
ret
=
i915_do_wait_request
(
dev
,
obj_priv
->
last_rendering_seqno
,
interruptible
,
...
...
@@ -2086,10 +2071,6 @@ i915_gem_object_unbind(struct drm_gem_object *obj)
struct
drm_i915_gem_object
*
obj_priv
=
to_intel_bo
(
obj
);
int
ret
=
0
;
#if WATCH_BUF
DRM_INFO
(
"%s:%d %p
\n
"
,
__func__
,
__LINE__
,
obj
);
DRM_INFO
(
"gtt_space %p
\n
"
,
obj_priv
->
gtt_space
);
#endif
if
(
obj_priv
->
gtt_space
==
NULL
)
return
0
;
...
...
@@ -2647,10 +2628,6 @@ i915_gem_object_bind_to_gtt(struct drm_gem_object *obj, unsigned alignment)
goto
search_free
;
}
#if WATCH_BUF
DRM_INFO
(
"Binding object of size %zd at 0x%08x
\n
"
,
obj
->
size
,
obj_priv
->
gtt_offset
);
#endif
ret
=
i915_gem_object_get_pages
(
obj
,
gfpmask
);
if
(
ret
)
{
drm_mm_put_block
(
obj_priv
->
gtt_space
);
...
...
@@ -3073,12 +3050,6 @@ i915_gem_object_set_to_gpu_domain(struct drm_gem_object *obj)
intel_mark_busy
(
dev
,
obj
);
#if WATCH_BUF
DRM_INFO
(
"%s: object %p read %08x -> %08x write %08x -> %08x
\n
"
,
__func__
,
obj
,
obj
->
read_domains
,
obj
->
pending_read_domains
,
obj
->
write_domain
,
obj
->
pending_write_domain
);
#endif
/*
* If the object isn't moving to a new write domain,
* let the object stay in multiple read domains
...
...
@@ -3105,13 +3076,8 @@ i915_gem_object_set_to_gpu_domain(struct drm_gem_object *obj)
* stale data. That is, any new read domains.
*/
invalidate_domains
|=
obj
->
pending_read_domains
&
~
obj
->
read_domains
;
if
((
flush_domains
|
invalidate_domains
)
&
I915_GEM_DOMAIN_CPU
)
{
#if WATCH_BUF
DRM_INFO
(
"%s: CPU domain flush %08x invalidate %08x
\n
"
,
__func__
,
flush_domains
,
invalidate_domains
);
#endif
if
((
flush_domains
|
invalidate_domains
)
&
I915_GEM_DOMAIN_CPU
)
i915_gem_clflush_object
(
obj
);
}
old_read_domains
=
obj
->
read_domains
;
...
...
@@ -3129,12 +3095,6 @@ i915_gem_object_set_to_gpu_domain(struct drm_gem_object *obj)
dev
->
flush_domains
|=
flush_domains
;
if
(
obj_priv
->
ring
)
dev_priv
->
mm
.
flush_rings
|=
obj_priv
->
ring
->
id
;
#if WATCH_BUF
DRM_INFO
(
"%s: read %08x write %08x invalidate %08x flush %08x
\n
"
,
__func__
,
obj
->
read_domains
,
obj
->
write_domain
,
dev
->
invalidate_domains
,
dev
->
flush_domains
);
#endif
trace_i915_gem_object_change_domain
(
obj
,
old_read_domains
,
...
...
@@ -3438,11 +3398,6 @@ i915_gem_object_pin_and_relocate(struct drm_gem_object *obj,
(
reloc_offset
&
(
PAGE_SIZE
-
1
)));
reloc_val
=
target_obj_priv
->
gtt_offset
+
reloc
->
delta
;
#if WATCH_BUF
DRM_INFO
(
"Applied relocation: %p@0x%08x %08x -> %08x
\n
"
,
obj
,
(
unsigned
int
)
reloc
->
offset
,
readl
(
reloc_entry
),
reloc_val
);
#endif
writel
(
reloc_val
,
reloc_entry
);
io_mapping_unmap_atomic
(
reloc_page
,
KM_USER0
);
...
...
@@ -3454,10 +3409,6 @@ i915_gem_object_pin_and_relocate(struct drm_gem_object *obj,
drm_gem_object_unreference
(
target_obj
);
}
#if WATCH_BUF
if
(
0
)
i915_gem_dump_object
(
obj
,
128
,
__func__
,
~
0
);
#endif
return
0
;
}
...
...
drivers/gpu/drm/i915/i915_gem_debug.c
浏览文件 @
3d2a812a
...
...
@@ -52,7 +52,7 @@ i915_verify_inactive(struct drm_device *dev, char *file, int line)
#endif
/* WATCH_INACTIVE */
#if WATCH_
BUF | WATCH_
EXEC | WATCH_PWRITE
#if WATCH_EXEC | WATCH_PWRITE
static
void
i915_gem_dump_page
(
struct
page
*
page
,
uint32_t
start
,
uint32_t
end
,
uint32_t
bias
,
uint32_t
mark
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录