Subject: Re: DMA troubles
To: Filka Michal <michal.filka@strom.cz>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 04/26/2006 11:53:12
--gh4H09KImyIEQ1se
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, Apr 26, 2006 at 10:08:33AM +0200, Filka Michal wrote:
>=20
> > > Hi all,
> > > I have a problem (possibly) with DMA. I can allocate a DMA memory in
> my
> > > driver and work with it without any troubles. However, If I unload
> > > driver (it is a LKM) and try to load it again, kernel crashes during
> DMA
> > > memory allocation. I did a DMA deinitialization when unloading
> driver
> >=20
> > How does it crash ?
>=20
> ... it breaks into kernel debugger (Page fault trap) during the call of
> "bus_dmamem_alloc". I made a simple skeleton of my driver which is only
> loaded and unloaded and it still fails in second attempt for loading it.
> First attempt loads/unloads without any troubles. All this happens even
> if I do only "..._alloc" and "..._free" with no other operations on
> DMAed memory.
>=20
> Any ideas are very welcome.
I'm afraid you'll have to show some code to get welcomed ideas...
--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.
--gh4H09KImyIEQ1se
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iQEVAwUBRE9DCNgoQloHrPnoAQLy/QgAlVXaa0xxQJKm/tKudkx+EKsQ7ZNvaZ+L
3kvipl4li/QZ4wxq2DkSYE+PJqRMpak8f/NH0wT1JzziXYiKpIIXFhO3ztmr8cCN
hiYGSMR9elJsclb+C1x1MXFEtTRJq8ukLv+ImNVxzPzMDQiBJEQLdKiiMGkPg4ZU
xW9lgAoFMnrTzMAO8wq+ClztRhPLFRpSjuP5ALAkXeivTpkoQU3hcmGihmYfaWxB
prarIl9aUVArWKgeTD/y2A8UouseteXjHuVOAJM0hDWhqt+vAodwTF00e5paXFxf
mg+EnYXFKknSsOIuBahYnBIW5y2oVJAZudwEViro+oTYvQSQV2SweQ==
=Dt37
-----END PGP SIGNATURE-----
--gh4H09KImyIEQ1se--