lkml.org 
[lkml]   [2003]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: DMA_NONE data_direction in scsi
On Mon, Nov 17, 2003 at 08:25:19PM +0100, Guennadi Liakhovetski wrote:
> While trying to fix tmscsim for 2.6, I've arrived at the Oops below, which
> is caused by the BUG_ON() in dma_map_page(). In the backtrace below,
> data_direction is set to DMA_BIDIRECTIONAL in sd_revalidate_disk(),
>
> sreq->sr_data_direction = DMA_BIDIRECTIONAL;
>
> , but already in sd_spinup_disk() it is reset to DMA_NONE:
>
> SRpnt->sr_data_direction = DMA_NONE;
>
> So, the question is: is this the correct behaviour, and, if so - how is
> the driver supposed to map this request - which direction to pass to
> dma_map_*?

DMA_NONE means there's nothing to map.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.058 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site