LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* current git crashes on bootup with pci_iounmap()
@ 2007-02-13 15:31 Kay Sievers
2007-02-13 16:04 ` Marcel Holtmann
0 siblings, 1 reply; 6+ messages in thread
From: Kay Sievers @ 2007-02-13 15:31 UTC (permalink / raw)
To: linux-kernel
kernel BUG at lib/iomap.c:254!
invalid opcode: 0000 [#1]
...
The screen picture is here:
http://vrfy.org/pci_iounmap.jpg
It's a Thinkpad T43p.
2.6.20 was working fine.
Commenting out:
IO_COND(addr, /* nothing */, iounmap(addr));
in:
lib/iomap.c:254
makes at least booting up possible.
Thanks,
Kay
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: current git crashes on bootup with pci_iounmap()
2007-02-13 15:31 current git crashes on bootup with pci_iounmap() Kay Sievers
@ 2007-02-13 16:04 ` Marcel Holtmann
2007-02-13 16:52 ` Kay Sievers
0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2007-02-13 16:04 UTC (permalink / raw)
To: Kay Sievers; +Cc: linux-kernel
Hi Kay,
> kernel BUG at lib/iomap.c:254!
> invalid opcode: 0000 [#1]
> ...
>
> The screen picture is here:
> http://vrfy.org/pci_iounmap.jpg
>
> It's a Thinkpad T43p.
>
> 2.6.20 was working fine.
>
> Commenting out:
> IO_COND(addr, /* nothing */, iounmap(addr));
> in:
> lib/iomap.c:254
> makes at least booting up possible.
I saw a similar one on my X41. Disabling the AHCI driver made the
machine booting again.
Regards
Marcel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: current git crashes on bootup with pci_iounmap()
2007-02-13 16:04 ` Marcel Holtmann
@ 2007-02-13 16:52 ` Kay Sievers
2007-02-14 20:57 ` Kay Sievers
0 siblings, 1 reply; 6+ messages in thread
From: Kay Sievers @ 2007-02-13 16:52 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-kernel
On Tue, 2007-02-13 at 17:04 +0100, Marcel Holtmann wrote:
> > kernel BUG at lib/iomap.c:254!
> > invalid opcode: 0000 [#1]
> > ...
> >
> > The screen picture is here:
> > http://vrfy.org/pci_iounmap.jpg
> >
> > It's a Thinkpad T43p.
> >
> > 2.6.20 was working fine.
> >
> > Commenting out:
> > IO_COND(addr, /* nothing */, iounmap(addr));
> > in:
> > lib/iomap.c:254
> > makes at least booting up possible.
>
> I saw a similar one on my X41. Disabling the AHCI driver made the
> machine booting again.
Hey Marcel,
yeah, that works fine here too.
Thanks,
Kay
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: current git crashes on bootup with pci_iounmap()
2007-02-13 16:52 ` Kay Sievers
@ 2007-02-14 20:57 ` Kay Sievers
2007-02-21 11:34 ` Tejun Heo
0 siblings, 1 reply; 6+ messages in thread
From: Kay Sievers @ 2007-02-14 20:57 UTC (permalink / raw)
To: Marcel Holtmann, Tejun Heo, Jeff Garzik; +Cc: linux-kernel
On 2/13/07, Kay Sievers <kay.sievers@vrfy.org> wrote:
> On Tue, 2007-02-13 at 17:04 +0100, Marcel Holtmann wrote:
> > > kernel BUG at lib/iomap.c:254!
> > > invalid opcode: 0000 [#1]
> > > ...
> > >
> > > The screen picture is here:
> > > http://vrfy.org/pci_iounmap.jpg
> > >
> > > It's a Thinkpad T43p.
> > >
> > > 2.6.20 was working fine.
> > >
> > > Commenting out:
> > > IO_COND(addr, /* nothing */, iounmap(addr));
> > > in:
> > > lib/iomap.c:254
> > > makes at least booting up possible.
> >
> > I saw a similar one on my X41. Disabling the AHCI driver made the
> > machine booting again.
>
> Hey Marcel,
> yeah, that works fine here too.
Tejun, Jeff, any ideas what's going wrong with the iomap change and
the AHCI driver?
Thanks,
Kay
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: current git crashes on bootup with pci_iounmap()
2007-02-14 20:57 ` Kay Sievers
@ 2007-02-21 11:34 ` Tejun Heo
2007-02-24 19:40 ` Kay Sievers
0 siblings, 1 reply; 6+ messages in thread
From: Tejun Heo @ 2007-02-21 11:34 UTC (permalink / raw)
To: Kay Sievers; +Cc: Marcel Holtmann, Jeff Garzik, linux-kernel
Kay Sievers wrote:
> On 2/13/07, Kay Sievers <kay.sievers@vrfy.org> wrote:
>> On Tue, 2007-02-13 at 17:04 +0100, Marcel Holtmann wrote:
>> > > kernel BUG at lib/iomap.c:254!
>> > > invalid opcode: 0000 [#1]
>> > > ...
>> > >
>> > > The screen picture is here:
>> > > http://vrfy.org/pci_iounmap.jpg
>> > >
>> > > It's a Thinkpad T43p.
>> > >
>> > > 2.6.20 was working fine.
>> > >
>> > > Commenting out:
>> > > IO_COND(addr, /* nothing */, iounmap(addr));
>> > > in:
>> > > lib/iomap.c:254
>> > > makes at least booting up possible.
>> >
>> > I saw a similar one on my X41. Disabling the AHCI driver made the
>> > machine booting again.
>>
>> Hey Marcel,
>> yeah, that works fine here too.
>
> Tejun, Jeff, any ideas what's going wrong with the iomap change and
> the AHCI driver?
The following commit should have fixed the problem, at least the oops.
Care to give the current git head a shot?
commit fb4d64e78ceab77cf20f7796f74aa10ebe862032
Author: Frederik Deweerdt <deweerdt@free.fr>
Date: Fri Feb 16 01:27:15 2007 -0800
[PATCH] pci_iomap_regions() error handling fix
It appears that the pcim_iomap_regions() function doesn't get the error
handling right. It BUGs early at boot with a backtrace along the
lines of:
ahci_init
pci_register_driver
driver_register
[...]
ahci_init_one
pcim_iomap_region
pcim_iounmap
The following patch allows me to boot. Only the if(mask..) continue;
part fixes the problem actually, the gotos where changed so that we
don't try to unmap something we couldn't map anyway.
Signed-off-by: Frederik Deweerdt <frederik.deweerdt@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Tejun Heo <htejun@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
--
tejun
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: current git crashes on bootup with pci_iounmap()
2007-02-21 11:34 ` Tejun Heo
@ 2007-02-24 19:40 ` Kay Sievers
0 siblings, 0 replies; 6+ messages in thread
From: Kay Sievers @ 2007-02-24 19:40 UTC (permalink / raw)
To: Tejun Heo; +Cc: Marcel Holtmann, Jeff Garzik, linux-kernel
On Wed, 2007-02-21 at 20:34 +0900, Tejun Heo wrote:
> Kay Sievers wrote:
> > On 2/13/07, Kay Sievers <kay.sievers@vrfy.org> wrote:
> >> On Tue, 2007-02-13 at 17:04 +0100, Marcel Holtmann wrote:
> >> > > kernel BUG at lib/iomap.c:254!
> >> > > invalid opcode: 0000 [#1]
> >> > > ...
> >> > >
> >> > > The screen picture is here:
> >> > > http://vrfy.org/pci_iounmap.jpg
> >> > >
> >> > > It's a Thinkpad T43p.
> >> > >
> >> > > 2.6.20 was working fine.
> >> > >
> >> > > Commenting out:
> >> > > IO_COND(addr, /* nothing */, iounmap(addr));
> >> > > in:
> >> > > lib/iomap.c:254
> >> > > makes at least booting up possible.
> >> >
> >> > I saw a similar one on my X41. Disabling the AHCI driver made the
> >> > machine booting again.
> >>
> >> Hey Marcel,
> >> yeah, that works fine here too.
> >
> > Tejun, Jeff, any ideas what's going wrong with the iomap change and
> > the AHCI driver?
>
> The following commit should have fixed the problem, at least the oops.
> Care to give the current git head a shot?
Yes, it boots fine now with the AHCI driver compiled in.
Thanks,
Kay
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-02-24 19:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-13 15:31 current git crashes on bootup with pci_iounmap() Kay Sievers
2007-02-13 16:04 ` Marcel Holtmann
2007-02-13 16:52 ` Kay Sievers
2007-02-14 20:57 ` Kay Sievers
2007-02-21 11:34 ` Tejun Heo
2007-02-24 19:40 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).