Re: DMA Engine API performance issues

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: melwyn lobo
Date: Thursday, April 15, 2010 - 2:13 am

Thanks so much for your explanation.
OK..Looking at IPU implementation, irq handling is enrtirely in the
interrupt routine, therefore no need for spin_lock_bh stuff.
But for lower interrupt latency reasons we need to stick with the
tasklet handling for processing interrupts.

We were contemplating another solution for locking at our end for DMA
implementation
For locking
if(irqs_disabled())
    spin_lock(&chan->lock);
else
    spin_lock_bh(&chan->lock);

for unlocking:
if(irqs_disabled())
    spin_unlock(&chan->lock);
else
    spin_unlock_bh(&chan->lock);

Although this works  fine, but will this be OK when we submit the driver.

Regards,
M

On Thu, Apr 15, 2010 at 5:38 AM, Dan Williams <dan.j.williams@intel.com> wrote:
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
DMA Engine API performance issues, melwyn lobo, (Tue Apr 13, 11:42 pm)
Fwd: DMA Engine API performance issues, melwyn lobo, (Tue Apr 13, 11:44 pm)
DMA Engine API performance issues, melwyn lobo, (Tue Apr 13, 11:46 pm)
Re: DMA Engine API performance issues, Dan Williams, (Wed Apr 14, 5:08 pm)
Re: DMA Engine API performance issues, melwyn lobo, (Thu Apr 15, 2:13 am)
Re: DMA Engine API performance issues, Dan Williams, (Thu Apr 15, 8:58 am)