Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
791dc143
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看板
提交
791dc143
编写于
6月 27, 2013
作者:
M
Maarten Lankhorst
提交者:
Ben Skeggs
7月 01, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nvd0-/disp: handle case where display engine is missing/disabled
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
e99716f1
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
17 addition
and
7 deletion
+17
-7
drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c
drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c
+3
-0
drivers/gpu/drm/nouveau/core/engine/disp/nve0.c
drivers/gpu/drm/nouveau/core/engine/disp/nve0.c
+3
-0
drivers/gpu/drm/nouveau/core/engine/disp/nvf0.c
drivers/gpu/drm/nouveau/core/engine/disp/nvf0.c
+3
-0
drivers/gpu/drm/nouveau/core/subdev/bios/base.c
drivers/gpu/drm/nouveau/core/subdev/bios/base.c
+5
-1
drivers/gpu/drm/nouveau/core/subdev/devinit/nvc0.c
drivers/gpu/drm/nouveau/core/subdev/devinit/nvc0.c
+2
-0
drivers/gpu/drm/nouveau/nouveau_bios.c
drivers/gpu/drm/nouveau/nouveau_bios.c
+1
-6
未找到文件。
drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c
浏览文件 @
791dc143
...
...
@@ -958,6 +958,9 @@ nvd0_disp_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
int
heads
=
nv_rd32
(
parent
,
0x022448
);
int
ret
;
if
(
nv_rd32
(
parent
,
0x022500
)
&
0x00000001
)
return
-
ENODEV
;
ret
=
nouveau_disp_create
(
parent
,
engine
,
oclass
,
heads
,
"PDISP"
,
"display"
,
&
priv
);
*
pobject
=
nv_object
(
priv
);
...
...
drivers/gpu/drm/nouveau/core/engine/disp/nve0.c
浏览文件 @
791dc143
...
...
@@ -54,6 +54,9 @@ nve0_disp_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
int
heads
=
nv_rd32
(
parent
,
0x022448
);
int
ret
;
if
(
nv_rd32
(
parent
,
0x022500
)
&
0x00000001
)
return
-
ENODEV
;
ret
=
nouveau_disp_create
(
parent
,
engine
,
oclass
,
heads
,
"PDISP"
,
"display"
,
&
priv
);
*
pobject
=
nv_object
(
priv
);
...
...
drivers/gpu/drm/nouveau/core/engine/disp/nvf0.c
浏览文件 @
791dc143
...
...
@@ -54,6 +54,9 @@ nvf0_disp_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
int
heads
=
nv_rd32
(
parent
,
0x022448
);
int
ret
;
if
(
nv_rd32
(
parent
,
0x022500
)
&
0x00000001
)
return
-
ENODEV
;
ret
=
nouveau_disp_create
(
parent
,
engine
,
oclass
,
heads
,
"PDISP"
,
"display"
,
&
priv
);
*
pobject
=
nv_object
(
priv
);
...
...
drivers/gpu/drm/nouveau/core/subdev/bios/base.c
浏览文件 @
791dc143
...
...
@@ -85,11 +85,15 @@ static void
nouveau_bios_shadow_pramin
(
struct
nouveau_bios
*
bios
)
{
struct
nouveau_device
*
device
=
nv_device
(
bios
);
u64
addr
=
0
;
u32
bar0
=
0
;
int
i
;
if
(
device
->
card_type
>=
NV_50
)
{
u64
addr
=
(
u64
)(
nv_rd32
(
bios
,
0x619f04
)
&
0xffffff00
)
<<
8
;
if
(
device
->
card_type
<
NV_C0
||
!
(
nv_rd32
(
bios
,
0x022500
)
&
0x00000001
))
addr
=
(
u64
)(
nv_rd32
(
bios
,
0x619f04
)
&
0xffffff00
)
<<
8
;
if
(
!
addr
)
{
addr
=
(
u64
)
nv_rd32
(
bios
,
0x001700
)
<<
16
;
addr
+=
0xf0000
;
...
...
drivers/gpu/drm/nouveau/core/subdev/devinit/nvc0.c
浏览文件 @
791dc143
...
...
@@ -73,6 +73,8 @@ nvc0_devinit_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
return
ret
;
priv
->
base
.
pll_set
=
nvc0_devinit_pll_set
;
if
(
nv_rd32
(
priv
,
0x022500
)
&
0x00000001
)
priv
->
base
.
post
=
true
;
return
0
;
}
...
...
drivers/gpu/drm/nouveau/nouveau_bios.c
浏览文件 @
791dc143
...
...
@@ -2051,19 +2051,14 @@ nouveau_bios_posted(struct drm_device *dev)
struct
nouveau_drm
*
drm
=
nouveau_drm
(
dev
);
unsigned
htotal
;
if
(
nv_device
(
drm
->
device
)
->
card_type
>=
NV_50
)
{
if
(
NVReadVgaCrtc
(
dev
,
0
,
0x00
)
==
0
&&
NVReadVgaCrtc
(
dev
,
0
,
0x1a
)
==
0
)
return
false
;
if
(
nv_device
(
drm
->
device
)
->
card_type
>=
NV_50
)
return
true
;
}
htotal
=
NVReadVgaCrtc
(
dev
,
0
,
0x06
);
htotal
|=
(
NVReadVgaCrtc
(
dev
,
0
,
0x07
)
&
0x01
)
<<
8
;
htotal
|=
(
NVReadVgaCrtc
(
dev
,
0
,
0x07
)
&
0x20
)
<<
4
;
htotal
|=
(
NVReadVgaCrtc
(
dev
,
0
,
0x25
)
&
0x01
)
<<
10
;
htotal
|=
(
NVReadVgaCrtc
(
dev
,
0
,
0x41
)
&
0x01
)
<<
11
;
return
(
htotal
!=
0
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录