public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* __get_free_pages() problem on ia64
@ 2006-09-26 15:28 Adhiraj
  2006-09-26 16:48 ` Matthew Wilcox
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Adhiraj @ 2006-09-26 15:28 UTC (permalink / raw)
  To: linux-ia64

Hi All,

I found a strange thing on ia64 platform. When I allocate pages using
__get_free_pages() with GFP_DMA, sometimes the physical addresses of
allocated pages fall beyond 4G.

I am working on a device driver where the device does not support
addresses above 4G and hence I have to implement bounce buffers. The
bounce buffer code works fine on other architectures. But since I get 
4G+ addresses on ia64, the code would not work. Any idea why should this
happen? And any workaround if I _NEED_ addresses below 4G. The machine
has 2G of physical memory.

The dma mask for the driver is set to 64 bits using pci_set_dma_mask().

Thanks in advance,
Adhiraj.


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

end of thread, other threads:[~2006-09-27 16:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 15:28 __get_free_pages() problem on ia64 Adhiraj
2006-09-26 16:48 ` Matthew Wilcox
2006-09-27  5:20 ` Adhiraj
2006-09-27 11:26 ` Matthew Wilcox
2006-09-27 16:11 ` Luck, Tony
2006-09-27 16:15 ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox