DragonFly BSD
DragonFly bugs List (threaded) for 2004-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: panic in bus_dma_tag_destroy()


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Oct 2004 10:55:26 -0700 (PDT)

: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.

: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.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>

:We are talking about the following drivers:
:dev/disk/advansys
:dev/disk/aha
:dev/disk/bt_eisa
:dev/disk/mpt
:dev/netif/bfe
:dev/raid/dpt
:
:Joerg




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