imx28 gpmi nand driver in linux kernel

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx28 gpmi nand driver in linux kernel

890 Views
liuxing
Contributor II

when ubi driver try to attach mtd block,the dma time out will occurs.the page address is not fixed,it's random.

However,the nand read/write process is very stable in uboot.

The kernel version is  4.19.4.

[ 3.499411] ubi0: default fastmap pool size: 25
[ 3.504350] ubi0: default fastmap WL pool size: 12
[ 3.509486] ubi0: attaching mtd4

[ 15.995233] gpmi-nand 8000c000.gpmi-nand: DMA timeout, last DMA
[ 16.001268] gpmi-nand 8000c000.gpmi-nand: Show GPMI registers :
[ 16.007606] gpmi-nand 8000c000.gpmi-nand: offset 0x000 : 0x2180083e
[ 16.013968] gpmi-nand 8000c000.gpmi-nand: offset 0x010 : 0x00000000
[ 16.020542] gpmi-nand 8000c000.gpmi-nand: offset 0x020 : 0x000011ff
[ 16.027122] gpmi-nand 8000c000.gpmi-nand: offset 0x030 : 0x0000083e
[ 16.033482] gpmi-nand 8000c000.gpmi-nand: offset 0x040 : 0x4743f000
[ 16.040048] gpmi-nand 8000c000.gpmi-nand: offset 0x050 : 0x47501800
[ 16.046623] gpmi-nand 8000c000.gpmi-nand: offset 0x060 : 0x0104000c
[ 16.052985] gpmi-nand 8000c000.gpmi-nand: offset 0x070 : 0x00020101
[ 16.059550] gpmi-nand 8000c000.gpmi-nand: offset 0x080 : 0x60000000
[ 16.066125] gpmi-nand 8000c000.gpmi-nand: offset 0x090 : 0x09020101
[ 16.072482] gpmi-nand 8000c000.gpmi-nand: offset 0x0a0 : 0x01000030
[ 16.079046] gpmi-nand 8000c000.gpmi-nand: offset 0x0b0 : 0x0f000005
[ 16.085619] gpmi-nand 8000c000.gpmi-nand: offset 0x0c0 : 0x01000000
[ 16.091977] gpmi-nand 8000c000.gpmi-nand: offset 0x0d0 : 0x03010000
[ 16.098530] gpmi-nand 8000c000.gpmi-nand: Show BCH registers :
[ 16.104460] gpmi-nand 8000c000.gpmi-nand: offset 0x000 : 0x00000100
[ 16.111024] gpmi-nand 8000c000.gpmi-nand: offset 0x010 : 0x0000fe04
[ 16.117604] gpmi-nand 8000c000.gpmi-nand: offset 0x020 : 0x00000000
[ 16.123962] gpmi-nand 8000c000.gpmi-nand: offset 0x030 : 0x00000000
[ 16.130527] gpmi-nand 8000c000.gpmi-nand: offset 0x040 : 0x00000000
[ 16.137106] gpmi-nand 8000c000.gpmi-nand: offset 0x050 : 0x00000000
[ 16.143464] gpmi-nand 8000c000.gpmi-nand: offset 0x060 : 0x00000000
[ 16.150023] gpmi-nand 8000c000.gpmi-nand: offset 0x070 : 0x00000000
[ 16.156604] gpmi-nand 8000c000.gpmi-nand: offset 0x080 : 0x030a4200
[ 16.162962] gpmi-nand 8000c000.gpmi-nand: offset 0x090 : 0x083e4200
[ 16.169525] gpmi-nand 8000c000.gpmi-nand: offset 0x0a0 : 0x070a8200
[ 16.176120] gpmi-nand 8000c000.gpmi-nand: offset 0x0b0 : 0x10da8200
[ 16.182482] gpmi-nand 8000c000.gpmi-nand: offset 0x0c0 : 0x070a8200
[ 16.189051] gpmi-nand 8000c000.gpmi-nand: offset 0x0d0 : 0x10da8200
[ 16.195631] gpmi-nand 8000c000.gpmi-nand: offset 0x0e0 : 0x070a8200
[ 16.201987] gpmi-nand 8000c000.gpmi-nand: offset 0x0f0 : 0x10da8200
[ 16.208546] gpmi-nand 8000c000.gpmi-nand: offset 0x100 : 0x00000000
[ 16.215158] gpmi-nand 8000c000.gpmi-nand: offset 0x110 : 0x00000000
[ 16.221514] gpmi-nand 8000c000.gpmi-nand: offset 0x120 : 0x00000000
[ 16.228079] gpmi-nand 8000c000.gpmi-nand: offset 0x130 : 0x00000000
[ 16.234437] gpmi-nand 8000c000.gpmi-nand: offset 0x140 : 0x00000000
[ 16.241005] gpmi-nand 8000c000.gpmi-nand: offset 0x150 : 0x20484342
[ 16.247635] gpmi-nand 8000c000.gpmi-nand: offset 0x160 : 0x01000000
[ 16.253992] gpmi-nand 8000c000.gpmi-nand: offset 0x170 : 0x00000000
[ 16.260583] gpmi-nand 8000c000.gpmi-nand: BCH Geometry :
[ 16.260583] GF length : 13
[ 16.260583] ECC Strength : 8
[ 16.260583] Page Size in Bytes : 2110
[ 16.260583] Metadata Size in Bytes : 10
[ 16.260583] ECC Chunk Size in Bytes: 512
[ 16.260583] ECC Chunk Count : 4
[ 16.260583] Payload Size in Bytes : 2048
[ 16.260583] Auxiliary Size in Bytes: 16
[ 16.260583] Auxiliary Status Offset: 12
[ 16.260583] Block Mark Byte Offset : 1999
[ 16.260583] Block Mark Bit Offset : 0
[ 16.308902] gpmi-nand 8000c000.gpmi-nand: Chip: 0, Error -22
[ 16.314671] gpmi-nand 8000c000.gpmi-nand: Chip: 0, Error -22
[ 16.320665] gpmi-nand 8000c000.gpmi-nand: Chip: 0, Error -22
[ 16.326647] gpmi-nand 8000c000.gpmi-nand: Chip: 0, Error -22
[ 16.332415] gpmi-nand 8000c000.gpmi-nand: Chip: 0, Error -22
[ 16.338377] gpmi-nand 8000c000.gpmi-nand: Chip: 0, Error -22
[ 16.344146] gpmi-nand 8000c000.gpmi-nand: Chip: 0, Error -22
[ 16.350109] gpmi-nand 8000c000.gpmi-nand: Chip: 0, Error -22

Labels (1)
0 Kudos
2 Replies

541 Views
igorpadykov
NXP Employee
NXP Employee

Hi xing

L4.19.4 kernel is not supported by nxp, one can try latest L4.14 from nxp official repository:

linux-imx - i.MX Linux kernel 

Linux documentation

i.MX Software|NXP 

Issues with 4.19.4 can be posted on kernel mail list Majordomo Lists at VGER.KERNEL.ORG 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

541 Views
liuxing
Contributor II

is there anybody can help me?

0 Kudos