cxgb4: Add HMA support
authorArjun Vynipadath <arjun@chelsio.com>
Tue, 13 Mar 2018 10:54:45 +0000 (16:24 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Mar 2018 15:28:19 +0000 (11:28 -0400)
commit8b4e6b3ca2ed63917e18303005fdd34a586e86db
treef3b158fdd8947d0c7bec54ac1235700ccb5cc5fe
parent74b8da705caff32d599474b3c49fd6a5c65fe03e
cxgb4: Add HMA support

HMA(Host Memory Access) maps a part of host memory for T6-SO memfree cards.

This commit does the following:
- Query FW to check if we have HMA support. If yes, the params will
  return HMA size configured in FW. We will dma map memory based
  on this size.
- Also contains changes to get HMA memory information via debugfs.

Signed-off-by: Arjun Vynipadath <arjun@chelsio.com>
Signed-off-by: Santosh Rastapur <santosh@chelsio.com>
Signed-off-by: Michael Werner <werner@chelsio.com>
Signed-off-by: Ganesh GR <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h