Results 1 to 5 of 5
Hi guys,
I've been told that in Linux 2.6.35 if an application tries to write to a FLASH memory, but the FLASH is not ready, then the application's CPU is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-12-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 3
Writing to FLASH memory takes application's CPU
Hi guys,
I've been told that in Linux 2.6.35 if an application tries to write to a FLASH memory, but the FLASH is not ready, then the application's CPU is being "transferd" to the FLASH manipulation driver.
I've been also told that a patch was made to stop this behavior.
Can someone point me to this patch becuase I can't find it myself?
Thank you!
Hadar
- 10-13-2011 #2
Hmmm... not sure what is going on. Your description is a little vague.
However, from a hardware point of view, if the flash drive is USB, then the CPU handles read/writes anyway. This is not like the similar, but not so popular (Apple) Firewire, which has it's own chip in the port (and is therefore potentially faster).
If you see messages relating to CPU being used, this is possibly normal behaviour anyway, though it would seem not to be normal to display such a message.
Hope this helps.
- 10-15-2011 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,227
Are you talking about a flash memory card such as a USB thumb drive or SD card? Or are you talking about system flash memory on the motherboard?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 10-16-2011 #4Just Joined!
- Join Date
- Oct 2011
- Posts
- 3
- 10-16-2011 #5Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,227
I'm not familiar with this driver, but I suspect that it preempts your code and does not return to user space until the transfer is complete, a synchronous operation, rather than a non-blocking one. You might want to look on the kernel.org web site, or post the question to the Linux Foundation forums.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote

