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
4b336b06
Commit
4b336b06
authored
Jul 31, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'x86/urgent' into x86/xen
parents
0d1edf46
8978b742
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
14 deletions
+20
-14
arch/x86/kernel/pci-dma.c
arch/x86/kernel/pci-dma.c
+8
-0
arch/x86/kernel/setup.c
arch/x86/kernel/setup.c
+9
-4
include/asm-x86/iommu.h
include/asm-x86/iommu.h
+2
-0
include/linux/iommu-helper.h
include/linux/iommu-helper.h
+0
-1
init/calibrate.c
init/calibrate.c
+1
-1
lib/iommu-helper.c
lib/iommu-helper.c
+0
-8
No files found.
arch/x86/kernel/pci-dma.c
View file @
4b336b06
...
...
@@ -123,6 +123,14 @@ void __init pci_iommu_alloc(void)
pci_swiotlb_init
();
}
unsigned
long
iommu_num_pages
(
unsigned
long
addr
,
unsigned
long
len
)
{
unsigned
long
size
=
roundup
((
addr
&
~
PAGE_MASK
)
+
len
,
PAGE_SIZE
);
return
size
>>
PAGE_SHIFT
;
}
EXPORT_SYMBOL
(
iommu_num_pages
);
#endif
/*
...
...
arch/x86/kernel/setup.c
View file @
4b336b06
...
...
@@ -788,10 +788,6 @@ void __init setup_arch(char **cmdline_p)
initmem_init
(
0
,
max_pfn
);
#ifdef CONFIG_X86_64
dma32_reserve_bootmem
();
#endif
#ifdef CONFIG_ACPI_SLEEP
/*
* Reserve low memory region for sleep support.
...
...
@@ -806,6 +802,15 @@ void __init setup_arch(char **cmdline_p)
#endif
reserve_crashkernel
();
#ifdef CONFIG_X86_64
/*
* dma32_reserve_bootmem() allocates bootmem which may conflict
* with the crashkernel command line, so do that after
* reserve_crashkernel()
*/
dma32_reserve_bootmem
();
#endif
reserve_ibft_region
();
#ifdef CONFIG_KVM_CLOCK
...
...
include/asm-x86/iommu.h
View file @
4b336b06
...
...
@@ -7,6 +7,8 @@ extern struct dma_mapping_ops nommu_dma_ops;
extern
int
force_iommu
,
no_iommu
;
extern
int
iommu_detected
;
extern
unsigned
long
iommu_num_pages
(
unsigned
long
addr
,
unsigned
long
len
);
#ifdef CONFIG_GART_IOMMU
extern
int
gart_iommu_aperture
;
extern
int
gart_iommu_aperture_allowed
;
...
...
include/linux/iommu-helper.h
View file @
4b336b06
...
...
@@ -8,4 +8,3 @@ extern unsigned long iommu_area_alloc(unsigned long *map, unsigned long size,
unsigned
long
align_mask
);
extern
void
iommu_area_free
(
unsigned
long
*
map
,
unsigned
long
start
,
unsigned
int
nr
);
extern
unsigned
long
iommu_num_pages
(
unsigned
long
addr
,
unsigned
long
len
);
init/calibrate.c
View file @
4b336b06
...
...
@@ -170,7 +170,7 @@ void __cpuinit calibrate_delay(void)
loops_per_jiffy
&=
~
loopbit
;
}
}
printk
(
KERN_
INFO
"%lu.%02lu BogoMIPS (lpj=%lu)
\n
"
,
printk
(
KERN_
CONT
"%lu.%02lu BogoMIPS (lpj=%lu)
\n
"
,
loops_per_jiffy
/
(
500000
/
HZ
),
(
loops_per_jiffy
/
(
5000
/
HZ
))
%
100
,
loops_per_jiffy
);
}
lib/iommu-helper.c
View file @
4b336b06
...
...
@@ -80,11 +80,3 @@ void iommu_area_free(unsigned long *map, unsigned long start, unsigned int nr)
}
}
EXPORT_SYMBOL
(
iommu_area_free
);
unsigned
long
iommu_num_pages
(
unsigned
long
addr
,
unsigned
long
len
)
{
unsigned
long
size
=
roundup
((
addr
&
~
PAGE_MASK
)
+
len
,
PAGE_SIZE
);
return
size
>>
PAGE_SHIFT
;
}
EXPORT_SYMBOL
(
iommu_num_pages
);
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