Re: [PATCH 2.6.17-rc3-omap] omap_cf works better

David Brownell
2006-05-03T14:45:13Z

On Monday 01 May 2006 2:04 pm, David Brownell wrote:
>
> There's still something way goofy going on. The driver
> mostly behaves, but under much load something will access
> a bogus (and unmapped) kernel address, causing trouble.
> I suspect that's in the pcmcia core, not omap_cf.

More info on this problem. With PREEMPT enabled, the access
came when testing "current" for the current preempt count,
while switching IRQ handlers in the IDE system. (At least,
during the time I managed to get a decent stack trace.)

With it disabled, the fault was a "scheduling while atomic"
error ... but the "current->comm" was bogus, ditto the value
of preempt_count(). dump_stack() didn't work...

In both cases it looked as if "current" had become garbage.

So I'm pretty comfortable thinking the issue isn't omap_cf.

But the real problem could be a variety of other places,
and I don't have time to chase it down. Maybe someone else
has some strange failures to report, so clues could add up.
I'm not sure if the problem is only in the OMAP tree; or if
it only affects CF card access.

- Dave