dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Feature Request

Re: Feature Request

From: Christophe Avoinne <>
Date: Sun, 17 Nov 2002 02:21:21 +0100

----- Original Message -----
From: "Björn Stenberg" <>
To: <>
Sent: Sunday, November 17, 2002 1:32 AM
Subject: Re: Feature Request

> Greg Haerr wrote:
> > 2. The system could use asynchronous ata_sector_read/writes
> > without waiting for completion, (Bjorn/Linus is this possible
> > with the Archos HW?)
> Yes it is, we can use interrupt controlled transfers. However this adds a
fair bit of complexity but only little extra speed (if any). Thus we haven't
bothered to implement it.
> --
> Björn

1) Indeed, using an interrupt will reduce waste of cpu usage in yield() if
it can signal the scheduler to reactivate the waiting thread to read/write
the data at the end of interrupt. But the actual design chosen for threading
doesn't allow the interrupt to do so : you must wait for another thread to
yield before the waiting thread will resume and read/write the data.

2) Asynchronous read or write can be more interesting if the code can handle
the previous data sectors while the interrupt reads the new data sectors to
reduce the polling time to get the right data. But such an exercise will
complicate too much the current ATA code, without being sure of such an
opportunity is real.

3) SH1 can use an auto request DMA transfer initiated when executing
interrupt to get/put data from/to ATA PIO DATA. But the fact that SH1 is a
big-endian machine and IDE a little-endian data storage, it is not possible
to swap bytes through the DMA process, so the CPU would need to swap them
after a DMA transfer (which is the major drawback to use it). Using DMA
might only become interesting if using asynchronous read or write like in

My 2 cents worth.
Received on 2002-11-17

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy