From owner-freebsd-usb@FreeBSD.ORG Wed Sep 23 23:01:46 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00EB4106566B; Wed, 23 Sep 2009 23:01:46 +0000 (UTC) (envelope-from hinokind@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 55D188FC0A; Wed, 23 Sep 2009 23:01:45 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id e21so1476890fga.13 for ; Wed, 23 Sep 2009 16:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:to:cc:subject :references:date:mime-version:content-transfer-encoding:from :message-id:in-reply-to:user-agent; bh=O1bwGRjZehdnPQqpJcJTuY/jHk0DhNY9MWPcUVQOqT4=; b=Y7zYkA0YjG07ClFjps/sKarsny93JwXPmUglUDs3eCDpFu2QptP11ELtUtqFsTc/1j 2UxdtI0bTeLSE1Bu5hR/9OOjQgCbASuXG46D1FnKAETIp/Dfh5K8kOLhgsXW8nJgowyN cnuQGURtoIkYfBMLI8eUfbbCbiptvYFKgZxis= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; b=BinD//LXMzvUb94NUI5ImzDhevyqd5Aaz1Ohm4E6Jz5atyaIiFbhNaHZq1dqmE4Q0r On2zFXLBYaVfRSpcJF2EBXbSNzwNwDWcopu+IobdcJVwi3dJII3fHwjNne+L4kk/K4pb wPA6YW5M5R3/rUptjPiJmrSpokRXQBnsujzS8= Received: by 10.86.220.9 with SMTP id s9mr2458196fgg.40.1253745052966; Wed, 23 Sep 2009 15:30:52 -0700 (PDT) Received: from klevas (hst-17-80.splius.lt [77.79.17.80]) by mx.google.com with ESMTPS id e11sm618526fga.11.2009.09.23.15.30.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 23 Sep 2009 15:30:52 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Andriy Gapon" References: <4ABA36B1.9070706@icyb.net.ua> Date: Fri, 25 Sep 2009 01:31:17 +0300 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: =?utf-8?B?QW5kcml1cyBNb3JrxatuYXM=?= Message-ID: In-Reply-To: <4ABA36B1.9070706@icyb.net.ua> User-Agent: Opera Mail/10.00 (FreeBSD) Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: sb600/sb700 ohci experimental patch X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2009 23:01:46 -0000 On Wed, 23 Sep 2009 17:54:41 +0300, Andriy Gapon wrote: > If you have a system with SB600, SB700, etc chipset and you have problems with low > speed USB devices attached during boot (keyboard, mouse), could you please try the > following experimental patch and report back? > I am primarily interested in the first several lines produced during boot with > printfs that are introduced by the patch. Preferably in the context of surrounding > USB-related dmesg messages. No need to report subsequent same-looking > ever-repeating messages (if any). I hope this helps: Test box: FreeBSD 8.0-RC1 amd64 r197323M on Asus M2A-VM (SB600) Without your patch, if mouse is plugged into one of the back USB ports and umass device is present on any USB port, mouse won't work. It has to be connected to front USB port to be friendly with other devices. With your patch, mouse can be plugged anywhere, it won't complain about umass devices connected to front USB port, but it still doesn't play nice with devices on back ports during boot. If I connect storage device after boot, both mouse and storage devices work fine. Parts of dmesg with mouse connected to back and storage to front USB ports. Everything works. usbus0: 12Mbps Full Speed USB v1.0 (hw power) control head <= 0xcfef1e30 (hw power) control head => 0x2329000 usbus1: 12Mbps Full Speed USB v1.0 (hw power) control head <= 0x4143000 (hw power) control head => 0x4143000 usbus2: 12Mbps Full Speed USB v1.0 (hw power) control head <= 0x4186000 (hw power) control head => 0x4186000 usbus3: 12Mbps Full Speed USB v1.0 (hw power) control head <= 0x41aa000 (hw power) control head => 0x41aa000 usbus4: 12Mbps Full Speed USB v1.0 (hw power) control head <= 0x4201000 (hw power) control head => 0x4201000 usbus5: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 Root mount waiting for: usbus5 usbus4 usbus3 usbus2 usbus1 usbus0 uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub0: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered Root mount waiting for: usbus5 Root mount waiting for: usbus5 Root mount waiting for: usbus5 Root mount waiting for: usbus5 uhub5: 10 ports with 10 removable, self powered Root mount waiting for: usbus5 (hw power) control head <= 0x2329000 (hw power) control head => 0x2329000 ugen0.2: at usbus0 ums0: on usbus0 ums0: 16 buttons and [XYZ] coordinates ID=0 uhid0: on usbus0 (hw power) control head <= 0x2329000 (hw power) control head => 0x2329000 ugen5.2: at usbus5 umass0: on usbus5 umass0: SCSI over Bulk-Only; quirks = 0x0000 Root mount waiting for: usbus5 (hw power) control head <= 0x2329000 (hw power) control head => 0x2329000 umass0:1:0:-1: Attached to scbus1 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 1967MB (4030463 512 byte sectors: 255H 63S/T 250C) Connected another device to back USB port after booting was finished: (hw power) control head <= 0x4143000 (hw power) control head => 0x4143000 ugen1.2: at usbus1 umass1: on usbus1 umass1: SCSI over Bulk-Only; quirks = 0x0000 umass1:2:1:-1: Attached to scbus2 (hw power) control head <= 0x4143000 (hw power) control head => 0x4143000 (hw power) control head <= 0x4143000 (hw power) control head => 0x4143000 (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim1:1:0:0): CAM Status: SCSI Status Error (probe0:umass-sim1:1:0:0): SCSI Status: Check Condition (probe0:umass-sim1:1:0:0): UNIT ATTENTION asc:28,0 (probe0:umass-sim1:1:0:0): Not ready to ready change, medium may have changed (probe0:umass-sim1:1:0:0): Retrying Command (per Sense Data) da1 at umass-sim1 bus 1 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: 1.000MB/s transfers da1: 964MB (1974272 512 byte sectors: 64H 32S/T 964C) Another dmesg, booting with storage device and mouse both connected to back USB ports. Mouse works, storage doesn't. usbus0: 12Mbps Full Speed USB v1.0 (hw power) control head <= 0xcfef1e30 (hw power) control head => 0x2329000 usbus1: 12Mbps Full Speed USB v1.0 (hw power) control head <= 0xcfef1e40 (hw power) control head => 0x4143000 (hw power) control head <= 0x2329000 (hw power) control head => 0x2329000 ugen0.2: at usbus0 ums0: on usbus0 ums0: 16 buttons and [XYZ] coordinates ID=0 uhid0: on usbus0 (hw power) control head <= 0x2329000 (hw power) control head => 0x2329000 (hw power) control head <= 0x2329000 (hw power) control head => 0x2329000 (hw power) control head <= 0x4143000 (hw power) control head => 0x4143000 ugen1.2: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:1:0:-1: Attached to scbus1 (hw power) control head <= 0x4143000 (hw power) control head => 0x4143000 If you need anything else, let me know. And thanks for the patch. -- Andrius