Re: wd0a: id not found (wake-up from suspend)

2011-06-09 Thread pat
I found another two lines in dmesg along with ones in the previous message:

wd0: transfer error, downgrading to Ultra-DMA mode 4
wd0:(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
...

Here's the diff (two files are attached for full outputs of both
separately):

4c4
 0x0004: Command: 0106 Status ID: 2090
---
 0x0004: Command: 0106 Status ID: 0090
19c19
 0x: 35808086 20900106 0601 0080
---
 0x: 35808086 00900106 0601 0080
25c25
 0x0060: 0200790a 0008  
---
 0x0060: 391a 0008  
60,62c60,62
 0x0090:   0020c10e 48280600
 0x00a0: 300aa2ff  53be 
 0x00b0: 00462cea  762a 06211458
---
 0x0090:   0220c10e 48280600
 0x00a0: 300aa2ff  53e0 
 0x00b0: 003e4a3a  6fae 05715d12
87,89c87,89
 0x0040: 0404  095c653c 65095c65
 0x0050: 095c  2d390801 0e043c40
 0x0060:   0404 314c
---
 0x0040: 0404  095c653c 65075a64
 0x0050: 095c  2d390801 0c043b41
 0x0060:   0404 324b
96,97c96,97
 0x00d0: 02210001  ff00c308 0025
 0x00e0: 0015002a 00950098  0400
---
 0x00d0: 02210001  ff00c208 0025
 0x00e0: 0015002a 00150098  0400
101c101
 0x0004: Command: 0007 Status ID: 0098
---
 0x0004: Command: 0007 Status ID: 0090
116c116
 0x: 35828086 00980007 0301 0080
---
 0x: 35828086 0097 0301 0080
126,127c126,127
 0x00a0: 300aa2ff  54e6 
 0x00b0: 00463c0a  766c 06222c90
---
 0x00a0: 300aa2ff  5508 
 0x00b0: 003e59f8  6fd0 05727e7e
159,160c159,160
 0x00a0: 300aa2ff  5506 
 0x00b0: 00464296  7680 0622b020
---
 0x00a0: 300aa2ff  5514 
 0x00b0: 003e6072  6fd8 0573064e
286c286
 0x0070: 0fff   
---
 0x0070: 0018   
380,381c380,381
 0x0040: a307a307  02010005 
 0x0050:  1411  
---
 0x0040: a307a307  02020005 
 0x0050:  0411  
492c492
 0x0004: Command: 0106 Status ID: 02b0
---
 0x0004: Command: 0106 Status ID: 02b8
508c508
 0x: 170d14e4 02b00106 0201 4008
---
 0x: 170d14e4 02b80106 0201 4008
515c515
 0x0070: 1216 0040001f 6804 
---
 0x0070: 1214 0040001f 6804 
517,518c517,518
 0x0090: 0709   01ab
 0x00a0:  019b  00fe
---
 0x0090: 0708   0010
 0x00a0:    
554c554
 0x00a0: fe110001 00c0 0016 0009
---
 0x00a0: fe110001 00c0 0006 0009



On Thu, Jun 9, 2011 at 9:51 AM, Theo de Raadt dera...@cvs.openbsd.orgwrote:

 Please collect information from pcidump -vvxx from beforehands,
 and afterwards.  diff them.
Domain /dev/pci0:
 0:0:0: Intel 82855GM Host
0x: Vendor ID: 8086 Product ID: 3580
0x0004: Command: 0106 Status ID: 0090
0x0008: Class: 06 Subclass: 00 Interface: 00 Revision: 01
0x000c: BIST: 00 Header Type: 80 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR mem prefetchable 32bit addr: 0x/0x
0x0014: BAR empty ()
0x0018: BAR empty ()
0x001c: BAR empty ()
0x0020: BAR empty ()
0x0024: BAR empty ()
0x0028: Cardbus CIS: 
0x002c: Subsystem Vendor ID: 1014 Product ID: 054a
0x0030: Expansion ROM Base Address: 
0x0038: 
0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
0x0040: Capability 0x09: Vendor Specific
0x: 35808086 00900106 0601 0080
0x0010: 0008   
0x0020:    054a1014
0x0030:  0040  
0x0040: e1050009 00ae fec1 0e002802
0x0050: 00340100  1000 3000
0x0060: 391a 0008  
0x0070: 0902 6056  
0x0080: 6602 8000  
0x0090:    
0x00a0: 0022 1f000217 0001 
0x00b0: ebf0   1020
0x00c0:    
0x00d0:    
0x00e0:    
0x00f0:   0002 0101
 0:0:1: Intel 82855GM Memory
