Re: bus_dmamem_alloc

2008-03-23 Thread Mr Y
Hi Mark, Actualy I'm not getting any error from bus_dmamem_alloc, that's the strange thing. Yet printing the dma_map pointer shows 0 unless I use bus_dmamap_create after bus_dmamem_alloc. bus_mamap_load doesn't fail in both cases. I'm working on an Ethernet driver for FreeBSD, pinging messages

Re: bus_dmamem_alloc

2008-03-23 Thread Mark Tinguely
Actualy I'm not getting any error from bus_dmamem_alloc, that's the strange thing. Yet printing the dma_map pointer shows 0 unless I use bus_dmamap_create after bus_dmamem_alloc. bus_mamap_load doesn't fail in both cases. I'm working on an Ethernet driver for FreeBSD, pinging messages

bus_dmamem_alloc

2008-03-20 Thread Mr Y
I'm trying to use bus_dmamem_alloc. The function man says: /* * Allocate a piece of memory that can be efficiently mapped into * bus device space based on the constraints listed in the dma tag. * A dmamap to for use with dmamap_load is also allocated. */ so I'm running

Re: bus_dmamem_alloc

2008-03-20 Thread Mark Tinguely
so I'm running: err = bus_dmamem_alloc(ring-dma_tag, ring-buf, BUS_DMA_NOWAIT|BUS_DMA_ALLOCNOW, ring-dma_map); but after calling bus_dmamem_allloc the dma_map variable is still NULL. is this OK? Sure, you are allocating with BUS_DMA_NOWAIT. err is probably equal to ENOMEM

Re: wpi error: bus_dmamem_alloc failed to align memory properly

2008-01-07 Thread vittorio
Il Monday 07 January 2008 03:18:21 Benjamin Close ha scritto: vittorio wrote: Context: HP laptop DV6000, centrino duo, FreeBSD 7.0-BETA4 When loading if_wpi I get the following line saying that bus_dmamem_alloc failed to align memory properly SNIP wpi0: Intel(R) PRO/Wireless 3945ABG mem

Re: wpi error: bus_dmamem_alloc failed to align memory properly

2008-01-07 Thread Tim Kellers
vittorio wrote: Il Monday 07 January 2008 03:18:21 Benjamin Close ha scritto: vittorio wrote: Context: HP laptop DV6000, centrino duo, FreeBSD 7.0-BETA4 When loading if_wpi I get the following line saying that bus_dmamem_alloc failed to align memory properly SNIP wpi0: Intel(R) PRO

wpi error: bus_dmamem_alloc failed to align memory properly

2008-01-06 Thread vittorio
Context: HP laptop DV6000, centrino duo, FreeBSD 7.0-BETA4 When loading if_wpi I get the following line saying that bus_dmamem_alloc failed to align memory properly SNIP wpi0: Intel(R) PRO/Wireless 3945ABG mem 0xd800-0xd8000fff irq 16 at device 0.0 on pci2 bus_dmamem_alloc failed to align

Re: wpi error: bus_dmamem_alloc failed to align memory properly

2008-01-06 Thread Benjamin Close
vittorio wrote: Context: HP laptop DV6000, centrino duo, FreeBSD 7.0-BETA4 When loading if_wpi I get the following line saying that bus_dmamem_alloc failed to align memory properly SNIP wpi0: Intel(R) PRO/Wireless 3945ABG mem 0xd800-0xd8000fff irq 16 at device 0.0 on pci2