tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bus_dmamap_sync() for USB



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Jun 23, 2008, at 12:20, Manuel Bouyer wrote:

attached is a patch that adds bus_dmamap_sync() calls for uhci, ohci and ehci. I've tested uhci and ehci on amd64 (both intel and add-on VIA ehci) and
sgimips (add-on VIA ehci). ohci has been tested on amd64 and macppc
(both with the build-in USB controller). All tests have been done with
USB keyboard/mouse, USB umass key and umodem. This patch, along with the
one in PR port-i386/38935, fix the race condition that cause
"host controller process error" and "host controller halted" errors when
umodem@uhci is under heavy use.

Michael Lorenz reported issues with this on uhci/ehci in a sgimips O2,
but I couldn't reproduce it. It may be an issue with his add-on adapter.

I see the same problems with an ohci/ehci card equipped with a NEC chip which works perfectly fine on macppc and sparc64, so I guess the problem is sgimips-specific. Since you don't see it I better look for local hacks in my source tree :/ The funny thing is that I only have problems with USB cards, an ex and the onboard ahc's Just Work.

have fun
Michael


If noone object I'll commit this in the next few days.

--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer%lip6.fr@localhost
     NetBSD: 26 ans d'experience feront toujours la difference
--<diff>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBSGAUxMpnzkX8Yg2nAQKmzQf7BC5fsdBS8IJqLsVPIDNhz27wHLUXNfOl
LqJq6ROwizY2QgC70yEcVIR3UauklrS0fQLxwRR+Z5cmFwdA22WcuPUvPRusSC+n
3en2riBmAcRV9GPhNhf9893XkfgZQNTtz6KW8nvJRkhyV5wSnaoeMc+tjBQs4Ybf
eNJetUJzKYMtbY0zsckI1K/RWSF5W/lOjI4hux2KXrhKGgi3LZuExDOu2leG1JHM
Y6B2geBh7EoAEVyS0Ge0OTzgjxoi9IT6CXFLCI8EFj5auiPMCjUhrAIc/GFnYciR
gS13qqUurRGESDjqLR+Co3ThdcXQZp1BmG3idnOfz6vUisAxicTg3Q==
=aORk
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index