From owner-freebsd-usb@FreeBSD.ORG Sun Aug 2 19:49:18 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 EAECB1065673; Sun, 2 Aug 2009 19:49:18 +0000 (UTC) (envelope-from marc@blackend.org) Received: from abigail.blackend.org (ns0.blackend.org [82.227.222.164]) by mx1.freebsd.org (Postfix) with ESMTP id 658E88FC15; Sun, 2 Aug 2009 19:49:17 +0000 (UTC) (envelope-from marc@blackend.org) Received: from gothic.blackend.org (gothic.blackend.org [192.168.1.203]) by abigail.blackend.org (8.13.4/8.13.3) with ESMTP id n72JnEZt056735; Sun, 2 Aug 2009 21:49:14 +0200 (CEST) (envelope-from marc@abigail.blackend.org) Received: from gothic.blackend.org (localhost [127.0.0.1]) by gothic.blackend.org (8.14.3/8.14.3) with ESMTP id n72JnuAp001617; Sun, 2 Aug 2009 21:49:56 +0200 (CEST) (envelope-from marc@gothic.blackend.org) Received: (from marc@localhost) by gothic.blackend.org (8.14.3/8.14.3/Submit) id n72Jnu7R001616; Sun, 2 Aug 2009 21:49:56 +0200 (CEST) (envelope-from marc) Date: Sun, 2 Aug 2009 21:49:56 +0200 From: Marc Fonvieille To: freebsd-usb@freebsd.org Message-ID: <20090802194956.GA1592@gothic.blackend.org> References: <20090728111131.GA1383@gothic.blackend.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <20090728111131.GA1383@gothic.blackend.org> X-Useless-Header: blackend.org X-Operating-System: FreeBSD 8.0-BETA2 User-Agent: Mutt/1.5.20 (2009-06-14) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Hans Petter Selasky Subject: Re: uvisor(4) and Palm Z22 under 8.X 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: Sun, 02 Aug 2009 19:49:19 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I did some progress. I read 7.X uvisor.c code and I noted this: /* * Crank down UVISORBUFSIZE from 1024 to 64 to avoid a problem where * the Palm device and the USB host controller deadlock. The USB host * controller is expecting an early-end-of-transmission packet with 0 * data, and the Palm doesn't send one because it's already * communicated the amount of data it's going to send in a header * (which ucom/uvisor are oblivious to). This is the problem that has * been known on the pilot-link lists as the "[Free]BSD USB problem", * but not understood. */ #define UVISORIBUFSIZE 64 #define UVISOROBUFSIZE 1024 So I changed UVISOR_BUFSIZE from 1024 to 64 on uvisor.c from 8.X and bingo some transferts worked, actually backup and files list worked but I wasn't able to install files. So I modified uvisor.c to use 2 different buffer sizes as it's done on 7.X (see attached patch). I tried different couples of bufsize to eventually find a working one. Now everything is working. I just note that sometimes during backup of a large file, if there is activity on my box (USB activity I think) the transfert of the file fails but it can be fixed at next launch of the backup. Well I dunno if it's ready to be committed but it allows me to use my Palm Z22 under 8.0-CURRENT. -- Marc --J2SCkAp4GZ/dPZZf--