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
9a51f3fc
Commit
9a51f3fc
authored
May 09, 2016
by
Joerg Roedel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'arm/smmu' into core
parents
809eac54
8801561c
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
265 additions
and
83 deletions
+265
-83
Documentation/arm64/silicon-errata.txt
Documentation/arm64/silicon-errata.txt
+2
-0
Documentation/devicetree/bindings/iommu/arm,smmu.txt
Documentation/devicetree/bindings/iommu/arm,smmu.txt
+1
-0
drivers/iommu/arm-smmu.c
drivers/iommu/arm-smmu.c
+210
-81
include/asm-generic/io.h
include/asm-generic/io.h
+2
-2
include/linux/io-64-nonatomic-hi-lo.h
include/linux/io-64-nonatomic-hi-lo.h
+25
-0
include/linux/io-64-nonatomic-lo-hi.h
include/linux/io-64-nonatomic-lo-hi.h
+25
-0
No files found.
Documentation/arm64/silicon-errata.txt
View file @
9a51f3fc
...
@@ -53,7 +53,9 @@ stable kernels.
...
@@ -53,7 +53,9 @@ stable kernels.
| ARM | Cortex-A57 | #832075 | ARM64_ERRATUM_832075 |
| ARM | Cortex-A57 | #832075 | ARM64_ERRATUM_832075 |
| ARM | Cortex-A57 | #852523 | N/A |
| ARM | Cortex-A57 | #852523 | N/A |
| ARM | Cortex-A57 | #834220 | ARM64_ERRATUM_834220 |
| ARM | Cortex-A57 | #834220 | ARM64_ERRATUM_834220 |
| ARM | MMU-500 | #841119,#826419 | N/A |
| | | | |
| | | | |
| Cavium | ThunderX ITS | #22375, #24313 | CAVIUM_ERRATUM_22375 |
| Cavium | ThunderX ITS | #22375, #24313 | CAVIUM_ERRATUM_22375 |
| Cavium | ThunderX GICv3 | #23154 | CAVIUM_ERRATUM_23154 |
| Cavium | ThunderX GICv3 | #23154 | CAVIUM_ERRATUM_23154 |
| Cavium | ThunderX Core | #27456 | CAVIUM_ERRATUM_27456 |
| Cavium | ThunderX Core | #27456 | CAVIUM_ERRATUM_27456 |
| Cavium | ThunderX SMMUv2 | #27704 | N/A |
Documentation/devicetree/bindings/iommu/arm,smmu.txt
View file @
9a51f3fc
...
@@ -16,6 +16,7 @@ conditions.
...
@@ -16,6 +16,7 @@ conditions.
"arm,mmu-400"
"arm,mmu-400"
"arm,mmu-401"
"arm,mmu-401"
"arm,mmu-500"
"arm,mmu-500"
"cavium,smmu-v2"
depending on the particular implementation and/or the
depending on the particular implementation and/or the
version of the architecture implemented.
version of the architecture implemented.
...
...
drivers/iommu/arm-smmu.c
View file @
9a51f3fc
This diff is collapsed.
Click to expand it.
include/asm-generic/io.h
View file @
9a51f3fc
...
@@ -191,7 +191,7 @@ static inline void writeq(u64 value, volatile void __iomem *addr)
...
@@ -191,7 +191,7 @@ static inline void writeq(u64 value, volatile void __iomem *addr)
#define readl_relaxed readl
#define readl_relaxed readl
#endif
#endif
#if
ndef readq_relaxed
#if
defined(readq) && !defined(readq_relaxed)
#define readq_relaxed readq
#define readq_relaxed readq
#endif
#endif
...
@@ -207,7 +207,7 @@ static inline void writeq(u64 value, volatile void __iomem *addr)
...
@@ -207,7 +207,7 @@ static inline void writeq(u64 value, volatile void __iomem *addr)
#define writel_relaxed writel
#define writel_relaxed writel
#endif
#endif
#if
ndef writeq_relaxed
#if
defined(writeq) && !defined(writeq_relaxed)
#define writeq_relaxed writeq
#define writeq_relaxed writeq
#endif
#endif
...
...
include/linux/io-64-nonatomic-hi-lo.h
View file @
9a51f3fc
...
@@ -21,6 +21,23 @@ static inline void hi_lo_writeq(__u64 val, volatile void __iomem *addr)
...
@@ -21,6 +21,23 @@ static inline void hi_lo_writeq(__u64 val, volatile void __iomem *addr)
writel
(
val
,
addr
);
writel
(
val
,
addr
);
}
}
static
inline
__u64
hi_lo_readq_relaxed
(
const
volatile
void
__iomem
*
addr
)
{
const
volatile
u32
__iomem
*
p
=
addr
;
u32
low
,
high
;
high
=
readl_relaxed
(
p
+
1
);
low
=
readl_relaxed
(
p
);
return
low
+
((
u64
)
high
<<
32
);
}
static
inline
void
hi_lo_writeq_relaxed
(
__u64
val
,
volatile
void
__iomem
*
addr
)
{
writel_relaxed
(
val
>>
32
,
addr
+
4
);
writel_relaxed
(
val
,
addr
);
}
#ifndef readq
#ifndef readq
#define readq hi_lo_readq
#define readq hi_lo_readq
#endif
#endif
...
@@ -29,4 +46,12 @@ static inline void hi_lo_writeq(__u64 val, volatile void __iomem *addr)
...
@@ -29,4 +46,12 @@ static inline void hi_lo_writeq(__u64 val, volatile void __iomem *addr)
#define writeq hi_lo_writeq
#define writeq hi_lo_writeq
#endif
#endif
#ifndef readq_relaxed
#define readq_relaxed hi_lo_readq_relaxed
#endif
#ifndef writeq_relaxed
#define writeq_relaxed hi_lo_writeq_relaxed
#endif
#endif
/* _LINUX_IO_64_NONATOMIC_HI_LO_H_ */
#endif
/* _LINUX_IO_64_NONATOMIC_HI_LO_H_ */
include/linux/io-64-nonatomic-lo-hi.h
View file @
9a51f3fc
...
@@ -21,6 +21,23 @@ static inline void lo_hi_writeq(__u64 val, volatile void __iomem *addr)
...
@@ -21,6 +21,23 @@ static inline void lo_hi_writeq(__u64 val, volatile void __iomem *addr)
writel
(
val
>>
32
,
addr
+
4
);
writel
(
val
>>
32
,
addr
+
4
);
}
}
static
inline
__u64
lo_hi_readq_relaxed
(
const
volatile
void
__iomem
*
addr
)
{
const
volatile
u32
__iomem
*
p
=
addr
;
u32
low
,
high
;
low
=
readl_relaxed
(
p
);
high
=
readl_relaxed
(
p
+
1
);
return
low
+
((
u64
)
high
<<
32
);
}
static
inline
void
lo_hi_writeq_relaxed
(
__u64
val
,
volatile
void
__iomem
*
addr
)
{
writel_relaxed
(
val
,
addr
);
writel_relaxed
(
val
>>
32
,
addr
+
4
);
}
#ifndef readq
#ifndef readq
#define readq lo_hi_readq
#define readq lo_hi_readq
#endif
#endif
...
@@ -29,4 +46,12 @@ static inline void lo_hi_writeq(__u64 val, volatile void __iomem *addr)
...
@@ -29,4 +46,12 @@ static inline void lo_hi_writeq(__u64 val, volatile void __iomem *addr)
#define writeq lo_hi_writeq
#define writeq lo_hi_writeq
#endif
#endif
#ifndef readq_relaxed
#define readq_relaxed lo_hi_readq_relaxed
#endif
#ifndef writeq_relaxed
#define writeq_relaxed lo_hi_writeq_relaxed
#endif
#endif
/* _LINUX_IO_64_NONATOMIC_LO_HI_H_ */
#endif
/* _LINUX_IO_64_NONATOMIC_LO_HI_H_ */
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