Thread (2 messages) 2 messages, 2 authors, 2007-07-12

Re: 2.6.22-rc6 bad page error

From: Hugh Dickins <hidden>
Date: 2007-07-12 16:14:38
Also in: lkml

Possibly related (same subject, not in this thread)

On Thu, 12 Jul 2007, Ivan Kokshaysky wrote:
On Wed, Jul 11, 2007 at 06:07:59PM +0100, Hugh Dickins wrote:
quoted
quoted
+	return __pci_alloc_consistent(dev, size, dma, GFP_ATOMIC);
I was going to ask you why that needs to be GFP_ATOMIC on Alpha.
But find you're following the example of asm-generic and others.
So really should be asking Sparc how it gets away with GFP_KERNEL.
According to DMA-mapping.txt GFP_ATOMIC is mandatory for
pci_alloc_consistent() since it can be called from interrupt context.
So sparc code is probably incorrect...
Hi Bill, we've veered away from the original topic, and are wondering
how the sparc32 pci_alloc_consistent() gets away with using GFP_KERNEL,
when GFP_ATOMIC seems to be required?

Hugh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help