2019-06-04 10:11:33 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-08-02 10:55:55 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-05-07 14:22:40 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
ARM: mm: Make virt_to_pfn() a static inline
Making virt_to_pfn() a static inline taking a strongly typed
(const void *) makes the contract of a passing a pointer of that
type to the function explicit and exposes any misuse of the
macro virt_to_pfn() acting polymorphic and accepting many types
such as (void *), (unitptr_t) or (unsigned long) as arguments
without warnings.
Doing this is a bit intrusive: virt_to_pfn() requires
PHYS_PFN_OFFSET and PAGE_SHIFT to be defined, and this is defined in
<asm/page.h>, so this must be included *before* <asm/memory.h>.
The use of macros were obscuring the unclear inclusion order here,
as the macros would eventually be resolved, but a static inline
like this cannot be compiled with unresolved macros.
The naive solution to include <asm/page.h> at the top of
<asm/memory.h> does not work, because <asm/memory.h> sometimes
includes <asm/page.h> at the end of itself, which would create a
confusing inclusion loop. So instead, take the approach to always
unconditionally include <asm/page.h> at the end of <asm/memory.h>
arch/arm uses <asm/memory.h> explicitly in a lot of places,
however it turns out that if we just unconditionally include
<asm/memory.h> into <asm/page.h> and switch all inclusions of
<asm/memory.h> to <asm/page.h> instead, we enforce the right
order and <asm/memory.h> will always have access to the
definitions.
Put an inclusion guard in place making it impossible to include
<asm/memory.h> explicitly.
Link: https://lore.kernel.org/linux-mm/20220701160004.2ffff4e5ab59a55499f4c736@linux-foundation.org/
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2022-06-02 10:18:32 +02:00
|
|
|
|
2011-11-24 20:57:23 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-18 23:08:52 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ARM: 8341/1: io: Unpessimize relaxed io accessors
commit 195bbcac2e5c12f7fb ("ARM: 7500/1: io: avoid writeback addressing
modes for __raw_ accessors") disables writeback addressing modes for
raw i/o. However, the "+Q" output constraint forces the compiler to
disable load hoist optimizations (because the output constraint informs the
compiler of memory stores which the compiler assumes may alias other memory).
Since the relaxed accessors only guarantee ordering wrt i/o accesses to the
same device and not to main memory, there's never a possibility of an accessor
invalidating a hoisted load (because only non-i/o loads would have been hoisted).
The effect is especially noticable with complex address inputs in loops.
For example, the following code:
#include <linux/kernel.h>
#include <linux/io.h>
static const int *remap;
void wr_loop(void __iomem *base, int c, int val)
{
int i;
for (i = 0; i < c; i++)
writew_relaxed(val, base + remap[c >> 2]);
}
generates
current master | this patch
0: e3510000 cmp r1, #0 | 0: e3510000 cmp r1, #0
4: d12fff1e bxle lr | 4: d12fff1e bxle lr
8: e3003000 movw r3, #0 | 8: e3c1c003 bic ip, r1, #3
c: e3403000 movt r3, #0 | c: e6ff2072 uxth r2, r2
10: e92d4010 push {r4, lr} | 10: e3a03000 mov r3, #0
14: e6ff2072 uxth r2, r2 | 14: e59cc000 ldr ip, [ip]
18: e3c14003 bic r4, r1, #3 | 18: e080000c add r0, r0, ip
1c: e593e000 ldr lr, [r3] |
20: e3a03000 mov r3, #0 | 1c: e1c020b0 strh r2, [r0]
| 20: e2833001 add r3, r3, #1
24: e79ec004 ldr ip, [lr, r4] | 24: e1530001 cmp r3, r1
28: e080c00c add ip, r0, ip | 28: 1afffffb bne 1c
2c: e1cc20b0 strh r2, [ip] | 2c: e12fff1e bx lr
30: e2833001 add r3, r3, #1 |
34: e1530001 cmp r3, r1 |
38: 1afffff9 bne 24 |
|
3c: e8bd8010 pop {r4, pc} |
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2015-04-13 14:18:50 +01:00
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ARM: 8341/1: io: Unpessimize relaxed io accessors
commit 195bbcac2e5c12f7fb ("ARM: 7500/1: io: avoid writeback addressing
modes for __raw_ accessors") disables writeback addressing modes for
raw i/o. However, the "+Q" output constraint forces the compiler to
disable load hoist optimizations (because the output constraint informs the
compiler of memory stores which the compiler assumes may alias other memory).
Since the relaxed accessors only guarantee ordering wrt i/o accesses to the
same device and not to main memory, there's never a possibility of an accessor
invalidating a hoisted load (because only non-i/o loads would have been hoisted).
The effect is especially noticable with complex address inputs in loops.
For example, the following code:
#include <linux/kernel.h>
#include <linux/io.h>
static const int *remap;
void wr_loop(void __iomem *base, int c, int val)
{
int i;
for (i = 0; i < c; i++)
writew_relaxed(val, base + remap[c >> 2]);
}
generates
current master | this patch
0: e3510000 cmp r1, #0 | 0: e3510000 cmp r1, #0
4: d12fff1e bxle lr | 4: d12fff1e bxle lr
8: e3003000 movw r3, #0 | 8: e3c1c003 bic ip, r1, #3
c: e3403000 movt r3, #0 | c: e6ff2072 uxth r2, r2
10: e92d4010 push {r4, lr} | 10: e3a03000 mov r3, #0
14: e6ff2072 uxth r2, r2 | 14: e59cc000 ldr ip, [ip]
18: e3c14003 bic r4, r1, #3 | 18: e080000c add r0, r0, ip
1c: e593e000 ldr lr, [r3] |
20: e3a03000 mov r3, #0 | 1c: e1c020b0 strh r2, [r0]
| 20: e2833001 add r3, r3, #1
24: e79ec004 ldr ip, [lr, r4] | 24: e1530001 cmp r3, r1
28: e080c00c add ip, r0, ip | 28: 1afffffb bne 1c
2c: e1cc20b0 strh r2, [ip] | 2c: e12fff1e bx lr
30: e2833001 add r3, r3, #1 |
34: e1530001 cmp r3, r1 |
38: 1afffff9 bne 24 |
|
3c: e8bd8010 pop {r4, pc} |
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2015-04-13 14:18:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ARM: 8341/1: io: Unpessimize relaxed io accessors
commit 195bbcac2e5c12f7fb ("ARM: 7500/1: io: avoid writeback addressing
modes for __raw_ accessors") disables writeback addressing modes for
raw i/o. However, the "+Q" output constraint forces the compiler to
disable load hoist optimizations (because the output constraint informs the
compiler of memory stores which the compiler assumes may alias other memory).
Since the relaxed accessors only guarantee ordering wrt i/o accesses to the
same device and not to main memory, there's never a possibility of an accessor
invalidating a hoisted load (because only non-i/o loads would have been hoisted).
The effect is especially noticable with complex address inputs in loops.
For example, the following code:
#include <linux/kernel.h>
#include <linux/io.h>
static const int *remap;
void wr_loop(void __iomem *base, int c, int val)
{
int i;
for (i = 0; i < c; i++)
writew_relaxed(val, base + remap[c >> 2]);
}
generates
current master | this patch
0: e3510000 cmp r1, #0 | 0: e3510000 cmp r1, #0
4: d12fff1e bxle lr | 4: d12fff1e bxle lr
8: e3003000 movw r3, #0 | 8: e3c1c003 bic ip, r1, #3
c: e3403000 movt r3, #0 | c: e6ff2072 uxth r2, r2
10: e92d4010 push {r4, lr} | 10: e3a03000 mov r3, #0
14: e6ff2072 uxth r2, r2 | 14: e59cc000 ldr ip, [ip]
18: e3c14003 bic r4, r1, #3 | 18: e080000c add r0, r0, ip
1c: e593e000 ldr lr, [r3] |
20: e3a03000 mov r3, #0 | 1c: e1c020b0 strh r2, [r0]
| 20: e2833001 add r3, r3, #1
24: e79ec004 ldr ip, [lr, r4] | 24: e1530001 cmp r3, r1
28: e080c00c add ip, r0, ip | 28: 1afffffb bne 1c
2c: e1cc20b0 strh r2, [ip] | 2c: e12fff1e bx lr
30: e2833001 add r3, r3, #1 |
34: e1530001 cmp r3, r1 |
38: 1afffff9 bne 24 |
|
3c: e8bd8010 pop {r4, pc} |
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2015-04-13 14:18:50 +01:00
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
|
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ARM: 8341/1: io: Unpessimize relaxed io accessors
commit 195bbcac2e5c12f7fb ("ARM: 7500/1: io: avoid writeback addressing
modes for __raw_ accessors") disables writeback addressing modes for
raw i/o. However, the "+Q" output constraint forces the compiler to
disable load hoist optimizations (because the output constraint informs the
compiler of memory stores which the compiler assumes may alias other memory).
Since the relaxed accessors only guarantee ordering wrt i/o accesses to the
same device and not to main memory, there's never a possibility of an accessor
invalidating a hoisted load (because only non-i/o loads would have been hoisted).
The effect is especially noticable with complex address inputs in loops.
For example, the following code:
#include <linux/kernel.h>
#include <linux/io.h>
static const int *remap;
void wr_loop(void __iomem *base, int c, int val)
{
int i;
for (i = 0; i < c; i++)
writew_relaxed(val, base + remap[c >> 2]);
}
generates
current master | this patch
0: e3510000 cmp r1, #0 | 0: e3510000 cmp r1, #0
4: d12fff1e bxle lr | 4: d12fff1e bxle lr
8: e3003000 movw r3, #0 | 8: e3c1c003 bic ip, r1, #3
c: e3403000 movt r3, #0 | c: e6ff2072 uxth r2, r2
10: e92d4010 push {r4, lr} | 10: e3a03000 mov r3, #0
14: e6ff2072 uxth r2, r2 | 14: e59cc000 ldr ip, [ip]
18: e3c14003 bic r4, r1, #3 | 18: e080000c add r0, r0, ip
1c: e593e000 ldr lr, [r3] |
20: e3a03000 mov r3, #0 | 1c: e1c020b0 strh r2, [r0]
| 20: e2833001 add r3, r3, #1
24: e79ec004 ldr ip, [lr, r4] | 24: e1530001 cmp r3, r1
28: e080c00c add ip, r0, ip | 28: 1afffffb bne 1c
2c: e1cc20b0 strh r2, [ip] | 2c: e12fff1e bx lr
30: e2833001 add r3, r3, #1 |
34: e1530001 cmp r3, r1 |
38: 1afffff9 bne 24 |
|
3c: e8bd8010 pop {r4, pc} |
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2015-04-13 14:18:50 +01:00
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
|
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ARM: 8341/1: io: Unpessimize relaxed io accessors
commit 195bbcac2e5c12f7fb ("ARM: 7500/1: io: avoid writeback addressing
modes for __raw_ accessors") disables writeback addressing modes for
raw i/o. However, the "+Q" output constraint forces the compiler to
disable load hoist optimizations (because the output constraint informs the
compiler of memory stores which the compiler assumes may alias other memory).
Since the relaxed accessors only guarantee ordering wrt i/o accesses to the
same device and not to main memory, there's never a possibility of an accessor
invalidating a hoisted load (because only non-i/o loads would have been hoisted).
The effect is especially noticable with complex address inputs in loops.
For example, the following code:
#include <linux/kernel.h>
#include <linux/io.h>
static const int *remap;
void wr_loop(void __iomem *base, int c, int val)
{
int i;
for (i = 0; i < c; i++)
writew_relaxed(val, base + remap[c >> 2]);
}
generates
current master | this patch
0: e3510000 cmp r1, #0 | 0: e3510000 cmp r1, #0
4: d12fff1e bxle lr | 4: d12fff1e bxle lr
8: e3003000 movw r3, #0 | 8: e3c1c003 bic ip, r1, #3
c: e3403000 movt r3, #0 | c: e6ff2072 uxth r2, r2
10: e92d4010 push {r4, lr} | 10: e3a03000 mov r3, #0
14: e6ff2072 uxth r2, r2 | 14: e59cc000 ldr ip, [ip]
18: e3c14003 bic r4, r1, #3 | 18: e080000c add r0, r0, ip
1c: e593e000 ldr lr, [r3] |
20: e3a03000 mov r3, #0 | 1c: e1c020b0 strh r2, [r0]
| 20: e2833001 add r3, r3, #1
24: e79ec004 ldr ip, [lr, r4] | 24: e1530001 cmp r3, r1
28: e080c00c add ip, r0, ip | 28: 1afffffb bne 1c
2c: e1cc20b0 strh r2, [ip] | 2c: e12fff1e bx lr
30: e2833001 add r3, r3, #1 |
34: e1530001 cmp r3, r1 |
38: 1afffff9 bne 24 |
|
3c: e8bd8010 pop {r4, pc} |
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2015-04-13 14:18:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ARM: 8341/1: io: Unpessimize relaxed io accessors
commit 195bbcac2e5c12f7fb ("ARM: 7500/1: io: avoid writeback addressing
modes for __raw_ accessors") disables writeback addressing modes for
raw i/o. However, the "+Q" output constraint forces the compiler to
disable load hoist optimizations (because the output constraint informs the
compiler of memory stores which the compiler assumes may alias other memory).
Since the relaxed accessors only guarantee ordering wrt i/o accesses to the
same device and not to main memory, there's never a possibility of an accessor
invalidating a hoisted load (because only non-i/o loads would have been hoisted).
The effect is especially noticable with complex address inputs in loops.
For example, the following code:
#include <linux/kernel.h>
#include <linux/io.h>
static const int *remap;
void wr_loop(void __iomem *base, int c, int val)
{
int i;
for (i = 0; i < c; i++)
writew_relaxed(val, base + remap[c >> 2]);
}
generates
current master | this patch
0: e3510000 cmp r1, #0 | 0: e3510000 cmp r1, #0
4: d12fff1e bxle lr | 4: d12fff1e bxle lr
8: e3003000 movw r3, #0 | 8: e3c1c003 bic ip, r1, #3
c: e3403000 movt r3, #0 | c: e6ff2072 uxth r2, r2
10: e92d4010 push {r4, lr} | 10: e3a03000 mov r3, #0
14: e6ff2072 uxth r2, r2 | 14: e59cc000 ldr ip, [ip]
18: e3c14003 bic r4, r1, #3 | 18: e080000c add r0, r0, ip
1c: e593e000 ldr lr, [r3] |
20: e3a03000 mov r3, #0 | 1c: e1c020b0 strh r2, [r0]
| 20: e2833001 add r3, r3, #1
24: e79ec004 ldr ip, [lr, r4] | 24: e1530001 cmp r3, r1
28: e080c00c add ip, r0, ip | 28: 1afffffb bne 1c
2c: e1cc20b0 strh r2, [ip] | 2c: e12fff1e bx lr
30: e2833001 add r3, r3, #1 |
34: e1530001 cmp r3, r1 |
38: 1afffff9 bne 24 |
|
3c: e8bd8010 pop {r4, pc} |
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2015-04-13 14:18:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-24 15:18:45 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2005-11-17 16:48:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-05-05 20:59:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-07 12:42:51 +01:00
|
|
|
|
2007-05-05 20:59:27 +01:00
|
|
|
|
2008-09-07 12:42:51 +01:00
|
|
|
|
2007-05-05 20:59:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-18 11:10:03 +00:00
|
|
|
|
|
|
|
|
|
2007-05-05 20:59:27 +01:00
|
|
|
|
2013-05-16 19:40:22 +01:00
|
|
|
|
2009-12-18 11:10:03 +00:00
|
|
|
|
|
|
|
|
|
2013-05-16 19:40:22 +01:00
|
|
|
|
2021-09-21 12:57:22 +01:00
|
|
|
|
2012-02-10 17:05:13 -06:00
|
|
|
|
2013-05-16 19:40:22 +01:00
|
|
|
|
2012-02-10 17:05:13 -06:00
|
|
|
|
2005-11-17 16:48:00 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-30 11:45:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-10 10:30:31 -06:00
|
|
|
|
|
|
|
|
|
2011-01-30 11:29:40 +00:00
|
|
|
|
|
|
|
|
|
2012-03-28 18:30:01 +01:00
|
|
|
|
2011-01-30 11:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-29 18:10:58 -06:00
|
|
|
|
|
|
|
|
|
2014-09-29 15:29:22 +01:00
|
|
|
|
2012-02-29 18:10:58 -06:00
|
|
|
|
ARM: pxa/sa1100: move I/O space to PCI_IOBASE
PXA and StrongARM1100 traditionally map their I/O space 1:1 into virtual
memory, using a per-bus io_offset that matches the base address of the
ioremap mapping.
In order for PXA to work in a multiplatform config, this needs to
change so I/O space starts at PCI_IOBASE (0xfee00000). Since the pcmcia
soc_common support is shared with StrongARM1100, both have to change at
the same time. The affected machines are:
- Anything with a PCMCIA slot now uses pci_remap_iospace, which
is made available to PCMCIA configurations as well, rather than
just PCI. The first PCMCIA slot now starts at port number 0x10000.
- The Zeus and Viper platforms have PC/104-style ISA buses,
which have a static mapping for both I/O and memory space at
0xf1000000, which can no longer work. It does not appear to have
any in-tree users, so moving it to port number 0 makes them
behave like a traditional PC.
- SA1100 does support ISA slots in theory, but all machines that
originally enabled this appear to have been removed from the tree
ages ago, and the I/O space is never mapped anywhere.
- The Nanoengine machine has support for PCI slots, but looks
like this never included I/O space, the resources only define the
location for memory and config space.
With this, the definitions of __io() and IO_SPACE_LIMIT can be simplified,
as the only remaining cases are the generic PCI_IOBASE and the custom
inb()/outb() macros on RiscPC. S3C24xx still has a custom inb()/outb()
in this here, but this is already removed in another branch.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-04-24 14:36:35 +02:00
|
|
|
|
2014-05-19 11:04:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-24 16:41:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-19 17:48:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-04 22:03:33 -06:00
|
|
|
|
2008-08-05 16:14:15 +01:00
|
|
|
|
2012-03-04 22:03:33 -06:00
|
|
|
|
ARM: pxa/sa1100: move I/O space to PCI_IOBASE
PXA and StrongARM1100 traditionally map their I/O space 1:1 into virtual
memory, using a per-bus io_offset that matches the base address of the
ioremap mapping.
In order for PXA to work in a multiplatform config, this needs to
change so I/O space starts at PCI_IOBASE (0xfee00000). Since the pcmcia
soc_common support is shared with StrongARM1100, both have to change at
the same time. The affected machines are:
- Anything with a PCMCIA slot now uses pci_remap_iospace, which
is made available to PCMCIA configurations as well, rather than
just PCI. The first PCMCIA slot now starts at port number 0x10000.
- The Zeus and Viper platforms have PC/104-style ISA buses,
which have a static mapping for both I/O and memory space at
0xf1000000, which can no longer work. It does not appear to have
any in-tree users, so moving it to port number 0 makes them
behave like a traditional PC.
- SA1100 does support ISA slots in theory, but all machines that
originally enabled this appear to have been removed from the tree
ages ago, and the I/O space is never mapped anywhere.
- The Nanoengine machine has support for PCI slots, but looks
like this never included I/O space, the resources only define the
location for memory and config space.
With this, the definitions of __io() and IO_SPACE_LIMIT can be simplified,
as the only remaining cases are the generic PCI_IOBASE and the custom
inb()/outb() macros on RiscPC. S3C24xx still has a custom inb()/outb()
in this here, but this is already removed in another branch.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-04-24 14:36:35 +02:00
|
|
|
|
|
|
|
|
|
2011-07-06 12:49:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ARM: pxa/sa1100: move I/O space to PCI_IOBASE
PXA and StrongARM1100 traditionally map their I/O space 1:1 into virtual
memory, using a per-bus io_offset that matches the base address of the
ioremap mapping.
In order for PXA to work in a multiplatform config, this needs to
change so I/O space starts at PCI_IOBASE (0xfee00000). Since the pcmcia
soc_common support is shared with StrongARM1100, both have to change at
the same time. The affected machines are:
- Anything with a PCMCIA slot now uses pci_remap_iospace, which
is made available to PCMCIA configurations as well, rather than
just PCI. The first PCMCIA slot now starts at port number 0x10000.
- The Zeus and Viper platforms have PC/104-style ISA buses,
which have a static mapping for both I/O and memory space at
0xf1000000, which can no longer work. It does not appear to have
any in-tree users, so moving it to port number 0 makes them
behave like a traditional PC.
- SA1100 does support ISA slots in theory, but all machines that
originally enabled this appear to have been removed from the tree
ages ago, and the I/O space is never mapped anywhere.
- The Nanoengine machine has support for PCI slots, but looks
like this never included I/O space, the resources only define the
location for memory and config space.
With this, the definitions of __io() and IO_SPACE_LIMIT can be simplified,
as the only remaining cases are the generic PCI_IOBASE and the custom
inb()/outb() macros on RiscPC. S3C24xx still has a custom inb()/outb()
in this here, but this is already removed in another branch.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-04-24 14:36:35 +02:00
|
|
|
|
2011-07-06 12:49:59 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-06-27 14:23:38 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-30 11:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2011-01-30 11:29:40 +00:00
|
|
|
|
2005-04-29 22:08:34 +01:00
|
|
|
|
2011-01-30 11:29:40 +00:00
|
|
|
|
2005-04-29 22:08:34 +01:00
|
|
|
|
2011-01-30 11:29:40 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-09-24 10:42:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-31 14:18:19 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2012-02-10 20:04:56 -06:00
|
|
|
|
|
|
|
|
|
2011-10-04 03:44:07 +01:00
|
|
|
|
2012-02-10 20:04:56 -06:00
|
|
|
|
2011-10-04 03:44:07 +01:00
|
|
|
|
2012-02-10 20:04:56 -06:00
|
|
|
|
2010-07-28 22:00:54 +01:00
|
|
|
|
2012-05-25 08:39:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-07-28 22:00:54 +01:00
|
|
|
|
2010-07-29 11:38:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-10 20:04:56 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-02-10 20:04:56 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-05-07 14:22:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-03 15:22:54 +01:00
|
|
|
|
|
|
|
|
|
2015-05-07 14:22:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-03 15:22:54 +01:00
|
|
|
|
|
|
|
|
|
2015-05-07 14:22:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-03 15:22:54 +01:00
|
|
|
|
|
|
|
|
|
2015-05-07 14:22:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-10 20:04:56 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-05-07 14:22:40 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-02-10 20:04:56 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2015-07-01 10:02:39 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-07-01 10:02:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-01-09 19:23:11 +00:00
|
|
|
|
2015-07-01 10:02:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-07-01 10:06:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-02-22 15:02:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-01 10:06:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-07 20:50:22 +08:00
|
|
|
|
2015-07-01 10:06:32 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2025-02-17 18:38:20 +02:00
|
|
|
|
2016-02-22 15:02:08 +01:00
|
|
|
|
|
|
|
|
|
2005-06-20 18:44:37 +01:00
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
2005-06-20 18:44:37 +01:00
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
|
|
|
|
|
2005-06-20 18:44:37 +01:00
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
|
|
|
|
|
2005-06-20 18:44:37 +01:00
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
|
|
|
|
|
2005-06-20 18:44:37 +01:00
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-06-20 18:44:37 +01:00
|
|
|
|
2005-06-24 23:11:31 +01:00
|
|
|
|
2005-06-20 18:44:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
2005-06-20 18:44:37 +01:00
|
|
|
|
|
|
|
|
|
2014-07-28 16:34:18 +02:00
|
|
|
|
|
|
|
|
|
2007-05-17 06:22:41 +01:00
|
|
|
|
2006-09-16 10:50:22 +01:00
|
|
|
|
2012-09-12 14:05:58 -04:00
|
|
|
|
2006-09-16 10:50:22 +01:00
|
|
|
|
2022-05-09 17:34:28 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-05-17 06:22:41 +01:00
|
|
|
|
2006-09-16 10:50:22 +01:00
|
|
|
|
2006-08-28 12:45:16 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|