Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
9c9fe1f8
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9c9fe1f8
编写于
8月 03, 2009
作者:
E
Eric Anholt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/i915: Use our own workqueue to avoid wedging the system along with the GPU.
Signed-off-by:
N
Eric Anholt
<
eric@anholt.net
>
上级
0c2e3952
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
6 deletion
+19
-6
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_dma.c
+13
-2
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_drv.h
+1
-0
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem.c
+2
-2
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_irq.c
+3
-2
未找到文件。
drivers/gpu/drm/i915/i915_dma.c
浏览文件 @
9c9fe1f8
...
...
@@ -1186,6 +1186,13 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
if
(
ret
)
goto
out_iomapfree
;
dev_priv
->
wq
=
create_workqueue
(
"i915"
);
if
(
dev_priv
->
wq
==
NULL
)
{
DRM_ERROR
(
"Failed to create our workqueue.
\n
"
);
ret
=
-
ENOMEM
;
goto
out_iomapfree
;
}
/* enable GEM by default */
dev_priv
->
has_gem
=
1
;
...
...
@@ -1211,7 +1218,7 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
if
(
!
I915_NEED_GFX_HWS
(
dev
))
{
ret
=
i915_init_phys_hws
(
dev
);
if
(
ret
!=
0
)
goto
out_
iomap
free
;
goto
out_
workqueue_
free
;
}
i915_get_mem_freq
(
dev
);
...
...
@@ -1245,7 +1252,7 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
ret
=
i915_load_modeset_init
(
dev
,
prealloc_size
,
agp_size
);
if
(
ret
<
0
)
{
DRM_ERROR
(
"failed to init modeset
\n
"
);
goto
out_
rmmap
;
goto
out_
workqueue_free
;
}
}
...
...
@@ -1256,6 +1263,8 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
return
0
;
out_workqueue_free:
destroy_workqueue
(
dev_priv
->
wq
);
out_iomapfree:
io_mapping_free
(
dev_priv
->
mm
.
gtt_mapping
);
out_rmmap:
...
...
@@ -1269,6 +1278,8 @@ int i915_driver_unload(struct drm_device *dev)
{
struct
drm_i915_private
*
dev_priv
=
dev
->
dev_private
;
destroy_workqueue
(
dev_priv
->
wq
);
io_mapping_free
(
dev_priv
->
mm
.
gtt_mapping
);
if
(
dev_priv
->
mm
.
gtt_mtrr
>=
0
)
{
mtrr_del
(
dev_priv
->
mm
.
gtt_mtrr
,
dev
->
agp
->
base
,
...
...
drivers/gpu/drm/i915/i915_drv.h
浏览文件 @
9c9fe1f8
...
...
@@ -231,6 +231,7 @@ typedef struct drm_i915_private {
spinlock_t
error_lock
;
struct
drm_i915_error_state
*
first_error
;
struct
work_struct
error_work
;
struct
workqueue_struct
*
wq
;
/* Register state */
u8
saveLBB
;
...
...
drivers/gpu/drm/i915/i915_gem.c
浏览文件 @
9c9fe1f8
...
...
@@ -1570,7 +1570,7 @@ i915_add_request(struct drm_device *dev, struct drm_file *file_priv,
}
if
(
was_empty
&&
!
dev_priv
->
mm
.
suspended
)
schedule_delayed_work
(
&
dev_priv
->
mm
.
retire_work
,
HZ
);
queue_delayed_work
(
dev_priv
->
wq
,
&
dev_priv
->
mm
.
retire_work
,
HZ
);
return
seqno
;
}
...
...
@@ -1719,7 +1719,7 @@ i915_gem_retire_work_handler(struct work_struct *work)
i915_gem_retire_requests
(
dev
);
if
(
!
dev_priv
->
mm
.
suspended
&&
!
list_empty
(
&
dev_priv
->
mm
.
request_list
))
schedule_delayed_work
(
&
dev_priv
->
mm
.
retire_work
,
HZ
);
queue_delayed_work
(
dev_priv
->
wq
,
&
dev_priv
->
mm
.
retire_work
,
HZ
);
mutex_unlock
(
&
dev
->
struct_mutex
);
}
...
...
drivers/gpu/drm/i915/i915_irq.c
浏览文件 @
9c9fe1f8
...
...
@@ -482,7 +482,7 @@ static void i915_handle_error(struct drm_device *dev)
I915_WRITE
(
IIR
,
I915_RENDER_COMMAND_PARSER_ERROR_INTERRUPT
);
}
schedule_work
(
&
dev_priv
->
error_work
);
queue_work
(
dev_priv
->
wq
,
&
dev_priv
->
error_work
);
}
irqreturn_t
i915_driver_irq_handler
(
DRM_IRQ_ARGS
)
...
...
@@ -560,7 +560,8 @@ irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
DRM_DEBUG
(
"hotplug event received, stat 0x%08x
\n
"
,
hotplug_status
);
if
(
hotplug_status
&
dev_priv
->
hotplug_supported_mask
)
schedule_work
(
&
dev_priv
->
hotplug_work
);
queue_work
(
dev_priv
->
wq
,
&
dev_priv
->
hotplug_work
);
I915_WRITE
(
PORT_HOTPLUG_STAT
,
hotplug_status
);
I915_READ
(
PORT_HOTPLUG_STAT
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录