watchdog timeout with re0 after MSI change

2011-06-08 Thread John Danks
I'm seeing re0: watchdog timeout after the MSI change to the re
driver. Reverted the change and it stops.

Unrelated but this machine pauses for a good 30 seconds on boot and
resume after ahci1 is detected. I think it started when I added the
Intel SSD.

OpenBSD 4.9-current (GENERIC.MP) #61: Thu Jun  2 18:55:12 MDT 2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 12879527936 (12282MB)
avail mem = 12514459648 (11934MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (38 entries)
bios0: vendor Award Software International, Inc. version F5 date 11/20/2009
bios0: Gigabyte Technology Co., Ltd. P55M-UD2
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET MCFG \M-o\M-\M--\M-^ TAMG APIC SSDT
acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5)
PEX5(S5) PEX6(S5) PEX7(S5) HUB0(S5) UAR1(S3) USB0(S3) USB1(S3)
USB2(S3) USB3(S3) USB4(S3) USB5(S3) USB6(S3) USBE(S3) USE2(S3)
AZAL(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xf400, bus 0-63
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz, 2665.10 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz, 2664.77 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz, 2664.77 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz, 2664.77 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu3: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
condref: \\_OSI 0x816be608
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PEX0)
acpiprt2 at acpi0: bus -1 (PEX1)
acpiprt3 at acpi0: bus -1 (PEX2)
acpiprt4 at acpi0: bus -1 (PEX3)
acpiprt5 at acpi0: bus 4 (PEX4)
acpiprt6 at acpi0: bus 5 (PEX5)
acpiprt7 at acpi0: bus -1 (PEX6)
acpiprt8 at acpi0: bus -1 (PEX7)
acpiprt9 at acpi0: bus 6 (HUB0)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpicpu2 at acpi0: C3, C2, C1, PSS
acpicpu3 at acpi0: C3, C2, C1, PSS
acpibtn0 at acpi0: PWRB
cpu0: Enhanced SpeedStep 2664 MHz: speeds: 2660, 2527, 2394, 2261,
2128, 1995, 1862, 1729, 1596, 1463, 1330, 1197 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Core DMI rev 0x11
ppb0 at pci0 dev 3 function 0 Intel Core PCIE rev 0x11: msi
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon HD 4890 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 2 int 16
drm0 at radeondrm0
azalia0 at pci1 dev 0 function 1 ATI Radeon HD 48xx HD Audio rev 0x00: msi
azalia0: no supported codecs
Intel Core Management rev 0x11 at pci0 dev 8 function 0 not configured
Intel Core Scratch rev 0x11 at pci0 dev 8 function 1 not configured
Intel Core Control rev 0x11 at pci0 dev 8 function 2 not configured
Intel Core Misc rev 0x11 at pci0 dev 8 function 3 not configured
Intel Core QPI Link rev 0x11 at pci0 dev 16 function 0 not configured
Intel Core QPI Routing rev 0x11 at pci0 dev 16 function 1 not configured
uhci0 at pci0 dev 26 function 0 Intel 3400 USB rev 0x05: apic 2 int 16
uhci1 at pci0 dev 26 function 1 Intel 3400 USB rev 0x05: apic 2 int 21
uhci2 at pci0 dev 26 function 2 Intel 3400 USB rev 0x05: apic 2 int 18
ehci0 at pci0 dev 26 function 7 Intel 3400 USB rev 0x05: apic 2 int 18
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia1 at pci0 dev 27 function 0 Intel 3400 HD Audio rev 0x05: msi
azalia1: codecs: Realtek/0x0887, 0x/0x, using Realtek/0x0887
audio0 at azalia1
ppb1 at pci0 dev 28 function 0 Intel 3400 PCIE rev 0x05: msi
pci2 at ppb1 bus 2
ppb2 at pci2 dev 0 function 0 PLX PEX 8112 rev 0xaa
pci3 at ppb2 bus 3
vendor C-Media Electronics, unknown product 0x8788 (class

Re: watchdog timeout with re0 after MSI change

2011-06-08 Thread Mattieu Baptiste
On Wed, Jun 8, 2011 at 3:54 PM, John Danks john.da...@gmail.com wrote:
 I'm seeing re0: watchdog timeout after the MSI change to the re
 driver. Reverted the change and it stops.

 Unrelated but this machine pauses for a good 30 seconds on boot and
 resume after ahci1 is detected. I think it started when I added the
 Intel SSD.

I'm seeing this on my machine since this commit:
http://marc.info/?l=openbsd-cvsm=129607814223510w=2

 OpenBSD 4.9-current (GENERIC.MP) #61: Thu Jun  2 18:55:12 MDT 2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 12879527936 (12282MB)
 avail mem = 12514459648 (11934MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (38 entries)
 bios0: vendor Award Software International, Inc. version F5 date
11/20/2009
 bios0: Gigabyte Technology Co., Ltd. P55M-UD2
 acpi0 at bios0: rev 0
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP HPET MCFG \M-o\M-\M--\M-^ TAMG APIC SSDT
 acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5)
 PEX5(S5) PEX6(S5) PEX7(S5) HUB0(S5) UAR1(S3) USB0(S3) USB1(S3)
 USB2(S3) USB3(S3) USB4(S3) USB5(S3) USB6(S3) USBE(S3) USE2(S3)
 AZAL(S5) PCI0(S5)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpihpet0 at acpi0: 14318179 Hz
 acpimcfg0 at acpi0 addr 0xf400, bus 0-63
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz, 2665.10 MHz
 cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
SSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
 cpu0: 256KB 64b/line 8-way L2 cache
 cpu0: apic clock running at 133MHz
 cpu1 at mainbus0: apid 2 (application processor)
 cpu1: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz, 2664.77 MHz
 cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
SSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
 cpu1: 256KB 64b/line 8-way L2 cache
 cpu2 at mainbus0: apid 4 (application processor)
 cpu2: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz, 2664.77 MHz
 cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
SSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
 cpu2: 256KB 64b/line 8-way L2 cache
 cpu3 at mainbus0: apid 6 (application processor)
 cpu3: Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz, 2664.77 MHz
 cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,S
SSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG
 cpu3: 256KB 64b/line 8-way L2 cache
 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 2
 condref: \\_OSI 0x816be608
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 2 (PEX0)
 acpiprt2 at acpi0: bus -1 (PEX1)
 acpiprt3 at acpi0: bus -1 (PEX2)
 acpiprt4 at acpi0: bus -1 (PEX3)
 acpiprt5 at acpi0: bus 4 (PEX4)
 acpiprt6 at acpi0: bus 5 (PEX5)
 acpiprt7 at acpi0: bus -1 (PEX6)
 acpiprt8 at acpi0: bus -1 (PEX7)
 acpiprt9 at acpi0: bus 6 (HUB0)
 acpicpu0 at acpi0: C3, C2, C1, PSS
 acpicpu1 at acpi0: C3, C2, C1, PSS
 acpicpu2 at acpi0: C3, C2, C1, PSS
 acpicpu3 at acpi0: C3, C2, C1, PSS
 acpibtn0 at acpi0: PWRB
 cpu0: Enhanced SpeedStep 2664 MHz: speeds: 2660, 2527, 2394, 2261,
 2128, 1995, 1862, 1729, 1596, 1463, 1330, 1197 MHz
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 Intel Core DMI rev 0x11
 ppb0 at pci0 dev 3 function 0 Intel Core PCIE rev 0x11: msi
 pci1 at ppb0 bus 1
 vga1 at pci1 dev 0 function 0 ATI Radeon HD 4890 rev 0x00
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 radeondrm0 at vga1: apic 2 int 16
 drm0 at radeondrm0
 azalia0 at pci1 dev 0 function 1 ATI Radeon HD 48xx HD Audio rev 0x00:
msi
 azalia0: no supported codecs
 Intel Core Management rev 0x11 at pci0 dev 8 function 0 not configured
 Intel Core Scratch rev 0x11 at pci0 dev 8 function 1 not configured
 Intel Core Control rev 0x11 at pci0 dev 8 function 2 not configured
 Intel Core Misc rev 0x11 at pci0 dev 8 function 3 not configured
 Intel Core QPI Link rev 0x11 at pci0 dev 16 function 0 not configured
 Intel Core QPI Routing rev 0x11 at pci0 dev 16 function 1 not configured
 uhci0 at pci0 dev 26 function 0 Intel 3400 USB rev 0x05: apic 2 int 16
 uhci1 at pci0 dev 26 function 1 Intel 3400 USB rev 0x05: apic 2 int 21
 uhci2 at pci0 dev 26 function 2 Intel 3400 USB rev 0x05: apic 2 int 18
 ehci0 at pci0 dev 26 function 7 Intel 3400 USB rev 0x05: apic 2 int 18
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
 azalia1 at pci0 dev 27 function 0 Intel 3400 HD Audio rev 0x05: msi
 azalia1: codecs: Realtek/0x0887, 0x

Re: watchdog timeout with re0 after MSI change

2011-06-08 Thread Matthew Dempsky
On Wed, Jun 8, 2011 at 7:14 AM, Mattieu Baptiste mattie...@gmail.com wrote:
 On Wed, Jun 8, 2011 at 3:54 PM, John Danks john.da...@gmail.com wrote:
 I'm seeing re0: watchdog timeout after the MSI change to the re
 driver. Reverted the change and it stops.

 Unrelated but this machine pauses for a good 30 seconds on boot and
 resume after ahci1 is detected. I think it started when I added the
 Intel SSD.

 I'm seeing this on my machine since this commit:
 http://marc.info/?l=openbsd-cvsm=129607814223510w=2

Do you still see this 30 second pause with recent snapshots?  A few
weeks ago, I committed this change:

http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/ata/atascsi.c#rev1.104

which should have eliminated the 30 second pause unless you have a
port-multiplier.  If you still see the pause and aren't using
port-multipliers, I might be able to send you some diffs to figure out
what's going on.



Re: watchdog timeout with re0 after MSI change

2011-06-08 Thread John Danks
On Wed, Jun 8, 2011 at 10:19 AM, Matthew Dempsky matt...@dempsky.org wrote:
 On Wed, Jun 8, 2011 at 7:14 AM, Mattieu Baptiste mattie...@gmail.com
wrote:
 On Wed, Jun 8, 2011 at 3:54 PM, John Danks john.da...@gmail.com wrote:
 I'm seeing re0: watchdog timeout after the MSI change to the re
 driver. Reverted the change and it stops.

 Unrelated but this machine pauses for a good 30 seconds on boot and
 resume after ahci1 is detected. I think it started when I added the
 Intel SSD.

 I'm seeing this on my machine since this commit:
 http://marc.info/?l=openbsd-cvsm=129607814223510w=2

 Do you still see this 30 second pause with recent snapshots?  A few
 weeks ago, I committed this change:

http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/ata/atascsi.c#rev1.104

 which should have eliminated the 30 second pause unless you have a
 port-multiplier.  If you still see the pause and aren't using
 port-multipliers, I might be able to send you some diffs to figure out
 what's going on.


I still saw it on an up-to-date -current kernel this morning. I don't
think I'm using port multipliers unless it's something built in to the
motherboard. Happy to test any diffs.



Re: watchdog timeout with re0 after MSI change

2011-06-08 Thread Alexander Polakov
* John Danks john.da...@gmail.com [110608 17:59]:
 I'm seeing re0: watchdog timeout after the MSI change to the re
 driver. Reverted the change and it stops.

I have reported the same issue already
http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yesnumbers=6622

-- 
Alexander Polakov | plhk.ru



Re: watchdog timeout with re0 after MSI change

2011-06-08 Thread Devin Reade
John Danks john.da...@gmail.com wrote:

 Unrelated but this machine pauses for a good 30 seconds on boot and
 resume after ahci1 is detected. I think it started when I added the
 Intel SSD.

On the SSD topic (and in case it helps trigger a thought), I was
running into a problem on a Soekris box and a largish SSD where
sometimes shortly after boot the disk would error out.  After asking
around, the solution seemed to be increasing the Soekris' pause-at-boot
from 5 seconds to 15.  The extra time seemed to be needed to stablize
the SSD from a cold boot.  I saw this on multiple machines using an
Intel SSDSA2M040G2GC, which otherwise seems to be a good drive.

Devin