Re: Fwd: NetBSD 9.0 randomly boots

2020-02-21 Thread Mike Pumford




On 21/02/2020 18:10, Maxime Villard wrote:

Le 21/02/2020 à 10:57, BERTRAND Joël a écrit :

Maxime Villard a écrit :

Hi,

1) How much ram does your system have?


16 GB


2) If you add "#define NO_X86_ASLR" at the top of
sys/arch/x86/x86/pmap.c, does
    the system boot fine?


I cannot try. Maybe the next week.


Actually, you don't need to try this; I had a sudden doubt yesterday, but
in the end it is fine and there is no problem.


I have tried to reboot this server and I cannot obtain panic anymore
(?). But kernel randomly enters in loop :

[ 1.004775] pciide0: primary channel configured to native-PCI mode
[ 1.004775] pciide0: using ioapic0 pin 18 for native-PCI interrupt
[ 1.004775] atabus2 at pciide0 channel 0
[ 1.004775] pciide0: secondary channel configured to native-PCI mode
[ 1.004775] atabus3 at pciide0 channel 1
[ 1.004775] i915drmkms0 at pci0 dev 2 function 0: vendor 8086
product 0412 (rev. 0x06)
[ 1.004775] hdaudio0 at pci0 dev 3 function 0: HD Audio Controller
[ 1.004775] hdaudio0: interrupting at msi1 vec 0
[ 1.004775] hdaudio0: autoconfiguration error: unsol: codec id 0x01
not valid
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
I see that as well on my 9.0 system fairly regularly. For me it doesn't 
panic very often and usually makes it out of the loop and boots. I can 
reproduce quite easily and I'm in a position to add debug and reboot the 
machine in question to reproduce if someone guides me on where it needs 
to go. :)


Mike


Re: Fwd: NetBSD 9.0 randomly boots

2020-02-21 Thread Maxime Villard

Le 21/02/2020 à 10:57, BERTRAND Joël a écrit :

Maxime Villard a écrit :

Hi,

1) How much ram does your system have?


16 GB


2) If you add "#define NO_X86_ASLR" at the top of
sys/arch/x86/x86/pmap.c, does
    the system boot fine?


I cannot try. Maybe the next week.


Actually, you don't need to try this; I had a sudden doubt yesterday, but
in the end it is fine and there is no problem.


I have tried to reboot this server and I cannot obtain panic anymore
(?). But kernel randomly enters in loop :

[ 1.004775] pciide0: primary channel configured to native-PCI mode
[ 1.004775] pciide0: using ioapic0 pin 18 for native-PCI interrupt
[ 1.004775] atabus2 at pciide0 channel 0
[ 1.004775] pciide0: secondary channel configured to native-PCI mode
[ 1.004775] atabus3 at pciide0 channel 1
[ 1.004775] i915drmkms0 at pci0 dev 2 function 0: vendor 8086
product 0412 (rev. 0x06)
[ 1.004775] hdaudio0 at pci0 dev 3 function 0: HD Audio Controller
[ 1.004775] hdaudio0: interrupting at msi1 vec 0
[ 1.004775] hdaudio0: autoconfiguration error: unsol: codec id 0x01
not valid
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
...
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] xhci0 at pci0 dev 20 function 0: vendor 8086 product
8cb1 (rev. 0x00)
[ 1.004775] xhci0: interrupting at msi2 vec 0
[ 1.004775] xhci0: xHCI version 1.0
[ 1.004775] usb0 at xhci0: USB revision 3.0
[ 1.004775] usb1 at xhci0: USB revision 2.0
[ 1.004775] vendor 8086 product 8cba (miscellaneous communications)
at pci0


Fwiw, I've seen this happen too, on a laptop, with hdaudio0.

If you reboot the machine, the device seems to be keeping its previous
"state", and is not reset. It looks like NetBSD doesn't reset it manually
either.

If you shut down your machine, wait a few seconds, and then boot it again
cleanly, the problem never occurs.

Maxime


Re: Fwd: NetBSD 9.0 randomly boots

2020-02-21 Thread BERTRAND Joël
Maxime Villard a écrit :
> Hi,
> 
> 1) How much ram does your system have?

16 GB

> 2) If you add "#define NO_X86_ASLR" at the top of
> sys/arch/x86/x86/pmap.c, does
>    the system boot fine?

I cannot try. Maybe the next week.

I have tried to reboot this server and I cannot obtain panic anymore
(?). But kernel randomly enters in loop :

[ 1.004775] pciide0: primary channel configured to native-PCI mode
[ 1.004775] pciide0: using ioapic0 pin 18 for native-PCI interrupt
[ 1.004775] atabus2 at pciide0 channel 0
[ 1.004775] pciide0: secondary channel configured to native-PCI mode
[ 1.004775] atabus3 at pciide0 channel 1
[ 1.004775] i915drmkms0 at pci0 dev 2 function 0: vendor 8086
product 0412 (rev. 0x06)
[ 1.004775] hdaudio0 at pci0 dev 3 function 0: HD Audio Controller
[ 1.004775] hdaudio0: interrupting at msi1 vec 0
[ 1.004775] hdaudio0: autoconfiguration error: unsol: codec id 0x01
not valid
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
...
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] unknown at hdaudio0 not configured
[ 1.004775] xhci0 at pci0 dev 20 function 0: vendor 8086 product
8cb1 (rev. 0x00)
[ 1.004775] xhci0: interrupting at msi2 vec 0
[ 1.004775] xhci0: xHCI version 1.0
[ 1.004775] usb0 at xhci0: USB revision 3.0
[ 1.004775] usb1 at xhci0: USB revision 2.0
[ 1.004775] vendor 8086 product 8cba (miscellaneous communications)
at pci0

Best regards,

JKB