* uhci-hcd oops with 2.4.27/ intel D845GLVA
@ 2004-08-10 12:59 Kai Militzer
2004-08-10 17:10 ` Marcelo Tosatti
0 siblings, 1 reply; 9+ messages in thread
From: Kai Militzer @ 2004-08-10 12:59 UTC (permalink / raw)
To: Linux Kernel Mailing List
Hello everyone!
> I unable to boot due to a kernel oops on my D845GLVA. This
> worked fine in 2.4.26, but with the same (well, except for the
> new features) config 2.4.27 does not.
I've got the same problem here. Did an make oldconfig from a 2.4.26
config, booted and the systems made an oops.
Problem is, that the system is production and I can't test, where the
problem is in special. We had two reboots already and even that is
nearly too much.
Best regards
Kai
--
Kai Militzer WESTEND GmbH | Internet-Business-Provider
Technik CISCO Systems Partner - Authorized Reseller
Lütticher Straße 10 Tel 0241/701333-11
km@westend.com D-52064 Aachen Fax 0241/911879
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: uhci-hcd oops with 2.4.27/ intel D845GLVA
2004-08-10 12:59 uhci-hcd oops with 2.4.27/ intel D845GLVA Kai Militzer
@ 2004-08-10 17:10 ` Marcelo Tosatti
2004-08-10 17:10 ` Marcelo Tosatti
[not found] ` <mailman.1092163681.21436.linux-kernel2news@redhat.com>
0 siblings, 2 replies; 9+ messages in thread
From: Marcelo Tosatti @ 2004-08-10 17:10 UTC (permalink / raw)
To: Kai Militzer; +Cc: Linux Kernel Mailing List
On Tue, Aug 10, 2004 at 02:59:37PM +0200, Kai Militzer wrote:
> Hello everyone!
>
> > I unable to boot due to a kernel oops on my D845GLVA. This
> > worked fine in 2.4.26, but with the same (well, except for the
> > new features) config 2.4.27 does not.
>
> I've got the same problem here. Did an make oldconfig from a 2.4.26
> config, booted and the systems made an oops.
>
> Problem is, that the system is production and I can't test, where the
> problem is in special. We had two reboots already and even that is
> nearly too much.
Kai,
Can you please post the oops message?
Thats the only way we can try fix it.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: uhci-hcd oops with 2.4.27/ intel D845GLVA
2004-08-10 17:10 ` Marcelo Tosatti
@ 2004-08-10 17:10 ` Marcelo Tosatti
[not found] ` <mailman.1092163681.21436.linux-kernel2news@redhat.com>
1 sibling, 0 replies; 9+ messages in thread
From: Marcelo Tosatti @ 2004-08-10 17:10 UTC (permalink / raw)
To: Kai Militzer; +Cc: Linux Kernel Mailing List
On Tue, Aug 10, 2004 at 02:10:00PM -0300, Marcelo Tosatti wrote:
> On Tue, Aug 10, 2004 at 02:59:37PM +0200, Kai Militzer wrote:
> > Hello everyone!
> >
> > > I unable to boot due to a kernel oops on my D845GLVA. This
> > > worked fine in 2.4.26, but with the same (well, except for the
> > > new features) config 2.4.27 does not.
> >
> > I've got the same problem here. Did an make oldconfig from a 2.4.26
> > config, booted and the systems made an oops.
> >
> > Problem is, that the system is production and I can't test, where the
> > problem is in special. We had two reboots already and even that is
> > nearly too much.
>
> Kai,
>
> Can you please post the oops message?
>
> Thats the only way we can try fix it.
And I'm unable to find the message you are responding to,
can you please forward me it?
^ permalink raw reply [flat|nested] 9+ messages in thread[parent not found: <mailman.1092163681.21436.linux-kernel2news@redhat.com>]
* Re: uhci-hcd oops with 2.4.27/ intel D845GLVA
[not found] ` <mailman.1092163681.21436.linux-kernel2news@redhat.com>
@ 2004-08-10 20:54 ` Pete Zaitcev
2004-08-11 4:37 ` David Brownell
2004-08-11 11:08 ` Nick Bartos
0 siblings, 2 replies; 9+ messages in thread
From: Pete Zaitcev @ 2004-08-10 20:54 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: zaitcev, linux-kernel, spam99, km, david-b
On Tue, 10 Aug 2004 14:10:42 -0300
Marcelo Tosatti <marcelo.tosatti@cyclades.com> wrote:
> And I'm unable to find the message you are responding to,
> can you please forward me it?
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=2rhs2-6H8-11%40gated-at.bofh.it
The "uhci-hcd in 2.4.27" was launched by Nick, Kai simply reused that
header. I should note when I saw "uhci-hcd" I automatically ignored it,
because there's no uhci-hcd in 2.4.
> ehci_hcd 00:1d.7: Bios handoff failed (104, 1010001)
> unable to handle kernel NULL pointer dereference at virtual address 00000048
This is a clue. I know that EHCI goes belly up if it fails to execute
the handoff.
The attached ought to fix Nick up (no way to tell about Kai because his
report had no data). It consists of two things. First, it fixes the
oops in the scan_async. Second, it prevents the oops from happening by
ignoring the handoff failure (as the old code did, in effect). Either
one should be sufficient, but this is why I use both. The if around
scan_async is the right fix, so it's there on merit. However, it yields
a non-working EHCI if your BIOS is buggy.
I know that David Brownlee disagrees with writing zero into the
configuration space, but it looks safer to me, because old code
did write that zero.
-- Pete
--- linux-2.4.27/drivers/usb/host/ehci-hcd.c 2004-08-10 13:43:36.691040600 -0700
+++ linux-2.4.21-17.EL-usb1/drivers/usb/host/ehci-hcd.c 2004-07-30 16:21:12.000000000 -0700
@@ -303,7 +302,8 @@
if (cap & (1 << 16)) {
ehci_err (ehci, "BIOS handoff failed (%d, %04x)\n",
where, cap);
- return 1;
+ pci_write_config_dword (ehci->hcd.pdev, where, 0);
+ return 0;
}
ehci_dbg (ehci, "BIOS handoff succeeded\n");
}
@@ -547,7 +547,8 @@
/* root hub is shut down separately (first, when possible) */
spin_lock_irq (&ehci->lock);
- ehci_work (ehci, NULL);
+ if (ehci->async)
+ ehci_work (ehci, NULL);
spin_unlock_irq (&ehci->lock);
ehci_mem_cleanup (ehci);
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: uhci-hcd oops with 2.4.27/ intel D845GLVA
2004-08-10 20:54 ` Pete Zaitcev
@ 2004-08-11 4:37 ` David Brownell
2004-08-11 5:02 ` Pete Zaitcev
2004-08-11 11:08 ` Nick Bartos
1 sibling, 1 reply; 9+ messages in thread
From: David Brownell @ 2004-08-11 4:37 UTC (permalink / raw)
To: Pete Zaitcev; +Cc: Marcelo Tosatti, linux-kernel, spam99, km
On Tuesday 10 August 2004 1:54 pm, Pete Zaitcev wrote:
>
> The attached ought to fix Nick up (no way to tell about Kai because his
> report had no data). It consists of two things. First, it fixes the
> oops in the scan_async.
That's a NOP, ehci->async must never be null.
What oops? The original post didn't include a stack...
> Second, it prevents the oops from happening by
> ignoring the handoff failure (as the old code did, in effect). Either
> one should be sufficient, but this is why I use both. The if around
> scan_async is the right fix, so it's there on merit.
Erm, no that's a NOP.
> However, it yields
> a non-working EHCI if your BIOS is buggy.
Depends on the particular bug you're hypothesizing is in
the BIOS ... the original bug was fixed by Dell's patch on at
least two different motherboards. So you seem to want
a slightly different BIOS bug to be worked around ...
> I know that David Brownlee disagrees with writing zero into the
> configuration space, but it looks safer to me, because old code
> did write that zero.
Dave who? :)
Actually, I don't recall anyone providing a patch that addressing
that second type of BIOS bug before. Makes sense to me to fall
back to that old Linux bug; why not!
- Dave
>
> -- Pete
>
> --- linux-2.4.27/drivers/usb/host/ehci-hcd.c 2004-08-10 13:43:36.691040600
-0700
> +++ linux-2.4.21-17.EL-usb1/drivers/usb/host/ehci-hcd.c 2004-07-30
16:21:12.000000000 -0700
> @@ -303,7 +302,8 @@
> if (cap & (1 << 16)) {
> ehci_err (ehci, "BIOS handoff failed (%d, %04x)\n",
> where, cap);
> - return 1;
> + pci_write_config_dword (ehci->hcd.pdev, where, 0);
> + return 0;
> }
> ehci_dbg (ehci, "BIOS handoff succeeded\n");
> }
> @@ -547,7 +547,8 @@
>
> /* root hub is shut down separately (first, when possible) */
> spin_lock_irq (&ehci->lock);
> - ehci_work (ehci, NULL);
> + if (ehci->async)
> + ehci_work (ehci, NULL);
> spin_unlock_irq (&ehci->lock);
> ehci_mem_cleanup (ehci);
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: uhci-hcd oops with 2.4.27/ intel D845GLVA
2004-08-11 4:37 ` David Brownell
@ 2004-08-11 5:02 ` Pete Zaitcev
2004-08-11 7:16 ` David Brownell
0 siblings, 1 reply; 9+ messages in thread
From: Pete Zaitcev @ 2004-08-11 5:02 UTC (permalink / raw)
To: David Brownell; +Cc: Marcelo Tosatti, linux-kernel, spam99, km, zaitcev
On Tue, 10 Aug 2004 21:37:26 -0700
David Brownell <david-b@pacbell.net> wrote:
> > First, it fixes the oops in the scan_async.
>
> That's a NOP, ehci->async must never be null.
This is news. I received this patch FROM YOU. And I shipped it with
RHEL3 U3. And now it's a nop? What gives?! By the way, it's verified
to fix the oops when handoff fails.
> > +++ linux-2.4.21-17.EL-usb1/drivers/usb/host/ehci-hcd.c 2004-07-30 16:21:12.000000000 -0700
> > @@ -547,7 +547,8 @@
> >
> > /* root hub is shut down separately (first, when possible) */
> > spin_lock_irq (&ehci->lock);
> > - ehci_work (ehci, NULL);
> > + if (ehci->async)
> > + ehci_work (ehci, NULL);
> > spin_unlock_irq (&ehci->lock);
Please look at this:
http://www.ussg.iu.edu/hypermail/linux/kernel/0404.2/0156.html
-- Pete
P.S. Sorry to get your name wrong, David.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: uhci-hcd oops with 2.4.27/ intel D845GLVA
2004-08-11 5:02 ` Pete Zaitcev
@ 2004-08-11 7:16 ` David Brownell
0 siblings, 0 replies; 9+ messages in thread
From: David Brownell @ 2004-08-11 7:16 UTC (permalink / raw)
To: Pete Zaitcev; +Cc: Marcelo Tosatti, linux-kernel, spam99, km
On Tuesday 10 August 2004 10:02 pm, Pete Zaitcev wrote:
> On Tue, 10 Aug 2004 21:37:26 -0700
> David Brownell <david-b@pacbell.net> wrote:
>
> > > First, it fixes the oops in the scan_async.
> >
> > That's a NOP, ehci->async must never be null.
>
> This is news. I received this patch FROM YOU. And I shipped it with
> RHEL3 U3. And now it's a nop? What gives?! By the way, it's verified
> to fix the oops when handoff fails.
I see what was going on -- that patch somehow got lost. It
normally never IS null, except on an exotic fault path during
initialization. Which of course nobody ever sees ... right :)
- Dave
> > > +++ linux-2.4.21-17.EL-usb1/drivers/usb/host/ehci-hcd.c 2004-07-30
16:21:12.000000000 -0700
> > > @@ -547,7 +547,8 @@
> > >
> > > /* root hub is shut down separately (first, when possible) */
> > > spin_lock_irq (&ehci->lock);
> > > - ehci_work (ehci, NULL);
> > > + if (ehci->async)
> > > + ehci_work (ehci, NULL);
> > > spin_unlock_irq (&ehci->lock);
>
> Please look at this:
> http://www.ussg.iu.edu/hypermail/linux/kernel/0404.2/0156.html
>
> -- Pete
>
> P.S. Sorry to get your name wrong, David.
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: uhci-hcd oops with 2.4.27/ intel D845GLVA
2004-08-10 20:54 ` Pete Zaitcev
2004-08-11 4:37 ` David Brownell
@ 2004-08-11 11:08 ` Nick Bartos
1 sibling, 0 replies; 9+ messages in thread
From: Nick Bartos @ 2004-08-11 11:08 UTC (permalink / raw)
To: Pete Zaitcev; +Cc: Marcelo Tosatti, zaitcev, linux-kernel, km, david-b
> The "uhci-hcd in 2.4.27" was launched by Nick, Kai simply reused that
> header. I should note when I saw "uhci-hcd" I automatically ignored it,
> because there's no uhci-hcd in 2.4.
sorry about the incorrect subject, I was in a hurry to get to work...
In any event now the kernel will boot fine. I haven't really tested the
usb, but of course the really important thing is that the kernel doesn't
crash :)
^ permalink raw reply [flat|nested] 9+ messages in thread
* uhci-hcd oops with 2.4.27/ intel D845GLVA
@ 2004-08-09 12:15 Nick Bartos
0 siblings, 0 replies; 9+ messages in thread
From: Nick Bartos @ 2004-08-09 12:15 UTC (permalink / raw)
To: linux-kernel
I unable to boot due to a kernel oops on my D845GLVA. This worked fine in
2.4.26, but with the same (well, except for the new features) config
2.4.27 does not.
If I disable usb 2.0 support in the kernel or disable the usb 2.0
controller, then the system will boot fine. However I would like to be
able to use the 2.0 controller.
I upgraded the bios on the board to the latest, but no change.
I am not certain how everyone gets all that info captured when the kernel
crashed, but here is what I wrote down:
ehci_hcd 00:1d.7: Bios handoff failed (104, 1010001)
unable to handle kernel NULL pointer dereference at virtual address 00000048
...
kernel panic: attempted to kill init!
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-08-11 11:08 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-10 12:59 uhci-hcd oops with 2.4.27/ intel D845GLVA Kai Militzer
2004-08-10 17:10 ` Marcelo Tosatti
2004-08-10 17:10 ` Marcelo Tosatti
[not found] ` <mailman.1092163681.21436.linux-kernel2news@redhat.com>
2004-08-10 20:54 ` Pete Zaitcev
2004-08-11 4:37 ` David Brownell
2004-08-11 5:02 ` Pete Zaitcev
2004-08-11 7:16 ` David Brownell
2004-08-11 11:08 ` Nick Bartos
-- strict thread matches above, loose matches on Subject: below --
2004-08-09 12:15 Nick Bartos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox