cxgb4: Common platform specific changes for DB Drop Recovery
Subsystems (4)
PATCH v3 2/10 cxgb4: Common platform specific changes for DB Drop Recovery
- Add platform-specific callback functions for interrupts. This is needed to do a single read-clear of the CAUSE register and then call out to platform specific functions for DB threshold interrupts and DB drop interrupts.
- Add t4_mem_win_read_len() - mem-window reads for arbitrary lengths. This is used to read the CIDX/PIDX values from EC contexts during DB drop recovery.
- Add t4_fwaddrspace_write() - sends addrspace write cmds to the fw. Needed to flush the sge eq context cache.
Signed-off-by Vipul Pandya <[email protected]>
Signed-off-by Steve Wise <[email protected]>
---
V2: Corrected the subject for patch.
V3: Moved function declarations from t4fw_api.h to cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 3 + drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 69 +++++++++++++++++++++++---- 2 files changed, 61 insertions(+), 11 deletions(-)
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +3 -0
@@ -723,4 +723,7 @@ int t4_ofld_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,int t4_handle_fw_rpl (struct adapter *adap,const __be64 *rpl);void t4_db_full (struct adapter *adapter);void t4_db_dropped (struct adapter *adapter); +int t4_mem_win_read_len (struct adapter *adap,u32 addr,__be32 *data,int len); +int t4_fwaddrspace_write (struct adapter *adap,unsigned int mbox, +u32 addr,u32 val);#endif /* __CXGB4_H__ */
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +58 -11
110 lines not on this page · raw message
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html