Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
1575b364
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看板
提交
1575b364
编写于
7月 04, 2011
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau: fixup init/fini sequence to deal with no CRTCs
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
048a8859
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
30 addition
and
38 deletion
+30
-38
drivers/gpu/drm/nouveau/nouveau_object.c
drivers/gpu/drm/nouveau/nouveau_object.c
+2
-2
drivers/gpu/drm/nouveau/nouveau_state.c
drivers/gpu/drm/nouveau/nouveau_state.c
+28
-36
未找到文件。
drivers/gpu/drm/nouveau/nouveau_object.c
浏览文件 @
1575b364
...
...
@@ -793,7 +793,7 @@ nouveau_gpuobj_channel_init(struct nouveau_channel *chan,
return
ret
;
/* dma objects for display sync channel semaphore blocks */
for
(
i
=
0
;
i
<
2
;
i
++
)
{
for
(
i
=
0
;
i
<
dev
->
mode_config
.
num_crtc
;
i
++
)
{
struct
nouveau_gpuobj
*
sem
=
NULL
;
struct
nv50_display_crtc
*
dispc
=
&
nv50_display
(
dev
)
->
crtc
[
i
];
...
...
@@ -878,7 +878,7 @@ nouveau_gpuobj_channel_takedown(struct nouveau_channel *chan)
if
(
dev_priv
->
card_type
>=
NV_50
)
{
struct
nv50_display
*
disp
=
nv50_display
(
dev
);
for
(
i
=
0
;
i
<
2
;
i
++
)
{
for
(
i
=
0
;
i
<
dev
->
mode_config
.
num_crtc
;
i
++
)
{
struct
nv50_display_crtc
*
dispc
=
&
disp
->
crtc
[
i
];
nouveau_bo_vma_del
(
dispc
->
sem
.
bo
,
&
chan
->
dispc_vma
[
i
]);
}
...
...
drivers/gpu/drm/nouveau/nouveau_state.c
浏览文件 @
1575b364
...
...
@@ -452,21 +452,6 @@ nouveau_vga_set_decode(void *priv, bool state)
return
VGA_RSRC_NORMAL_IO
|
VGA_RSRC_NORMAL_MEM
;
}
static
int
nouveau_card_init_channel
(
struct
drm_device
*
dev
)
{
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
int
ret
;
ret
=
nouveau_channel_alloc
(
dev
,
&
dev_priv
->
channel
,
NULL
,
NvDmaFB
,
NvDmaTT
);
if
(
ret
)
return
ret
;
mutex_unlock
(
&
dev_priv
->
channel
->
mutex
);
return
0
;
}
static
void
nouveau_switcheroo_set_state
(
struct
pci_dev
*
pdev
,
enum
vga_switcheroo_state
state
)
{
...
...
@@ -657,6 +642,10 @@ nouveau_card_init(struct drm_device *dev)
goto
out_engine
;
}
ret
=
nouveau_irq_init
(
dev
);
if
(
ret
)
goto
out_fifo
;
/* initialise general modesetting */
drm_mode_config_init
(
dev
);
drm_mode_create_scaling_mode_property
(
dev
);
...
...
@@ -679,39 +668,40 @@ nouveau_card_init(struct drm_device *dev)
ret
=
engine
->
display
.
create
(
dev
);
if
(
ret
)
goto
out_fifo
;
ret
=
drm_vblank_init
(
dev
,
nv_two_heads
(
dev
)
?
2
:
1
);
if
(
ret
)
goto
out_vblank
;
ret
=
nouveau_irq_init
(
dev
);
if
(
ret
)
goto
out_vblank
;
/* what about PVIDEO/PCRTC/PRAMDAC etc? */
goto
out_irq
;
if
(
dev_priv
->
eng
[
NVOBJ_ENGINE_GR
])
{
ret
=
nouveau_fence_init
(
dev
);
if
(
ret
)
goto
out_
irq
;
goto
out_
disp
;
ret
=
nouveau_card_init_channel
(
dev
);
ret
=
nouveau_channel_alloc
(
dev
,
&
dev_priv
->
channel
,
NULL
,
NvDmaFB
,
NvDmaTT
);
if
(
ret
)
goto
out_fence
;
mutex_unlock
(
&
dev_priv
->
channel
->
mutex
);
}
if
(
dev
->
mode_config
.
num_crtc
)
{
ret
=
drm_vblank_init
(
dev
,
dev
->
mode_config
.
num_crtc
);
if
(
ret
)
goto
out_chan
;
nouveau_fbcon_init
(
dev
);
drm_kms_helper_poll_init
(
dev
);
}
nouveau_fbcon_init
(
dev
);
drm_kms_helper_poll_init
(
dev
);
return
0
;
out_chan:
nouveau_channel_put_unlocked
(
&
dev_priv
->
channel
);
out_fence:
nouveau_fence_fini
(
dev
);
out_disp:
engine
->
display
.
destroy
(
dev
);
out_irq:
nouveau_irq_fini
(
dev
);
out_vblank:
drm_vblank_cleanup
(
dev
);
engine
->
display
.
destroy
(
dev
);
out_fifo:
if
(
!
dev_priv
->
noaccel
)
engine
->
fifo
.
takedown
(
dev
);
...
...
@@ -758,8 +748,11 @@ static void nouveau_card_takedown(struct drm_device *dev)
struct
nouveau_engine
*
engine
=
&
dev_priv
->
engine
;
int
e
;
drm_kms_helper_poll_fini
(
dev
);
nouveau_fbcon_fini
(
dev
);
if
(
dev
->
mode_config
.
num_crtc
)
{
drm_kms_helper_poll_fini
(
dev
);
nouveau_fbcon_fini
(
dev
);
drm_vblank_cleanup
(
dev
);
}
if
(
dev_priv
->
channel
)
{
nouveau_channel_put_unlocked
(
&
dev_priv
->
channel
);
...
...
@@ -801,7 +794,6 @@ static void nouveau_card_takedown(struct drm_device *dev)
engine
->
vram
.
takedown
(
dev
);
nouveau_irq_fini
(
dev
);
drm_vblank_cleanup
(
dev
);
nouveau_pm_fini
(
dev
);
nouveau_bios_takedown
(
dev
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录