Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
952eb819
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看板
提交
952eb819
编写于
5月 30, 2016
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/top: take nvkm_device as argument to public functions
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
5dd0775e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
13 deletion
+16
-13
drivers/gpu/drm/nouveau/include/nvkm/subdev/top.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/top.h
+4
-4
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
+2
-3
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/subdev/top/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/top/base.c
+8
-4
未找到文件。
drivers/gpu/drm/nouveau/include/nvkm/subdev/top.h
浏览文件 @
952eb819
...
...
@@ -8,10 +8,10 @@ struct nvkm_top {
struct
list_head
device
;
};
u32
nvkm_top_reset
(
struct
nvkm_
top
*
,
enum
nvkm_devidx
);
u32
nvkm_top_intr
(
struct
nvkm_
top
*
,
u32
intr
,
u64
*
subdevs
);
enum
nvkm_devidx
nvkm_top_fault
(
struct
nvkm_
top
*
,
int
fault
);
enum
nvkm_devidx
nvkm_top_engine
(
struct
nvkm_
top
*
,
int
,
int
*
runl
,
int
*
engn
);
u32
nvkm_top_reset
(
struct
nvkm_
device
*
,
enum
nvkm_devidx
);
u32
nvkm_top_intr
(
struct
nvkm_
device
*
,
u32
intr
,
u64
*
subdevs
);
enum
nvkm_devidx
nvkm_top_fault
(
struct
nvkm_
device
*
,
int
fault
);
enum
nvkm_devidx
nvkm_top_engine
(
struct
nvkm_
device
*
,
int
,
int
*
runl
,
int
*
engn
);
int
gk104_top_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_top
**
);
#endif
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
浏览文件 @
952eb819
...
...
@@ -329,7 +329,7 @@ gk104_fifo_intr_fault(struct gk104_fifo *fifo, int unit)
}
if
(
eu
==
NULL
)
{
enum
nvkm_devidx
engidx
=
nvkm_top_fault
(
device
->
top
,
unit
);
enum
nvkm_devidx
engidx
=
nvkm_top_fault
(
device
,
unit
);
if
(
engidx
<
NVKM_SUBDEV_NR
)
{
const
char
*
src
=
nvkm_subdev_name
[
engidx
];
char
*
dst
=
en
;
...
...
@@ -589,7 +589,6 @@ gk104_fifo_oneinit(struct nvkm_fifo *base)
struct
gk104_fifo
*
fifo
=
gk104_fifo
(
base
);
struct
nvkm_subdev
*
subdev
=
&
fifo
->
base
.
engine
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
struct
nvkm_top
*
top
=
device
->
top
;
int
engn
,
runl
,
pbid
,
ret
,
i
,
j
;
enum
nvkm_devidx
engidx
;
u32
*
map
;
...
...
@@ -608,7 +607,7 @@ gk104_fifo_oneinit(struct nvkm_fifo *base)
/* Determine runlist configuration from topology device info. */
i
=
0
;
while
((
int
)(
engidx
=
nvkm_top_engine
(
top
,
i
++
,
&
runl
,
&
engn
))
>=
0
)
{
while
((
int
)(
engidx
=
nvkm_top_engine
(
device
,
i
++
,
&
runl
,
&
engn
))
>=
0
)
{
/* Determine which PBDMA handles requests for this engine. */
for
(
j
=
0
,
pbid
=
-
1
;
j
<
fifo
->
pbdma_nr
;
j
++
)
{
if
(
map
[
j
]
&
(
1
<<
runl
))
{
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c
浏览文件 @
952eb819
...
...
@@ -63,7 +63,7 @@ nvkm_mc_intr(struct nvkm_mc *mc, bool *handled)
u32
stat
,
intr
=
nvkm_mc_intr_mask
(
mc
);
u64
subdevs
;
stat
=
nvkm_top_intr
(
device
->
top
,
intr
,
&
subdevs
);
stat
=
nvkm_top_intr
(
device
,
intr
,
&
subdevs
);
while
(
subdevs
)
{
enum
nvkm_devidx
subidx
=
__ffs64
(
subdevs
);
subdev
=
nvkm_device_subdev
(
device
,
subidx
);
...
...
@@ -94,7 +94,7 @@ nvkm_mc_reset_(struct nvkm_mc *mc, enum nvkm_devidx devidx)
const
struct
nvkm_mc_map
*
map
;
u64
pmc_enable
;
if
(
!
(
pmc_enable
=
nvkm_top_reset
(
device
->
top
,
devidx
)))
{
if
(
!
(
pmc_enable
=
nvkm_top_reset
(
device
,
devidx
)))
{
for
(
map
=
mc
->
func
->
reset
;
map
&&
map
->
stat
;
map
++
)
{
if
(
map
->
unit
==
devidx
)
{
pmc_enable
=
map
->
stat
;
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/top/base.c
浏览文件 @
952eb819
...
...
@@ -41,8 +41,9 @@ nvkm_top_device_new(struct nvkm_top *top)
}
u32
nvkm_top_reset
(
struct
nvkm_
top
*
top
,
enum
nvkm_devidx
index
)
nvkm_top_reset
(
struct
nvkm_
device
*
device
,
enum
nvkm_devidx
index
)
{
struct
nvkm_top
*
top
=
device
->
top
;
struct
nvkm_top_device
*
info
;
if
(
top
)
{
...
...
@@ -56,8 +57,9 @@ nvkm_top_reset(struct nvkm_top *top, enum nvkm_devidx index)
}
u32
nvkm_top_intr
(
struct
nvkm_
top
*
top
,
u32
intr
,
u64
*
psubdevs
)
nvkm_top_intr
(
struct
nvkm_
device
*
device
,
u32
intr
,
u64
*
psubdevs
)
{
struct
nvkm_top
*
top
=
device
->
top
;
struct
nvkm_top_device
*
info
;
u64
subdevs
=
0
;
u32
handled
=
0
;
...
...
@@ -78,8 +80,9 @@ nvkm_top_intr(struct nvkm_top *top, u32 intr, u64 *psubdevs)
}
enum
nvkm_devidx
nvkm_top_fault
(
struct
nvkm_
top
*
top
,
int
fault
)
nvkm_top_fault
(
struct
nvkm_
device
*
device
,
int
fault
)
{
struct
nvkm_top
*
top
=
device
->
top
;
struct
nvkm_top_device
*
info
;
list_for_each_entry
(
info
,
&
top
->
device
,
head
)
{
...
...
@@ -91,8 +94,9 @@ nvkm_top_fault(struct nvkm_top *top, int fault)
}
enum
nvkm_devidx
nvkm_top_engine
(
struct
nvkm_
top
*
top
,
int
index
,
int
*
runl
,
int
*
engn
)
nvkm_top_engine
(
struct
nvkm_
device
*
device
,
int
index
,
int
*
runl
,
int
*
engn
)
{
struct
nvkm_top
*
top
=
device
->
top
;
struct
nvkm_top_device
*
info
;
int
n
=
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录