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
nexedi
linux
Commits
be46fd81
Commit
be46fd81
authored
Jan 05, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Plain Diff
Merge tetrachloride.(none):/mnt/stuff/kernel/2.5/bk-linus
into tetrachloride.(none):/mnt/stuff/kernel/2.5/agpgart
parents
1d0619c5
b09603b1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
8 deletions
+24
-8
arch/x86_64/kernel/pci-gart.c
arch/x86_64/kernel/pci-gart.c
+7
-2
drivers/char/agp/amd-k8-agp.c
drivers/char/agp/amd-k8-agp.c
+12
-1
drivers/char/agp/via-agp.c
drivers/char/agp/via-agp.c
+3
-3
include/linux/agp_backend.h
include/linux/agp_backend.h
+1
-1
include/linux/pci_ids.h
include/linux/pci_ids.h
+1
-1
No files found.
arch/x86_64/kernel/pci-gart.c
View file @
be46fd81
...
@@ -72,6 +72,7 @@ static unsigned long *iommu_gart_bitmap; /* guarded by iommu_bitmap_lock */
...
@@ -72,6 +72,7 @@ static unsigned long *iommu_gart_bitmap; /* guarded by iommu_bitmap_lock */
#define EMERGENCY_PAGES 32
/* = 128KB */
#define EMERGENCY_PAGES 32
/* = 128KB */
#ifdef CONFIG_AGP
#ifdef CONFIG_AGP
extern
int
agp_amdk8_init
(
void
);
extern
int
agp_init
(
void
);
extern
int
agp_init
(
void
);
#define AGPEXTERN extern
#define AGPEXTERN extern
#else
#else
...
@@ -453,10 +454,14 @@ void __init pci_iommu_init(void)
...
@@ -453,10 +454,14 @@ void __init pci_iommu_init(void)
unsigned
long
aper_size
;
unsigned
long
aper_size
;
unsigned
long
iommu_start
;
unsigned
long
iommu_start
;
#ifndef CONFIG_AGP
#ifndef CONFIG_AGP
_AMD_8151
no_agp
=
1
;
no_agp
=
1
;
#else
#else
no_agp
=
no_agp
||
(
agp_init
()
<
0
)
||
(
agp_copy_info
(
&
info
)
<
0
);
/* Add other K8 AGP bridge drivers here */
no_agp
=
no_agp
||
(
agp_init
()
<
0
)
||
(
agp_amdk8_init
()
<
0
)
||
(
agp_copy_info
(
&
info
)
<
0
);
#endif
#endif
if
(
no_iommu
||
(
!
force_mmu
&&
end_pfn
<
0xffffffff
>>
PAGE_SHIFT
))
{
if
(
no_iommu
||
(
!
force_mmu
&&
end_pfn
<
0xffffffff
>>
PAGE_SHIFT
))
{
...
...
drivers/char/agp/amd-k8-agp.c
View file @
be46fd81
...
@@ -8,6 +8,12 @@
...
@@ -8,6 +8,12 @@
* removed now).
* removed now).
*/
*/
/*
* On x86-64 the AGP driver needs to be initialized early by the IOMMU
* code. When you use this driver as a template for a new K8 AGP bridge
* driver don't forget to change arch/x86_64/kernel/pci-gart.c too -AK.
*/
#include <linux/module.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/init.h>
...
@@ -505,7 +511,8 @@ static struct __initdata pci_driver agp_amdk8_pci_driver = {
...
@@ -505,7 +511,8 @@ static struct __initdata pci_driver agp_amdk8_pci_driver = {
.
probe
=
agp_amdk8_probe
,
.
probe
=
agp_amdk8_probe
,
};
};
static
int
__init
agp_amdk8_init
(
void
)
/* Not static due to IOMMU code calling it early. */
int
__init
agp_amdk8_init
(
void
)
{
{
int
ret_val
;
int
ret_val
;
...
@@ -524,8 +531,12 @@ static void __exit agp_amdk8_cleanup(void)
...
@@ -524,8 +531,12 @@ static void __exit agp_amdk8_cleanup(void)
pci_unregister_driver
(
&
agp_amdk8_pci_driver
);
pci_unregister_driver
(
&
agp_amdk8_pci_driver
);
}
}
/* On x86-64 the PCI driver needs to initialize this driver early
for the IOMMU, so it has to be called via a backdoor. */
#ifndef CONFIG_GART_IOMMU
module_init
(
agp_amdk8_init
);
module_init
(
agp_amdk8_init
);
module_exit
(
agp_amdk8_cleanup
);
module_exit
(
agp_amdk8_cleanup
);
#endif
MODULE_AUTHOR
(
"Dave Jones <davej@codemonkey.org.uk>"
);
MODULE_AUTHOR
(
"Dave Jones <davej@codemonkey.org.uk>"
);
MODULE_LICENSE
(
"GPL and additional rights"
);
MODULE_LICENSE
(
"GPL and additional rights"
);
...
...
drivers/char/agp/via-agp.c
View file @
be46fd81
...
@@ -203,9 +203,9 @@ static struct agp_device_ids via_agp_device_ids[] __initdata =
...
@@ -203,9 +203,9 @@ static struct agp_device_ids via_agp_device_ids[] __initdata =
.
chipset_name
=
"Apollo ProSavage PM133"
.
chipset_name
=
"Apollo ProSavage PM133"
},
},
{
{
.
device_id
=
PCI_DEVICE_ID_VIA_8
235_0
,
.
device_id
=
PCI_DEVICE_ID_VIA_8
754
,
.
chipset
=
VIA_P4X
400
,
.
chipset
=
VIA_P4X
,
.
chipset_name
=
"P4X400"
.
chipset_name
=
"
Apollo P4X333/
P4X400"
},
},
{
},
/* dummy final entry, always present */
{
},
/* dummy final entry, always present */
};
};
...
...
include/linux/agp_backend.h
View file @
be46fd81
...
@@ -63,7 +63,7 @@ enum chipset_type {
...
@@ -63,7 +63,7 @@ enum chipset_type {
VIA_APOLLO_KT400_3
,
VIA_APOLLO_KT400_3
,
VIA_APOLLO_PRO_266
,
VIA_APOLLO_PRO_266
,
VIA_VT8605
,
VIA_VT8605
,
VIA_P4X
400
,
VIA_P4X
,
SIS_GENERIC
,
SIS_GENERIC
,
AMD_GENERIC
,
AMD_GENERIC
,
AMD_IRONGATE
,
AMD_IRONGATE
,
...
...
include/linux/pci_ids.h
View file @
be46fd81
...
@@ -1092,7 +1092,7 @@
...
@@ -1092,7 +1092,7 @@
#define PCI_DEVICE_ID_VIA_8233C_0 0x3109
#define PCI_DEVICE_ID_VIA_8233C_0 0x3109
#define PCI_DEVICE_ID_VIA_8361 0x3112
#define PCI_DEVICE_ID_VIA_8361 0x3112
#define PCI_DEVICE_ID_VIA_8233A 0x3147
#define PCI_DEVICE_ID_VIA_8233A 0x3147
#define PCI_DEVICE_ID_VIA_8
235_0
0x3168
#define PCI_DEVICE_ID_VIA_8
754
0x3168
#define PCI_DEVICE_ID_VIA_8235 0x3177
#define PCI_DEVICE_ID_VIA_8235 0x3177
#define PCI_DEVICE_ID_VIA_8377_0 0x3189
#define PCI_DEVICE_ID_VIA_8377_0 0x3189
#define PCI_DEVICE_ID_VIA_86C100A 0x6100
#define PCI_DEVICE_ID_VIA_86C100A 0x6100
...
...
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