Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
0a8649f1
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0a8649f1
编写于
3月 19, 2014
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/bios: have strap reads show on devinit spam debug level
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
77307051
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
13 addition
and
11 deletion
+13
-11
drivers/gpu/drm/nouveau/core/include/subdev/bios/ramcfg.h
drivers/gpu/drm/nouveau/core/include/subdev/bios/ramcfg.h
+1
-1
drivers/gpu/drm/nouveau/core/subdev/bios/init.c
drivers/gpu/drm/nouveau/core/subdev/bios/init.c
+1
-1
drivers/gpu/drm/nouveau/core/subdev/bios/ramcfg.c
drivers/gpu/drm/nouveau/core/subdev/bios/ramcfg.c
+5
-4
drivers/gpu/drm/nouveau/core/subdev/fb/ramnv50.c
drivers/gpu/drm/nouveau/core/subdev/fb/ramnv50.c
+1
-1
drivers/gpu/drm/nouveau/core/subdev/fb/ramnva3.c
drivers/gpu/drm/nouveau/core/subdev/fb/ramnva3.c
+1
-1
drivers/gpu/drm/nouveau/core/subdev/fb/ramnvc0.c
drivers/gpu/drm/nouveau/core/subdev/fb/ramnvc0.c
+1
-1
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c
+3
-2
未找到文件。
drivers/gpu/drm/nouveau/core/include/subdev/bios/ramcfg.h
浏览文件 @
0a8649f1
...
...
@@ -61,6 +61,6 @@ struct nvbios_ramcfg {
};
u8
nvbios_ramcfg_count
(
struct
nouveau_bios
*
);
u8
nvbios_ramcfg_index
(
struct
nouveau_
bios
*
);
u8
nvbios_ramcfg_index
(
struct
nouveau_
subdev
*
);
#endif
drivers/gpu/drm/nouveau/core/subdev/bios/init.c
浏览文件 @
0a8649f1
...
...
@@ -410,7 +410,7 @@ init_ram_restrict(struct nvbios_init *init)
* in case *not* re-reading the strap causes similar breakage.
*/
if
(
!
init
->
ramcfg
||
init
->
bios
->
version
.
major
<
0x70
)
init
->
ramcfg
=
0x80000000
|
nvbios_ramcfg_index
(
init
->
bios
);
init
->
ramcfg
=
0x80000000
|
nvbios_ramcfg_index
(
init
->
subdev
);
return
(
init
->
ramcfg
&
0x7fffffff
);
}
...
...
drivers/gpu/drm/nouveau/core/subdev/bios/ramcfg.c
浏览文件 @
0a8649f1
...
...
@@ -27,9 +27,9 @@
#include <subdev/bios/ramcfg.h>
static
u8
nvbios_ramcfg_strap
(
struct
nouveau_
bios
*
bios
)
nvbios_ramcfg_strap
(
struct
nouveau_
subdev
*
subdev
)
{
return
(
nv_rd32
(
bios
,
0x101000
)
&
0x0000003c
)
>>
2
;
return
(
nv_rd32
(
subdev
,
0x101000
)
&
0x0000003c
)
>>
2
;
}
u8
...
...
@@ -48,9 +48,10 @@ nvbios_ramcfg_count(struct nouveau_bios *bios)
}
u8
nvbios_ramcfg_index
(
struct
nouveau_
bios
*
bios
)
nvbios_ramcfg_index
(
struct
nouveau_
subdev
*
subdev
)
{
u8
strap
=
nvbios_ramcfg_strap
(
bios
);
struct
nouveau_bios
*
bios
=
nouveau_bios
(
subdev
);
u8
strap
=
nvbios_ramcfg_strap
(
subdev
);
u32
xlat
=
0x00000000
;
struct
bit_entry
bit_M
;
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/ramnv50.c
浏览文件 @
0a8649f1
...
...
@@ -91,7 +91,7 @@ nv50_ram_calc(struct nouveau_fb *pfb, u32 freq)
}
while
(
perfE
.
memory
<
freq
);
/* locate specific data set for the attached memory */
strap
=
nvbios_ramcfg_index
(
bios
);
strap
=
nvbios_ramcfg_index
(
nv_subdev
(
pfb
)
);
if
(
strap
>=
cnt
)
{
nv_error
(
pfb
,
"invalid ramcfg strap
\n
"
);
return
-
EINVAL
;
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/ramnva3.c
浏览文件 @
0a8649f1
...
...
@@ -98,7 +98,7 @@ nva3_ram_calc(struct nouveau_fb *pfb, u32 freq)
}
/* locate specific data set for the attached memory */
strap
=
nvbios_ramcfg_index
(
bios
);
strap
=
nvbios_ramcfg_index
(
nv_subdev
(
pfb
)
);
if
(
strap
>=
cnt
)
{
nv_error
(
pfb
,
"invalid ramcfg strap
\n
"
);
return
-
EINVAL
;
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/ramnvc0.c
浏览文件 @
0a8649f1
...
...
@@ -152,7 +152,7 @@ nvc0_ram_calc(struct nouveau_fb *pfb, u32 freq)
}
/* locate specific data set for the attached memory */
strap
=
nvbios_ramcfg_index
(
bios
);
strap
=
nvbios_ramcfg_index
(
nv_subdev
(
pfb
)
);
if
(
strap
>=
cnt
)
{
nv_error
(
pfb
,
"invalid ramcfg strap
\n
"
);
return
-
EINVAL
;
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c
浏览文件 @
0a8649f1
...
...
@@ -950,10 +950,11 @@ nve0_ram_calc_data(struct nouveau_fb *pfb, u32 freq,
}
/* locate specific data set for the attached memory */
strap
=
nvbios_ramcfg_index
(
nv_subdev
(
pfb
));
ram
->
base
.
ramcfg
.
data
=
nvbios_rammapSp
(
bios
,
ram
->
base
.
rammap
.
data
,
ram
->
base
.
rammap
.
version
,
ram
->
base
.
rammap
.
size
,
cnt
,
len
,
nvbios_ramcfg_index
(
bios
)
,
ram
->
base
.
rammap
.
size
,
cnt
,
len
,
strap
,
&
ram
->
base
.
ramcfg
.
version
,
&
ram
->
base
.
ramcfg
.
size
,
&
data
->
bios
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录