Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
a36f04c0
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看板
提交
a36f04c0
编写于
7月 06, 2011
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nvd0/disp: extend the init voodoo to cover crtcs
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
c0cc92a1
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
27 addition
and
19 deletion
+27
-19
drivers/gpu/drm/nouveau/nvd0_display.c
drivers/gpu/drm/nouveau/nvd0_display.c
+27
-19
未找到文件。
drivers/gpu/drm/nouveau/nvd0_display.c
浏览文件 @
a36f04c0
...
...
@@ -718,9 +718,8 @@ nvd0_sor_create(struct drm_connector *connector, struct dcb_entry *dcbe)
static
void
nvd0_display_unk1_handler
(
struct
drm_device
*
dev
)
{
u32
unk0
=
nv_rd32
(
dev
,
0x6101d0
);
NV_INFO
(
dev
,
"PDISP: unk1 0x%08x
\n
"
,
unk0
);
NV_INFO
(
dev
,
"PDISP: 1 0x%08x 0x%08x 0x%08x
\n
"
,
nv_rd32
(
dev
,
0x6101d0
),
nv_rd32
(
dev
,
0x6101d4
),
nv_rd32
(
dev
,
0x6109d4
));
nv_wr32
(
dev
,
0x6101d4
,
0x00000000
);
nv_wr32
(
dev
,
0x6109d4
,
0x00000000
);
...
...
@@ -730,9 +729,8 @@ nvd0_display_unk1_handler(struct drm_device *dev)
static
void
nvd0_display_unk2_handler
(
struct
drm_device
*
dev
)
{
u32
unk0
=
nv_rd32
(
dev
,
0x6101d0
);
NV_INFO
(
dev
,
"PDISP: unk2 0x%08x
\n
"
,
unk0
);
NV_INFO
(
dev
,
"PDISP: 2 0x%08x 0x%08x 0x%08x
\n
"
,
nv_rd32
(
dev
,
0x6101d0
),
nv_rd32
(
dev
,
0x6101d4
),
nv_rd32
(
dev
,
0x6109d4
));
nv_wr32
(
dev
,
0x6101d4
,
0x00000000
);
nv_wr32
(
dev
,
0x6109d4
,
0x00000000
);
...
...
@@ -742,9 +740,8 @@ nvd0_display_unk2_handler(struct drm_device *dev)
static
void
nvd0_display_unk4_handler
(
struct
drm_device
*
dev
)
{
u32
unk0
=
nv_rd32
(
dev
,
0x6101d0
);
NV_INFO
(
dev
,
"PDISP: unk4 0x%08x
\n
"
,
unk0
);
NV_INFO
(
dev
,
"PDISP: 4 0x%08x 0x%08x 0x%08x
\n
"
,
nv_rd32
(
dev
,
0x6101d0
),
nv_rd32
(
dev
,
0x6101d4
),
nv_rd32
(
dev
,
0x6109d4
));
nv_wr32
(
dev
,
0x6101d4
,
0x00000000
);
nv_wr32
(
dev
,
0x6109d4
,
0x00000000
);
...
...
@@ -849,28 +846,39 @@ nvd0_display_init(struct drm_device *dev)
u32
*
push
;
int
i
;
/*XXX: wrong, and wtf is it for? */
if
(
nv_rd32
(
dev
,
0x6100ac
)
&
0x00000100
)
{
nv_wr32
(
dev
,
0x6100ac
,
0x00000100
);
nv_mask
(
dev
,
0x6194e8
,
0x00000001
,
0x00000000
);
if
(
!
nv_wait
(
dev
,
0x6194e8
,
0x00000002
,
0x00000000
))
{
NV_ERROR
(
dev
,
"PDISP: 0x6194e8 0x%08x
\n
"
,
nv_rd32
(
dev
,
0x6194e8
));
return
-
EBUSY
;
}
}
/* nfi what these are exactly, i do know that SOR_MODE_CTRL won't
* work at all unless you do the SOR part below.
*/
for
(
i
=
0
;
i
<
3
;
i
++
)
{
u32
dac
=
nv_rd32
(
dev
,
0x61a000
+
(
i
*
0x800
));
nv_wr32
(
dev
,
0x6101c0
+
(
i
*
0x800
),
dac
);
}
/*XXX: wrong, and wtf is it for? SOR_MODE_CTRL is an error without.. */
for
(
i
=
0
;
i
<
4
;
i
++
)
{
u32
sor
=
nv_rd32
(
dev
,
0x61c000
+
(
i
*
0x800
));
nv_wr32
(
dev
,
0x6301c4
+
(
i
*
0x800
),
sor
);
}
if
(
nv_rd32
(
dev
,
0x6100ac
)
&
0x00000100
)
{
nv_wr32
(
dev
,
0x6100ac
,
0x00000100
);
nv_mask
(
dev
,
0x6194e8
,
0x00000001
,
0x00000000
);
if
(
!
nv_wait
(
dev
,
0x6194e8
,
0x00000002
,
0x00000000
))
{
NV_ERROR
(
dev
,
"PDISP: 0x6194e8 0x%08x
\n
"
,
nv_rd32
(
dev
,
0x6194e8
));
return
-
EBUSY
;
}
for
(
i
=
0
;
i
<
2
;
i
++
)
{
u32
crtc0
=
nv_rd32
(
dev
,
0x616104
+
(
i
*
0x800
));
u32
crtc1
=
nv_rd32
(
dev
,
0x616108
+
(
i
*
0x800
));
u32
crtc2
=
nv_rd32
(
dev
,
0x61610c
+
(
i
*
0x800
));
nv_wr32
(
dev
,
0x6101b4
+
(
i
*
0x800
),
crtc0
);
nv_wr32
(
dev
,
0x6101b8
+
(
i
*
0x800
),
crtc1
);
nv_wr32
(
dev
,
0x6101bc
+
(
i
*
0x800
),
crtc2
);
}
/* point at our hash table / objects, enable interrupts */
nv_wr32
(
dev
,
0x610010
,
(
disp
->
mem
->
vinst
>>
8
)
|
9
);
nv_mask
(
dev
,
0x6100b0
,
0x00000307
,
0x00000307
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录