public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Need uncached memory for USB - Redboot IXP435
@ 2009-07-11  7:29 mukund jampala
  2009-07-11  7:53 ` Stanislav Meduna
  0 siblings, 1 reply; 4+ messages in thread
From: mukund jampala @ 2009-07-11  7:29 UTC (permalink / raw)
  To: ecos-discuss

Hi Guys,

I am having problems finding the uncached buffers on Redboot on IXP435.
I need these buffers to setup HW descriptors for USB EHCI controller.

I found no means of getting an uncached buffer. Let me know if there is one?
So, I resolved to start using the flush/invalidate MACROS.
HAL_DCACHE_FLUSH / HAL_DCACHE_INVALIDATE.
But it does not work some how? Strangely, it does not flush the
buffers completely.
And the controller gets confused.

The same code works perfectly if I disable the CACHING by placing the
following code in hal_hardware_init(void).
file: "hal/arm/xscale/ixp425/current/src/ixp425_misc.c".

    HAL_DISABLE_INTERRUPTS(oldints);
    HAL_DCACHE_SYNC();
    // HAL_ICACHE_DISABLE();
    HAL_DCACHE_DISABLE();
    HAL_DCACHE_SYNC();
    // HAL_ICACHE_INVALIDATE_ALL();
    HAL_DCACHE_INVALIDATE_ALL();
    HAL_RESTORE_INTERRUPTS(oldints);

I have developed a complete USB EHCI Host stack /drivers for Redboot.
I am this close to completion and I am struck here.

Please help reslove this issue. Any clues would help.

- Mukund Jampala

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-12  7:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-11  7:29 [ECOS] Need uncached memory for USB - Redboot IXP435 mukund jampala
2009-07-11  7:53 ` Stanislav Meduna
     [not found]   ` <cded4b0e0907111651t6bdcd749w274dceb2adca3f4b@mail.gmail.com>
2009-07-12  6:28     ` [ECOS] Fwd: " mukund jampala
2009-07-12  7:34       ` [ECOS] " Stanislav Meduna

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 read-only IMAP folder(s) and NNTP newsgroup(s).