The following reply was made to PR kernel/6531; it has been noted by GNATS.

From: Mathias Schmocker <s...@smat.ch>
To: Mark Kettenis <mark.kette...@xs4all.nl>
Cc: gn...@openbsd.org, b...@cvs.openbsd.org
Subject: Re: kernel/6531: wd(4) LBA48 hard disk problem and fix on Apple 
Macintosh MacBook Pro
Date: Wed, 29 Dec 2010 19:19:32 +0100

 Le 28.12.10 16:29, Mark Kettenis a icrit :
 > Can you try a -current kernel?  It has some changes that make
 > pciide(4) do DMA.  That makes disk I/O much faster and might actually
 > fix the issue as well.
 
 
 Tried with a -current i386 snapshot downloaded today, problem remains,
 (fix actually not tested on -current code).
 But I/O is much faster indeed.
 
 dd if=/dev/rwd0c of=/dev/null bs=8192
 dd: /dev/rwd0c: Input/output error
 16777215+0 records in
 16777215+0 records out
 137438945280 bytes transferred in 2136.031 secs (64343117 bytes/sec)
 
 dmesg with wd0c kernel error messages at the end:
 
 OpenBSD 4.8-current (GENERIC.MP) #578: Thu Dec 23 12:33:30 MST 2010
      dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
 RTC BIOS diagnostic error 
 f7<clock_battery,ROM_cksum,config_unit,memory_size,invalid_time>
 cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz ("GenuineIntel" 
 686-class) 2.39 GHz
 cpu0: 
 
