Subject: bus_dmamap_ limitation
To: None <tech-kern@netbsd.org>
From: mike varga <mike.varga@cavium.com>
List: tech-kern
Date: 04/02/2002 10:59:40
This is a multi-part message in MIME format.

------=_NextPart_000_003D_01C1DA35.7CE32F70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have been using the combination
of=20

bus_dmamem_alloc()
bus_dmamem_map()
bus_dmamap_create()
bus_dmamap_load()

repeatedly to allocate dma buffers.

I found that when I allocate
more than 1000, other drivers
will not attach successfully.

Is there a "#defined" limit?

Can I modify it? Or is there another
way to increase this limit? I have
already removed all unnecessary=20
drivers from my config file.

------=_NextPart_000_003D_01C1DA35.7CE32F70
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have been using the =
combination</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>of </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>bus_dmamem_alloc()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>bus_dmamem_map()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>bus_dmamap_create()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>bus_dmamap_load()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>repeatedly to allocate dma =
buffers.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I found that when I =
allocate</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>more than 1000, other =
drivers</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>will not attach =
successfully.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Is there a </FONT><FONT face=3DArial=20
size=3D2>"#defined" limit?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can I modify it? Or is there =
another</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>way to increase this limit? I =
have</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>already removed all unnecessary =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>drivers </FONT><FONT face=3DArial =
size=3D2>from my=20
config file.</FONT></DIV></BODY></HTML>

------=_NextPart_000_003D_01C1DA35.7CE32F70--