Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Aug 2009 21:49:56 +0200
From:      Marc Fonvieille <blackend@freebsd.org>
To:        freebsd-usb@freebsd.org
Cc:        Hans Petter Selasky <hselasky@freebsd.org>
Subject:   Re: uvisor(4) and Palm Z22 under 8.X
Message-ID:  <20090802194956.GA1592@gothic.blackend.org>
In-Reply-To: <20090728111131.GA1383@gothic.blackend.org>
References:  <20090728111131.GA1383@gothic.blackend.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090802194956.GA1592>