1. 28 5月, 2013 1 次提交
  2. 03 4月, 2013 1 次提交
    • X
      Add size restriction to the kdump documentation · 797f6a68
      Xishi Qiu 提交于
      In efi_init() memory aligns in IA64_GRANULE_SIZE(16M). If set "crashkernel=1024M-:600M"
      and use sparse memory model, when crash kernel booting it changes [128M-728M] to [128M-720M].
      
      But initrd memory is in [709M-727M], and virt_addr_valid() *can not* check the invalid pages
      when freeing initrd memory, because there are some pages missed at the end of the section,
      and this causes error.
      
      ...
      Unpacking initramfs...
      Freeing initrd memory: 19648kB freed
      BUG: Bad page state in process swapper  pfn:02d00
      page:e0000000102dd800 flags:(null) count:0 mapcount:1 mapping:(null) index:0
      
      Call Trace:
       [<a000000100018dc0>] show_stack+0x80/0xa0
                                      sp=e000000021e8fbd0 bsp=e000000021e81360
       [<a00000010090fcc0>] dump_stack+0x30/0x50
                                      sp=e000000021e8fda0 bsp=e000000021e81348
       [<a0000001001a3180>] bad_page+0x280/0x380
                                      sp=e000000021e8fda0 bsp=e000000021e81308
       [<a0000001001a8740>] free_hot_cold_page+0x3a0/0x5c0
                                      sp=e000000021e8fda0 bsp=e000000021e812a0
       [<a0000001001a8a50>] free_hot_page+0x30/0x60
                                      sp=e000000021e8fda0 bsp=e000000021e81280
       [<a0000001001a8b30>] __free_pages+0xb0/0xe0
                                      sp=e000000021e8fda0 bsp=e000000021e81258
       [<a0000001001a8c00>] free_pages+0xa0/0xc0
                                      sp=e000000021e8fda0 bsp=e000000021e81230
       [<a000000100bb40c0>] free_initrd_mem+0x230/0x290
                                      sp=e000000021e8fda0 bsp=e000000021e811d8
       [<a000000100ba6620>] populate_rootfs+0x1c0/0x280
                                      sp=e000000021e8fdb0 bsp=e000000021e811a0
       [<a00000010000ac30>] do_one_initcall+0x3b0/0x3e0
                                      sp=e000000021e8fdb0 bsp=e000000021e81158
       [<a000000100ba0a90>] kernel_init+0x3f0/0x4b0
                                      sp=e000000021e8fdb0 bsp=e000000021e81108
       [<a000000100016890>] kernel_thread_helper+0xd0/0x100
                                      sp=e000000021e8fe30 bsp=e000000021e810e0
       [<a00000010000a4c0>] start_kernel_thread+0x20/0x40
                                      sp=e000000021e8fe30 bsp=e000000021e810e0
      ...
      
      In "http://marc.info/?l=linux-arch&m=136147092429314&w=2" Tony said:
      "Perhaps in Documentation/kdump/kdump.txt (which the crashkernel entry
      in kernel-parameters.txt points at).  The ia64 section of kdump.txt
      notes that the start address will be rounded up to a GRANULE boundary,
      but doesn't talk about restrictions on the size."
      
      This patch add size restriction to the documentation of kdump.
      Signed-off-by: NXishi Qiu <qiuxishi@huawei.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      797f6a68
  3. 19 7月, 2012 1 次提交
  4. 27 12月, 2011 1 次提交
  5. 25 11月, 2010 1 次提交
  6. 13 6月, 2009 1 次提交
  7. 22 10月, 2008 1 次提交
    • M
      powerpc: Support for relocatable kdump kernel · 54622f10
      Mohan Kumar M 提交于
      This adds relocatable kernel support for kdump. With this one can
      use the same regular kernel to capture the kdump. A signature (0xfeed1234)
      is passed in r6 from panic code to the next kernel through kexec_sequence
      and purgatory code. The signature is used to differentiate between
      kdump kernel and non-kdump kernels.
      
      The purgatory code compares the signature and sets the __kdump_flag in
      head_64.S.  During the boot up, kernel code checks __kdump_flag and if it
      is set, the kernel will behave as relocatable kdump kernel. This kernel
      will boot at the address where it was loaded by kexec-tools ie. at the
      address reserved through crashkernel boot parameter.
      
      CONFIG_CRASH_DUMP depends on CONFIG_RELOCATABLE option to build kdump
      kernel as relocatable. So the same kernel can be used as production and
      kdump kernel.
      
      This patch incorporates the changes suggested by Paul Mackerras to avoid
      GOT use and to avoid two copies of the code.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NMohan Kumar M <mohan@in.ibm.com>
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      54622f10
  8. 29 7月, 2008 1 次提交
  9. 08 7月, 2008 1 次提交
  10. 01 5月, 2008 1 次提交
  11. 20 10月, 2007 1 次提交
  12. 17 10月, 2007 4 次提交
  13. 21 2月, 2007 1 次提交
  14. 13 2月, 2007 1 次提交
  15. 23 1月, 2007 2 次提交
  16. 12 1月, 2007 1 次提交
  17. 04 10月, 2006 1 次提交
  18. 26 6月, 2006 1 次提交
  19. 11 1月, 2006 1 次提交
  20. 13 9月, 2005 1 次提交
  21. 10 9月, 2005 1 次提交
  22. 26 6月, 2005 2 次提交
    • V
      [PATCH] kdump documentation update to introduce use of irqpoll · d58831e4
      Vivek Goyal 提交于
      o Specify "irqpoll" command line option which loading second kernel. This
        helps in reducing driver initialization failures in second kernel due
        to shared interrupts.
      o Enabled LAPIC/IOAPIC support for UP kernels in second kernel. This reduces
        the chances of devices sharing the irq and hence reduces the chances of
        driver initialization failures in second kernel.
      o Build a UP capture kernel and disabled SMP support.
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d58831e4
    • V
      [PATCH] kdump: Documentation for Kdump · b089f4a6
      Vivek Goyal 提交于
      This patch contains the documentation for the kexec based crash dump tool.
      
      Quick kdump-howto
      ================================================================
      
      1) Download and build kexec-tools.
      
      2) Download and build the latest kexec/kdump (-mm) kernel patchset.
         Two kernels need to be built in order to get this feature working.
      
        A) First kernel:
         a) Enable "kexec system call" feature:
      	CONFIG_KEXEC=y
         b) Physical load address (use default):
      	CONFIG_PHYSICAL_START=0x100000
         c) Enable "sysfs file system support":
      	CONFIG_SYSFS=y
         d) Boot into first kernel with the command line parameter "crashkernel=Y@X":
            For example: "crashkernel=64M@16M".
      
        B) Second kernel:
         a) Enable "kernel crash dumps" feature:
      	CONFIG_CRASH_DUMP=y
         b) Physical load addreess, use same load address as X in "crashkernel"
            kernel parameter in d) above, e.g., 16 MB or 0x1000000.
      	CONFIG_PHYSICAL_START=0x1000000
         c) Enable "/proc/vmcore support" (Optional, in Pseudo filesystems).
      	CONFIG_PROC_VMCORE=y
      
      3) Boot into the first kernel.
      
      4) Load the second kernel to be booted using:
      
         kexec -p <second-kernel> --crash-dump --args-linux --append="root=<root-dev>
         maxcpus=1 init 1"
      
      5) System reboots into the second kernel when a panic occurs. A module can be
         written to force the panic, for testing purposes.
      
      6) See Documentation/kdump.txt for how to read the first kernel's
         memory image and how to analyze it.
      Signed-off-by: NHariprasad Nellitheertha <hari@in.ibm.com>
      Signed-off-by: NEric Biederman <ebiederm@xmission.com>
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: Nrandy_dunlap <rdunlap@xenotime.net>
      Signed-off-by: NManeesh Soni <maneesh@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b089f4a6