Re: Kernel BUG at include/linux/gfp.h:80

From: Pekka J Enberg
Date: Fri Jan 20 2006 - 05:14:52 EST


Hi Carsten,

On 1/19/06, Carsten Otto <c-otto@xxxxxx> wrote:
> As indicated the sounddriver seems to have some sort of problem. I
> disabled it and now I can boot (without problems).

Does the following patch fix your problem?

Pekka

Index: 2.6/lib/swiotlb.c
===================================================================
--- 2.6.orig/lib/swiotlb.c
+++ 2.6/lib/swiotlb.c
@@ -444,7 +444,8 @@ swiotlb_alloc_coherent(struct device *hw
* instead, or use ZONE_DMA32 (ia64 overloads ZONE_DMA to be a ~32
* bit range instead of a 16MB one).
*/
- flags |= GFP_DMA;
+ if (!(flags & GFP_DMA32))
+ flags |= GFP_DMA;

ret = (void *)__get_free_pages(flags, order);
if (ret && address_needs_mapping(hwdev, virt_to_phys(ret))) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/