Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
a6bb38e9
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
a6bb38e9
编写于
4月 08, 2016
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/mc/gf100: define reset masks + intr cleanup
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
33537d6f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
30 addition
and
20 deletion
+30
-20
drivers/gpu/drm/nouveau/nvkm/subdev/mc/gf100.c
drivers/gpu/drm/nouveau/nvkm/subdev/mc/gf100.c
+30
-19
drivers/gpu/drm/nouveau/nvkm/subdev/mc/priv.h
drivers/gpu/drm/nouveau/nvkm/subdev/mc/priv.h
+0
-1
未找到文件。
drivers/gpu/drm/nouveau/nvkm/subdev/mc/gf100.c
浏览文件 @
a6bb38e9
...
@@ -23,28 +23,38 @@
...
@@ -23,28 +23,38 @@
*/
*/
#include "priv.h"
#include "priv.h"
const
struct
nvkm_mc_map
static
const
struct
nvkm_mc_map
gf100_mc_intr
[]
=
{
gf100_mc_reset
[]
=
{
{
0x04000000
,
NVKM_ENGINE_DISP
},
/* DISP first, so pageflip timestamps work. */
{
0x00020000
,
NVKM_ENGINE_MSPDEC
},
{
0x00000001
,
NVKM_ENGINE_MSPPP
},
{
0x00000020
,
NVKM_ENGINE_CE0
},
{
0x00000040
,
NVKM_ENGINE_CE1
},
{
0x00000080
,
NVKM_ENGINE_CE2
},
{
0x00000100
,
NVKM_ENGINE_FIFO
},
{
0x00001000
,
NVKM_ENGINE_GR
},
{
0x00002000
,
NVKM_SUBDEV_FB
},
{
0x00008000
,
NVKM_ENGINE_MSVLD
},
{
0x00008000
,
NVKM_ENGINE_MSVLD
},
{
0x00040000
,
NVKM_SUBDEV_THERM
},
{
0x00001000
,
NVKM_ENGINE_GR
},
{
0x00000100
,
NVKM_ENGINE_FIFO
},
{
0x00000080
,
NVKM_ENGINE_CE1
},
{
0x00000040
,
NVKM_ENGINE_CE0
},
{
0x00000002
,
NVKM_ENGINE_MSPPP
},
{}
};
static
const
struct
nvkm_mc_map
gf100_mc_intr
[]
=
{
{
0x04000000
,
NVKM_ENGINE_DISP
},
{
0x00020000
,
NVKM_ENGINE_MSPDEC
},
{
0x00020000
,
NVKM_ENGINE_MSPDEC
},
{
0x00100000
,
NVKM_SUBDEV_TIMER
},
{
0x00008000
,
NVKM_ENGINE_MSVLD
},
{
0x00200000
,
NVKM_SUBDEV_GPIO
},
/* PMGR->GPIO */
{
0x00001000
,
NVKM_ENGINE_GR
},
{
0x00200000
,
NVKM_SUBDEV_I2C
},
/* PMGR->I2C/AUX */
{
0x00000100
,
NVKM_ENGINE_FIFO
},
{
0x01000000
,
NVKM_SUBDEV_PMU
},
{
0x00000040
,
NVKM_ENGINE_CE1
},
{
0x02000000
,
NVKM_SUBDEV_LTC
},
{
0x00000020
,
NVKM_ENGINE_CE0
},
{
0x08000000
,
NVKM_SUBDEV_FB
},
{
0x00000001
,
NVKM_ENGINE_MSPPP
},
{
0x10000000
,
NVKM_SUBDEV_BUS
},
{
0x40000000
,
NVKM_SUBDEV_IBUS
},
{
0x40000000
,
NVKM_SUBDEV_IBUS
},
{
0x80000000
,
NVKM_ENGINE_SW
},
{
0x10000000
,
NVKM_SUBDEV_BUS
},
{
0x08000000
,
NVKM_SUBDEV_FB
},
{
0x02000000
,
NVKM_SUBDEV_LTC
},
{
0x01000000
,
NVKM_SUBDEV_PMU
},
{
0x00200000
,
NVKM_SUBDEV_GPIO
},
{
0x00200000
,
NVKM_SUBDEV_I2C
},
{
0x00100000
,
NVKM_SUBDEV_TIMER
},
{
0x00040000
,
NVKM_SUBDEV_THERM
},
{
0x00002000
,
NVKM_SUBDEV_FB
},
{},
{},
};
};
...
@@ -87,6 +97,7 @@ gf100_mc = {
...
@@ -87,6 +97,7 @@ gf100_mc = {
.
intr_unarm
=
gf100_mc_intr_unarm
,
.
intr_unarm
=
gf100_mc_intr_unarm
,
.
intr_rearm
=
gf100_mc_intr_rearm
,
.
intr_rearm
=
gf100_mc_intr_rearm
,
.
intr_mask
=
gf100_mc_intr_mask
,
.
intr_mask
=
gf100_mc_intr_mask
,
.
reset
=
gf100_mc_reset
,
.
unk260
=
gf100_mc_unk260
,
.
unk260
=
gf100_mc_unk260
,
};
};
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mc/priv.h
浏览文件 @
a6bb38e9
...
@@ -35,7 +35,6 @@ void nv44_mc_init(struct nvkm_mc *);
...
@@ -35,7 +35,6 @@ void nv44_mc_init(struct nvkm_mc *);
void
nv50_mc_init
(
struct
nvkm_mc
*
);
void
nv50_mc_init
(
struct
nvkm_mc
*
);
extern
const
struct
nvkm_mc_map
nv50_mc_intr
[];
extern
const
struct
nvkm_mc_map
nv50_mc_intr
[];
extern
const
struct
nvkm_mc_map
gf100_mc_intr
[];
void
gf100_mc_intr_unarm
(
struct
nvkm_mc
*
);
void
gf100_mc_intr_unarm
(
struct
nvkm_mc
*
);
void
gf100_mc_intr_rearm
(
struct
nvkm_mc
*
);
void
gf100_mc_intr_rearm
(
struct
nvkm_mc
*
);
u32
gf100_mc_intr_mask
(
struct
nvkm_mc
*
);
u32
gf100_mc_intr_mask
(
struct
nvkm_mc
*
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录