Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
79266243
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看板
提交
79266243
编写于
3月 11, 2016
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/fifo/gf100: identify fault-recovery members more clearly
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
adbe24a2
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
12 addition
and
10 deletion
+12
-10
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
+8
-8
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.h
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.h
+4
-2
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
浏览文件 @
79266243
...
...
@@ -134,9 +134,9 @@ gf100_fifo_engine(struct gf100_fifo *fifo, u32 engn)
}
static
void
gf100_fifo_recover_work
(
struct
work_struct
*
w
ork
)
gf100_fifo_recover_work
(
struct
work_struct
*
w
)
{
struct
gf100_fifo
*
fifo
=
container_of
(
w
ork
,
typeof
(
*
fifo
),
fault
);
struct
gf100_fifo
*
fifo
=
container_of
(
w
,
typeof
(
*
fifo
),
recover
.
work
);
struct
nvkm_device
*
device
=
fifo
->
base
.
engine
.
subdev
.
device
;
struct
nvkm_engine
*
engine
;
unsigned
long
flags
;
...
...
@@ -144,8 +144,8 @@ gf100_fifo_recover_work(struct work_struct *work)
u64
mask
,
todo
;
spin_lock_irqsave
(
&
fifo
->
base
.
lock
,
flags
);
mask
=
fifo
->
mask
;
fifo
->
mask
=
0ULL
;
mask
=
fifo
->
recover
.
mask
;
fifo
->
recover
.
mask
=
0ULL
;
spin_unlock_irqrestore
(
&
fifo
->
base
.
lock
,
flags
);
for
(
todo
=
mask
;
engn
=
__ffs64
(
todo
),
todo
;
todo
&=
~
(
1
<<
engn
))
...
...
@@ -180,8 +180,8 @@ gf100_fifo_recover(struct gf100_fifo *fifo, struct nvkm_engine *engine,
list_del_init
(
&
chan
->
head
);
chan
->
killed
=
true
;
fifo
->
mask
|=
1ULL
<<
engine
->
subdev
.
index
;
schedule_work
(
&
fifo
->
fault
);
fifo
->
recover
.
mask
|=
1ULL
<<
engine
->
subdev
.
index
;
schedule_work
(
&
fifo
->
recover
.
work
);
}
static
const
struct
nvkm_enum
...
...
@@ -587,7 +587,7 @@ static void
gf100_fifo_fini
(
struct
nvkm_fifo
*
base
)
{
struct
gf100_fifo
*
fifo
=
gf100_fifo
(
base
);
flush_work
(
&
fifo
->
fault
);
flush_work
(
&
fifo
->
recover
.
work
);
}
static
void
...
...
@@ -660,7 +660,7 @@ gf100_fifo_new(struct nvkm_device *device, int index, struct nvkm_fifo **pfifo)
if
(
!
(
fifo
=
kzalloc
(
sizeof
(
*
fifo
),
GFP_KERNEL
)))
return
-
ENOMEM
;
INIT_LIST_HEAD
(
&
fifo
->
chan
);
INIT_WORK
(
&
fifo
->
fault
,
gf100_fifo_recover_work
);
INIT_WORK
(
&
fifo
->
recover
.
work
,
gf100_fifo_recover_work
);
*
pfifo
=
&
fifo
->
base
;
return
nvkm_fifo_ctor
(
&
gf100_fifo
,
device
,
index
,
128
,
&
fifo
->
base
);
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.h
浏览文件 @
79266243
...
...
@@ -11,8 +11,10 @@ struct gf100_fifo {
struct
list_head
chan
;
struct
work_struct
fault
;
struct
{
struct
work_struct
work
;
u64
mask
;
}
recover
;
int
pbdma_nr
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录