Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
79bb4b61
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
79bb4b61
编写于
5月 08, 2018
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/fifo/gk208-: write pbdma timeout regs during initialisation
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
8c4e9f9d
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
24 addition
and
0 deletion
+24
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
+3
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h
+4
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk208.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk208.c
+11
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk20a.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk20a.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm200.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm200.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm20b.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm20b.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp10b.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp10b.c
+1
-0
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
浏览文件 @
79bb4b61
...
@@ -962,6 +962,9 @@ gk104_fifo_init(struct nvkm_fifo *base)
...
@@ -962,6 +962,9 @@ gk104_fifo_init(struct nvkm_fifo *base)
nvkm_wr32
(
device
,
0x002254
,
0x10000000
|
fifo
->
user
.
bar
->
addr
>>
12
);
nvkm_wr32
(
device
,
0x002254
,
0x10000000
|
fifo
->
user
.
bar
->
addr
>>
12
);
if
(
fifo
->
func
->
init_pbdma_timeout
)
fifo
->
func
->
init_pbdma_timeout
(
fifo
);
nvkm_wr32
(
device
,
0x002100
,
0xffffffff
);
nvkm_wr32
(
device
,
0x002100
,
0xffffffff
);
nvkm_wr32
(
device
,
0x002140
,
0x7fffffff
);
nvkm_wr32
(
device
,
0x002140
,
0x7fffffff
);
}
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h
浏览文件 @
79bb4b61
...
@@ -45,6 +45,8 @@ struct gk104_fifo {
...
@@ -45,6 +45,8 @@ struct gk104_fifo {
};
};
struct
gk104_fifo_func
{
struct
gk104_fifo_func
{
void
(
*
init_pbdma_timeout
)(
struct
gk104_fifo
*
);
struct
{
struct
{
const
struct
nvkm_enum
*
access
;
const
struct
nvkm_enum
*
access
;
const
struct
nvkm_enum
*
engine
;
const
struct
nvkm_enum
*
engine
;
...
@@ -87,6 +89,8 @@ extern const struct gk104_fifo_runlist_func gk110_fifo_runlist;
...
@@ -87,6 +89,8 @@ extern const struct gk104_fifo_runlist_func gk110_fifo_runlist;
void
gk110_fifo_runlist_cgrp
(
struct
nvkm_fifo_cgrp
*
,
void
gk110_fifo_runlist_cgrp
(
struct
nvkm_fifo_cgrp
*
,
struct
nvkm_memory
*
,
u32
);
struct
nvkm_memory
*
,
u32
);
void
gk208_fifo_init_pbdma_timeout
(
struct
gk104_fifo
*
);
extern
const
struct
nvkm_enum
gm107_fifo_fault_engine
[];
extern
const
struct
nvkm_enum
gm107_fifo_fault_engine
[];
extern
const
struct
nvkm_enum
gp100_fifo_fault_engine
[];
extern
const
struct
nvkm_enum
gp100_fifo_fault_engine
[];
#endif
#endif
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk208.c
浏览文件 @
79bb4b61
...
@@ -26,8 +26,19 @@
...
@@ -26,8 +26,19 @@
#include <nvif/class.h>
#include <nvif/class.h>
void
gk208_fifo_init_pbdma_timeout
(
struct
gk104_fifo
*
fifo
)
{
struct
nvkm_device
*
device
=
fifo
->
base
.
engine
.
subdev
.
device
;
int
i
;
for
(
i
=
0
;
i
<
fifo
->
pbdma_nr
;
i
++
)
nvkm_wr32
(
device
,
0x04012c
+
(
i
*
0x2000
),
0x0000ffff
);
}
static
const
struct
gk104_fifo_func
static
const
struct
gk104_fifo_func
gk208_fifo
=
{
gk208_fifo
=
{
.
init_pbdma_timeout
=
gk208_fifo_init_pbdma_timeout
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
engine
=
gk104_fifo_fault_engine
,
.
fault
.
engine
=
gk104_fifo_fault_engine
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk20a.c
浏览文件 @
79bb4b61
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
static
const
struct
gk104_fifo_func
static
const
struct
gk104_fifo_func
gk20a_fifo
=
{
gk20a_fifo
=
{
.
init_pbdma_timeout
=
gk208_fifo_init_pbdma_timeout
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
engine
=
gk104_fifo_fault_engine
,
.
fault
.
engine
=
gk104_fifo_fault_engine
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c
浏览文件 @
79bb4b61
...
@@ -51,6 +51,7 @@ gm107_fifo_fault_engine[] = {
...
@@ -51,6 +51,7 @@ gm107_fifo_fault_engine[] = {
static
const
struct
gk104_fifo_func
static
const
struct
gk104_fifo_func
gm107_fifo
=
{
gm107_fifo
=
{
.
init_pbdma_timeout
=
gk208_fifo_init_pbdma_timeout
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
engine
=
gm107_fifo_fault_engine
,
.
fault
.
engine
=
gm107_fifo_fault_engine
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm200.c
浏览文件 @
79bb4b61
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
static
const
struct
gk104_fifo_func
static
const
struct
gk104_fifo_func
gm200_fifo
=
{
gm200_fifo
=
{
.
init_pbdma_timeout
=
gk208_fifo_init_pbdma_timeout
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
engine
=
gm107_fifo_fault_engine
,
.
fault
.
engine
=
gm107_fifo_fault_engine
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm20b.c
浏览文件 @
79bb4b61
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
static
const
struct
gk104_fifo_func
static
const
struct
gk104_fifo_func
gm20b_fifo
=
{
gm20b_fifo
=
{
.
init_pbdma_timeout
=
gk208_fifo_init_pbdma_timeout
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
engine
=
gm107_fifo_fault_engine
,
.
fault
.
engine
=
gm107_fifo_fault_engine
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c
浏览文件 @
79bb4b61
...
@@ -52,6 +52,7 @@ gp100_fifo_fault_engine[] = {
...
@@ -52,6 +52,7 @@ gp100_fifo_fault_engine[] = {
static
const
struct
gk104_fifo_func
static
const
struct
gk104_fifo_func
gp100_fifo
=
{
gp100_fifo
=
{
.
init_pbdma_timeout
=
gk208_fifo_init_pbdma_timeout
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
engine
=
gp100_fifo_fault_engine
,
.
fault
.
engine
=
gp100_fifo_fault_engine
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp10b.c
浏览文件 @
79bb4b61
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
static
const
struct
gk104_fifo_func
static
const
struct
gk104_fifo_func
gp10b_fifo
=
{
gp10b_fifo
=
{
.
init_pbdma_timeout
=
gk208_fifo_init_pbdma_timeout
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
access
=
gk104_fifo_fault_access
,
.
fault
.
engine
=
gp100_fifo_fault_engine
,
.
fault
.
engine
=
gp100_fifo_fault_engine
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
.
fault
.
reason
=
gk104_fifo_fault_reason
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录