Re: 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails toboot: kernel BUG at include/linux/scatterlist.h:49!

From: Stefan Richter
Date: Fri Nov 02 2007 - 18:32:30 EST


Torsten Kaiser wrote:
> Both 2.6.24-rc1 and the current git version fail to boot for me:
>
> [ 57.182205] ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[16]
> MMIO=[effff800-efffffff] Max Packet=
> [2048] IR/IT contexts=[4/8]
> [ 57.194032] eth1394: eth2: IPv4 over IEEE 1394 (fw-host0)
> [ 57.199527] ------------[ cut here ]------------
> [ 57.204154] kernel BUG at include/linux/scatterlist.h:49!

To which extent do you need IEEE 1394 drivers?

[...]
> from gdb:
> 0xffffffff80463512 is in dma_region_alloc (include/linux/scatterlist.h:49).
> 44 * In order for the low bit stealing approach to work, pages
> 45 * must be aligned at a 32-bit boundary as a minimum.
> 46 */
> 47 BUG_ON((unsigned long) page & 0x03);
> 48 #ifdef CONFIG_DEBUG_SG
> 49 BUG_ON(sg->sg_magic != SG_MAGIC);
> 50 #endif
> 51 sg->page_link = page_link | (unsigned long) page;
> 52 }
> 53

Uh oh...

I'm afraid the ieee1394 core's own scatter-gather list managing code
didn't survive the changes in the kernel's s/g list implementation.

Alas I will be quite busy with non-Linux related stuff during at least
the next two weeks and can't fix this myself for now.
--
Stefan Richter
-=====-=-=== =-== ---=-
http://arcgraph.de/sr/
-
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/