2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-22 18:24:23 -04:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files. percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.
percpu.h -> slab.h dependency is about to be removed. Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability. As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.
http://userweb.kernel.org/~tj/misc/slabh-sweep.py
The script does the followings.
* Scan files for gfp and slab usages and update includes such that
only the necessary includes are there. ie. if only gfp is used,
gfp.h, if slab is used, slab.h.
* When the script inserts a new include, it looks at the include
blocks and try to put the new include such that its order conforms
to its surrounding. It's put in the include block which contains
core kernel includes, in the same order that the rest are ordered -
alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
doesn't seem to be any matching order.
* If the script can't find a place to put a new include (mostly
because the file doesn't have fitting include block), it prints out
an error message indicating which .h file needs to be added to the
file.
The conversion was done in the following steps.
1. The initial automatic conversion of all .c files updated slightly
over 4000 files, deleting around 700 includes and adding ~480 gfp.h
and ~3000 slab.h inclusions. The script emitted errors for ~400
files.
2. Each error was manually checked. Some didn't need the inclusion,
some needed manual addition while adding it to implementation .h or
embedding .c file was more appropriate for others. This step added
inclusions to around 150 files.
3. The script was run again and the output was compared to the edits
from #2 to make sure no file was left behind.
4. Several build tests were done and a couple of problems were fixed.
e.g. lib/decompress_*.c used malloc/free() wrappers around slab
APIs requiring slab.h to be added manually.
5. The script was run on all .h files but without automatically
editing them as sprinkling gfp.h and slab.h inclusions around .h
files could easily lead to inclusion dependency hell. Most gfp.h
inclusion directives were ignored as stuff from gfp.h was usually
wildly available and often used in preprocessor macros. Each
slab.h inclusion directive was examined and added manually as
necessary.
6. percpu.h was updated not to include slab.h.
7. Build test were done on the following configurations and failures
were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
distributed build env didn't work with gcov compiles) and a few
more options had to be turned off depending on archs to make things
build (like ipr on powerpc/64 which failed due to missing writeq).
* x86 and x86_64 UP and SMP allmodconfig and a custom test config.
* powerpc and powerpc64 SMP allmodconfig
* sparc and sparc64 SMP allmodconfig
* ia64 SMP allmodconfig
* s390 SMP allmodconfig
* alpha SMP allmodconfig
* um on x86_64 SMP allmodconfig
8. percpu.h modifications were reverted so that it could be applied as
a separate patch and serve as bisection point.
Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.
Signed-off-by: Tejun Heo <tj@kernel.org>
Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
2010-03-24 17:04:11 +09:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-05-08 19:25:00 +10:00
|
|
|
|
2010-07-12 14:36:09 +10:00
|
|
|
|
2009-10-26 19:24:31 +00:00
|
|
|
|
2011-11-02 14:56:12 +00:00
|
|
|
|
2014-10-14 22:17:47 +11:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2008-07-01 11:30:06 +10:00
|
|
|
|
2005-10-10 21:58:35 +10:00
|
|
|
|
2008-04-23 23:05:20 +10:00
|
|
|
|
2010-03-16 13:16:25 +00:00
|
|
|
|
2011-12-02 12:26:23 +00:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2012-08-21 01:42:33 +00:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2008-04-23 23:05:20 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-03-10 03:22:39 +00:00
|
|
|
|
|
|
|
|
|
2008-04-23 23:05:20 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-15 10:43:35 +00:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
2008-09-15 10:43:35 +00:00
|
|
|
|
2010-08-04 13:43:53 +10:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
2010-08-04 13:43:53 +10:00
|
|
|
|
|
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-10-28 17:46:18 -07:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-10-28 17:46:18 -07:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
2005-10-28 17:46:18 -07:00
|
|
|
|
2008-12-18 19:13:51 +00:00
|
|
|
|
|
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-10-31 13:37:12 +11:00
|
|
|
|
|
|
|
|
|
2006-06-27 02:53:30 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-29 03:10:50 +11:00
|
|
|
|
2005-10-31 13:37:12 +11:00
|
|
|
|
2005-12-05 12:06:42 -08:00
|
|
|
|
2005-10-31 13:37:12 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-12-05 12:06:42 -08:00
|
|
|
|
|
|
|
|
|
2006-03-21 23:00:05 -08:00
|
|
|
|
2011-08-10 20:44:24 +00:00
|
|
|
|
|
|
|
|
|
2005-11-07 16:25:48 -08:00
|
|
|
|
2005-10-31 13:37:12 +11:00
|
|
|
|
2014-08-06 16:07:45 -07:00
|
|
|
|
|
|
|
|
|
2005-10-31 13:37:12 +11:00
|
|
|
|
2009-01-06 14:39:14 -08:00
|
|
|
|
2005-10-31 13:37:12 +11:00
|
|
|
|
2013-02-22 16:32:58 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-27 10:54:06 -06:00
|
|
|
|
2013-02-22 16:32:58 -08:00
|
|
|
|
|
|
|
|
|
2014-01-27 10:54:06 -06:00
|
|
|
|
2014-10-14 22:17:47 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-27 10:54:06 -06:00
|
|
|
|
|
|
|
|
|
2013-02-22 16:32:58 -08:00
|
|
|
|
|
|
|
|
|
2008-06-04 08:30:54 +10:00
|
|
|
|
2008-02-05 00:10:18 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-18 13:33:53 -07:00
|
|
|
|
2010-07-12 14:36:09 +10:00
|
|
|
|
2008-04-18 13:33:53 -07:00
|
|
|
|
2008-02-05 00:10:18 -08:00
|
|
|
|
|
|
|
|
|
2009-09-22 16:45:46 -07:00
|
|
|
|
|
|
|
|
|
2008-02-05 00:10:18 -08:00
|
|
|
|
2010-08-04 13:43:53 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-18 13:33:53 -07:00
|
|
|
|
|
|
|
|
|
2010-08-04 13:43:53 +10:00
|
|
|
|
2010-10-12 14:07:09 -07:00
|
|
|
|
|
|
|
|
|
2010-08-04 13:43:53 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-18 13:33:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-05 00:10:18 -08:00
|
|
|
|
2009-09-22 16:45:46 -07:00
|
|
|
|
2008-02-05 00:10:18 -08:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2014-09-17 22:15:33 +10:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2010-07-12 14:36:09 +10:00
|
|
|
|
2014-09-17 22:15:33 +10:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2008-04-16 05:52:22 +10:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
|
|
|
|
|
2013-01-09 12:40:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-21 15:49:26 -08:00
|
|
|
|
2006-09-27 01:49:49 -07:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2006-09-27 01:49:49 -07:00
|
|
|
|
2014-09-17 22:15:36 +10:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
|
|
|
|
|
2007-05-08 19:25:00 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-08-04 13:43:53 +10:00
|
|
|
|
2007-05-08 19:25:00 +10:00
|
|
|
|
2010-08-04 13:43:53 +10:00
|
|
|
|
|
|
|
|
|
2010-10-12 14:07:09 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-08-04 13:43:53 +10:00
|
|
|
|
2007-05-08 19:25:00 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-18 14:05:02 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-05-08 19:25:00 +10:00
|
|
|
|
2014-08-08 18:40:42 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-05-08 19:25:00 +10:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-04 18:44:19 +00:00
|
|
|
|
2010-07-12 14:36:09 +10:00
|
|
|
|
2014-08-08 18:40:42 -05:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2008-04-23 23:05:20 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
|
|
|
|
|
2008-04-23 23:05:20 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-04 18:44:19 +00:00
|
|
|
|
2008-07-31 13:51:42 +10:00
|
|
|
|
2006-04-12 15:25:01 -05:00
|
|
|
|
2008-07-10 01:09:23 +10:00
|
|
|
|
2014-08-08 18:40:42 -05:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2014-08-08 18:40:42 -05:00
|
|
|
|
|
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2014-08-08 18:40:42 -05:00
|
|
|
|
2006-09-27 01:49:49 -07:00
|
|
|
|
2014-08-08 18:40:42 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-27 01:49:49 -07:00
|
|
|
|
2007-05-08 19:25:00 +10:00
|
|
|
|
|
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-11 19:22:38 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-03-16 13:16:25 +00:00
|
|
|
|
2012-08-03 18:14:10 +08:00
|
|
|
|
2010-03-16 13:16:25 +00:00
|
|
|
|
|
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2013-07-03 15:04:32 -07:00
|
|
|
|
2013-07-03 15:03:24 -07:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-16 05:52:22 +10:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2011-06-28 09:54:46 +00:00
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
2013-07-03 15:04:09 -07:00
|
|
|
|
|
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-28 14:54:47 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-03 15:04:09 -07:00
|
|
|
|
2009-05-27 13:44:50 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-05-27 13:50:33 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-05-27 13:44:50 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-10-06 12:23:33 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-18 07:36:39 +00:00
|
|
|
|
|
|
|
|
|
2011-06-18 07:36:40 +00:00
|
|
|
|
2013-04-29 15:06:47 -07:00
|
|
|
|
2011-06-18 07:36:39 +00:00
|
|
|
|
|
|
|
|
|
powerpc: Force page alignment for initrd reserved memory
When using 64K pages with a separate cpio rootfs, U-Boot will align
the rootfs on a 4K page boundary. When the memory is reserved, and
subsequent early memblock_alloc is called, it will allocate memory
between the 64K page alignment and reserved memory. When the reserved
memory is subsequently freed, it is done so by pages, causing the
early memblock_alloc requests to be re-used, which in my case, caused
the device-tree to be clobbered.
This patch forces the reserved memory for initrd to be kernel page
aligned, and will move the device tree if it overlaps with the range
extension of initrd. This patch will also consolidate the identical
function free_initrd_mem() from mm/init_32.c, init_64.c to mm/mem.c,
and adds the same range extension when freeing initrd. free_initrd_mem()
is also moved to the __init section.
Many thanks to Milton Miller for his input on this patch.
[BenH: Fixed build without CONFIG_BLK_DEV_INITRD]
Signed-off-by: Dave Carroll <dcarroll@astekcorp.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2011-06-09 16:52:38 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-03 15:02:51 -07:00
|
|
|
|
powerpc: Force page alignment for initrd reserved memory
When using 64K pages with a separate cpio rootfs, U-Boot will align
the rootfs on a 4K page boundary. When the memory is reserved, and
subsequent early memblock_alloc is called, it will allocate memory
between the 64K page alignment and reserved memory. When the reserved
memory is subsequently freed, it is done so by pages, causing the
early memblock_alloc requests to be re-used, which in my case, caused
the device-tree to be clobbered.
This patch forces the reserved memory for initrd to be kernel page
aligned, and will move the device tree if it overlaps with the range
extension of initrd. This patch will also consolidate the identical
function free_initrd_mem() from mm/init_32.c, init_64.c to mm/mem.c,
and adds the same range extension when freeing initrd. free_initrd_mem()
is also moved to the __init section.
Many thanks to Milton Miller for his input on this patch.
[BenH: Fixed build without CONFIG_BLK_DEV_INITRD]
Signed-off-by: Dave Carroll <dcarroll@astekcorp.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2011-06-09 16:52:38 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-10-26 19:24:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
2009-10-26 19:24:31 +00:00
|
|
|
|
2011-11-25 23:14:16 +08:00
|
|
|
|
2009-10-26 19:24:31 +00:00
|
|
|
|
2011-11-25 23:14:16 +08:00
|
|
|
|
2009-10-26 19:24:31 +00:00
|
|
|
|
2005-10-10 21:58:35 +10:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-03 13:56:33 +02:00
|
|
|
|
2009-10-26 19:24:31 +00:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-30 22:57:33 -03:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-02-06 13:24:53 +11:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-02-06 13:24:53 +11:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-11-23 13:37:39 -08:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
MM: Pass a PTE pointer to update_mmu_cache() rather than the PTE itself
On VIVT ARM, when we have multiple shared mappings of the same file
in the same MM, we need to ensure that we have coherency across all
copies. We do this via make_coherent() by making the pages
uncacheable.
This used to work fine, until we allowed highmem with highpte - we
now have a page table which is mapped as required, and is not available
for modification via update_mmu_cache().
Ralf Beache suggested getting rid of the PTE value passed to
update_mmu_cache():
On MIPS update_mmu_cache() calls __update_tlb() which walks pagetables
to construct a pointer to the pte again. Passing a pte_t * is much
more elegant. Maybe we might even replace the pte argument with the
pte_t?
Ben Herrenschmidt would also like the pte pointer for PowerPC:
Passing the ptep in there is exactly what I want. I want that
-instead- of the PTE value, because I have issue on some ppc cases,
for I$/D$ coherency, where set_pte_at() may decide to mask out the
_PAGE_EXEC.
So, pass in the mapped page table pointer into update_mmu_cache(), and
remove the PTE value, updating all implementations and call sites to
suit.
Includes a fix from Stephen Rothwell:
sparc: fix fallout from update_mmu_cache API change
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2009-12-18 16:40:18 +00:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
2005-11-07 11:06:55 +11:00
|
|
|
|
2013-06-20 14:30:22 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-11-07 11:06:55 +11:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
|
|
|
|
|
MM: Pass a PTE pointer to update_mmu_cache() rather than the PTE itself
On VIVT ARM, when we have multiple shared mappings of the same file
in the same MM, we need to ensure that we have coherency across all
copies. We do this via make_coherent() by making the pages
uncacheable.
This used to work fine, until we allowed highmem with highpte - we
now have a page table which is mapped as required, and is not available
for modification via update_mmu_cache().
Ralf Beache suggested getting rid of the PTE value passed to
update_mmu_cache():
On MIPS update_mmu_cache() calls __update_tlb() which walks pagetables
to construct a pointer to the pte again. Passing a pte_t * is much
more elegant. Maybe we might even replace the pte argument with the
pte_t?
Ben Herrenschmidt would also like the pte pointer for PowerPC:
Passing the ptep in there is exactly what I want. I want that
-instead- of the PTE value, because I have issue on some ppc cases,
for I$/D$ coherency, where set_pte_at() may decide to mask out the
_PAGE_EXEC.
So, pass in the mapped page table pointer into update_mmu_cache(), and
remove the PTE value, updating all implementations and call sites to
suit.
Includes a fix from Stephen Rothwell:
sparc: fix fallout from update_mmu_cache API change
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2009-12-18 16:40:18 +00:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
2005-11-07 11:06:55 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
2005-11-07 11:06:55 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
2005-11-07 11:06:55 +11:00
|
|
|
|
|
|
|
|
|
2011-06-28 09:54:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 14:43:33 +00:00
|
|
|
|
2011-06-28 09:54:48 +00:00
|
|
|
|
2005-09-26 16:04:21 +10:00
|
|
|
|
2011-11-02 14:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-15 11:39:36 +02:00
|
|
|
|
2011-11-02 14:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-08-19 21:52:20 -05:00
|
|
|
|
2011-11-02 14:56:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-30 09:19:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-02 12:26:23 +00:00
|
|
|
|
|
|
|
|
|
2011-08-30 09:19:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|