Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
e3e3679c
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,发现更多精彩内容 >>
提交
e3e3679c
编写于
9月 08, 2005
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
差异文件
Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart
上级
54205209
29db35ed
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
18 deletion
+17
-18
drivers/char/agp/amd64-agp.c
drivers/char/agp/amd64-agp.c
+1
-1
drivers/char/agp/generic.c
drivers/char/agp/generic.c
+16
-17
未找到文件。
drivers/char/agp/amd64-agp.c
浏览文件 @
e3e3679c
...
...
@@ -429,7 +429,7 @@ static int __devinit uli_agp_init(struct pci_dev *pdev)
struct
pci_dev
*
dev1
;
int
i
;
unsigned
size
=
amd64_fetch_size
();
printk
(
KERN_INFO
"Setting up ULi AGP.
\n
"
);
printk
(
KERN_INFO
"Setting up ULi AGP.
\n
"
);
dev1
=
pci_find_slot
((
unsigned
int
)
pdev
->
bus
->
number
,
PCI_DEVFN
(
0
,
0
));
if
(
dev1
==
NULL
)
{
printk
(
KERN_INFO
PFX
"Detected a ULi chipset, "
...
...
drivers/char/agp/generic.c
浏览文件 @
e3e3679c
...
...
@@ -319,7 +319,6 @@ int agp_copy_info(struct agp_bridge_data *bridge, struct agp_kern_info *info)
info
->
mode
=
bridge
->
mode
&
~
AGP3_RESERVED_MASK
;
else
info
->
mode
=
bridge
->
mode
&
~
AGP2_RESERVED_MASK
;
info
->
mode
=
bridge
->
mode
;
info
->
aper_base
=
bridge
->
gart_bus_addr
;
info
->
aper_size
=
agp_return_size
();
info
->
max_memory
=
bridge
->
max_memory_agp
;
...
...
@@ -356,7 +355,7 @@ int agp_bind_memory(struct agp_memory *curr, off_t pg_start)
return
-
EINVAL
;
if
(
curr
->
is_bound
==
TRUE
)
{
printk
(
KERN_INFO
PFX
"memory %p is already bound!
\n
"
,
curr
);
printk
(
KERN_INFO
PFX
"memory %p is already bound!
\n
"
,
curr
);
return
-
EINVAL
;
}
if
(
curr
->
is_flushed
==
FALSE
)
{
...
...
@@ -391,7 +390,7 @@ int agp_unbind_memory(struct agp_memory *curr)
return
-
EINVAL
;
if
(
curr
->
is_bound
!=
TRUE
)
{
printk
(
KERN_INFO
PFX
"memory %p was not bound!
\n
"
,
curr
);
printk
(
KERN_INFO
PFX
"memory %p was not bound!
\n
"
,
curr
);
return
-
EINVAL
;
}
...
...
@@ -415,7 +414,7 @@ static void agp_v2_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_
u32
tmp
;
if
(
*
requested_mode
&
AGP2_RESERVED_MASK
)
{
printk
(
KERN_INFO
PFX
"reserved bits set in mode 0x%x. Fixed.
\n
"
,
*
requested_mode
);
printk
(
KERN_INFO
PFX
"reserved bits set in mode 0x%x. Fixed.
\n
"
,
*
requested_mode
);
*
requested_mode
&=
~
AGP2_RESERVED_MASK
;
}
...
...
@@ -423,7 +422,7 @@ static void agp_v2_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_
tmp
=
*
requested_mode
&
7
;
switch
(
tmp
)
{
case
0
:
printk
(
KERN_INFO
PFX
"%s tried to set rate=x0. Setting to x1 mode.
\n
"
,
current
->
comm
);
printk
(
KERN_INFO
PFX
"%s tried to set rate=x0. Setting to x1 mode.
\n
"
,
current
->
comm
);
*
requested_mode
|=
AGPSTAT2_1X
;
break
;
case
1
:
...
...
@@ -493,18 +492,18 @@ static void agp_v3_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_
u32
tmp
;
if
(
*
requested_mode
&
AGP3_RESERVED_MASK
)
{
printk
(
KERN_INFO
PFX
"reserved bits set in mode 0x%x. Fixed.
\n
"
,
*
requested_mode
);
printk
(
KERN_INFO
PFX
"reserved bits set in mode 0x%x. Fixed.
\n
"
,
*
requested_mode
);
*
requested_mode
&=
~
AGP3_RESERVED_MASK
;
}
/* Check the speed bits make sense. */
tmp
=
*
requested_mode
&
7
;
if
(
tmp
==
0
)
{
printk
(
KERN_INFO
PFX
"%s tried to set rate=x0. Setting to AGP3 x4 mode.
\n
"
,
current
->
comm
);
printk
(
KERN_INFO
PFX
"%s tried to set rate=x0. Setting to AGP3 x4 mode.
\n
"
,
current
->
comm
);
*
requested_mode
|=
AGPSTAT3_4X
;
}
if
(
tmp
>=
3
)
{
printk
(
KERN_INFO
PFX
"%s tried to set rate=x%d. Setting to AGP3 x8 mode.
\n
"
,
current
->
comm
,
tmp
*
4
);
printk
(
KERN_INFO
PFX
"%s tried to set rate=x%d. Setting to AGP3 x8 mode.
\n
"
,
current
->
comm
,
tmp
*
4
);
*
requested_mode
=
(
*
requested_mode
&
~
7
)
|
AGPSTAT3_8X
;
}
...
...
@@ -533,7 +532,7 @@ static void agp_v3_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_
* AGP2.x 4x -> AGP3.0 4x.
*/
if
(
*
requested_mode
&
AGPSTAT2_4X
)
{
printk
(
KERN_INFO
PFX
"%s passes broken AGP3 flags (%x). Fixed.
\n
"
,
printk
(
KERN_INFO
PFX
"%s passes broken AGP3 flags (%x). Fixed.
\n
"
,
current
->
comm
,
*
requested_mode
);
*
requested_mode
&=
~
AGPSTAT2_4X
;
*
requested_mode
|=
AGPSTAT3_4X
;
...
...
@@ -544,7 +543,7 @@ static void agp_v3_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_
* but have been passed an AGP 2.x mode.
* Convert AGP 1x,2x,4x -> AGP 3.0 4x.
*/
printk
(
KERN_INFO
PFX
"%s passes broken AGP2 flags (%x) in AGP3 mode. Fixed.
\n
"
,
printk
(
KERN_INFO
PFX
"%s passes broken AGP2 flags (%x) in AGP3 mode. Fixed.
\n
"
,
current
->
comm
,
*
requested_mode
);
*
requested_mode
&=
~
(
AGPSTAT2_4X
|
AGPSTAT2_2X
|
AGPSTAT2_1X
);
*
requested_mode
|=
AGPSTAT3_4X
;
...
...
@@ -554,13 +553,13 @@ static void agp_v3_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_
if
(
!
(
*
bridge_agpstat
&
AGPSTAT3_8X
))
{
*
bridge_agpstat
&=
~
(
AGPSTAT3_8X
|
AGPSTAT3_RSVD
);
*
bridge_agpstat
|=
AGPSTAT3_4X
;
printk
(
"%s requested AGPx8 but bridge not capable.
\n
"
,
current
->
comm
);
printk
(
KERN_INFO
PFX
"%s requested AGPx8 but bridge not capable.
\n
"
,
current
->
comm
);
return
;
}
if
(
!
(
*
vga_agpstat
&
AGPSTAT3_8X
))
{
*
bridge_agpstat
&=
~
(
AGPSTAT3_8X
|
AGPSTAT3_RSVD
);
*
bridge_agpstat
|=
AGPSTAT3_4X
;
printk
(
"%s requested AGPx8 but graphic card not capable.
\n
"
,
current
->
comm
);
printk
(
KERN_INFO
PFX
"%s requested AGPx8 but graphic card not capable.
\n
"
,
current
->
comm
);
return
;
}
/* All set, bridge & device can do AGP x8*/
...
...
@@ -578,13 +577,13 @@ static void agp_v3_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_
if
((
*
bridge_agpstat
&
AGPSTAT3_4X
)
&&
(
*
vga_agpstat
&
AGPSTAT3_4X
))
*
bridge_agpstat
|=
AGPSTAT3_4X
;
else
{
printk
(
KERN_INFO
PFX
"Badness. Don't know which AGP mode to set. "
printk
(
KERN_INFO
PFX
"Badness. Don't know which AGP mode to set. "
"[bridge_agpstat:%x vga_agpstat:%x fell back to:- bridge_agpstat:%x vga_agpstat:%x]
\n
"
,
origbridge
,
origvga
,
*
bridge_agpstat
,
*
vga_agpstat
);
if
(
!
(
*
bridge_agpstat
&
AGPSTAT3_4X
))
printk
(
KERN_INFO
PFX
"Bridge couldn't do AGP x4.
\n
"
);
printk
(
KERN_INFO
PFX
"Bridge couldn't do AGP x4.
\n
"
);
if
(
!
(
*
vga_agpstat
&
AGPSTAT3_4X
))
printk
(
KERN_INFO
PFX
"Graphic card couldn't do AGP x4.
\n
"
);
printk
(
KERN_INFO
PFX
"Graphic card couldn't do AGP x4.
\n
"
);
return
;
}
}
...
...
@@ -622,7 +621,7 @@ u32 agp_collect_device_status(struct agp_bridge_data *bridge, u32 requested_mode
for
(;;)
{
device
=
pci_get_class
(
PCI_CLASS_DISPLAY_VGA
<<
8
,
device
);
if
(
!
device
)
{
printk
(
KERN_INFO
PFX
"Couldn't find an AGP VGA controller.
\n
"
);
printk
(
KERN_INFO
PFX
"Couldn't find an AGP VGA controller.
\n
"
);
return
0
;
}
cap_ptr
=
pci_find_capability
(
device
,
PCI_CAP_ID_AGP
);
...
...
@@ -734,7 +733,7 @@ void agp_generic_enable(struct agp_bridge_data *bridge, u32 requested_mode)
pci_write_config_dword
(
bridge
->
dev
,
bridge
->
capndx
+
AGPCTRL
,
temp
);
printk
(
KERN_INFO
PFX
"Device is in legacy mode,"
printk
(
KERN_INFO
PFX
"Device is in legacy mode,"
" falling back to 2.x
\n
"
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录