lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1427292151-3835-4-git-send-email-richard@nod.at>
Date:	Wed, 25 Mar 2015 15:02:31 +0100
From:	Richard Weinberger <richard@....at>
To:	linux-mtd@...ts.infradead.org
Cc:	linux-kernel@...r.kernel.org, dwmw2@...radead.org,
	computersforpeace@...il.com, Richard Weinberger <richard@....at>
Subject: [PATCH 3/3] mtd: nand: Wire up on-die ECC support

Finally add the Kconfig stuff for on-die ECC support
such that the feature can be enabled.

Signed-off-by: Richard Weinberger <richard@....at>
---
 drivers/mtd/nand/Kconfig  | 12 ++++++++++++
 drivers/mtd/nand/Makefile |  1 +
 2 files changed, 13 insertions(+)

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 5897d8d..215f74e 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -37,6 +37,18 @@ config MTD_NAND_ECC_BCH
 	  ECC codes. They are used with NAND devices requiring more than 1 bit
 	  of error correction.
 
+config MTD_NAND_ECC_ON_DIE
+	bool "Support Micron On-Die ECC"
+	default n
+	help
+	  Some Micron chips have an internal (on-die) ECC-controller that is
+	  useful when the host-platform doesn't have hardware-support for
+	  multi-bit ECC and software ECC consumes too much CPU cycles.
+	  This enables support for this ECC mode.
+	  Please consult your NAND chip's datasheet if you want to use
+	  on-die ECC, it is likely that you'll have to adjust some timing
+	  settings in your board setup.
+
 config MTD_SM_COMMON
 	tristate
 	default n
diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
index 582bbd05..44e952cc 100644
--- a/drivers/mtd/nand/Makefile
+++ b/drivers/mtd/nand/Makefile
@@ -5,6 +5,7 @@
 obj-$(CONFIG_MTD_NAND)			+= nand.o
 obj-$(CONFIG_MTD_NAND_ECC)		+= nand_ecc.o
 obj-$(CONFIG_MTD_NAND_BCH)		+= nand_bch.o
+obj-$(CONFIG_MTD_NAND_ECC_ON_DIE)	+= nand_ondie.o
 obj-$(CONFIG_MTD_NAND_IDS)		+= nand_ids.o
 obj-$(CONFIG_MTD_SM_COMMON) 		+= sm_common.o
 
-- 
2.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