All of lore.kernel.org
 help / color / mirror / Atom feed
* virt_to_page(pci_alloc_consistent())
@ 2002-10-03  6:38 Pete Zaitcev
  2002-10-03  8:03 ` virt_to_page(pci_alloc_consistent()) David S. Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Pete Zaitcev @ 2002-10-03  6:38 UTC (permalink / raw)
  To: linux-kernel; +Cc: Pete Zaitcev

Guys,

I just noticed that sound drivers use the address from
pci_alloc_consistent() as the input to virt_to_page() all
over the place. I looked into the Documentation/DMA-mapping.txt,
and it says:

  This routine will allocate RAM for that region, so it acts similarly to
  __get_free_pages (but takes size instead of a page order).

I know for fact I got it wrong in sparc in whole 2.4, and it seems
RMK got it wrong in arm. I suggest other architecture maintainers
to look at it ASAP. May even be oopsabe, by indexing outside of
mem_map[] with a suitable sound driver.

-- Pete

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

end of thread, other threads:[~2002-10-03 17:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-03  6:38 virt_to_page(pci_alloc_consistent()) Pete Zaitcev
2002-10-03  8:03 ` virt_to_page(pci_alloc_consistent()) David S. Miller
2002-10-03 16:25   ` virt_to_page(pci_alloc_consistent()) Pete Zaitcev
2002-10-03 17:11     ` virt_to_page(pci_alloc_consistent()) David S. Miller

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.