Skip to contentSkip to conversation

pci_unmap_single - 2.5 kernel

DISCUSSION Brian Murphy 1 participant 1 message Sep 18, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

In the 2.5 kernel pci_map_sg contains these lines:

               addr = (unsigned long) page_address(sg->page);
               if (addr)
                       dma_cache_wback_inv(addr, sg->length);

Surely when flushing the offset needs to be added to the page base address (addr)? So that this reads:

               if (addr)
                       dma_cache_wback_inv(addr + sg->offset, sg->length);

/Brian