0x: Vendor ID: 8086 Product ID: 3584
0x0004: Command: 0006 Status ID: 0080
0x0008: Class: 08 Subclass: 80 Interface: 00 Revision: 01
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR empty ()
0x0014: BAR empty ()
  

wd0a: id not found (wake-up from suspend)

2011-06-08 Thread pat
I'm experiencing the same problem as in Linux on Thinkpad G40. After
suspending machine and waking it up it becomes very slow (totally unusable)
and seems to eventually hang up trying to read disk data, meanwhile I'm
seeing these lines from dmesg:

wd0a: id not found reading fsbn 3334048 of 3334048-3334079 (wd0 bn 75698368;
cn 5006 tn 121 sn 25)
wd0a: id not found reading fsbn 3334048 of 3334048-3334079 (wd0 bn 75698368;
cn 5006 tn 121 sn 25), retrying
wd0a: id not found reading fsbn 3334048 of 3334048-3334079 (wd0 bn 75698368;
cn 5006 tn 121 sn 25)
wd0a: id not found reading fsbn 3334048 of 3334048-3334079 (wd0 bn 75698368;
cn 5006 tn 121 sn 25), retrying
wd0a: id not found reading fsbn 3334048 of 3334048-3334079 (wd0 bn 75698368;
cn 5006 tn 121 sn 25)
..

I have no problems with the disk itself after reboot. What can be broken
here ?


=
dmesg:
=

OpenBSD 4.9-current (GENERIC) #17: Tue May 31 00:11:37 MDT 2011
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 2.40GHz (GenuineIntel 686-class) 2.40 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
real mem  = 526905344 (502MB)
avail mem = 507424768 (483MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/19/03, BIOS32 rev. 0 @ 0xfd7e0,
SMBIOS rev. 2.33 @ 0xe0010 (47 entries)
bios0: vendor IBM version 1TET79WW (1.03b) date 06/19/2003
bios0: IBM 23883SG
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT BOOT
acpi0: wakeup devices LID_(S3) SLPB(S4) PCI0(S4) BLAN(S4) CBS0(S0) USB0(S3)
USB1(S3) USB2(S3) AC97(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PCI1)
acpicpu0 at acpi0: C2
acpitz0 at acpi0: critical temperature 90 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 model IBM-08K8181  serial 142  type LION  oem
Panasonic
acpithinkpad0 at acpi0
bios0: ROM list: 0xc/0xc600 0xcc800/0x1800 0xdc000/0x4000!
0xe/0x1
cpu0 at mainbus0: (uniprocessor)
memory map conflict 0xf6f/0xd000
memory map conflict 0xf6fd000/0x3000
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82855GM Host rev 0x01
Intel 82855GM Memory rev 0x01 at pci0 dev 0 function 1 not configured
Intel 82855GM Config rev 0x01 at pci0 dev 0 function 3 not configured
vga1 at pci0 dev 2 function 0 Intel 82855GM Video rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xe000, size 0x800
inteldrm0 at vga1: irq 11
drm0 at inteldrm0
Intel 82855GM Video rev 0x01 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x01: irq 11
uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x01: irq 11
uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x01: irq 11
ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x01: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb0 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81
pci1 at ppb0 bus 2
bge0 at pci1 dev 0 function 0 Broadcom BCM5901 rev 0x01, BCM5705 A1
(0x3001): irq 11, address 00:06:1b:c2:02:c4
brgphy0 at bge0 phy 1: BCM5705 10/100/1000baseT PHY, rev. 1
cbb0 at pci1 dev 1 function 0 TI PCI1410 CardBus rev 0x02: irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x01
pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: IC25N040ATMR04-0
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TEAC, DW-224E, B.0A ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x01: irq 11
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 256MB DDR SDRAM non-parity PC2100CL2.5
spdmem1 at iic0 addr 0x51: 256MB DDR SDRAM non-parity PC3200CL3.0
auich0 at pci0 dev 31 function 5 Intel 82801DB AC97 rev 0x01: irq 11, ICH4
AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
Intel 82801DB Modem rev 0x01 at pci0 dev 31 function 6 not configured
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at