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
e7469be9
Commit
e7469be9
authored
Apr 05, 2002
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix software I/O TLB to always return <4GB memory for alloc_consistent().
parent
58cef2ea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
arch/ia64/Config.help
arch/ia64/Config.help
+7
-1
arch/ia64/lib/swiotlb.c
arch/ia64/lib/swiotlb.c
+5
-2
No files found.
arch/ia64/Config.help
View file @
e7469be9
...
@@ -414,12 +414,18 @@ CONFIG_IA64_GENERIC
...
@@ -414,12 +414,18 @@ CONFIG_IA64_GENERIC
HP-simulator For the HP simulator
HP-simulator For the HP simulator
(<http://software.hp.com/ia64linux/>).
(<http://software.hp.com/ia64linux/>).
HP-zx1 For HP zx1 platforms.
SN1-simulator For the SGI SN1 simulator.
SN1-simulator For the SGI SN1 simulator.
DIG-compliant For DIG ("Developer's Interface Guide") compliant
DIG-compliant For DIG ("Developer's Interface Guide") compliant
system.
system
s
.
If you don't know what to do, choose "generic".
If you don't know what to do, choose "generic".
CONFIG_IA64_HP_ZX1
Build a kernel that runs on HP zx1-based systems. This adds support
for the zx1 IOMMU and makes root bus bridges appear in PCI config space
(required for zx1 agpgart support).
CONFIG_IA64_PAGE_SIZE_4KB
CONFIG_IA64_PAGE_SIZE_4KB
This lets you select the page size of the kernel. For best IA-64
This lets you select the page size of the kernel. For best IA-64
performance, a page size of 8KB or 16KB is recommended. For best
performance, a page size of 8KB or 16KB is recommended. For best
...
...
arch/ia64/lib/swiotlb.c
View file @
e7469be9
...
@@ -276,7 +276,10 @@ swiotlb_alloc_consistent (struct pci_dev *hwdev, size_t size, dma_addr_t *dma_ha
...
@@ -276,7 +276,10 @@ swiotlb_alloc_consistent (struct pci_dev *hwdev, size_t size, dma_addr_t *dma_ha
int
gfp
=
GFP_ATOMIC
;
int
gfp
=
GFP_ATOMIC
;
void
*
ret
;
void
*
ret
;
if
(
!
hwdev
||
hwdev
->
dma_mask
<=
0xffffffff
)
/*
* Alloc_consistent() is defined to return memory < 4GB, no matter what the DMA
* mask says.
*/
gfp
|=
GFP_DMA
;
/* XXX fix me: should change this to GFP_32BIT or ZONE_32BIT */
gfp
|=
GFP_DMA
;
/* XXX fix me: should change this to GFP_32BIT or ZONE_32BIT */
ret
=
(
void
*
)
__get_free_pages
(
gfp
,
get_order
(
size
));
ret
=
(
void
*
)
__get_free_pages
(
gfp
,
get_order
(
size
));
if
(
!
ret
)
if
(
!
ret
)
...
...
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