From: Jose Nimni <jose_nimni@yahoo.com>
To: Artem.Bityutskiy@nokia.com, cernekee@gmail.com
Cc: linux-mtd@lists.infradead.org
Subject: UBI: why was UBI reboot notifier removed
Date: Wed, 30 Mar 2011 07:43:15 -0700 (PDT) [thread overview]
Message-ID: <581860.7993.qm@web114007.mail.gq1.yahoo.com> (raw)
hi guys,
I wanted to ask you a question regarding the change you made in UBI, when you
removed the UBI reboot notifier. (commit "UBI: remove reboot notifier")
I have omap3530 processor, working with numonyx NOR flashe PF2800AP33EF (intel
command set).
I am working with linux omap kernel 2.6.34, but patched it with the newest UBI
directory (i needed the new patches for NOR PEBs).
i have seen that if i write a lot data to the NOR flash, 2 things happen:
1. UBIFS thread are flushing the data to the flash for quite some time.
2. ubi_bgt0d is working after that, cleaning up some PEBs.
if i reboot just after the write process returned, the flashed are unmounted
(after waiting for ubifs to finish flushing).
but when the sigkills are sent, a UBI error is occuring:
UBI error: ubi_io_read: error -5 while reading 64 bytes from PEB x:y, read 0
bytes.
UBI error: nor_erase_prepare: cannot invalidate PEB X, write returned -5 read
returned -5
....
ubi_thread: ubi_bgt0d: work failed with error code -5.
after some research, i saw that you removed the UBI reboot notifier, that used
to kill ubi_bgt thread.
now, during shutdown, the cfi_cmdset_0001.c driver does not allow any
communication with the flash - but the bgt thread is still alive, so it gets a
read/write error (-EIO).
I am working with UBI that is compiled into the kernel - not as a module, so
module_exit isn't being called
who should stop the bgt threads?
am i missing anything or is this a bug?
Thanks,
Jose
next reply other threads:[~2011-03-30 14:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-30 14:43 Jose Nimni [this message]
2011-04-01 13:34 ` UBI: why was UBI reboot notifier removed Artem Bityutskiy
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=581860.7993.qm@web114007.mail.gq1.yahoo.com \
--to=jose_nimni@yahoo.com \
--cc=Artem.Bityutskiy@nokia.com \
--cc=cernekee@gmail.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