Re: DMA_NONE data_direction in scsi

From: Christoph Hellwig (hch_at_infradead.org)
Date: 11/18/03

  • Next message: Ihar 'Philips' Filipau: "Re: [Q] jiffies overflow & timers."
    Date:	Tue, 18 Nov 2003 09:46:52 +0000
    To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
    
    

    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/


  • Next message: Ihar 'Philips' Filipau: "Re: [Q] jiffies overflow & timers."

    Relevant Pages

    • Re: Make pipe data structure be a circular list of pages, rather than
      ... We need those "map" operations in order to handle other ... least a bigger multi-page allocation. ... architectures you can actually do a memcpy on IO space too. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Benchmarking objrmap under memory pressure
      ... I see what you mean with mem= being troublesome, I forgot you're numa=y, ... that you should find in arch/i386/kernel/setup.c, that should work w/o ... everything else numa is built on top of that map, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.11-rc3: Kylix application no longer works?
      ... > However I worry if there is some way in which we can leave unzeroed memory ... The 0xb7354 is size to map from the file, the 0x1b7354 is size to map ... Daniel Jacobowitz ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: virt_to_page/pci_map_page vs. pci_map_single
      ... If the data you have to map is> 1 Page, then the scatter gather ... interface ) is a better way to handle it. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: PCI memory allocation bug with CONFIG_HIGHMEM
      ... Actually, that would suck. ... I think the proper fix would be to make the "mem=" stuff do the right ... it shouldn't be impossible to get a "reasonably good" map from ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)