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
50d3fb56
Commit
50d3fb56
authored
Oct 13, 2015
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iommu/vt-d: Use plain writeq() for dmar_writeq() where available
Signed-off-by:
David Woodhouse
<
David.Woodhouse@intel.com
>
parent
ba2374fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
include/linux/intel-iommu.h
include/linux/intel-iommu.h
+6
-8
No files found.
include/linux/intel-iommu.h
View file @
50d3fb56
...
@@ -59,14 +59,11 @@
...
@@ -59,14 +59,11 @@
#define DMAR_IRTA_REG 0xb8
/* Interrupt remapping table addr register */
#define DMAR_IRTA_REG 0xb8
/* Interrupt remapping table addr register */
#define OFFSET_STRIDE (9)
#define OFFSET_STRIDE (9)
/*
#define dmar_readl(dmar, reg) readl(dmar + reg)
#ifdef CONFIG_64BIT
#define dmar_readq(dmar, reg) ({ \
#define dmar_readq(a) readq(a)
u32 lo, hi; \
#define dmar_writeq(a,v) writeq(v,a)
lo = readl(dmar + reg); \
#else
hi = readl(dmar + reg + 4); \
(((u64) hi) << 32) + lo; })
*/
static
inline
u64
dmar_readq
(
void
__iomem
*
addr
)
static
inline
u64
dmar_readq
(
void
__iomem
*
addr
)
{
{
u32
lo
,
hi
;
u32
lo
,
hi
;
...
@@ -80,6 +77,7 @@ static inline void dmar_writeq(void __iomem *addr, u64 val)
...
@@ -80,6 +77,7 @@ static inline void dmar_writeq(void __iomem *addr, u64 val)
writel
((
u32
)
val
,
addr
);
writel
((
u32
)
val
,
addr
);
writel
((
u32
)(
val
>>
32
),
addr
+
4
);
writel
((
u32
)(
val
>>
32
),
addr
+
4
);
}
}
#endif
#define DMAR_VER_MAJOR(v) (((v) & 0xf0) >> 4)
#define DMAR_VER_MAJOR(v) (((v) & 0xf0) >> 4)
#define DMAR_VER_MINOR(v) ((v) & 0x0f)
#define DMAR_VER_MINOR(v) ((v) & 0x0f)
...
...
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