2019-05-19 13:08:55 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-23 13:03:14 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-09-06 12:10:45 +01:00
|
|
|
|
2012-06-24 12:46:26 +01:00
|
|
|
|
2021-07-05 08:43:10 +03:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-03-28 18:30:01 +01:00
|
|
|
|
2008-08-10 18:08:10 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-09-01 08:59:28 +02:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-09-21 12:57:22 +01:00
|
|
|
|
2012-03-28 18:30:01 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
2012-02-29 18:10:58 -06:00
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
|
|
|
|
|
ARM: 7645/1: ioremap: introduce an infrastructure for static mapped area
In current implementation, we used ARM-specific flag, that is,
VM_ARM_STATIC_MAPPING, for distinguishing ARM specific static mapped area.
The purpose of static mapped area is to re-use static mapped area when
entire physical address range of the ioremap request can be covered
by this area.
This implementation causes needless overhead for some cases.
For example, assume that there is only one static mapped area and
vmlist has 300 areas. Every time we call ioremap, we check 300 areas for
deciding whether it is matched or not. Moreover, even if there is
no static mapped area and vmlist has 300 areas, every time we call
ioremap, we check 300 areas in now.
If we construct a extra list for static mapped area, we can eliminate
above mentioned overhead.
With a extra list, if there is one static mapped area,
we just check only one area and proceed next operation quickly.
In fact, it is not a critical problem, because ioremap is not frequently
used. But reducing overhead is better idea.
Another reason for doing this work is for removing architecture dependency
on vmalloc layer. I think that vmlist and vmlist_lock is internal data
structure for vmalloc layer. Some codes for debugging and stat inevitably
use vmlist and vmlist_lock. But it is preferable that they are used
as least as possible in outside of vmalloc.c
Now, I introduce an ARM-specific infrastructure for static mapped area. In
the following patch, we will use this and resolve above mentioned problem.
Reviewed-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2013-02-09 06:28:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-28 21:32:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-08 09:12:54 -08:00
|
|
|
|
|
|
|
|
|
2009-01-28 21:32:08 +02:00
|
|
|
|
|
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
2024-10-23 13:03:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-25 03:24:32 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
2022-01-10 09:54:22 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
2024-10-23 13:05:34 +01:00
|
|
|
|
2024-10-23 13:03:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-10 09:54:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
2011-11-22 17:30:29 +00:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-18 11:10:03 +00:00
|
|
|
|
|
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-25 17:36:34 +00:00
|
|
|
|
2020-06-08 21:33:05 -07:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
2011-11-22 17:30:27 +00:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-11-25 03:24:32 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-10 09:54:22 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-04 22:29:14 -08:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
2011-11-22 17:30:27 +00:00
|
|
|
|
|
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-10 09:54:22 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
2020-06-08 21:33:05 -07:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-22 17:30:27 +00:00
|
|
|
|
|
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-07-01 19:58:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
2006-07-01 19:58:20 +01:00
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
2020-06-08 21:33:05 -07:00
|
|
|
|
2006-07-01 19:58:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
|
|
|
|
|
2006-07-01 19:58:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-22 17:30:27 +00:00
|
|
|
|
|
|
|
|
|
2006-07-01 19:58:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
2015-07-01 10:06:32 +01:00
|
|
|
|
2009-12-18 11:10:03 +00:00
|
|
|
|
2006-01-09 19:23:11 +00:00
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
2006-01-09 19:23:11 +00:00
|
|
|
|
2013-02-09 06:28:06 +01:00
|
|
|
|
|
|
|
|
|
2006-07-01 19:58:20 +01:00
|
|
|
|
2011-11-22 17:30:29 +00:00
|
|
|
|
2006-07-01 19:58:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-09 06:28:06 +01:00
|
|
|
|
2006-07-01 19:58:20 +01:00
|
|
|
|
2011-11-22 17:30:29 +00:00
|
|
|
|
2006-01-09 19:23:11 +00:00
|
|
|
|
2007-05-05 20:59:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
2007-06-03 19:26:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-12-17 23:29:57 +00:00
|
|
|
|
2011-09-16 01:14:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-09 06:28:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-16 01:14:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-02-22 15:02:08 +01:00
|
|
|
|
|
|
|
|
|
2011-09-16 01:14:23 -04:00
|
|
|
|
2021-07-05 08:43:10 +03:00
|
|
|
|
|
|
|
|
|
2011-09-16 01:14:23 -04:00
|
|
|
|
|
|
|
|
|
2009-12-18 11:10:03 +00:00
|
|
|
|
2006-01-09 19:23:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-09 06:28:06 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
2011-11-22 17:30:29 +00:00
|
|
|
|
2007-01-25 14:16:47 +01:00
|
|
|
|
|
|
|
|
|
2007-04-21 10:16:48 +01:00
|
|
|
|
2013-02-09 06:28:06 +01:00
|
|
|
|
2006-07-01 19:58:20 +01:00
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
2013-02-09 06:28:06 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
2007-04-21 10:47:29 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
2013-02-09 06:28:06 +01:00
|
|
|
|
2010-07-26 10:29:13 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
2006-05-16 11:30:26 +01:00
|
|
|
|
2006-01-09 19:23:11 +00:00
|
|
|
|
|
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-01-09 19:23:11 +00:00
|
|
|
|
|
|
|
|
|
2013-05-16 19:40:22 +01:00
|
|
|
|
2009-12-18 11:10:03 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-05-16 19:40:22 +01:00
|
|
|
|
2006-01-09 19:23:11 +00:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-01-09 19:23:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-18 11:10:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-01 10:06:32 +01:00
|
|
|
|
2009-12-18 11:10:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-16 19:40:22 +01:00
|
|
|
|
2012-02-10 17:05:13 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-01 10:06:32 +01:00
|
|
|
|
2009-12-18 11:10:03 +00:00
|
|
|
|
2015-07-01 10:06:32 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-07-01 10:06:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2011-10-12 01:02:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-05-16 19:40:22 +01:00
|
|
|
|
2011-10-12 01:02:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-24 10:26:40 +01:00
|
|
|
|
2011-10-12 01:02:50 +01:00
|
|
|
|
2013-10-24 10:26:40 +01:00
|
|
|
|
2011-10-12 01:02:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-09-21 12:57:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-02-17 18:38:20 +02:00
|
|
|
|
2016-02-22 15:02:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-07 20:50:22 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-09-05 14:08:44 +01:00
|
|
|
|
2013-02-09 06:28:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
2011-12-08 18:02:04 +00:00
|
|
|
|
2013-02-09 06:28:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-09-16 01:14:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-09 06:28:06 +01:00
|
|
|
|
2011-09-16 01:14:23 -04:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
2013-02-09 06:28:06 +01:00
|
|
|
|
2006-06-29 20:17:15 +01:00
|
|
|
|
2009-01-25 17:36:34 +00:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-07-01 10:06:32 +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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-08 09:12:54 -08:00
|
|
|
|
|
|
|
|
|
2021-11-24 16:41:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-19 17:48:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-29 18:10:58 -06:00
|
|
|
|
2015-09-01 08:59:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-09 17:34:28 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-04-16 14:50:06 +01:00
|
|
|
|
2022-05-09 17:34:28 -07:00
|
|
|
|