From: Sascha Hauer <s.hauer@pengutronix.de>
To: linux-mtd@lists.infradead.org
Cc: kernel@pengutronix.de
Subject: Pass -EUCLEN to userspace?
Date: Wed, 20 Apr 2016 15:25:16 +0200 [thread overview]
Message-ID: <20160420132516.GC31101@pengutronix.de> (raw)
Hi All,
I am currently working on a program similar to ubihealthd, just for raw
mtd pages, not UBI. Basically I want to find out in userspace if my Nand needs
scrubbing. Is it possible somehow to get this information in userspace?
So far I can count the number of bitflips corrected using the
ECCGETSTATS ioctl. Also I can read the bitflip_threshold from
/sys/class/mtdx/bitflip_threshold. The problem is now that I can only
read full pages, but the bitflip threshold is per ecc_step_size. Simply
dividing by the number of ecc_steps is not accurate. Any way to solve
this?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next reply other threads:[~2016-04-20 13:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-20 13:25 Sascha Hauer [this message]
2016-04-22 15:24 ` Pass -EUCLEN to userspace? Boris Brezillon
2016-04-22 15:28 ` Boris Brezillon
2016-04-22 15:48 ` Richard Weinberger
2016-04-22 16:11 ` Boris Brezillon
2016-04-22 18:20 ` Richard Weinberger
2016-04-22 18:39 ` Boris Brezillon
2016-04-25 5:28 ` Sascha Hauer
2016-04-25 7:50 ` Boris Brezillon
2016-04-25 8:22 ` Sascha Hauer
2016-04-25 8:40 ` Boris Brezillon
2016-04-25 9:14 ` Sascha Hauer
2016-04-25 9:26 ` Boris Brezillon
2016-04-25 14:11 ` Boris Brezillon
2016-04-26 7:13 ` Pass -EUCLEAN " Sascha Hauer
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=20160420132516.GC31101@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=kernel@pengutronix.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.