linux.kernel - 26 new messages in 14 topics - digest
linux.kernel
http://groups.google.com/group/linux.kernel?hl=en
linux.kernel@googlegroups.com
Today's topics:
* WARNING: CPU: 0 PID: 0 at mm/memblock.c:789 __next_free_mem_range+0x82/0x261(
) - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/2fa5df8602fb9989?hl=en
* generic early_ioremap support - 6 messages, 1 author
http://groups.google.com/group/linux.kernel/t/bd9128f4c741bea4?hl=en
* kexec: reuse 1st kernel as kexec/kdump kernel? - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/deb149363fcb0d3c?hl=en
* mm, hugetlb: unify region structure handling - 4 messages, 1 author
http://groups.google.com/group/linux.kernel/t/f8afcb1b09432d14?hl=en
* usb:hub set hub->change_bits when over-current happens - 2 messages, 2
authors
http://groups.google.com/group/linux.kernel/t/b3a0734ad6d093ce?hl=en
* thermal: introduce device tree parser - 2 messages, 1 author
http://groups.google.com/group/linux.kernel/t/96a58763966c5219?hl=en
* tools lib traceevent: Add state member to struct trace_seq - 1 messages, 1
author
http://groups.google.com/group/linux.kernel/t/5e7731ddbadeb13f?hl=en
* pci: APM X-Gene PCIe controller driver - 3 messages, 1 author
http://groups.google.com/group/linux.kernel/t/bb793bfb4a89dad9?hl=en
* mm: slub: fix ALLOC_SLOWPATH stat - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/ba7cff74381f9805?hl=en
* fs: xattr-based FS_IOC_[GS]ETFLAGS interface - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/d3dc0a8cffa4c086?hl=en
* futex: silence uninitialized warnings - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/af4a2848ad48ded5?hl=en
* kernel BUG at fs/bio.c:1748 - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/4792db59f9a4c799?hl=en
* usb/xhci: fix compilation warning when !CONFIG_PCI && !CONFIG_PM - 1
messages, 1 author
http://groups.google.com/group/linux.kernel/t/fc6bb29efe759f53?hl=en
* extcon: gpio: Add power resume support - 1 messages, 1 author
http://groups.google.com/group/linux.kernel/t/8d983cd30b8223bf?hl=en
==============================================================================
TOPIC: WARNING: CPU: 0 PID: 0 at mm/memblock.c:789 __next_free_mem_range+0x82/
0x261()
http://groups.google.com/group/linux.kernel/t/2fa5df8602fb9989?hl=en
==============================================================================
== 1 of 1 ==
Date: Mon, Jan 6 2014 6:30 pm
From: Fengguang Wu
Hi all,
Here is another call trace triggered by debug patch 68abcdf547
("mm/memblock: use WARN_ONCE when MAX_NUMNODES passed as input
parameter"):
[ 0.000000] found SMP MP-table at [mem 0x000fdab0-0x000fdabf] mapped at [c00fdab0]
[ 0.000000] mpc: fdac0-fdbe4
[ 0.000000] ------------[ cut here ]------------
[ 0.000000] WARNING: CPU: 0 PID: 0 at mm/memblock.c:789 __next_free_mem_range+0x82/0x261()
[ 0.000000] Usage of MAX_NUMNODES is deprecated. Use NUMA_NO_NODE instead
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.13.0-rc7-next-20140106-07462-gb4a839b #4
[ 0.000000] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 0.000000] c1b8fea0 c1b8fea0 c1b8fe60 c180425f c1b8fe90 c103af65 c1ab8db8 c1b8febc
[ 0.000000] 00000000 c1ab8d54 00000315 c1e51e3d c1e51e3d 00000000 00000001 00000001
[ 0.000000] c1b8fea8 c103afd3 00000009 c1b8fea0 c1ab8db8 c1b8febc c1b8ff08 c1e51e3d
[ 0.000000] Call Trace:
[ 0.000000] [<c180425f>] dump_stack+0x16/0x18
[ 0.000000] [<c103af65>] warn_slowpath_common+0x75/0x90
[ 0.000000] [<c1e51e3d>] ? __next_free_mem_range+0x82/0x261
[ 0.000000] [<c1e51e3d>] ? __next_free_mem_range+0x82/0x261
[ 0.000000] [<c103afd3>] warn_slowpath_fmt+0x33/0x40
[ 0.000000] [<c1e51e3d>] __next_free_mem_range+0x82/0x261
[ 0.000000] [<c1e023f5>] setup_bios_corruption_check+0x78/0x1ee
[ 0.000000] [<c1df7bad>] ? memblock_x86_fill+0x5f/0x74
[ 0.000000] [<c1df5792>] setup_arch+0x703/0xbef
[ 0.000000] [<c1df2771>] start_kernel+0x75/0x447
[ 0.000000] [<c1df23be>] ? reserve_ebda_region+0x63/0x68
[ 0.000000] [<c1df2358>] i386_start_kernel+0x12e/0x131
[ 0.000000] ---[ end trace ee1eeac2e47ba743 ]---
[ 0.000000] Scanning 1 areas for low memory corruption
Full dmesg and kconfig attached.
Thanks,
Fengguang
==============================================================================
TOPIC: generic early_ioremap support
http://groups.google.com/group/linux.kernel/t/bd9128f4c741bea4?hl=en
==============================================================================
== 1 of 6 ==
Date: Mon, Jan 6 2014 6:40 pm
From: Mark Salter
This patch series takes the common bits from the x86 early ioremap
implementation and creates a generic implementation which may be used
by other architectures. The early ioremap interfaces are intended for
situations where boot code needs to make temporary virtual mappings
before the normal ioremap interfaces are available. Typically, this
means before paging_init() has run.
These patches are layered on top of generic fixmap patches which
were discussed here (and are in the akpm tree):
http://lkml.org/lkml/2013/11/25/474
This is version 2 of the patch series. These patches (and underlying
fixmap patches) may be found at:
git://github.com/mosalter/linux.git (early-ioremap-v2 branch)
Changes from version 1:
* Moved the generic code into linux/mm instead of linux/lib
* Have early_memremap() return normal pointer instead of __iomem
This is in response to sparse warning cleanups being made in
an unrelated patch series:
https://lkml.org/lkml/2013/12/22/69
* Added arm64 patch to call init_mem_pgprot() earlier so that
the pgprot macros are valid in time for early_ioremap use
* Added validity checking for early_ioremap pgd, pud, and pmd
in arm64
Mark Salter (5):
mm: create generic early_ioremap() support
x86: use generic early_ioremap
arm: add early_ioremap support
arm64: initialize pgprot info earlier in boot
arm64: add early_ioremap support
Documentation/arm64/memory.txt | 4 +-
arch/arm/Kconfig | 11 ++
arch/arm/include/asm/Kbuild | 1 +
arch/arm/include/asm/fixmap.h | 18 +++
arch/arm/include/asm/io.h | 1 +
arch/arm/kernel/setup.c | 3 +
arch/arm/mm/Makefile | 1 +
arch/arm/mm/early_ioremap.c | 93 ++++++++++++++
arch/arm/mm/mmu.c | 2 +
arch/arm64/Kconfig | 1 +
arch/arm64/include/asm/Kbuild | 1 +
arch/arm64/include/asm/fixmap.h | 68 ++++++++++
arch/arm64/include/asm/io.h | 1 +
arch/arm64/include/asm/memory.h | 2 +-
arch/arm64/include/asm/mmu.h | 1 +
arch/arm64/kernel/early_printk.c | 8 +-
arch/arm64/kernel/head.S | 9 +-
arch/arm64/kernel/setup.c | 4 +
arch/arm64/mm/ioremap.c | 85 ++++++++++++
arch/arm64/mm/mmu.c | 44 +------
arch/x86/Kconfig | 1 +
arch/x86/include/asm/Kbuild | 1 +
arch/x86/include/asm/fixmap.h | 6 +
arch/x86/include/asm/io.h | 14 +-
arch/x86/mm/ioremap.c | 224 +-------------------------------
arch/x86/mm/pgtable_32.c | 2 +-
include/asm-generic/early_ioremap.h | 41 ++++++
mm/Kconfig | 3 +
mm/Makefile | 1 +
mm/early_ioremap.c | 249 ++++++++++++++++++++++++++++++++++++
30 files changed, 611 insertions(+), 289 deletions(-)
create mode 100644 arch/arm/mm/early_ioremap.c
create mode 100644 arch/arm64/include/asm/fixmap.h
create mode 100644 include/asm-generic/early_ioremap.h
create mode 100644 mm/early_ioremap.c
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
== 2 of 6 ==
Date: Mon, Jan 6 2014 6:40 pm
From: Mark Salter
Move x86 over to the generic early ioremap implementation. The
generic implementation is functionally the same except that the
early_memremap() function returns a normal pointer instead of an
__iomem pointer. This is in line with sparse warning cleanups in
this patch series:
https://lkml.org/lkml/2013/12/22/69
Signed-off-by: Mark Salter <msalter@redhat.com>
CC: x86@kernel.org
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Arnd Bergmann <arnd@arndb.de>
CC: Ingo Molnar <mingo@kernel.org>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: "H. Peter Anvin" <hpa@zytor.com>
---
arch/x86/Kconfig | 1 +
arch/x86/include/asm/Kbuild | 1 +
arch/x86/include/asm/fixmap.h | 6 ++
arch/x86/include/asm/io.h | 14 +--
arch/x86/mm/ioremap.c | 224 +-----------------------------------------
arch/x86/mm/pgtable_32.c | 2 +-
6 files changed, 13 insertions(+), 235 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 0952ecd..50e1eab 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -125,6 +125,7 @@ config X86
select RTC_LIB
select HAVE_DEBUG_STACKOVERFLOW
select HAVE_IRQ_EXIT_ON_IRQ_STACK if X86_64
+ select GENERIC_EARLY_IOREMAP
config INSTRUCTION_DECODER
def_bool y
diff --git a/arch/x86/include/asm/Kbuild b/arch/x86/include/asm/Kbuild
index 7f66985..203f5f9 100644
--- a/arch/x86/include/asm/Kbuild
+++ b/arch/x86/include/asm/Kbuild
@@ -5,3 +5,4 @@ genhdr-y += unistd_64.h
genhdr-y += unistd_x32.h
generic-y += clkdev.h
+generic-y += early_ioremap.h
diff --git a/arch/x86/include/asm/fixmap.h b/arch/x86/include/asm/fixmap.h
index 7252cd3..e5f236d 100644
--- a/arch/x86/include/asm/fixmap.h
+++ b/arch/x86/include/asm/fixmap.h
@@ -177,5 +177,11 @@ static inline void __set_fixmap(enum fixed_addresses idx,
#include <asm-generic/fixmap.h>
+#define __late_set_fixmap(idx, phys, flags) __set_fixmap(idx, phys, flags)
+#define __late_clear_fixmap(idx) __set_fixmap(idx, 0, __pgprot(0))
+
+void __early_set_fixmap(enum fixed_addresses idx,
+ phys_addr_t phys, pgprot_t flags);
+
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home