mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Vivek Goyal <vgoyal@in.ibm.com>
Cc: James.Bottomley@SteelEye.com, Eric.Moore@lsil.com,
	bharata@in.ibm.com, Roy.Wade@lsil.com, Jared.Hayes@lsil.com,
	fastboot@lists.osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [IBM] RE: [BUG] Fusion MPT Base Driver initialization failure wit h kdum p
Date: Mon, 25 Jul 2005 15:10:33 -0700	[thread overview]
Message-ID: <20050725151033.25196965.akpm@osdl.org> (raw)
In-Reply-To: <1121858719.42de349feb815@imap.linux.ibm.com>

Vivek Goyal <vgoyal@in.ibm.com> wrote:
>
> > If you don't stop the DMA engines before you boot the new kernel, the
>  > addresses they have to send data to will now be random points in that
>  > kernel's memory, leading to potential corruption of the new kernel
>  > image.
> 
>  [Copying it to fastboot and linux-kernel mailing lists]
> 
>  We are booting second kernel (capture kernel) from a reserved memory location
>  to take care of on-going DMA issues. So even if some DMA transactions are going
>  on after the crash they will not corrupt the new kernel.
> 
>  > 
>  > The interrupt panic of the fusion is probably a symptom of this: I bet a
>  > DMA transfer has just completed and the interrupt is to inform us of
>  > this (however, in the new kernel we're not expecting any transfers).
> 
>  That might very well be the case. So driver should simply ignore the interrupt
>  when it is not expecting it or it should reset the device if it finds that 
>  some interrupts are pending when it should not have been there.
> 
>  Basically it is a matter of hardening the driver so that it can handle/
>  initialize the device even if the device is not in reset state. 

I'd expect that a lot of these problems could be reduced by simply pausing
for a while in the crash handler, wait for I/O to complete.

Other times these failures point at flaws and dubious assumptions in
drivers themselves, fixing of which tends to collaterally help platform
power mangement operations.

However, I expect that it will always be the case that setups which try to
perform crashdumps to their main production disks will be less reliable
than setups which set aside hardware for the dumping.

If it was me, and if I really cared about reliable dumps, I'd make sure
that each machine had a $6 NIC set aside for crashdumping, and the dump
kernel uses that NIC for an NFS dump and has no other device drivers
configured.

  reply	other threads:[~2005-07-25 22:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-20 11:25 Vivek Goyal
2005-07-25 22:10 ` Andrew Morton [this message]
2005-07-26 11:03   ` Vivek Goyal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050725151033.25196965.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=Eric.Moore@lsil.com \
    --cc=James.Bottomley@SteelEye.com \
    --cc=Jared.Hayes@lsil.com \
    --cc=Roy.Wade@lsil.com \
    --cc=bharata@in.ibm.com \
    --cc=fastboot@lists.osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vgoyal@in.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®