PD#SWPL-181442
Problem:
initial support
Solution:
register partition from cmdline if partition information don't exist in dtb
Verify:
BR309-T950D5_SOCKET #48
Change-Id: I241508ea4ec6b03741ad8a831783ae61564250a8
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
PD#SWPL-175760
Problem:
support W25N04KVZEIR spinand
Solution:
support W25N04KVZEIR in winbond id table
Verify:
C308L-AW419
Change-Id: I46e19cb951a0f61fcad979934612105e3f84543a
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
PD#SWPL-175754
Problem:
support W25N02KVZEIR spinand
Solution:
support W25N02KVZEIR in winbond id table
Verify:
C302x-AW429
Change-Id: Idc2ba614392aa6ca15250d4e8df6701dbdf9dbd2
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
PD#SWPL-175754
Problem:
Winbond uses 3 bytes to identify flash: vendor_id, dev_id_0, dev_id_1,
but current driver uses only first 2 bytes of it for devices
identification. As result Winbond W25N02KV flash (id_bytes: EF, AA, 22)
is identified as W25N01GV (id_bytes: EF, AA, 21).
Solution:
Fix this by adding missed identification bytes.
(sync linux kernel community commit <dbf70fc2>)
Verify:
C302x-AW429
Change-Id: I055c20d1c636a1812590ccd2f78a1acf1192d3da
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
PD#SWPL-156043
Problem:
need to select ecc mode according to the nand model.
Solution:
1. only MX35LF1G24AD select host ecc.
2. all info page use host ecc
Verify:
S1A
Change-Id: I833f4ca00b2b53c52afc57cca666762aeffc5671
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
PD#SWPL-162429
Problem:
It is not really very good for ecc threshold
to be equal to the maximum capacity of ecc.
we refer to raw nand method to set it.
Solution:
Refer to raw nand method (nand_base.c) to set ecc
threshold to the 75% of ecc maximum capacity.
Verify:
S1A-BG201
Change-Id: I92fea91008a93fd5472bfcadcd338e89e985d40c
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
PD#OTT-57502
Problem:
system partition filesystem mount fail. the problem is bring from commit
<b68a304179e8> (nand: slcnand & spinand: fix mutex deadlock)
Solution:
fix rsv_ops->_read_oob should return -EUCLEAN or 0 or negative error
Verify:
S1A-BG201
Change-Id: I40704ca9d89e5122622111513b7874fa103e3750
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
PD#SWPL-155674
Problem:
S34ML04G300BHI00 not support yet
Solution:
id table support S34ML04G300BHI00
Verify:
AT301_T962D4-K35E(1.5G) #256
Change-Id: Icceb39538624ff87e57d93c720742491b7cc6a40
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
PD#SWPL-113283
Problem:
when use dma to read a small amount of data to a memory by kzalloc,
kzalloc memory len less than dma minimum handling length,
e.g. kzalloc one byte memory, but dma moves data with a width 64 bits,
so it would destroy the 7 bytes memory space on the right side of the
requested memory.
BUG: KFENCE: memory corruption in meson_nfc_exec_op+0x3b4/0x4c8
Corrupted memory at 0x00000000527f2fd0 [ ! ! ! ! ! ! ! . . . . . . . ]
meson_nfc_exec_op+0x3b4/0x4c8
nand_status_op+0x1ac/0x294
nand_erase_op+0x19c/0x328
nand_erase_nand+0x1d0/0x3cc
nand_erase+0x14/0x20
mtd_erase+0x174/0x1f0
mtdchar_ioctl+0x1c1c/0x2704
mtdchar_unlocked_ioctl+0x50/0x74
__arm64_sys_ioctl+0xa4/0x114
invoke_syscall+0x5c/0x140
el0_svc_common.llvm.4567374417812983254+0xb4/0xf0
do_el0_svc+0x24/0x84
el0_svc+0x2c/0xa4
el0t_64_sync_handler+0x68/0xb4
el0t_64_sync+0x1b4/0x1b8
kfence-#52: 0x00000000d4c8f37e-0x00000000d4c8f37e, size=1, cache=kmalloc-64
Solution:
align dma minimum handling length to kzalloc
Verify:
AT301_T962D4-K35E(1.5G) #256
Change-Id: I541b6acecaa9dd69ec6466bd7040af94b45ae596
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
PD#SWPL-148386
Problem:
one rsv read operation occurs between two consecutive
read of the same page(without oob) will cause error.
Solution:
use meson chip buf to replace nand chip databuf.
Verify:
c3
Change-Id: I05475c21ccad28ae4fea8f128fd9c79e75d882e3
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
PD#SWPL-130883
Problem:
need to support inline partition encryption
Solution:
add support inline partition encryption in
spi nand driver
Verify:
s1a
Change-Id: Iadb9b9ae121939ef37a3abbd603a5eec17500739
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
PD#SWPL-142875
Problem:
deadlock will happen in mark bad block process.
Solution:
add rsv-ops interface in rsv-manage to avoid deadlock.
Verify:
c3
Change-Id: I3841a8d3ca8c8f48142828b03ba9aefdf21adc62
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
PD#SWPL-143171
Problem:
parse data ecc
Solution:
The parsed data structure should be consistent with
the written data structure
Verify:
A4
Change-Id: I5ff24de085f0a46937830fa0b327f7c08bd23fc1
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
PD#SWPL-140211
Problem:
need update spinand info page.
Solution:
update new info page, for compatibility with A1 S1A C3.
Verify:
A1 S1A C3
Change-Id: I73ce561dc716aedd18ac2887af00fa912818794b
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
PD#SWPL-137498
Problem:
1. need get partition from env
2. need get rsv info from env
Solution:
1. get partition from cmdline
2. get rsv info from cmdline
Verify:
s1a
Change-Id: I5de9ca2479d60ce0c24698abda1b01403be4c283
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
PD#SWPL-136164
Problem:
No need to implement the erase interface for mtd
Solution:
remove meson mtd erase interface
Verify:
S1A
Change-Id: Id214b1551018586304dfffee06ba8d6cecbcb14d
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
PD#SWPL-129754
Problem:
erase flash error during OTA upgrade.
Solution:
change the check way of badblock.
Verify:
s4
Change-Id: I82b64b03f584d449e30a435f8ec7e7aa0bab3be7
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
PD#SWPL-115118
Problem:
error cause by different env size
define under uboot and kernel
Solution:
add env_size in dts
Verify:
a1
Change-Id: I2abfa546e38d650524da52641a7958f1c1f50d4b
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
PD#SWPL-110677
Problem:
mount system partition fail
Solution:
there is different partition
backup num of board platform,
4 or 8, add flag in dts file
to mark it as 8-backup
Verify:
s4d_t215
Change-Id: I2ce7682cb04163a5c3464853b90f4693608cac4f
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
PD#SH-13003
Problem:
spinand need F50L1G41LB support
Solution:
add flash id support
Verify:
a1_ad403
Change-Id: Icf9a78b3e8268063eaea628f0304c4f7c751eeac
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
PD#SWPL-104886
Problem:
1. partition will change, when have use bad block
Solution:
1. only skip factory bad blocks in add partitions.
Verify:
s4
Change-Id: Ibb796410add3d02a34c8a41e7ef0e354d4f65e67
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
PD#SWPL-100114
Problem:
factory bad blocks and the other bad blocks
both in the return result of mtd check bad
blocks method, but in add partitions process
that not safety, because system partition might
use the same block in next startup.
Solution:
only skip factory bad blocks in add partitions
method.
Verify:
c3_aw419
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
Change-Id: If9b0b10f41c07052ef955c1ebf3193ab657ec09e