FPU,V86,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,XSAVE
 real mem  = 2942984192 (2806MB)
 avail mem = 2884747264 (2751MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 07/29/05, SMBIOS rev. 2.4 @ 
 0xe0000 (44 entries)
 bios0: vendor Apple Inc. version "MBP71.88Z.0039.B0B.1006012305" date 
 06/01/10
 bios0: Apple Inc. MacBookPro7,1
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP HPET APIC APIC ASF! SBST ECDT SSDT SSDT MCFG 
 SSDT SSDT
 acpi0: wakeup devices ADP1(S3) LID0(S3) EC__(S3) OHC1(S3) EHC1(S3) 
 OHC2(S3) EHC2(S3) ARPT(S5) GIGE(S5)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpihpet0 at acpi0: 25000000 Hz
 acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: apic clock running at 265MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz ("GenuineIntel" 
 686-class) 2.39 GHz
 cpu1: 
 
FPU,V86,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,XSAVE
 ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 1
 acpiec0 at acpi0
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 4 (IXVE)
 acpicpu0 at acpi0: C3, C2, C1, PSS
 acpicpu1 at acpi0: C3, C2, C1, PSS
 acpiac0 at acpi0: AC unit online
 acpibtn0 at acpi0: LID0
 acpibtn1 at acpi0: PWRB
 acpibtn2 at acpi0: SLPB
 acpibat0 at acpi0: BAT0 model "3545797981023400290" type 
 3545797981528607052 oem "3545797981528673619"
 bios0: ROM list: 0xc0000/0xe400!
 cpu0: Enhanced SpeedStep 2390 MHz: speeds: 2394, 2128, 1862, 1596, 798 MHz
 memory map conflict 0xffc00000/0x400000
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 mem address conflict 0xd3400000/0x80000
 pchb0 at pci0 dev 0 function 0 "NVIDIA MCP89 Host" rev 0xa1
 "NVIDIA MCP89 Memory" rev 0xa1 at pci0 dev 0 function 1 not configured
 vendor "NVIDIA", unknown product 0x0d6d (class memory subclass RAM, rev 
 0xa1) at pci0 dev 1 function 0 not configured
 vendor "NVIDIA", unknown product 0x0d6e (class memory subclass RAM, rev 
 0xa1) at pci0 dev 1 function 1 not configured
 vendor "NVIDIA", unknown product 0x0d6f (class memory subclass RAM, rev 
 0xa1) at pci0 dev 1 function 2 not configured
 vendor "NVIDIA", unknown product 0x0d70 (class memory subclass RAM, rev 
 0xa1) at pci0 dev 1 function 3 not configured
 vendor "NVIDIA", unknown product 0x0d71 (class memory subclass RAM, rev 
 0xa1) at pci0 dev 2 function 0 not configured
 vendor "NVIDIA", unknown product 0x0d72 (class memory subclass RAM, rev 
 0xa1) at pci0 dev 2 function 1 not configured
 pcib0 at pci0 dev 3 function 0 "NVIDIA MCP89 LPC" rev 0xa2
 "NVIDIA MCP89 Memory" rev 0xa1 at pci0 dev 3 function 1 not configured
 "NVIDIA MCP89 SMBus" rev 0xa1 at pci0 dev 3 function 2 not configured
 "NVIDIA MCP89 Memory" rev 0xa1 at pci0 dev 3 function 3 not configured
 "NVIDIA MCP89 Co-processor" rev 0xa1 at pci0 dev 3 function 4 not configured
 ohci0 at pci0 dev 4 function 0 "NVIDIA MCP89 USB" rev 0xa1: apic 1 int 
 11 (irq 11), version 1.0, legacy support
 ehci0 at pci0 dev 4 function 1 "NVIDIA MCP89 USB" rev 0xa2: apic 1 int 
 10 (irq 10)
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
 ohci1 at pci0 dev 6 function 0 "NVIDIA MCP89 USB" rev 0xa1: apic 1 int 7 
 (irq 7), version 1.0, legacy support
 ehci1 at pci0 dev 6 function 1 "NVIDIA MCP89 USB" rev 0xa2: apic 1 int 5 
 (irq 5)
 usb1 at ehci1: USB revision 2.0
 uhub1 at usb1 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
 azalia0 at pci0 dev 8 function 0 "NVIDIA MCP89 HD Audio" rev 0xa2: apic 
 1 int 15 (irq 15)
 azalia0: codecs: Cirrus Logic/0x4206, NVIDIA/0x000c, NVIDIA/0x000c, 
 NVIDIA/0x000c, using Cirrus Logic/0x4206
 audio0 at azalia0
 pciide0 at pci0 dev 10 function 0 "NVIDIA MCP89 SATA" rev 0xa2: DMA
 pciide0: using apic 1 int 11 (irq 11) for native-PCI interrupt
 wd0 at pciide0 channel 0 drive 0: <Hitachi HTS545050B9SA02>
 wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
 atapiscsi0 at pciide0 channel 1 drive 0
 scsibus0 at atapiscsi0: 2 targets
 cd0 at scsibus0 targ 0 lun 0: <MATSHITA, DVD-R UJ-898, HC10> ATAPI 
 5/cdrom removable
 cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
 vendor "NVIDIA", unknown product 0x0d75 (class memory subclass RAM, rev 
 0xa1) at pci0 dev 11 function 0 not configured
 ppb0 at pci0 dev 14 function 0 "NVIDIA MCP89 PCIE" rev 0xa1: apic 1 int 
 16 (irq 255)
 pci1 at ppb0 bus 1
 "AT&T/Lucent FW643 1394" rev 0x08 at pci1 dev 0 function 0 not configured
 ppb1 at pci0 dev 21 function 0 "NVIDIA MCP89 PCIE" rev 0xa1: apic 1 int 
 16 (irq 255)
 pci2 at ppb1 bus 2
 "Broadcom BCM4322" rev 0x01 at pci2 dev 0 function 0 not configured
 ppb2 at pci0 dev 22 function 0 "NVIDIA MCP89 PCIE" rev 0xa1: apic 1 int 
 11 (irq 255)
 pci3 at ppb2 bus 3
 bge0 at pci3 dev 0 function 0 "Broadcom BCM5764" rev 0x10, BCM5784 A1 
 (0x5784100): apic 1 int 11 (irq 10), address c4:2c:03:3a:c7:04
 brgphy0 at bge0 phy 1: BCM5784 10/100/1000baseT PHY, rev. 4
 ppb3 at pci0 dev 23 function 0 "NVIDIA MCP89 PCIE" rev 0xa1
 pci4 at ppb3 bus 4
 vga1 at pci4 dev 0 function 0 "NVIDIA GeForce 320M" rev 0xa2
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 isa0 at pcib0
 isadma0 at isa0
 pcppi0 at isa0 port 0x61
 spkr0 at pcppi0
 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
 usb2 at ohci0: USB revision 1.0
 uhub2 at usb2 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
 usb3 at ohci1: USB revision 1.0
 uhub3 at usb3 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
 mtrr: Pentium Pro MTRR support
 uvideo0 at uhub0 port 6 configuration 1 interface 0 "Apple Inc. Built-in 
 iSight" rev 2.00/4.35 addr 2
 video0 at uvideo0
 umass0 at uhub1 port 1 configuration 1 interface 0 "Apple Card Reader" 
 rev 2.00/98.33 addr 2
 umass0: using SCSI over Bulk-Only
 scsibus1 at umass0: 2 targets, initiator 0
 sd0 at scsibus1 targ 1 lun 0: <APPLE, SD Card Reader, 1.00> SCSI0 
 0/direct removable
 sd0: drive offline
 uhidev0 at uhub3 port 3 configuration 1 interface 0 "Apple Inc. Apple 
 Internal Keyboard / Trackpad" rev 2.00/0.90 addr 2
 uhidev0: iclass 3/1, 9 report ids
 ukbd0 at uhidev0 reportid 1: 8 modifier keys, 6 key codes, country code 13
 wskbd0 at ukbd0: console keyboard, using wsdisplay0
 uhid0 at uhidev0 reportid 9: input=0, output=0, feature=3
 uhidev1 at uhub3 port 3 configuration 1 interface 1 "Apple Inc. Apple 
 Internal Keyboard / Trackpad" rev 2.00/0.90 addr 2
 uhidev1: iclass 3/0, 68 report ids
 uhid1 at uhidev1 reportid 68: input=511, output=0, feature=0
 uhidev2 at uhub3 port 3 configuration 1 interface 2 "Apple Inc. Apple 
 Internal Keyboard / Trackpad" rev 2.00/0.90 addr 2
 uhidev2: iclass 3/1, 2 report ids
 ums0 at uhidev2 reportid 2: 3 buttons
 wsmouse0 at ums0 mux 0
 uhidev3 at uhub3 port 5 configuration 1 interface 0 "Apple Computer, 
 Inc. IR Receiver" rev 2.00/0.16 addr 3
 uhidev3: iclass 3/0, 38 report ids
 uhid2 at uhidev3 reportid 36: input=4, output=0, feature=0
 uhid3 at uhidev3 reportid 37: input=4, output=0, feature=0
 uhid4 at uhidev3 reportid 38: input=4, output=0, feature=0
 uhub4 at uhub3 port 6 "Apple Inc. BRCM2046 Hub" rev 2.00/1.00 addr 4
 ugen0 at uhub4 port 1 "Apple Inc. Bluetooth USB Host Controller" rev 
 2.00/1.86 addr 5
 uhidev4 at uhub4 port 2 configuration 1 interface 0 "Apple Computer 
 product 0x820a" rev 2.00/1.00 addr 6
 uhidev4: iclass 3/1, 1 report id
 ukbd1 at uhidev4 reportid 1: 8 modifier keys, 6 key codes
 wskbd1 at ukbd1 mux 1
 wskbd1: connecting to wsdisplay0
 acpibtn notify: \\_SB_.LID0 80
 uhidev5 at uhub4 port 3 configuration 1 interface 0 "Apple Computer 
 product 0x820b" rev 2.00/1.00 addr 7
 uhidev5: iclass 3/1, 2 report ids
 ums1 at uhidev5 reportid 2: 3 buttons
 wsmouse1 at ums1 mux 0
 vscsi0 at root
 scsibus2 at vscsi0: 256 targets
 softraid0 at root
 root on wd0a swap on wd0b dump on wd0b
 wd0c: id not found reading fsbn 268435440 of 268435440-268435455 (wd0 bn 
 268435440; cn 16709 tn 85 sn 0), retrying
 wd0c: id not found reading fsbn 268435440 of 268435440-268435455 (wd0 bn 
 268435440; cn 16709 tn 85 sn 0), retrying
 wd0c: id not found reading fsbn 268435440 of 268435440-268435455 (wd0 bn 
 268435440; cn 16709 tn 85 sn 0), retrying
 wd0: transfer error, downgrading to Ultra-DMA mode 5
 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
 wd0c: id not found reading fsbn 268435440 of 268435440-268435455 (wd0 bn 
 268435440; cn 16709 tn 85 sn 0), retrying
 wd0c: id not found reading fsbn 268435455 of 268435440-268435455 (wd0 bn 
 268435455; cn 16709 tn 85 sn 15), retrying
 wd0c: id not found reading fsbn 268435455 of 268435440-268435455 (wd0 bn 
 268435455; cn 16709 tn 85 sn 15)
 umass1 at uhub1 port 4 configuration 1 interface 0 "Generic Mass 
 Storage" rev 2.00/1.07 addr 3
 umass1: using SCSI over Bulk-Only
 scsibus3 at umass1: 2 targets, initiator 0
 sd1 at scsibus3 targ 1 lun 0: <Generic, Flash Disk, 8.07> SCSI2 0/direct 
 removable
 sd1: 2007MB, 512 bytes/sec, 4110336 sec total
 
 
 -- 
 Mathias Schmocker          mailto:s...@smat.ch        http://www.smat.ch
 SMAT Engineering S`rl      Bd Georges-Favon 20,C.P.    CH-1211 Genhve 11
 Til. +41 (0)22 800 3400    Fax. +41 (0)22 800 3401           Switzerland
 Mobile 078 674 4312

Reply via email to