Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2009 10:09:05 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-arm@freebsd.org
Cc:        freebsd-usb@freebsd.org
Subject:   Re: EHCI Problem on FreeBSD arm port
Message-ID:  <200905091009.06658.hselasky@c2i.net>
In-Reply-To: <260bb65e0905082115l4f017fb8g85ec88b81c191dc6@mail.gmail.com>
References:  <260bb65e0905082115l4f017fb8g85ec88b81c191dc6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 09 May 2009, Yohanes Nugroho wrote:
> Hi all,

>
> This is where I got stuck. The EHCI controller is detected, most of
> the time the hub is detected (2 ports), and some of the time the USB
> mass controller is loaded. From my observation, it seems that even
> though the USB transaction is completed successfully, it sometimes
> doesn't return correct data. By "completing successfully", The result
> is (error=0):

Hi,

If the strings are corrupt I would guess at a busdma issue.

Flusing in device done is too late.

Put your flush all / invalidate all code into:

#if USB_HAVE_BUSDMA && defined(__FreeBSD__)

...

usb2_pc_cpu_flush()

usb2_pc_cpu_invalidate()

...

#endif

In "src/sys/dev/usb/usb_busdma.c".

Are you running stock 8-current ?

--HPS



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