"atmel_nand 60000000.nand: interrupt time out????" message

Discussion around products based on ARM Cortex-A5 core.

Moderator: nferre

Harbour
Posts: 23
Joined: Fri May 10, 2013 6:26 pm

"atmel_nand 60000000.nand: interrupt time out????" message

Sun Dec 15, 2013 11:31 am

Hello,

I'm seeing a bunch of the following kernel messages every time the Linux try to use the NAND flash in SAMA5D3x - doesn't matter read or write operations used :

Code: Select all

atmel_nand 60000000.nand: interrupt time out???? flag is 0x00010000
something wrong, No XFR_DONE interrupt comes.
The NAND detected ok, according to dmesg:

Code: Select all

[    0.716000] atmel_nand 60000000.nand: Using NFC
[    0.716000] atmel_nand: Use On Flash BBT
[    0.720000] atmel_nand 60000000.nand: Using dma0chan2 for DMA transfers.
[    0.728000] ONFI param page 0 valid
[    0.732000] ONFI flash detected
[    0.736000] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP), page size: 2048, OOB size: 64
[    0.744000] atmel_nand 60000000.nand: ONFI params, minimum required ECC: 4 bits in 512 bytes
[    0.752000] atmel_nand 60000000.nand: Initialize PMECC params, cap: 4, sector: 512
[    0.760000] atmel_nand 60000000.nand: Using NFC Sram
[    0.768000] Bad block table found at page 131008, version 0x01
[    0.772000] Bad block table found at page 130944, version 0x01
[    0.780000] 2 cmdlinepart partitions found on MTD device atmel_nand
[    0.784000] Creating 2 MTD partitions on "atmel_nand":
[    0.792000] 0x000000000000-0x000000800000 : "bootstrap/kernel"
[    0.800000] 0x000000800000-0x000010000000 : "rootfs"
[    0.808000] UBI: attaching mtd1 to ubi0
Generally speaking, the NAND is working, but sometime I see the sporadic stumbling delays with above messages appears. It is 100% reproducable when using ordinary ubiformat/nandwrite utilities for example. I'm using 3.6.9 kernel, SAMA5D3-EK and stock Ronetix modules, tried 3 different modules - all three behaves identically, so this is not the hardware problem.

Any thoughts ?
Rus
----------
SfinxSoft
http://sfinxsoft.com
blue_z
Location: USA
Posts: 2131
Joined: Thu Apr 19, 2007 10:15 pm

Re: "atmel_nand 60000000.nand: interrupt time out????" messa

Mon Dec 16, 2013 5:18 am

Any thoughts ?
The salient log entry is

Code: Select all

[    0.716000] atmel_nand 60000000.nand: Using NFC
You are using the (relatively new) NAND Flash Controller code.

http://patchwork.ozlabs.org/patch/244606/

Regards
Harbour
Posts: 23
Joined: Fri May 10, 2013 6:26 pm

Re: "atmel_nand 60000000.nand: interrupt time out????" messa

Mon Dec 16, 2013 8:02 am

You are using the (relatively new) NAND Flash Controller code.
No, I don't. As I've already told I'm using stock 3.6.9 kernel :

https://github.com/linux4sam/linux-at91 ... nfc.c#L105
Rus
----------
SfinxSoft
http://sfinxsoft.com
blue_z
Location: USA
Posts: 2131
Joined: Thu Apr 19, 2007 10:15 pm

Re: "atmel_nand 60000000.nand: interrupt time out????" messa

Mon Dec 16, 2013 9:40 am

Harbour wrote:No, I don't.
What exactly are you disagreeing with?
Are you quibbling about the "recent aspect", since the NFC driver was actually authored and commited a year ago (to the Linux4sam branch)?

Otherwise the link you provided is for a module named atmel_nand_nfc.c.
Its first line describes it as "Atmel Nand Flash Controller (NFC) driver."
Look at the history of that module; that patch has been committed to this module.
You're not refuting my statement; you're proving my point and contradicting yourself.
Harbour wrote:As I've already told I'm using stock 3.6.9 kernel :

https://github.com/linux4sam/linux-at91 ... nfc.c#L105
I did not miss that in your original post. But "stock 3.6.9 kernel" is a meaningless description (to me anyway).
Besides the mainline release, there are several releases based on 3.6.9 in the Linux4sam tree,
So which one of these releases is the "stock" one?

The driver atmel_nand_nfc.c is not in the mainline kernel, not even version 3.12.
The source code for atmel_nand_nfc.c is in the Linux4sam branch and in the more recent kernel branch releases, such as linux4sam_4.2.

Maybe you were trying to claim that you hadn't applied any patches?

The point is: you are using the NFC driver (as the log and module link that you provided prove).

So you might want to read that link I provided.
There's something about "user need(s) to set up the HSMC irq, which use to check whether nfc
command is finish or not
".


Regards
Harbour
Posts: 23
Joined: Fri May 10, 2013 6:26 pm

Re: "atmel_nand 60000000.nand: interrupt time out????" messa

Mon Dec 16, 2013 10:27 am

