Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
86b40432
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看板
提交
86b40432
编写于
6月 21, 2016
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/ltc/gm107-: decode interrupt status to human-readable strings
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
b1687b3e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
5 deletion
+10
-5
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c
+1
-2
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c
+7
-3
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/priv.h
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/priv.h
+2
-0
未找到文件。
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c
浏览文件 @
86b40432
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
*/
*/
#include "priv.h"
#include "priv.h"
#include <core/enum.h>
#include <subdev/fb.h>
#include <subdev/fb.h>
#include <subdev/timer.h>
#include <subdev/timer.h>
...
@@ -71,7 +70,7 @@ gf100_ltc_zbc_clear_depth(struct nvkm_ltc *ltc, int i, const u32 depth)
...
@@ -71,7 +70,7 @@ gf100_ltc_zbc_clear_depth(struct nvkm_ltc *ltc, int i, const u32 depth)
nvkm_wr32
(
device
,
0x17ea58
,
depth
);
nvkm_wr32
(
device
,
0x17ea58
,
depth
);
}
}
static
const
struct
nvkm_bitfield
const
struct
nvkm_bitfield
gf100_ltc_lts_intr_name
[]
=
{
gf100_ltc_lts_intr_name
[]
=
{
{
0x00000001
,
"IDLE_ERROR_IQ"
},
{
0x00000001
,
"IDLE_ERROR_IQ"
},
{
0x00000002
,
"IDLE_ERROR_CBC"
},
{
0x00000002
,
"IDLE_ERROR_CBC"
},
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c
浏览文件 @
86b40432
...
@@ -74,12 +74,16 @@ gm107_ltc_intr_lts(struct nvkm_ltc *ltc, int c, int s)
...
@@ -74,12 +74,16 @@ gm107_ltc_intr_lts(struct nvkm_ltc *ltc, int c, int s)
struct
nvkm_subdev
*
subdev
=
&
ltc
->
subdev
;
struct
nvkm_subdev
*
subdev
=
&
ltc
->
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
struct
nvkm_device
*
device
=
subdev
->
device
;
u32
base
=
0x140400
+
(
c
*
0x2000
)
+
(
s
*
0x200
);
u32
base
=
0x140400
+
(
c
*
0x2000
)
+
(
s
*
0x200
);
u32
stat
=
nvkm_rd32
(
device
,
base
+
0x00c
);
u32
intr
=
nvkm_rd32
(
device
,
base
+
0x00c
);
u16
stat
=
intr
&
0x0000ffff
;
char
msg
[
128
];
if
(
stat
)
{
if
(
stat
)
{
nvkm_
error
(
subdev
,
"LTC%d_LTS%d: %08x
\n
"
,
c
,
s
,
stat
);
nvkm_
snprintbf
(
msg
,
sizeof
(
msg
),
gf100_ltc_lts_intr_name
,
stat
);
nvkm_
wr32
(
device
,
base
+
0x00c
,
stat
);
nvkm_
error
(
subdev
,
"LTC%d_LTS%d: %08x [%s]
\n
"
,
c
,
s
,
intr
,
msg
);
}
}
nvkm_wr32
(
device
,
base
+
0x00c
,
intr
);
}
}
void
void
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/ltc/priv.h
浏览文件 @
86b40432
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
#define __NVKM_LTC_PRIV_H__
#define __NVKM_LTC_PRIV_H__
#define nvkm_ltc(p) container_of((p), struct nvkm_ltc, subdev)
#define nvkm_ltc(p) container_of((p), struct nvkm_ltc, subdev)
#include <subdev/ltc.h>
#include <subdev/ltc.h>
#include <core/enum.h>
int
nvkm_ltc_new_
(
const
struct
nvkm_ltc_func
*
,
struct
nvkm_device
*
,
int
nvkm_ltc_new_
(
const
struct
nvkm_ltc_func
*
,
struct
nvkm_device
*
,
int
index
,
struct
nvkm_ltc
**
);
int
index
,
struct
nvkm_ltc
**
);
...
@@ -31,6 +32,7 @@ void gf100_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);
...
@@ -31,6 +32,7 @@ void gf100_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);
void
gf100_ltc_zbc_clear_depth
(
struct
nvkm_ltc
*
,
int
,
const
u32
);
void
gf100_ltc_zbc_clear_depth
(
struct
nvkm_ltc
*
,
int
,
const
u32
);
void
gf100_ltc_invalidate
(
struct
nvkm_ltc
*
);
void
gf100_ltc_invalidate
(
struct
nvkm_ltc
*
);
void
gf100_ltc_flush
(
struct
nvkm_ltc
*
);
void
gf100_ltc_flush
(
struct
nvkm_ltc
*
);
extern
const
struct
nvkm_bitfield
gf100_ltc_lts_intr_name
[];
void
gm107_ltc_intr
(
struct
nvkm_ltc
*
);
void
gm107_ltc_intr
(
struct
nvkm_ltc
*
);
void
gm107_ltc_cbc_clear
(
struct
nvkm_ltc
*
,
u32
,
u32
);
void
gm107_ltc_cbc_clear
(
struct
nvkm_ltc
*
,
u32
,
u32
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录