Bjorn,
mpi@ and others would love to get a copy of your system's XHCI stack's
debug output.
Can you please enable XHCI_DEBUG in your kernel and post the output.
Also please see some further notes here
https://marc.info/?l=openbsd-misc&m=149658807922576&w=2 and here
https://marc.info/?l=openbsd-misc&m=149641168519652&w=2 .
You, me and some other people need to document what works and not and
submit the logs.
Please share the debug log reports and also what steps you took to
produce them!
Tinker
On 2017-07-29 17:27, Björn Ketelaars wrote:
> I tried using a 2.5"-drive in an USB3.0 enclosure hooked up to an USB
> 3.0 port
> on a machine running OpenBSD current, dmesg enclosed below. The drive
> has been
> encrypted using softraid.
>
> When rsyncing files to the encrypted filesystem the copying is halted,
> but the
> system is still responsive. A quick check of /var/log/message showed:
>
> Jul 29 13:46:22 gateway /bsd: softraid0: sd6: i/o error 5 @ CRYPTO
> block 248926416
> Jul 29 13:47:27 gateway /bsd: softraid0: sd6: i/o error 5 @ CRYPTO
> block 248926480
> Jul 29 13:48:33 gateway /bsd: softraid0: sd6: i/o error 5 @ CRYPTO
> block 248780616
> ...
>
> In this state it is not possible to umount the filesystem or remove the
> device
> from softraid using bioctl. Workaround to umount the filesystem is a
> hard
> reset. My first thought was that the drive itself was broken. A fsck
> gave the
> same I/O errors.
>
> Now the strange part: When I attach the external drive to a USB 2 port,
> everything works as expected. No errors, and fsck finds no issues. In
> this
> configuration the external, encrypted drive is reliable.
>
> It seems that my issue is related to the USB 3.0 port of my machine.
> Are
> there any known issues with USB 3.0 and FDE using softraid? Any ideas
> to rule
> out a hardware issue?
>
> --
> Björn Ketelaars
> GPG key: 0x4F0E5F21
>
>
> OpenBSD 6.1-current (GENERIC.MP) #16: Fri Jul 28 21:09:01 MDT 2017
>
> deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 4242419712 (4045MB)
> avail mem = 4107489280 (3917MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xf3bdb000 (64 entries)
> bios0: vendor HP version "J06" date 11/09/2013
> bios0: HP ProLiant MicroServer Gen8
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S4 S5
> acpi0: tables DSDT FACP SPCR MCFG HPET FFFF SPMI ERST APIC FFFF BERT
> HEST FFFF FFFF SSDT SSDT SSDT SSDT SSDT
> acpi0: wakeup devices PCI0(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimcfg0 at acpi0 addr 0xf4000000, bus 0-63
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Celeron(R) CPU G1610T @ 2.30GHz, 2295.09 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: TSC frequency 2295091360 Hz
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
> cpu0: apic clock running at 99MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Celeron(R) CPU G1610T @ 2.30GHz, 2294.80 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,DEADLINE,XSAVE,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
> acpiprt0 at acpi0: bus 13 (IPT1)
> acpiprt1 at acpi0: bus -1 (IPT2)
> acpiprt2 at acpi0: bus -1 (IPT3)
> acpiprt3 at acpi0: bus -1 (IPT4)
> acpiprt4 at acpi0: bus 3 (IPT5)
> acpiprt5 at acpi0: bus -1 (IPT6)
> acpiprt6 at acpi0: bus 4 (IPT7)
> acpiprt7 at acpi0: bus 1 (IPT8)
> acpiprt8 at acpi0: bus 7 (PT02)
> acpiprt9 at acpi0: bus -1 (PT03)
> acpiprt10 at acpi0: bus 2 (PT05)
> acpiprt11 at acpi0: bus 0 (PCI0)
> acpicpu0 at acpi0: C2(350@96 mwait.1@0x20), C1(1000@1 mwait.1)
> acpicpu1 at acpi0: C2(350@96 mwait.1@0x20), C1(1000@1 mwait.1)
> acpitz0 at acpi0: critical temperature is 31 degC
> "IPI0001" at acpi0 not configured
> "PNP0A06" at acpi0 not configured
> "PNP0303" at acpi0 not configured
> "PNP0F13" at acpi0 not configured
> "ACPI000D" at acpi0 not configured
> ipmi at mainbus0 not configured
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
> ppb0 at pci0 dev 1 function 0 "Intel Core 3G PCIE" rev 0x09: msi
> pci1 at ppb0 bus 7
> ppb1 at pci0 dev 6 function 0 "Intel Core 3G PCIE" rev 0x09: msi
> pci2 at ppb1 bus 2
> ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 8
> int 21
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
> 2.00/1.00 addr 1
> ppb2 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5
> pci3 at ppb2 bus 13
> ppb3 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb5
> pci4 at ppb3 bus 3
> bge0 at pci4 dev 0 function 0 "Broadcom BCM5720" rev 0x00, BCM5720 A0
> (0x5720000), APE firmware NCSI 1.2.46.0: msi, address
> d0:bf:9c:46:de:14
> brgphy0 at bge0 phy 1: BCM5720C 10/100/1000baseT PHY, rev. 0
> bge1 at pci4 dev 0 function 1 "Broadcom BCM5720" rev 0x00, BCM5720 A0
> (0x5720000), APE firmware NCSI 1.2.46.0: msi, address
> d0:bf:9c:46:de:15
> brgphy1 at bge1 phy 2: BCM5720C 10/100/1000baseT PHY, rev. 0
> ppb4 at pci0 dev 28 function 6 "Intel 6 Series PCIE" rev 0xb5
> pci5 at ppb4 bus 4
> xhci0 at pci5 dev 0 function 0 "Renesas uPD720201 xHCI" rev 0x03: msi
> usb1 at xhci0: USB revision 3.0
> uhub1 at usb1 configuration 1 interface 0 "Renesas xHCI root hub" rev
> 3.00/1.00 addr 1
> ppb5 at pci0 dev 28 function 7 "Intel 6 Series PCIE" rev 0xb5
> pci6 at ppb5 bus 1
> "Hewlett-Packard iLO3 Slave" rev 0x05 at pci6 dev 0 function 0 not
> configured
> vga1 at pci6 dev 0 function 1 "Matrox MGA G200eH" rev 0x00
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> "Hewlett-Packard iLO3 Management" rev 0x05 at pci6 dev 0 function 2
> not configured
> uhci0 at pci6 dev 0 function 4 "Hewlett-Packard USB" rev 0x02: apic 8
> int 16
> usb2 at uhci0: USB revision 1.0
> uhub2 at usb2 configuration 1 interface 0 "Hewlett-Packard UHCI root
> hub" rev 1.00/1.00 addr 1
> ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 8
> int 20
> usb3 at ehci1: USB revision 2.0
> uhub3 at usb3 configuration 1 interface 0 "Intel EHCI root hub" rev
> 2.00/1.00 addr 1
> ppb6 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
> pci7 at ppb6 bus 20
> pcib0 at pci0 dev 31 function 0 "Intel C204 LPC" rev 0x05
> ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x05: msi,
> AHCI 1.3
> ahci0: port 0: 6.0Gb/s
> ahci0: port 1: 6.0Gb/s
> ahci0: port 2: 3.0Gb/s
> ahci0: port 3: 3.0Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, Hitachi HDS5C303, MZ6O> SCSI3
> 0/direct fixed naa.5000cca37ec4cabf
> sd0: 2861588MB, 512 bytes/sector, 5860533168 sectors
> sd1 at scsibus1 targ 1 lun 0: <ATA, WDC WD30EFRX-68E, 80.0> SCSI3
> 0/direct fixed naa.50014ee6ae93cca7
> sd1: 2861588MB, 512 bytes/sector, 5860533168 sectors
> sd2 at scsibus1 targ 2 lun 0: <ATA, SAMSUNG HD204UI, 1AQ1> SCSI3
> 0/direct fixed naa.50024e9204c857d8
> sd2: 1907729MB, 512 bytes/sector, 3907029168 sectors
> sd3 at scsibus1 targ 3 lun 0: <ATA, SAMSUNG HD204UI, 1AQ1> SCSI3
> 0/direct fixed naa.50024e900430ce1c
> sd3: 1907729MB, 512 bytes/sector, 3907029168 sectors
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com0: console
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> vmm0 at mainbus0: VMX/EPT
> uhub4 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching
> Hub" rev 2.00/0.00 addr 2
> uhub5 at uhub3 port 1 configuration 1 interface 0 "Intel Rate Matching
> Hub" rev 2.00/0.00 addr 2
> uhub6 at uhub5 port 3 configuration 1 interface 0 "Standard
> Microsystems product 0x2660" rev 2.00/8.01 addr 3
> umass0 at uhub6 port 1 configuration 1 interface 0 "Generic Ultra Fast
> Media Reader" rev 2.00/2.09 addr 4
> umass0: using SCSI over Bulk-Only
> scsibus2 at umass0: 2 targets, initiator 0
> sd4 at scsibus2 targ 1 lun 0: <HP iLO, Internal SD-CARD, 2.09> SCSI0
> 0/direct fixed serial.04244030000002660A01
> sd4: 7648MB, 512 bytes/sector, 15663104 sectors
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> root on sd4a (6988b9e1abe8eaad.a) swap on sd4b dump on sd4b
> WARNING: / was not properly unmounted
> umass1 at uhub4 port 6 configuration 1 interface 0 "USB to ATA/ATAPI
> Brid USB Device" rev 2.10/2.03 addr 3
> umass1: using SCSI over Bulk-Only
> scsibus5 at umass1: 2 targets, initiator 0
> sd5 at scsibus5 targ 1 lun 0: <USB3.0, , 0203> SCSI4 0/direct fixed
> serial.152d0578876543211167
> sd5: 305245MB, 512 bytes/sector, 625142448 sectors
> softraid0: sd6 was not shutdown properly
> softraid0: sd6 was not shutdown properly
> softraid0: incorrect key or passphrase
> softraid0: sd6 was not shutdown properly
> softraid0: sd6 was not shutdown properly
> sd6 at scsibus4 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct
> fixed
> sd6: 305245MB, 512 bytes/sector, 625141920 sectors
No comments:
Post a Comment