]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb3: fix dma mapping regression
authorDivy Le Ray <divy@chelsio.com>
Thu, 28 May 2009 11:23:02 +0000 (11:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 May 2009 08:54:37 +0000 (01:54 -0700)
commit9ca02befd6d35e91711e3043a5978b5a89b3035e
tree5b853a9db086d4c0894d93f54e5bf666f0b8fa70
parent077172fbde8c9db8bbab1cc760e5469741ee6af7
cxgb3: fix dma mapping regression

Commit 5b5c1c99567bdc7ea6f192611e26c0b7f5e23901
  cxgb3: map entire Rx page, feed map+offset to Rx ring.

introduced a regression on platforms defining DECLARE_PCI_UNMAP_ADDR()
and related macros as no-ops.

Rx descriptors are fed with the a page buffer bus address + page chunk offset.
The page buffer bus address is set and retrieved through
pci_unamp_addr_set(), pci_unmap_addr().
These functions being meaningless on x86 (if CONFIG_DMA_API_DEBUG is not set).
The HW ends up with a bogus bus address.

This patch saves the page buffer bus address for all plaftorms.

Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/adapter.h
drivers/net/cxgb3/sge.c