On Wed, Oct 13, 2004 at 10:55:26AM -0700, Matthew Dillon wrote:
> :I'd prefer keeping the malloc in the bus_dma_tag_create. I think we
> :have two options here. The first is to explicitly specify the overall
> :number of segments in the parents too. This would waste some kernel memory.
>
> We can't do this because the drivers have no clue what the actual limits
> for the parents are.
Huch? The parent tag is allocated by the bus frontends. It works for almost
all drivers, but I guess there are a few drivers where the author was too
lazy to do the math.
>
> :Alternatively we can change the contenders to specify a maximum number of
> :segments of 0 or special case BUS_SPACE_UNRESTRICTED.
>
> We could special-case 0. That would be maybe ~2 lines of code or
> something similarly trivial, and makes a lot more sense then what the
> drivers are doing now.
Sounds good.
Joerg
>
> -Matt
> Matthew Dillon
> <dillon@backplane.com>