* PXA3xx NAND driver trouble with 'conservative' CPU govenor
@ 2009-07-09 19:01 Daniel Mack
2009-07-10 0:50 ` Eric Miao
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Mack @ 2009-07-09 19:01 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: linux-mtd, Eric Miao
With the cpu govenor set to 'conservative', the PXA3xx NAND driver fails
the tests from drivers/mtd/tests:
sh-3.2# modprobe mtd_torturetest dev=3
[ 386.367730]
[ 386.369296] =================================================
[ 386.375258] mtd_torturetest: Warning: this program is trying to wear out your flash, stop it if this is not wanted.
[ 386.385811] mtd_torturetest: MTD device: 3
[ 386.390021] mtd_torturetest: torture 32 eraseblocks (8-39) of mtd3
[ 386.396238] mtd_torturetest: write verify enabled
[ 388.675993] double bit error @ page 00000b79
[ 388.680406] timed out writing command
[ 388.687925] mtd_torturetest: error -74 while reading EB 36, read 131072
[ 388.694536] mtd_torturetest: verify failed for 0xFF... pattern
[ 388.700364] mtd_torturetest: finished after 0 erase cycles
[ 388.705885] mtd_torturetest: error -74 occurred during torturing
[ 388.711908] =================================================
modprobe: Failed to load module mtd_torturetest: Bad message.
When setting the govenor to 'performance', the test passes. Has anyone
seen similar issues? Any idea, anyone?
Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PXA3xx NAND driver trouble with 'conservative' CPU govenor
2009-07-09 19:01 PXA3xx NAND driver trouble with 'conservative' CPU govenor Daniel Mack
@ 2009-07-10 0:50 ` Eric Miao
2009-07-10 8:41 ` Daniel Mack
0 siblings, 1 reply; 3+ messages in thread
From: Eric Miao @ 2009-07-10 0:50 UTC (permalink / raw)
To: Daniel Mack; +Cc: linux-mtd, linux-arm-kernel
Daniel Mack wrote:
> With the cpu govenor set to 'conservative', the PXA3xx NAND driver fails
> the tests from drivers/mtd/tests:
>
> sh-3.2# modprobe mtd_torturetest dev=3
> [ 386.367730]
> [ 386.369296] =================================================
> [ 386.375258] mtd_torturetest: Warning: this program is trying to wear out your flash, stop it if this is not wanted.
> [ 386.385811] mtd_torturetest: MTD device: 3
> [ 386.390021] mtd_torturetest: torture 32 eraseblocks (8-39) of mtd3
> [ 386.396238] mtd_torturetest: write verify enabled
> [ 388.675993] double bit error @ page 00000b79
> [ 388.680406] timed out writing command
> [ 388.687925] mtd_torturetest: error -74 while reading EB 36, read 131072
> [ 388.694536] mtd_torturetest: verify failed for 0xFF... pattern
> [ 388.700364] mtd_torturetest: finished after 0 erase cycles
> [ 388.705885] mtd_torturetest: error -74 occurred during torturing
> [ 388.711908] =================================================
> modprobe: Failed to load module mtd_torturetest: Bad message.
>
> When setting the govenor to 'performance', the test passes. Has anyone
> seen similar issues? Any idea, anyone?
What's the current CPU freq when in conservative? cat /proc/cpuinfo?
>
> Daniel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PXA3xx NAND driver trouble with 'conservative' CPU govenor
2009-07-10 0:50 ` Eric Miao
@ 2009-07-10 8:41 ` Daniel Mack
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Mack @ 2009-07-10 8:41 UTC (permalink / raw)
To: Eric Miao; +Cc: linux-mtd, linux-arm-kernel
On Fri, Jul 10, 2009 at 08:50:33AM +0800, Eric Miao wrote:
> Daniel Mack wrote:
> > With the cpu govenor set to 'conservative', the PXA3xx NAND driver fails
> > the tests from drivers/mtd/tests:
> >
> > sh-3.2# modprobe mtd_torturetest dev=3
> > [ 386.367730]
> > [ 386.369296] =================================================
> > [ 386.375258] mtd_torturetest: Warning: this program is trying to wear out your flash, stop it if this is not wanted.
> > [ 386.385811] mtd_torturetest: MTD device: 3
> > [ 386.390021] mtd_torturetest: torture 32 eraseblocks (8-39) of mtd3
> > [ 386.396238] mtd_torturetest: write verify enabled
> > [ 388.675993] double bit error @ page 00000b79
> > [ 388.680406] timed out writing command
> > [ 388.687925] mtd_torturetest: error -74 while reading EB 36, read 131072
> > [ 388.694536] mtd_torturetest: verify failed for 0xFF... pattern
> > [ 388.700364] mtd_torturetest: finished after 0 erase cycles
> > [ 388.705885] mtd_torturetest: error -74 occurred during torturing
> > [ 388.711908] =================================================
> > modprobe: Failed to load module mtd_torturetest: Bad message.
> >
> > When setting the govenor to 'performance', the test passes. Has anyone
> > seen similar issues? Any idea, anyone?
>
> What's the current CPU freq when in conservative? cat /proc/cpuinfo?
/proc/cpuinfo shows 34.61 BogoMIPS, and
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq tells me 104MHz.
Judging from the clock diagram, there is either 156MHz or 30MHz (for
ring-oscillator mode) applied to the NAND controller.
I've prepared two patches (which will follow to this mail) that
a) make the nand driver aware of frequency changes and
b) report the correct clk rate for RO mode
But unfortunately, they won't solve the problem.
Any other idea?
Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-07-10 8:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-09 19:01 PXA3xx NAND driver trouble with 'conservative' CPU govenor Daniel Mack
2009-07-10 0:50 ` Eric Miao
2009-07-10 8:41 ` Daniel Mack
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).