[lkml]   [2003]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [BK-2.5] Update the generic DMA API to take GFP_ flags on
From said:
> Now what about the corollary, a platform that needs to sleep to setup
> the cpu mapings in a race-free manner?

This one is the big bug bear. The DMA-mapping.txt doc says
pci_alloc_consistent "may be called in interrupt context". Thus if the
dma_alloc with GFP_ATOMIC uses the same code path, it should be safe.
However, there are indications that pci_alloc_consistent wasn't interrupt safe
on certain platforms (see other email re PA-RISC).

In any event, we're no worse off than we were with the pci_ API. Passing in
the flags will hopefully allow us to create GFP_ATOMIC safe paths in the arch
implementations which look iffy.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.036 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site