Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
9ccdc760
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看板
提交
9ccdc760
编写于
8月 20, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/xtensa: remove object accessor functions
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
63902181
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
24 addition
and
40 deletion
+24
-40
drivers/gpu/drm/nouveau/include/nvkm/engine/xtensa.h
drivers/gpu/drm/nouveau/include/nvkm/engine/xtensa.h
+0
-2
drivers/gpu/drm/nouveau/nvkm/engine/bsp/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/bsp/g84.c
+0
-2
drivers/gpu/drm/nouveau/nvkm/engine/vp/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/vp/g84.c
+0
-2
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
+24
-34
未找到文件。
drivers/gpu/drm/nouveau/include/nvkm/engine/xtensa.h
浏览文件 @
9ccdc760
...
...
@@ -30,6 +30,4 @@ int nvkm_xtensa_create_(struct nvkm_object *,
#define _nvkm_xtensa_dtor _nvkm_engine_dtor
int
_nvkm_xtensa_init
(
struct
nvkm_object
*
);
int
_nvkm_xtensa_fini
(
struct
nvkm_object
*
,
bool
);
u32
_nvkm_xtensa_rd32
(
struct
nvkm_object
*
,
u64
);
void
_nvkm_xtensa_wr32
(
struct
nvkm_object
*
,
u64
,
u32
);
#endif
drivers/gpu/drm/nouveau/nvkm/engine/bsp/g84.c
浏览文件 @
9ccdc760
...
...
@@ -87,7 +87,5 @@ g84_bsp_oclass = {
.
dtor
=
_nvkm_xtensa_dtor
,
.
init
=
_nvkm_xtensa_init
,
.
fini
=
_nvkm_xtensa_fini
,
.
rd32
=
_nvkm_xtensa_rd32
,
.
wr32
=
_nvkm_xtensa_wr32
,
},
};
drivers/gpu/drm/nouveau/nvkm/engine/vp/g84.c
浏览文件 @
9ccdc760
...
...
@@ -87,7 +87,5 @@ g84_vp_oclass = {
.
dtor
=
_nvkm_xtensa_dtor
,
.
init
=
_nvkm_xtensa_init
,
.
fini
=
_nvkm_xtensa_fini
,
.
rd32
=
_nvkm_xtensa_rd32
,
.
wr32
=
_nvkm_xtensa_wr32
,
},
};
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
浏览文件 @
9ccdc760
...
...
@@ -23,20 +23,6 @@
#include <core/engctx.h>
u32
_nvkm_xtensa_rd32
(
struct
nvkm_object
*
object
,
u64
addr
)
{
struct
nvkm_xtensa
*
xtensa
=
(
void
*
)
object
;
return
nvkm_rd32
(
xtensa
->
engine
.
subdev
.
device
,
xtensa
->
addr
+
addr
);
}
void
_nvkm_xtensa_wr32
(
struct
nvkm_object
*
object
,
u64
addr
,
u32
data
)
{
struct
nvkm_xtensa
*
xtensa
=
(
void
*
)
object
;
nvkm_wr32
(
xtensa
->
engine
.
subdev
.
device
,
xtensa
->
addr
+
addr
,
data
);
}
int
_nvkm_xtensa_engctx_ctor
(
struct
nvkm_object
*
parent
,
struct
nvkm_object
*
engine
,
struct
nvkm_oclass
*
oclass
,
void
*
data
,
u32
size
,
...
...
@@ -56,15 +42,16 @@ _nvkm_xtensa_intr(struct nvkm_subdev *subdev)
{
struct
nvkm_xtensa
*
xtensa
=
(
void
*
)
subdev
;
struct
nvkm_device
*
device
=
xtensa
->
engine
.
subdev
.
device
;
u32
unk104
=
nv_ro32
(
xtensa
,
0xd04
);
u32
intr
=
nv_ro32
(
xtensa
,
0xc20
);
u32
chan
=
nv_ro32
(
xtensa
,
0xc28
);
u32
unk10c
=
nv_ro32
(
xtensa
,
0xd0c
);
const
u32
base
=
xtensa
->
addr
;
u32
unk104
=
nvkm_rd32
(
device
,
base
+
0xd04
);
u32
intr
=
nvkm_rd32
(
device
,
base
+
0xc20
);
u32
chan
=
nvkm_rd32
(
device
,
base
+
0xc28
);
u32
unk10c
=
nvkm_rd32
(
device
,
base
+
0xd0c
);
if
(
intr
&
0x10
)
nvkm_warn
(
subdev
,
"Watchdog interrupt, engine hung.
\n
"
);
nv
_wo32
(
xtensa
,
0xc20
,
intr
);
intr
=
nv
_ro32
(
xtensa
,
0xc20
);
nv
km_wr32
(
device
,
base
+
0xc20
,
intr
);
intr
=
nv
km_rd32
(
device
,
base
+
0xc20
);
if
(
unk104
==
0x10001
&&
unk10c
==
0x200
&&
chan
&&
!
intr
)
{
nvkm_debug
(
subdev
,
"Enabling FIFO_CTRL
\n
"
);
nvkm_mask
(
device
,
xtensa
->
addr
+
0xd94
,
0
,
xtensa
->
fifo_val
);
...
...
@@ -97,6 +84,7 @@ _nvkm_xtensa_init(struct nvkm_object *object)
struct
nvkm_xtensa
*
xtensa
=
(
void
*
)
object
;
struct
nvkm_subdev
*
subdev
=
&
xtensa
->
engine
.
subdev
;
struct
nvkm_device
*
device
=
subdev
->
device
;
const
u32
base
=
xtensa
->
addr
;
const
struct
firmware
*
fw
;
char
name
[
32
];
int
i
,
ret
;
...
...
@@ -137,24 +125,24 @@ _nvkm_xtensa_init(struct nvkm_object *object)
release_firmware
(
fw
);
}
nv
_wo32
(
xtensa
,
0xd10
,
0x1fffffff
);
/* ?? */
nv
_wo32
(
xtensa
,
0xd08
,
0x0fffffff
);
/* ?? */
nv
km_wr32
(
device
,
base
+
0xd10
,
0x1fffffff
);
/* ?? */
nv
km_wr32
(
device
,
base
+
0xd08
,
0x0fffffff
);
/* ?? */
nv
_wo32
(
xtensa
,
0xd28
,
xtensa
->
unkd28
);
/* ?? */
nv
_wo32
(
xtensa
,
0xc20
,
0x3f
);
/* INTR */
nv
_wo32
(
xtensa
,
0xd84
,
0x3f
);
/* INTR_EN */
nv
km_wr32
(
device
,
base
+
0xd28
,
xtensa
->
unkd28
);
/* ?? */
nv
km_wr32
(
device
,
base
+
0xc20
,
0x3f
);
/* INTR */
nv
km_wr32
(
device
,
base
+
0xd84
,
0x3f
);
/* INTR_EN */
nv
_wo32
(
xtensa
,
0xcc0
,
xtensa
->
gpu_fw
->
addr
>>
8
);
/* XT_REGION_BASE */
nv
_wo32
(
xtensa
,
0xcc4
,
0x1c
);
/* XT_REGION_SETUP */
nv
_wo32
(
xtensa
,
0xcc8
,
xtensa
->
gpu_fw
->
size
>>
8
);
/* XT_REGION_LIMIT */
nv
km_wr32
(
device
,
base
+
0xcc0
,
xtensa
->
gpu_fw
->
addr
>>
8
);
/* XT_REGION_BASE */
nv
km_wr32
(
device
,
base
+
0xcc4
,
0x1c
);
/* XT_REGION_SETUP */
nv
km_wr32
(
device
,
base
+
0xcc8
,
xtensa
->
gpu_fw
->
size
>>
8
);
/* XT_REGION_LIMIT */
tmp
=
nvkm_rd32
(
device
,
0x0
);
nv
_wo32
(
xtensa
,
0xde0
,
tmp
);
/* SCRATCH_H2X */
nv
km_wr32
(
device
,
base
+
0xde0
,
tmp
);
/* SCRATCH_H2X */
nv
_wo32
(
xtensa
,
0xce8
,
0xf
);
/* XT_REGION_SETUP */
nv
km_wr32
(
device
,
base
+
0xce8
,
0xf
);
/* XT_REGION_SETUP */
nv
_wo32
(
xtensa
,
0xc20
,
0x3f
);
/* INTR */
nv
_wo32
(
xtensa
,
0xd84
,
0x3f
);
/* INTR_EN */
nv
km_wr32
(
device
,
base
+
0xc20
,
0x3f
);
/* INTR */
nv
km_wr32
(
device
,
base
+
0xd84
,
0x3f
);
/* INTR_EN */
return
0
;
}
...
...
@@ -162,9 +150,11 @@ int
_nvkm_xtensa_fini
(
struct
nvkm_object
*
object
,
bool
suspend
)
{
struct
nvkm_xtensa
*
xtensa
=
(
void
*
)
object
;
struct
nvkm_device
*
device
=
xtensa
->
engine
.
subdev
.
device
;
const
u32
base
=
xtensa
->
addr
;
nv
_wo32
(
xtensa
,
0xd84
,
0
);
/* INTR_EN */
nv
_wo32
(
xtensa
,
0xd94
,
0
);
/* FIFO_CTRL */
nv
km_wr32
(
device
,
base
+
0xd84
,
0
);
/* INTR_EN */
nv
km_wr32
(
device
,
base
+
0xd94
,
0
);
/* FIFO_CTRL */
if
(
!
suspend
)
nvkm_gpuobj_ref
(
NULL
,
&
xtensa
->
gpu_fw
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录