Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
01d64afc
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看板
提交
01d64afc
编写于
8月 20, 2015
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/sw: switch to device pri macros
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
b8ad561e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
16 deletion
+19
-16
drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c
+10
-8
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c
+8
-7
未找到文件。
drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c
浏览文件 @
01d64afc
...
...
@@ -51,19 +51,20 @@ gf100_sw_mthd_mp_control(struct nvkm_object *object, u32 mthd,
{
struct
nv50_sw_chan
*
chan
=
(
void
*
)
nv_engctx
(
object
->
parent
);
struct
nvkm_sw
*
sw
=
(
void
*
)
nv_object
(
chan
)
->
engine
;
struct
nvkm_device
*
device
=
sw
->
engine
.
subdev
.
device
;
u32
data
=
*
(
u32
*
)
args
;
switch
(
mthd
)
{
case
0x600
:
nv
_wr32
(
sw
,
0x419e00
,
data
);
/* MP.PM_UNK000 */
nv
km_wr32
(
device
,
0x419e00
,
data
);
/* MP.PM_UNK000 */
break
;
case
0x644
:
if
(
data
&
~
0x1ffffe
)
return
-
EINVAL
;
nv
_wr32
(
sw
,
0x419e44
,
data
);
/* MP.TRAP_WARP_ERROR_EN */
nv
km_wr32
(
device
,
0x419e44
,
data
);
/* MP.TRAP_WARP_ERROR_EN */
break
;
case
0x6ac
:
nv
_wr32
(
sw
,
0x419eac
,
data
);
/* MP.PM_UNK0AC */
nv
km_wr32
(
device
,
0x419eac
,
data
);
/* MP.PM_UNK0AC */
break
;
default:
return
-
EINVAL
;
...
...
@@ -100,13 +101,14 @@ gf100_sw_vblsem_release(struct nvkm_notify *notify)
struct
nv50_sw_chan
*
chan
=
container_of
(
notify
,
typeof
(
*
chan
),
vblank
.
notify
[
notify
->
index
]);
struct
nvkm_sw
*
sw
=
(
void
*
)
nv_object
(
chan
)
->
engine
;
struct
nvkm_bar
*
bar
=
nvkm_bar
(
sw
);
struct
nvkm_device
*
device
=
sw
->
engine
.
subdev
.
device
;
struct
nvkm_bar
*
bar
=
device
->
bar
;
nv
_wr32
(
sw
,
0x001718
,
0x80000000
|
chan
->
vblank
.
channel
);
nv
km_wr32
(
device
,
0x001718
,
0x80000000
|
chan
->
vblank
.
channel
);
bar
->
flush
(
bar
);
nv
_wr32
(
sw
,
0x06000c
,
upper_32_bits
(
chan
->
vblank
.
offset
));
nv
_wr32
(
sw
,
0x060010
,
lower_32_bits
(
chan
->
vblank
.
offset
));
nv
_wr32
(
sw
,
0x060014
,
chan
->
vblank
.
value
);
nv
km_wr32
(
device
,
0x06000c
,
upper_32_bits
(
chan
->
vblank
.
offset
));
nv
km_wr32
(
device
,
0x060010
,
lower_32_bits
(
chan
->
vblank
.
offset
));
nv
km_wr32
(
device
,
0x060014
,
chan
->
vblank
.
value
);
return
NVKM_NOTIFY_DROP
;
}
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv04.c
浏览文件 @
01d64afc
...
...
@@ -97,7 +97,7 @@ nv04_sw_cclass = {
void
nv04_sw_intr
(
struct
nvkm_subdev
*
subdev
)
{
nv
_mask
(
subdev
,
0x000100
,
0x80000000
,
0x00000000
);
nv
km_mask
(
subdev
->
device
,
0x000100
,
0x80000000
,
0x00000000
);
}
static
int
...
...
drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c
浏览文件 @
01d64afc
...
...
@@ -122,18 +122,19 @@ nv50_sw_vblsem_release(struct nvkm_notify *notify)
struct
nv50_sw_chan
*
chan
=
container_of
(
notify
,
typeof
(
*
chan
),
vblank
.
notify
[
notify
->
index
]);
struct
nvkm_sw
*
sw
=
(
void
*
)
nv_object
(
chan
)
->
engine
;
struct
nvkm_bar
*
bar
=
nvkm_bar
(
sw
);
struct
nvkm_device
*
device
=
sw
->
engine
.
subdev
.
device
;
struct
nvkm_bar
*
bar
=
device
->
bar
;
nv
_wr32
(
sw
,
0x001704
,
chan
->
vblank
.
channel
);
nv
_wr32
(
sw
,
0x001710
,
0x80000000
|
chan
->
vblank
.
ctxdma
);
nv
km_wr32
(
device
,
0x001704
,
chan
->
vblank
.
channel
);
nv
km_wr32
(
device
,
0x001710
,
0x80000000
|
chan
->
vblank
.
ctxdma
);
bar
->
flush
(
bar
);
if
(
nv_device
(
sw
)
->
chipset
==
0x50
)
{
nv
_wr32
(
sw
,
0x001570
,
chan
->
vblank
.
offset
);
nv
_wr32
(
sw
,
0x001574
,
chan
->
vblank
.
value
);
nv
km_wr32
(
device
,
0x001570
,
chan
->
vblank
.
offset
);
nv
km_wr32
(
device
,
0x001574
,
chan
->
vblank
.
value
);
}
else
{
nv
_wr32
(
sw
,
0x060010
,
chan
->
vblank
.
offset
);
nv
_wr32
(
sw
,
0x060014
,
chan
->
vblank
.
value
);
nv
km_wr32
(
device
,
0x060010
,
chan
->
vblank
.
offset
);
nv
km_wr32
(
device
,
0x060014
,
chan
->
vblank
.
value
);
}
return
NVKM_NOTIFY_DROP
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录