What exactly are you disagreeing with?
Are you quibbling about the "recent aspect", since the NFC driver was actually authored and commited a year ago (to the Linux4sam branch)?
Exact. This means that all your above reply is totally wrong.
I did not miss that in your original post. But "stock 3.6.9 kernel" is a meaningless description (to me anyway).
Besides the mainline release, there are several releases based on 3.6.9 in the Linux4sam tree,
So which one of these releases is the "stock" one?
You have to read some FAQs for SAMA5D3 to figure out where to get the 3.6.9 kernel from. All of them point to github.
The driver atmel_nand_nfc.c is not in the mainline kernel, not even version 3.12.
The source code for atmel_nand_nfc.c is in the Linux4sam branch and in the more recent kernel branch releases, such as linux4sam_4.2.
Again - I'm using the 3.6.9 kernel and the atmel_nand_nfc.c is definitely present in 3.6.9 kernel - just learn to read the code:

https://github.com/linux4sam/linux-at91 ... and.c#L151
There's something about "user need(s) to set up the HSMC irq, which use to check whether nfc command is finish or not".
I do not think that the user need something to set up here. The atmel_nand_probe() just fine installs the IRQ and it is working ok:

Code: Select all

root@arm:~# cat /proc/interrupts |grep hsmc
 41:      35085       AIC  hsmc
root@arm:~# 
Please do not reply if you do not have the exact solution and can't read the 3.6.9 code
Rus
----------
SfinxSoft
http://sfinxsoft.com
AntoineC
Posts: 105
Joined: Wed Oct 03, 2012 11:33 am

Re: "atmel_nand 60000000.nand: interrupt time out????" messa

Mon Dec 16, 2013 11:10 am

There is a dmesg log that is a NFC driver trace. So you are using NFC driver. There is no argument against it. Maybe you do not want to use it, but you are.
Harbour wrote: Exact. This means that all your above reply is totally wrong.
I personnaly aggre with blue_z, not with you!
Harbour wrote:You have to read some FAQs for SAMA5D3 to figure out where to get the 3.6.9 kernel from. All of them point to github.
All of them, so there are MANY different version. As blue_z say, atmel_nand_nfc.c IS NOT in the 3.6.9 kernel official version. So you must have download another version or at least you patch it!

I should read kernel.org for information about OFFICIAL version.
Harbour wrote:Again - I'm using the 3.6.9 kernel and the atmel_nand_nfc.c is definitely present in 3.6.9 kernel - just learn to read the code:

https://github.com/linux4sam/linux-at91 ... and.c#L151
You should learn to read the link you provided! https://github.com/linux4sam/ IS NOT, i repeat, is NOT official github of the kernel.org

So no, the file is not in the 3.6.9 version of the kernel, but in one (at least) of the 3.6.9 based linux4sam version.
Harbour wrote:Please do not reply if you do not have the exact solution and can't read the 3.6.9 code
Please do not post any question if you cannot accept that sometime YOU are wrong.

blue_z was just trying to help. But I think that we will let you with the FAQs for SAMA5D3
Harbour
Posts: 23
Joined: Fri May 10, 2013 6:26 pm

Re: "atmel_nand 60000000.nand: interrupt time out????" messa

Mon Dec 16, 2013 11:33 am

blue_z was just trying to help. But I think that we will let you with the FAQs for SAMA5D3
Nor you nor blue_z do not post any usefull here - I see no exact solution for the topic problem. And sure the SAMA5D3 FAQ do not mention at all what you are trying to tell here :

- "do not use NFC because one year is not a mature age for the driver"
- "do not use the 3.6.9 kernel from github/linux-at91"

Please point to the FAQ entry link if I'm wrong ;)
Rus
----------
SfinxSoft
http://sfinxsoft.com
AntoineC
Posts: 105
Joined: Wed Oct 03, 2012 11:33 am

Re: "atmel_nand 60000000.nand: interrupt time out????" messa

Mon Dec 16, 2013 12:18 pm

I never pretend that I gave you any usefull information.

Blue_z was trying to, but to gave you relevant informations, he must know:
- your REAL kernel version ( -ie- were do you get it, wath patch do you applied)
- what you tried to do (is it normal to have NFC trace...)

Next time, when someone try to help you, read CAREFULLY what he said before saying he is wrong. And even if he is wrong, (and IT IS NOT THE CASE HERE!), you sould explain it, not saying just "do not reply".

You can not have the exact response in one reply. This is a forum, to have discussion to find solution that may be not trivial.
Harbour
Posts: 23
Joined: Fri May 10, 2013 6:26 pm

Re: "atmel_nand 60000000.nand: interrupt time out????" messa

Mon Dec 16, 2013 12:53 pm

I never pretend that I gave you any usefull information.
Sorry, but I think that people posting here for not to have the general talk but real tech problems and ways they are solved. It will be good to take this to account while posting.
Blue_z was trying to, but to gave you relevant informations, he must know:
- your REAL kernel version ( -ie- were do you get it, wath patch do you applied)
I've already told all above, repeating again :

The kernel is stock 3.6.9 one (no patches applied) from the https://github.com/linux4sam/linux-at91. This link is mentioned at this site as only one from where the people download the kernel for at91 CPU's:

linux4sam/bin/view/Linux4SAM/LinuxKerne ... ource_code

And I will be glad to hear from you or blue_z another kernel URL if I'm wrong.
- what you tried to do (is it normal to have NFC trace...)
I've tried to use the standard ubiformat/nandwrite tools from mtd-utils package. Each time I'm using them the mentioned kernel message appears which means that this problem is 100% reproducable.
Seems like I'm the first one who went to the production with SAMA5D3x as most still using SD card or NAND without NFC ;)
Rus
----------
SfinxSoft
http://sfinxsoft.com

Return to “SAMA5D Cortex-A5 MPU”

Who is online

Users browsing this forum: No registered users and 3 guests