All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] tulip DMA mapping
@ 2000-11-09 20:12 Grant Grundler
  2000-11-10 10:18 ` Matthew Wilcox
  0 siblings, 1 reply; 8+ messages in thread
From: Grant Grundler @ 2000-11-09 20:12 UTC (permalink / raw)
  To: parisc-linux

Hi all,
I see a "bug" in tulip's usage of mapping services.
It's not the bug I was looking for unfortunately.

In line 217 of drivers/net/tulip/interrupt.c:

	if (tp->tx_buffers[entry].mapping)
		pci_unmap_single(tp->pdev,
				tp->tx_buffers[entry].mapping,
				sizeof(tp->setup_frame),
				PCI_DMA_TODEVICE);

0 is a valid pci_map_single() return value when the system has an IO MMU.

The system will panic before pci_map_single() will fail.
The driver needs to remember some other way if a buffer was mapped or not.
Or the Documentation/DMA-mapping.txt should be changed - ie add this
to the interface definition and I can reserve the 1st mapping
entry so no-one uses it.

Should I be mailing Jeff Garzik <jgarzik@mandrakesoft.com> directly?
Or can someone who knows Jeff point this out to him?

thanks,
grant

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-03-04 17:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-09 20:12 [parisc-linux] tulip DMA mapping Grant Grundler
2000-11-10 10:18 ` Matthew Wilcox
2000-11-10 10:16   ` David S. Miller
2000-11-10 11:12     ` Richard Hirst
2000-11-10 11:26       ` David S. Miller
2000-11-10 14:30         ` Jeff Garzik
2001-03-04 17:22         ` Jeff Garzik
2000-11-10 16:29   ` Grant Grundler

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.