From: Jens Axboe <jens.axboe@oracle.com>
To: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: Torsten Kaiser <just.for.lkml@googlemail.com>,
linux-kernel@vger.kernel.org,
linux1394-devel@lists.sourceforge.net
Subject: Re: 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49!
Date: Sat, 3 Nov 2007 08:03:51 +0100 [thread overview]
Message-ID: <20071103070350.GE28340@kernel.dk> (raw)
In-Reply-To: <472BAFDF.9000301@s5r6.in-berlin.de>
On Sat, Nov 03 2007, Stefan Richter wrote:
> I wrote:
> > 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!
> >> [ 57.209559] invalid opcode: 0000 [1] SMP
> >> [ 57.213667] CPU 0
> >> [ 57.215742] Modules linked in:
> >> [ 57.218857] Pid: 1, comm: swapper Not tainted 2.6.24-rc1 #1
> >> [ 57.224435] RIP: 0010:[<ffffffff80463512>] [<ffffffff80463512>] dma_region_alloc+0x142/0x180
> >> [ 57.233003] RSP: 0000:ffff810004f29db0 EFLAGS: 00010293
> >> [ 57.238322] RAX: ffffc20001454000 RBX: 0000000000000000 RCX: ffffe20001c7e690
> >> [ 57.245457] RDX: 0000000000000000 RSI: 00003ffffffff000 RDI: 0000000000000388
> >> [ 57.252592] RBP: ffff810005ddca48 R08: 0000000000000000 R09: ffffc20001454000
> >> [ 57.259727] R10: 0000000000000002 R11: 0000000000000000 R12: 0000000087654321
> >> [ 57.266862] R13: ffff810100914000 R14: 0000000000000002 R15: ffff810005e88000
> >> [ 57.273996] FS: 0000000000000000(0000) GS:ffffffff8079c000(0000) knlGS:0000000000000000
> >> [ 57.282082] CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
> >> [ 57.287834] CR2: 0000000000e01766 CR3: 0000000000201000 CR4: 00000000000006e0
> >> [ 57.294968] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> >> [ 57.302102] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> >> [ 57.309238] Process swapper (pid: 1, threadinfo ffff810004f28000, task ffff81010032a000)
> >> [ 57.317332] Stack: ffff810005ddca48 0000000000000002 ffff810005ddca00 0000000000000010
> >> [ 57.325546] 000000000000001f ffffffff80464146 ffffffff8089ff00 0000000000010000
> >> [ 57.333104] ffff810005ddca00 ffff8101011b66c0 ffff810005e88000 ffffffff80754740
> >> [ 57.340455] Call Trace:
> >> [ 57.343139] [<ffffffff80464146>] hpsb_iso_common_init+0x1e6/0x210
> >> [ 57.349322] [<ffffffff80464198>] hpsb_iso_recv_init+0x28/0x70
> >> [ 57.355159] [<ffffffff8046c940>] ether1394_iso+0x0/0x130
> >> [ 57.360564] [<ffffffff8046bc08>] ether1394_recv_init+0x58/0xd0
> [...]
> >> 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.
>
> Jens, maybe you can come up with a fix quicker than I could.
Sure, I'll take a look!
--
Jens Axboe
next prev parent reply other threads:[~2007-11-03 7:04 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-02 22:03 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49! Torsten Kaiser
2007-11-02 22:32 ` Stefan Richter
2007-11-02 23:16 ` Stefan Richter
2007-11-03 7:03 ` Jens Axboe [this message]
2007-11-03 13:14 ` Torsten Kaiser
2007-11-03 14:42 ` Stefan Richter
2007-11-03 16:04 ` Jens Axboe
2007-11-04 8:44 ` Jens Axboe
2007-11-04 10:51 ` Torsten Kaiser
2007-11-04 12:08 ` [PATCH 1/3 2.6.24-rc1-gitX] ieee1394: iso and async streams: s/g list fix Stefan Richter
2007-11-04 12:09 ` [PATCH 2/3 2.6.24-rc1-gitX] ieee1394: sbp2: " Stefan Richter
2007-11-04 12:10 ` [PATCH 3/3 2.6.24-rc1-gitX] firewire: fw-sbp2: " Stefan Richter
2007-11-04 12:27 ` [PATCH 2/3 2.6.24-rc1-gitX] ieee1394: sbp2: " Stefan Richter
2007-11-04 13:03 ` 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49! Jens Axboe
2007-11-04 13:19 ` Stefan Richter
2007-11-04 13:26 ` Jens Axboe
2007-11-04 13:58 ` [PATCH 1/3] firewire: fw-sbp2: enable s/g chaining Stefan Richter
2007-11-04 13:58 ` [PATCH 2/3] ieee1394: sbp2: " Stefan Richter
2007-11-04 13:59 ` [PATCH 3/3] ieee1394: sbp2: s/g list access cosmetics Stefan Richter
2008-02-01 21:31 ` [PATCH] ieee1394: sbp2: fix bogus s/g access change Stefan Richter
2007-11-04 14:53 ` 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49! Torsten Kaiser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071103070350.GE28340@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=just.for.lkml@googlemail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=stefanr@s5r6.in-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.