1. 26 9月, 2006 4 次提交
  2. 27 6月, 2006 3 次提交
  3. 11 1月, 2006 3 次提交
    • V
      [PATCH] kdump: x86_64 save cpu registers upon crash · ec9ce0db
      Vivek Goyal 提交于
      - Saving the cpu registers of all cpus before booting in to the crash
        kernel.
      
      - crash_setup_regs will save the registers of the cpu on which panic has
        occured.  One of the concerns ppc64 folks raised is that after capturing the
        register states, one should not pop the current call frame and push new one.
         Hence it has been inlined.  More call frames later get pushed on to stack
        (machine_crash_shutdown() and machine_kexec()), but one will not want to
        backtrace those.
      
      - Not very sure about the CFI annotations.  With this patch I am getting
        decent backtrace with gdb.  Assuming, compiler has generated enough
        debugging information for crash_kexec().  Coding crash_setup_regs() in pure
        assembly makes it tricky because then it can not be inlined and we don't
        want to return back after capturing register states we don't want to pop
        this call frame.
      
      - Saving the non-panicing cpus registers will be done in the NMI handler
        while shooting down them in machine_crash_shutdown.
      
      - Introducing CRASH_DUMP option in Kconfig for x86_64.
      Signed-off-by: NMurali M Chakravarthy <muralim@in.ibm.com>
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Cc: Andi Kleen <ak@muc.de>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ec9ce0db
    • A
      [PATCH] kdump: x86_64 kexec on panic · cffe632a
      akpm@osdl.org 提交于
      )
      
      From: Vivek Goyal <vgoyal@in.ibm.com>
      
      - Implementing the machine_crash_shutdown for x86_64 which will be called by
        crash_kexec (called in case of a panic, sysrq etc.).  Here we do things
        similar to i386.  Disable the interrupts, shootdown the cpus and shutdown
        LAPIC and IOAPIC.
      
      Changes in this version:
      
      - As the Eric's APIC initialization patches are reverted back, reintroducing
        LAPIC and IOAPIC shutdown.
      
      - Added some comments on CPU hotplug, modified code as suggested by Andi
        kleen.
      Signed-off-by: NMurali M Chakravarthy <muralim@in.ibm.com>
      Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
      Cc: Andi Kleen <ak@muc.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      cffe632a
    • V
      [PATCH] kdump: dynamic per cpu allocation of memory for saving cpu registers · cc571658
      Vivek Goyal 提交于
      - In case of system crash, current state of cpu registers is saved in memory
        in elf note format.  So far memory for storing elf notes was being allocated
        statically for NR_CPUS.
      
      - This patch introduces dynamic allocation of memory for storing elf notes.
        It uses alloc_percpu() interface.  This should lead to better memory usage.
      
      - Introduced based on Andi Kleen's and Eric W. Biederman's suggestions.
      
      - This patch also moves memory allocation for elf notes from architecture
        dependent portion to architecture independent portion.  Now crash_notes is
        architecture independent.  The whole idea is that size of memory to be
        allocated per cpu (MAX_NOTE_BYTES) can be architecture dependent and
        allocation of this memory can be architecture independent.
      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>
      cc571658
  4. 13 9月, 2005 1 次提交
  5. 26 6月, 2005 3 次提交