Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4f052b71
Commit
4f052b71
authored
Jan 02, 2003
by
Dave Jones
Committed by
Dave Jones
Jan 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGP] Add debug info to failure path of AGP 3.0 rate enabling
parent
cdb2915d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
drivers/char/agp/amd-k8-agp.c
drivers/char/agp/amd-k8-agp.c
+0
-2
drivers/char/agp/generic-3.0.c
drivers/char/agp/generic-3.0.c
+6
-11
No files found.
drivers/char/agp/amd-k8-agp.c
View file @
4f052b71
...
...
@@ -50,8 +50,6 @@ static int x86_64_insert_memory(agp_memory * mem, off_t pg_start, int type)
u32
pte
;
u64
addr
;
temp
=
agp_bridge
.
current_size
;
num_entries
=
agp_num_entries
();
if
(
type
!=
0
||
mem
->
type
!=
0
)
...
...
drivers/char/agp/generic-3.0.c
View file @
4f052b71
...
...
@@ -393,8 +393,7 @@ static int agp_3_0_node_enable(u32 mode, u32 minor)
if
(
mcapndx
==
0
)
{
printk
(
KERN_ERR
PFX
"woah! Non-AGP device "
"found on the secondary bus of an AGP 3.0 "
"bridge!
\n
"
);
"found on the secondary bus of an AGP 3.0 bridge!
\n
"
);
ret
=
-
ENODEV
;
goto
free_and_exit
;
}
...
...
@@ -442,9 +441,8 @@ static int agp_3_0_node_enable(u32 mode, u32 minor)
rate
=
0x2
;
break
;
default:
printk
(
KERN_ERR
PFX
"woah! Bogus AGP rate "
"value found advertised behind an AGP 3.0 "
"bridge!
\n
"
);
printk
(
KERN_ERR
PFX
"woah! Bogus AGP rate (%d) "
"value found advertised behind an AGP 3.0 bridge!
\n
"
,
rate
);
ret
=
-
ENODEV
;
goto
free_and_exit
;
}
...
...
@@ -455,12 +453,10 @@ static int agp_3_0_node_enable(u32 mode, u32 minor)
* whether isochronous transfers are supported.
*/
if
(
isoch
!=
0
)
{
if
((
ret
=
agp_3_0_isochronous_node_enable
(
dev_list
,
ndevs
))
!=
0
)
if
((
ret
=
agp_3_0_isochronous_node_enable
(
dev_list
,
ndevs
))
!=
0
)
goto
free_and_exit
;
}
else
{
if
((
ret
=
agp_3_0_nonisochronous_node_enable
(
dev_list
,
ndevs
))
!=
0
)
if
((
ret
=
agp_3_0_nonisochronous_node_enable
(
dev_list
,
ndevs
))
!=
0
)
goto
free_and_exit
;
}
...
...
@@ -534,8 +530,7 @@ int agp_generic_agp_3_0_enable(u32 mode)
major
=
(
ncapid
>>
20
)
&
0xf
;
minor
=
(
ncapid
>>
16
)
&
0xf
;
printk
(
KERN_INFO
PFX
"Found an AGP %d.%d compliant device.
\n
"
,
major
,
minor
);
printk
(
KERN_INFO
PFX
"Found an AGP %d.%d compliant device.
\n
"
,
major
,
minor
);
if
(
major
>=
3
)
{
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
0x4
,
&
agp_3_0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment