Skip to content

Commit

Permalink
b43: Add DMA mapping failure messages
Browse files Browse the repository at this point in the history
This adds messages for some DMA mapping failures.
These are useful for debugging DMA address problems, as they appear
on x86_64 machines with IOMMU enabled.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Michael Buesch authored and John W. Linville committed Apr 1, 2008
1 parent 64f851e commit 539e6f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/net/wireless/b43/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ static int setup_rx_descbuffer(struct b43_dmaring *ring,
}

if (b43_dma_mapping_error(ring, dmaaddr, ring->rx_buffersize, 0)) {
b43err(ring->dev->wl, "RX DMA buffer allocation failed\n");
dev_kfree_skb_any(skb);
return -EIO;
}
Expand Down Expand Up @@ -874,8 +875,12 @@ struct b43_dmaring *b43_setup_dmaring(struct b43_wldev *dev,
DMA_TO_DEVICE);

if (b43_dma_mapping_error(ring, dma_test,
b43_txhdr_size(dev), 1))
b43_txhdr_size(dev), 1)) {

b43err(dev->wl,
"TXHDR DMA allocation failed\n");
goto err_kfree_txhdr_cache;
}
}

dma_unmap_single(dev->dev->dev,
Expand Down

0 comments on commit 539e6f8

Please sign in to comment.