Subject: Re: amd64 reboot when using acpi
To: Chavdar Ivanov <>
From: Brett Lymn <>
List: current-users
Date: 06/20/2007 21:20:05
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Jun 20, 2007 at 12:24:54PM +0100, Chavdar Ivanov wrote:
> Reserving IRQ7 in the BIOS did not help.

Interesting.  It seems to have worked for me (if I remember) try
applying the attached patch and see if that makes things better - it
tries to nuke pending interrupts when the ehci driver takes control of
the device.

> In the mean time I got another panic - this time in OHCI while copying
> large ~ 4GB - directory from an external USB disk, after copying some
> 500MB:

That's odd - I have not done any bulk transfers over usb yet.

Your issue with the nfe is strange too - both my nfe interfaces work
fine, quite a few times I have transferred ~300Mb files between my
laptop and my main machine connected with a crossover cable.  I have
never seen wire speed but the transfer rate is quite respectable - in
the region of 500 - 600 Mbit/s

One thought, what is the revision of your bios?  I am running v1.04 at
the moment.  I found that v1.05 caused a non-acpi kernel to hang and
the acpi kernel would still crash at the same place.  Now that I can
boot an acpi kernel I may just update the bios to the latest.

Brett Lymn

Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ehci.diff"

Index: sys/dev/pci/ehci_pci.c
RCS file: /cvsroot/src/sys/dev/pci/ehci_pci.c,v
retrieving revision 1.27
diff -r1.27 ehci_pci.c
> 		u_int32_t intrs = EHCI_STS_INTRS(EREAD4(sc, EHCI_USBSTS));
> 		if (intrs) {
> 			EWRITE4(sc, EHCI_USBSTS, intrs); /* Acknowledge */
> 			aprint_normal("%s: cleared pending interrupts\n",
> 				      devname);
> 		}