From owner-freebsd-current@freebsd.org Sat Jun 18 19:12:47 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EFED3A79879 for ; Sat, 18 Jun 2016 19:12:47 +0000 (UTC) (envelope-from dieterich.joh@gmail.com) Received: from mail-oi0-x22a.google.com (mail-oi0-x22a.google.com [IPv6:2607:f8b0:4003:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ABFD41C3B for ; Sat, 18 Jun 2016 19:12:47 +0000 (UTC) (envelope-from dieterich.joh@gmail.com) Received: by mail-oi0-x22a.google.com with SMTP id a64so7578992oii.2 for ; Sat, 18 Jun 2016 12:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cHTF3XsUMgUgqcYn/6+lsWVu/AXef+0UI8Vdxq0xcPk=; b=w0iqsfiaBdY3Sn+rZszxff62/SA5H+UCuiCfE4Fw+jdb1+XHG0yyQ4xfSTkPdVAPtg aoXqoUbT4ytesSPrcIAr39gBqKl/uTDpHy2i+EMiW9fBopQ61lgtZyMxel9f4i+gmUBx e0OaZyMY3W4yHWfjyMBdIjbgGnCVZTM9qyRaCKdoBfse2MaMnmPFcC7awkWLsJdvDZWW mDsx8JqI1Egnw5X2B9iDp3zR/nUFzY8s/ILYIaHtn1e/zrhF+ESYkIH11/l8JYnz46Ho qwC3AVpZ5RXj/t6efZ+Bii76A8nals1OOpwsOVAeNEaPBlVJrucwIOycCBAad0osJS43 xEPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cHTF3XsUMgUgqcYn/6+lsWVu/AXef+0UI8Vdxq0xcPk=; b=jLCQvo+8H8PfzPSMLvkLbImps6yIkAyaCCfgg90AZ2ifWL3epwl6ca7unzFAlgbQf3 rzDYAeSQt4jV4W0PbZYuNTfnExJjLVux6xI2fyMeQj1KRxN78GIhxr3sSUtBQy5nQPB7 8aWsgad2Jsqb1+9BvTlLuSyPyRg7cYUyUpfQugvDTSGqtF5Zt2SI4Nw2/oZ8mbo/7CmL QaY948Lx+vzRC3/+qEMBkJXq+m1IiEIZ9E3/38gq7Pg+czVqJ/JMpUT5+9FDGVSO6aKt hhqpfm5g1XFSxLffzaYAEOy4ZVxybHJnc5lGaz5RPGmaZLOWSm3qxye40ABNdybmPNok C9ug== X-Gm-Message-State: ALyK8tJnomY+0m2GFORPg+T0OdmVvACbwtpo4Fi7spXeKwvoilJhuqhZCScDnW4pAuRcVlyz090VHvjWm7gu9Q== X-Received: by 10.202.84.129 with SMTP id i123mr4825047oib.130.1466277166750; Sat, 18 Jun 2016 12:12:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.89.136 with HTTP; Sat, 18 Jun 2016 12:12:46 -0700 (PDT) In-Reply-To: <451a2bfd-63ed-9cd4-ede6-d7dae00f48d3@selasky.org> References: <451a2bfd-63ed-9cd4-ede6-d7dae00f48d3@selasky.org> From: Johannes Dieterich Date: Sat, 18 Jun 2016 15:12:46 -0400 Message-ID: Subject: Re: problem with USB disks on ALPHA3 w/ recent AMD chipset To: Hans Petter Selasky Cc: freebsd-current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jun 2016 19:12:48 -0000 On Sat, Jun 18, 2016 at 3:07 PM, Hans Petter Selasky wrote: > On 06/18/16 04:15, Johannes Dieterich wrote: >> >> Dear list, >> >> I observe the following when I try to write to any USB drive: >> >> Jun 17 22:02:35 manray kernel: (probe0:umass-sim0:0:0:0): INQUIRY. >> CDB: 12 00 00 00 24 00 >> Jun 17 22:02:35 manray kernel: (probe0:umass-sim0:0:0:0): CAM status: >> CCB request completed with an error >> Jun 17 22:02:35 manray kernel: (probe0:umass-sim0:0:0:0): Retrying command >> Jun 17 22:02:36 manray kernel: da0 at umass-sim0 bus 0 scbus2 target 0 lun >> 0 >> Jun 17 22:02:36 manray kernel: da0: >> Removable Direct Access SPC-4 SCSI device >> Jun 17 22:02:36 manray kernel: da0: Serial Number 4C530001090427108375 >> Jun 17 22:02:36 manray kernel: da0: 40.000MB/s transfers >> Jun 17 22:02:36 manray kernel: da0: 15264MB (31260672 512 byte sectors) >> Jun 17 22:02:36 manray kernel: da0: quirks=0x2 >> Jun 17 22:04:21 manray kernel: (da0:umass-sim0:0:0:0): WRITE(10). CDB: >> 2a 00 00 00 00 00 00 00 80 00 >> Jun 17 22:04:21 manray kernel: (da0:umass-sim0:0:0:0): CAM status: CCB >> request completed with an error >> Jun 17 22:04:21 manray kernel: (da0:umass-sim0:0:0:0): Retrying command >> Jun 17 22:04:27 manray kernel: (da0:umass-sim0:0:0:0): WRITE(10). CDB: >> 2a 00 00 00 00 00 00 00 80 00 >> Jun 17 22:04:27 manray kernel: (da0:umass-sim0:0:0:0): CAM status: CCB >> request completed with an error >> Jun 17 22:04:27 manray kernel: (da0:umass-sim0:0:0:0): Retrying command >> Jun 17 22:04:32 manray kernel: (da0:umass-sim0:0:0:0): WRITE(10). CDB: >> 2a 00 00 00 00 00 00 00 80 00 >> Jun 17 22:04:32 manray kernel: (da0:umass-sim0:0:0:0): CAM status: CCB >> request completed with an error >> Jun 17 22:04:32 manray kernel: (da0:umass-sim0:0:0:0): Retrying command >> Jun 17 22:04:38 manray kernel: (da0:umass-sim0:0:0:0): WRITE(10). CDB: >> 2a 00 00 00 00 00 00 00 80 00 >> Jun 17 22:04:38 manray kernel: (da0:umass-sim0:0:0:0): CAM status: CCB >> request completed with an error >> Jun 17 22:04:38 manray kernel: (da0:umass-sim0:0:0:0): Retrying command >> Jun 17 22:04:43 manray kernel: (da0:umass-sim0:0:0:0): WRITE(10). CDB: >> 2a 00 00 00 00 00 00 00 80 00 >> Jun 17 22:04:43 manray kernel: (da0:umass-sim0:0:0:0): CAM status: CCB >> request completed with an error >> Jun 17 22:04:43 manray kernel: (da0:umass-sim0:0:0:0): Error 5, >> Retries exhausted >> Jun 17 22:05:11 manray kernel: (da0:umass-sim0:0:0:0): got CAM status 0x44 >> Jun 17 22:05:11 manray kernel: (da0:umass-sim0:0:0:0): fatal error, >> failed to attach to device >> Jun 17 22:05:11 manray kernel: da0 at umass-sim0 bus 0 scbus2 target 0 lun >> 0 >> Jun 17 22:05:11 manray kernel: da0: s/n >> 4C530001090427108375 detached >> Jun 17 22:05:17 manray kernel: (da0:umass-sim0:0:0:0): Periph destroyed >> >> I.e., when I dd, the dd exists prematurely with an error. >> >> pciconf: >> >> hostb0@pci0:0:0:0: class=0x060000 card=0x15761022 chip=0x15761022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = HOST-PCI >> none0@pci0:0:0:2: class=0x080600 card=0x15771022 chip=0x15771022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = base peripheral >> subclass = IOMMU >> vgapci0@pci0:0:1:0: class=0x030000 card=0x807e103c chip=0x98741002 >> rev=0xc4 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' >> device = 'Carrizo' >> class = display >> subclass = VGA >> hdac0@pci0:0:1:1: class=0x040300 card=0x807e103c chip=0x98401002 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' >> device = 'Kabini HDMI/DP Audio' >> class = multimedia >> subclass = HDA >> hostb1@pci0:0:2:0: class=0x060000 card=0x00000000 chip=0x157b1022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = HOST-PCI >> pcib1@pci0:0:2:1: class=0x060400 card=0x12341022 chip=0x157c1022 >> rev=0x00 hdr=0x01 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = PCI-PCI >> pcib2@pci0:0:2:3: class=0x060400 card=0x12341022 chip=0x157c1022 >> rev=0x00 hdr=0x01 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = PCI-PCI >> pcib3@pci0:0:2:5: class=0x060400 card=0x12341022 chip=0x157c1022 >> rev=0x00 hdr=0x01 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = PCI-PCI >> hostb2@pci0:0:3:0: class=0x060000 card=0x00000000 chip=0x157b1022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = HOST-PCI >> none1@pci0:0:8:0: class=0x108000 card=0x15781022 chip=0x15781022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = encrypt/decrypt >> hostb3@pci0:0:9:0: class=0x060000 card=0x00000000 chip=0x157d1022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = HOST-PCI >> hdac1@pci0:0:9:2: class=0x040300 card=0x807e103c chip=0x157a1022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = multimedia >> subclass = HDA >> xhci0@pci0:0:16:0: class=0x0c0330 card=0x807e103c chip=0x79141022 >> rev=0x20 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> device = 'FCH USB XHCI Controller' >> class = serial bus >> subclass = USB >> ahci0@pci0:0:17:0: class=0x010601 card=0x807e103c chip=0x79011022 >> rev=0x49 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> device = 'FCH SATA Controller [AHCI mode]' >> class = mass storage >> subclass = SATA >> ehci0@pci0:0:18:0: class=0x0c0320 card=0x807e103c chip=0x79081022 >> rev=0x49 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> device = 'FCH USB EHCI Controller' >> class = serial bus >> subclass = USB >> none2@pci0:0:20:0: class=0x0c0500 card=0x807e103c chip=0x790b1022 >> rev=0x4a hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> device = 'FCH SMBus Controller' >> class = serial bus >> subclass = SMBus >> isab0@pci0:0:20:3: class=0x060100 card=0x807e103c chip=0x790e1022 >> rev=0x11 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> device = 'FCH LPC Bridge' >> class = bridge >> subclass = PCI-ISA >> hostb4@pci0:0:24:0: class=0x060000 card=0x00000000 chip=0x15701022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = HOST-PCI >> hostb5@pci0:0:24:1: class=0x060000 card=0x00000000 chip=0x15711022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = HOST-PCI >> hostb6@pci0:0:24:2: class=0x060000 card=0x00000000 chip=0x15721022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = HOST-PCI >> hostb7@pci0:0:24:3: class=0x060000 card=0x00000000 chip=0x15731022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = HOST-PCI >> hostb8@pci0:0:24:4: class=0x060000 card=0x00000000 chip=0x15741022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = HOST-PCI >> hostb9@pci0:0:24:5: class=0x060000 card=0x00000000 chip=0x15751022 >> rev=0x00 hdr=0x00 >> vendor = 'Advanced Micro Devices, Inc. [AMD]' >> class = bridge >> subclass = HOST-PCI >> bge0@pci0:1:0:0: class=0x020000 card=0x807e103c chip=0x168714e4 >> rev=0x10 hdr=0x00 >> vendor = 'Broadcom Corporation' >> device = 'NetXtreme BCM5762 Gigabit Ethernet PCIe' >> class = network >> subclass = ethernet >> iwm0@pci0:2:0:0: class=0x028000 card=0x50108086 chip=0x095a8086 >> rev=0x61 hdr=0x00 >> vendor = 'Intel Corporation' >> device = 'Wireless 7265' >> class = network >> none3@pci0:3:0:0: class=0xff0000 card=0x807e103c chip=0x522a10ec >> rev=0x01 hdr=0x00 >> vendor = 'Realtek Semiconductor Co., Ltd.' >> device = 'RTS522A PCI Express Card Reader' >> >> This is on a recent CURRENT: r301970 >> >> All ideas most welcome! > > > Did you try enabling some of the UQ_MSC_XXX quirks as given by "usbconfig > dump_quirk_names"? I did not. This does happen with multiple USB sticks I have tried. Any preference which I should try?