kernel: add support for limiting 4K erase sector support based on flash chip size
authorFelix Fietkau <nbd@nbd.name>
Fri, 3 Nov 2017 08:53:54 +0000 (09:53 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 6 Nov 2017 15:38:25 +0000 (16:38 +0100)
commitc08293893aadca182b52ef96d3c2b1700282f0f2
treeb7cd8f1ea172201bb358c920437952dc53cf6c95
parent94491a15712732c56dccbf4593000376ae275134
kernel: add support for limiting 4K erase sector support based on flash chip size

Some targets need 4K sectors for small flash chips (e.g. some
routerboards, where the entire chip is just one "erase block"), whereas
on other devices 4K sectors lead to horrible flash erase/write
performance.

Set the default limit in the generic kernel configuration to 4 MiB to
ensure that all new platforms don't use 4K sectors for bigger flash
chips. On all existing targets use 16 MiB for now to avoid regressions.
They will be changed individually in follow-up commits.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/ar71xx/mikrotik/config-default
target/linux/generic/config-4.9
target/linux/generic/pending-4.9/470-mtd-spi-nor-support-limiting-4K-sectors-support-base.patch [new file with mode: 0644]
target/linux/layerscape/armv8_32b/config-4.9
target/linux/layerscape/armv8_64b/config-4.9
target/linux/pistachio/config-4.9
target/linux/ramips/mt7620/config-4.9
target/linux/ramips/rt305x/config-4.9
target/linux/ramips/rt3883/config-4.9