diff options
author | Vennila Megavannan <vennila.megavannan@intel.com> | 2016-01-11 23:30:56 (GMT) |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-11 01:36:55 (GMT) |
commit | a699c6c27fbce4942bc902f42b69e03c5ce03fa9 (patch) | |
tree | 56362ff89a741c4865eaedc339e73626a19a39ce /drivers/staging/rdma/hfi1/sdma.h | |
parent | 0edf80eae01b7f211a1142856c6c8fc41ea3ce06 (diff) | |
download | linux-a699c6c27fbce4942bc902f42b69e03c5ce03fa9.tar.xz |
staging/hfi1: add per SDMA engine stats to hfistats
Added the following per sdma engine stats:
- SendDmaDescFetchedCnt
- software maintained count of SDMA interrupts
(SDmaInt, SDmaIdleInt, SDmaProgressInt)
- software maintained counts of SDMA error cases
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Vennila Megavannan <vennila.megavannan@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/sdma.h')
-rw-r--r-- | drivers/staging/rdma/hfi1/sdma.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/rdma/hfi1/sdma.h b/drivers/staging/rdma/hfi1/sdma.h index da89e64..757017a 100644 --- a/drivers/staging/rdma/hfi1/sdma.h +++ b/drivers/staging/rdma/hfi1/sdma.h @@ -409,6 +409,7 @@ struct sdma_engine { u64 imask; /* clear interrupt mask */ u64 idle_mask; u64 progress_mask; + u64 int_mask; /* private: */ volatile __le64 *head_dma; /* DMA'ed by chip */ /* private: */ @@ -465,6 +466,12 @@ struct sdma_engine { u16 tx_head; /* private: */ u64 last_status; + /* private */ + u64 err_cnt; + /* private */ + u64 sdma_int_cnt; + u64 idle_int_cnt; + u64 progress_int_cnt; /* private: */ struct list_head dmawait; |