From: Simon Kagstrom <simon.kagstrom@netinsight.net>
To: Aaro Koskinen <aaro.koskinen@nokia.com>
Cc: "Bityutskiy Artem \(Nokia-D/Helsinki\)"
<Artem.Bityutskiy@nokia.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: [PATCH 1/2] mtdoops: do not schedule work if we are going to die
Date: Fri, 2 Oct 2009 16:40:49 +0200 [thread overview]
Message-ID: <20091002164049.3ef46131@marrow.netinsight.se> (raw)
In-Reply-To: <4AC60E9B.8060704@nokia.com>
On Fri, 02 Oct 2009 17:30:51 +0300
Aaro Koskinen <aaro.koskinen@nokia.com> wrote:
> > I also get problems when mtd->read is called from mtdoops_inc_counter,
> > so my patch also skips this if we have panic_on_oops set (there is also
> > no point since the board will hang / be restarted after that).
>
> I think you need to call it, otherwise the ready flag does not get set and
> you may loose some messages? Which driver you are using? The second patch
> I sent for OMAP addressed this problem, basically the driver should know we
> are in oops and rely on very minimal functionality in read/write.
Well, the counter will be updated on the next boot anyway by
find_next_position. mtdoops_inc_counter just positions it at the next
block and (if needed) erases that. So not calling it will just delay
the initialization to the next boot.
I did consider putting mtdoops_inc_counter on a work queue, but I think
it's overkill in this case (since it probably won't get called anyway
by the panic).
I'm using it on an OpenRD base board, with a NAND flash (using the
functions in nand_base.c). I've patched the NAND driver with Edgars
implementation of panic_write from here:
http://lists.infradead.org/pipermail/linux-mtd/2009-October/027447.html
I think your second patch is good to have anyway.
// Simon
prev parent reply other threads:[~2009-10-02 14:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-01 15:16 [PATCH 1/2] mtdoops: do not schedule work if we are going to die Aaro Koskinen
2009-10-01 15:16 ` [PATCH 2/2] OneNAND: OMAP: do not use DMA if oops in progress Aaro Koskinen
2009-10-02 14:18 ` [PATCH 1/2] mtdoops: do not schedule work if we are going to die Simon Kagstrom
2009-10-02 14:30 ` Aaro Koskinen
2009-10-02 14:40 ` Simon Kagstrom [this message]
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=20091002164049.3ef46131@marrow.netinsight.se \
--to=simon.kagstrom@netinsight.net \
--cc=Artem.Bityutskiy@nokia.com \
--cc=aaro.koskinen@nokia.com \
--cc=linux-mtd@lists.infradead.org \
/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