Re: [BUG] x86_64 pci_map_sg modifies sg list - fails multiple map/unmaps
From: David S. Miller (davem_at_redhat.com)
Date: 01/05/04
- Previous message: Vojtech Pavlik: "Re: udev and devfs - The final word"
- In reply to: Andi Kleen: "Re: [BUG] x86_64 pci_map_sg modifies sg list - fails multiple map/unmaps"
- Next in thread: Andi Kleen: "Re: [BUG] x86_64 pci_map_sg modifies sg list - fails multiple map/unmaps"
- Reply: Andi Kleen: "Re: [BUG] x86_64 pci_map_sg modifies sg list - fails multiple map/unmaps"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 5 Jan 2004 13:01:18 -0800 To: Andi Kleen <ak@suse.de>
On 05 Jan 2004 22:02:19 +0100
Andi Kleen <ak@suse.de> wrote:
> It sets length to zero to terminate the list when entries were merged.
> It doesn't have a dma_length.
I understand, and you are defining dma_length to just use the
normal sg->length field, and I'm trying to explain to you that this
is not allowed. If you want to modify the length field to zero terminate
the DMA chunks, you must have a seperate dma_length field in your
platforms scatterlist structure.
Again, for the 3rd time, see what sparc64 is doing here.
> It tripping over remapped lists is an side effect, but an useful one
> because remapping is not supported (merging destroys information that
> cannot be reconstructed). If the bug didn't exist you would get data
> corruption.
You should not be modifying any portion of the non-DMA fields.
Therefore, if the SG is unmapped, then passed into your IOMMU code for
a future map call, it should just work.
-
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/
- Previous message: Vojtech Pavlik: "Re: udev and devfs - The final word"
- In reply to: Andi Kleen: "Re: [BUG] x86_64 pci_map_sg modifies sg list - fails multiple map/unmaps"
- Next in thread: Andi Kleen: "Re: [BUG] x86_64 pci_map_sg modifies sg list - fails multiple map/unmaps"
- Reply: Andi Kleen: "Re: [BUG] x86_64 pci_map_sg modifies sg list - fails multiple map/unmaps"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|