Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
b1cd916a
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b1cd916a
编写于
12月 24, 2010
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nvc0: kill off a couple more magics
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
8e91182b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
21 addition
and
19 deletion
+21
-19
drivers/gpu/drm/nouveau/nvc0_graph.c
drivers/gpu/drm/nouveau/nvc0_graph.c
+1
-13
drivers/gpu/drm/nouveau/nvc0_graph.h
drivers/gpu/drm/nouveau/nvc0_graph.h
+0
-2
drivers/gpu/drm/nouveau/nvc0_grctx.c
drivers/gpu/drm/nouveau/nvc0_grctx.c
+20
-4
未找到文件。
drivers/gpu/drm/nouveau/nvc0_graph.c
浏览文件 @
b1cd916a
...
...
@@ -334,8 +334,6 @@ nvc0_graph_create(struct drm_device *dev)
case
0xc0
:
if
(
priv
->
tp_total
==
11
)
{
/* 465, 3/4/4/0, 4 */
priv
->
magic_not_rop_nr
=
0x07
;
priv
->
magic419bd0
=
0x0a360000
;
priv
->
magic419be4
=
0x04c33a54
;
/* filled values up to tp_total, the rest 0 */
priv
->
magicgpc980
[
0
]
=
0x22111000
;
priv
->
magicgpc980
[
1
]
=
0x00000233
;
...
...
@@ -345,8 +343,6 @@ nvc0_graph_create(struct drm_device *dev)
}
else
if
(
priv
->
tp_total
==
14
)
{
/* 470, 3/3/4/4, 5 */
priv
->
magic_not_rop_nr
=
0x05
;
priv
->
magic419bd0
=
0x043c0000
;
priv
->
magic419be4
=
0x09041208
;
priv
->
magicgpc980
[
0
]
=
0x11110000
;
priv
->
magicgpc980
[
1
]
=
0x00233222
;
priv
->
magicgpc980
[
2
]
=
0x00000000
;
...
...
@@ -355,8 +351,6 @@ nvc0_graph_create(struct drm_device *dev)
}
else
if
(
priv
->
tp_total
==
15
)
{
/* 480, 3/4/4/4, 6 */
priv
->
magic_not_rop_nr
=
0x06
;
priv
->
magic419bd0
=
0x023e0000
;
priv
->
magic419be4
=
0x10414104
;
priv
->
magicgpc980
[
0
]
=
0x11110000
;
priv
->
magicgpc980
[
1
]
=
0x03332222
;
priv
->
magicgpc980
[
2
]
=
0x00000000
;
...
...
@@ -366,8 +360,6 @@ nvc0_graph_create(struct drm_device *dev)
break
;
case
0xc3
:
/* 450, 4/0/0/0, 2 */
priv
->
magic_not_rop_nr
=
0x03
;
priv
->
magic419bd0
=
0x00500000
;
priv
->
magic419be4
=
0x00000000
;
priv
->
magicgpc980
[
0
]
=
0x00003210
;
priv
->
magicgpc980
[
1
]
=
0x00000000
;
priv
->
magicgpc980
[
2
]
=
0x00000000
;
...
...
@@ -376,8 +368,6 @@ nvc0_graph_create(struct drm_device *dev)
break
;
case
0xc4
:
/* 460, 3/4/0/0, 4 */
priv
->
magic_not_rop_nr
=
0x01
;
priv
->
magic419bd0
=
0x045c0000
;
priv
->
magic419be4
=
0x09041208
;
priv
->
magicgpc980
[
0
]
=
0x02321100
;
priv
->
magicgpc980
[
1
]
=
0x00000000
;
priv
->
magicgpc980
[
2
]
=
0x00000000
;
...
...
@@ -386,14 +376,12 @@ nvc0_graph_create(struct drm_device *dev)
break
;
}
if
(
!
priv
->
magic
419bd0
)
{
if
(
!
priv
->
magic
_not_rop_nr
)
{
NV_ERROR
(
dev
,
"PGRAPH: unknown config: %d/%d/%d/%d, %d
\n
"
,
priv
->
tp_nr
[
0
],
priv
->
tp_nr
[
1
],
priv
->
tp_nr
[
2
],
priv
->
tp_nr
[
3
],
priv
->
rop_nr
);
/* use 0xc3's values... */
priv
->
magic_not_rop_nr
=
0x03
;
priv
->
magic419bd0
=
0x00500000
;
priv
->
magic419be4
=
0x00000000
;
priv
->
magicgpc980
[
0
]
=
0x00003210
;
priv
->
magicgpc980
[
1
]
=
0x00000000
;
priv
->
magicgpc980
[
2
]
=
0x00000000
;
...
...
drivers/gpu/drm/nouveau/nvc0_graph.h
浏览文件 @
b1cd916a
...
...
@@ -46,8 +46,6 @@ struct nvc0_graph_priv {
struct
nouveau_gpuobj
*
unk4188b8
;
u8
magic_not_rop_nr
;
u32
magic419bd0
;
u32
magic419be4
;
u32
magicgpc980
[
4
];
u32
magicgpc918
;
};
...
...
drivers/gpu/drm/nouveau/nvc0_grctx.c
浏览文件 @
b1cd916a
...
...
@@ -1875,9 +1875,11 @@ nvc0_grctx_generate(struct nouveau_channel *chan)
}
if
(
1
)
{
u32
data
[
6
]
=
{};
u32
data
[
6
]
=
{}
,
data2
[
2
]
=
{}
;
u8
tpnr
[
GPC_MAX
];
u8
shift
,
ntpcv
;
/* calculate first set of magics */
memcpy
(
tpnr
,
priv
->
tp_nr
,
sizeof
(
priv
->
tp_nr
));
for
(
tp
=
0
;
tp
<
priv
->
tp_total
;
tp
++
)
{
...
...
@@ -1892,6 +1894,20 @@ nvc0_grctx_generate(struct nouveau_channel *chan)
for
(;
tp
<
32
;
tp
++
)
data
[
tp
/
6
]
|=
7
<<
((
tp
%
6
)
*
5
);
/* and the second... */
shift
=
0
;
ntpcv
=
priv
->
tp_total
;
while
(
!
(
ntpcv
&
(
1
<<
4
)))
{
ntpcv
<<=
1
;
shift
++
;
}
data2
[
0
]
=
(
ntpcv
<<
16
);
data2
[
0
]
|=
(
shift
<<
21
);
data2
[
0
]
|=
(((
1
<<
(
0
+
5
))
%
ntpcv
)
<<
24
);
for
(
i
=
1
;
i
<
7
;
i
++
)
data2
[
1
]
|=
((
1
<<
(
i
+
5
))
%
ntpcv
)
<<
((
i
-
1
)
*
5
);
// GPC_BROADCAST
nv_wr32
(
dev
,
0x418bb8
,
(
priv
->
tp_total
<<
8
)
|
priv
->
magic_not_rop_nr
);
...
...
@@ -1900,9 +1916,9 @@ nvc0_grctx_generate(struct nouveau_channel *chan)
// GPC_BROADCAST.TP_BROADCAST
nv_wr32
(
dev
,
0x419bd0
,
(
priv
->
tp_total
<<
8
)
|
priv
->
magic_not_rop_nr
|
priv
->
magic419bd0
);
nv_wr32
(
dev
,
0x419be4
,
priv
->
magic419be4
);
priv
->
magic_not_rop_nr
|
data2
[
0
]
);
nv_wr32
(
dev
,
0x419be4
,
data2
[
1
]
);
for
(
i
=
0
;
i
<
6
;
i
++
)
nv_wr32
(
dev
,
0x419b00
+
(
i
*
4
),
data
[
i
]);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录