From owner-freebsd-current@freebsd.org Sat Jun 18 21:15:13 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 446FAA79397 for ; Sat, 18 Jun 2016 21:15:13 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E3CA324B0 for ; Sat, 18 Jun 2016 21:15:12 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 6F1B71FE023; Sat, 18 Jun 2016 23:15:04 +0200 (CEST) Subject: Re: problem with USB disks on ALPHA3 w/ recent AMD chipset To: Johannes Dieterich References: <451a2bfd-63ed-9cd4-ede6-d7dae00f48d3@selasky.org> Cc: freebsd-current From: Hans Petter Selasky Message-ID: <04e2aaa6-62bf-fb12-5840-ded8ae110a7f@selasky.org> Date: Sat, 18 Jun 2016 23:18:40 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 21:15:13 -0000 On 06/18/16 21:12, Johannes Dieterich wrote: > 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? > Hi, Try: usbconfig -d X.Y add_quirk UQ_MSC_NO_SYNC_CACHE Then re-plug. Does it work? Else try: usbconfig -d X.Y add_quirk UQ_MSC_NO_INQUIRY Does it work? Also look here: http://www.root.org/~nate/freebsd/scsi/quirks.html --HPS