All of lore.kernel.org
 help / color / mirror / Atom feed
* pci_unmap_single - 2.5 kernel
@ 2002-09-18 21:14 Brian Murphy
  0 siblings, 0 replies; only message in thread
From: Brian Murphy @ 2002-09-18 21:14 UTC (permalink / raw)
  To: Linux-MIPS

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-18 21:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-18 21:14 pci_unmap_single - 2.5 kernel Brian Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.