tmp_suning_uos_patched/drivers/mtd/nand
Alexey Korolev 8a4c2495b1 MTD: nandsim: use less RAM
Nandsim consumes ~2x more RAM than the density of simulated device.
It becomes critical if we need to simulate 256MB NAND and run stress tests
on it.

We investigated the reasons. nandsim allocates space for pages using kmalloc
function. The size of LP nand page is 2112 bytes.
kmalloc gets space from slab pools by chunks 2^n. So if we need to kmalloc
2112 bytes, 4096 bytes will be consumed by system.
The best way to avoid this issue would be using kmem_cache allocations. AFAIK
this mechanism specially designed to handle cases when arrays of allocations
are used.

Signed-off-by: Alexey Korolev <akorolev@infradead.org>
Tested-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Acked-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2008-12-10 13:35:23 +00:00
..
alauda.c USB: remove info() macro from usb mtd drivers 2008-10-17 14:41:10 -07:00
ams-delta.c omap drivers: switch to standard GPIO calls 2008-10-16 11:21:40 -07:00
atmel_nand_ecc.h [ARM] 5265/3: [AT91] Add copyright info 2008-09-21 23:01:18 +01:00
atmel_nand.c [MTD] [NAND] Bug on atmel_nand HW ECC : OOB info not correctly written 2008-10-14 11:07:57 +01:00
au1550nd.c [MTD] [NAND] au1550nd.c: remove unused #include <version.h> 2008-08-25 12:20:53 +01:00
autcpu12.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
bf5xx_nand.c [MTD] [NAND] Blackfin NFC Driver: Cleanup the error exit path of bf5xx_nand_probe function 2008-08-01 15:44:22 +01:00
cafe_nand.c [MTD] [NAND] Define and use PCI_DEVICE_ID_MARVELL_88ALP01_NAND for CAFÉ 2008-09-04 09:45:38 +01:00
cmx270_nand.c [ARM] 5282/1: pxa: add CM-X255 support 2008-10-07 12:05:07 +01:00
cs553x_nand.c [MTD] [NAND] Fix compilation warnings in drivers/mtd/nand/cs553x_nand.c 2008-10-18 12:39:17 +01:00
diskonchip.c [MTD] [NAND] diskonchip.c fix sparse endian warnings 2008-08-01 15:34:16 +01:00
edb7312.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
excite_nandflash.c [MTD] [NAND] excite_nandflash: simplify code using ARRAY_SIZE() macro. 2008-06-04 17:28:03 +01:00
fsl_elbc_nand.c [MTD] remove unused mtd parameter in of_mtd_parse_partitions() 2008-10-13 15:01:42 +01:00
fsl_upm.c [MTD] [NAND] fsl_upm: fix build problem with 2.6.28-rc2 2008-11-27 09:46:13 +00:00
gpio.c [MTD] [NAND] GPIO NAND flash driver 2008-10-18 12:48:42 +01:00
h1910.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
Kconfig [MTD] [NAND] GPIO driver depends on ARM... for now. 2008-10-20 09:24:43 +01:00
Makefile [MTD] [NAND] GPIO NAND flash driver 2008-10-18 12:48:42 +01:00
mxc_nand.c [MTD] [NAND] Freescale i.MX2 NAND driver 2008-09-02 22:35:36 +01:00
nand_base.c [MTD] [NAND] nand_base.c: reset chip first 2008-09-16 08:18:12 -07:00
nand_bbt.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
nand_ecc.c [MTD] [NAND] nand_ecc.c: adding support for 512 byte ecc 2008-08-25 12:23:36 +01:00
nand_ids.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
nandsim.c MTD: nandsim: use less RAM 2008-12-10 13:35:23 +00:00
ndfc.c [MTD] [NAND] fix platform driver hotplug/coldplug 2008-04-22 14:17:47 +01:00
orion_nand.c [ARM] Move include/asm-arm/plat-orion to arch/arm/plat-orion/include/plat 2008-08-09 13:44:58 +02:00
pasemi_nand.c [MTD] [NAND] drivers/mtd/nand/pasemi_nand.c: Add missing pci_dev_put 2008-12-02 10:45:19 +00:00
plat_nand.c [MTD] [NAND] plat_nand: set mtd->name 2008-04-22 21:11:54 +01:00
ppchameleonevb.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
pxa3xx_nand.c [MTD] [NAND] fix OOPS accessing flash operations over STM flash on PXA 2008-12-03 10:47:20 +00:00
rtc_from4.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
s3c2410.c CPUFREQ: S3C24XX NAND driver frequency scaling support. 2008-07-25 10:10:21 -04:00
sh_flctl.c [MTD] [NAND] sh_flctl: fix compile error 2008-10-20 09:23:19 +01:00
sharpsl.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
spia.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
tmio_nand.c [MTD] [NAND] tmio_nand: fix base address programming 2008-09-05 15:34:35 +01:00
ts7250.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00