lkml.org 
[lkml]   [2008]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 03/10] x86: add initialization code for DMA-API debugging
From
On Sat, 22 Nov 2008 10:40:32 +0100
Joerg Roedel <joro@8bytes.org> wrote:

> > > +static int hash_fn(struct dma_debug_entry *entry)
> > > +{
> > > + /*
> > > + * Hash function is based on the dma address.
> > > + * We use bits 20-27 here as the index into the hash
> > > + */
> > > + BUG_ON(entry->dev_addr == bad_dma_address);
> >
> > 'bad_dma_address' is x86 specific. You already found it though.
>
> Interesting. Is there another value for dma_addr_t which drivers can
> check for to find out if a dma-api operation failed?

They are architecture dependent. But only X86 uses a variable because
of GART and swiotlb, I think.


\
 
 \ /
  Last update: 2008-11-22 11:19    [W:0.079 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site