NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/57696: NetBSD-10.0_RC1-amd64-install.img.gz kernel panics at reboot or shutdown on mid 2010 21.5" iMac



> Date: Mon, 13 Nov 2023 15:15:53 +0000
> From: Josh Moyer <JMoyer%nodomain.net@localhost>
> 
> [     1.036831] uhci0 at pci0 dev 26 function 0: Intel 3400 USB (rev. 0x06)
> [     1.036831] cannot set up pci_intr_handle_t
> [     1.036831] uhci0: autoconfiguration error: couldn't map interrupt
> ...
> [     1.036831] uhci1 at pci0 dev 29 function 0: Intel 3400 USB (rev. 0x06)
> [     1.036831] cannot set up pci_intr_handle_t
> [     1.036831] uhci1: autoconfiguration error: couldn't map interrupt

This looks likely to be the culprit -- uhci attach failed, but left it
in a state not expected by uhci detach.

This message comes from the x86 pci_intx_alloc when pci_intr_map
fails:

    448 	if (pci_intr_map(pa, handle) != 0) {
    449 		aprint_normal("cannot set up pci_intr_handle_t\n");
    450 		error = EINVAL;
    451 		goto error;
    452 	}

https://nxr.netbsd.org/xref/src/sys/arch/x86/pci/pci_intr_machdep.c#448

Can you share the output of the following commands?

# pcictl pci0 dump -d 26 -f 0
# pcictl pci0 dump -d 29 -f 0

Perhaps that will provide a clue about what's wrong with the device's
PCI interrupt mapping.

Is this problem new?  Does it occur with, e.g., the 9.3 image, or 8.2,
or any other older versions?


Home | Main Index | Thread Index | Old Index