consistent_alloc from an interrupt context

2002-06-13 Thread Dan Malek
Eugene Surovegin wrote: > I thought of it, but is it OK to modify arch-independent code with such > a hack? It's OK in your own code, I probably still have some around that looks like that :-) > Maybe this is the reason it never was accepted. I'll have to search for the messages where this was

consistent_alloc from an interrupt context

2002-06-13 Thread Dan Malek
Eugene Surovegin wrote: > Current PPC implementation of consistent_alloc cannot be called from an > interrupt context. H.Why did I think this was corrected in the past? I see all of the consistent_alloc users are doing the same thing. I know we discussed this, and the solution was actu

consistent_alloc from an interrupt context

2002-06-12 Thread Eugene Surovegin
Dan, At 09:05 PM 6/12/2002, you wrote: H.Why did I think this was corrected in the past? I see all of >the consistent_alloc users are doing the same thing. I know we discussed >this, and the solution was actually quite trivial. All we have to do is >pass a GFP_ATOMIC into the kmalloc()

consistent_alloc from an interrupt context

2002-06-12 Thread Eugene Surovegin
Hi! Current PPC implementation of consistent_alloc cannot be called from an interrupt context. This function is used by pci_alloc_consistent when CONFIG_NOT_COHERENT_CACHE is defined. Unfortunately it contradicts Documentation/DMA-mapping.txt which clearly states that pci_alloc_consistent can be