lpfc_sli.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. /*******************************************************************
  2. * This file is part of the Emulex Linux Device Driver for *
  3. * Fibre Channel Host Bus Adapters. *
  4. * Copyright (C) 2017-2022 Broadcom. All Rights Reserved. The term *
  5. * “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. *
  6. * Copyright (C) 2004-2016 Emulex. All rights reserved. *
  7. * EMULEX and SLI are trademarks of Emulex. *
  8. * www.broadcom.com *
  9. * *
  10. * This program is free software; you can redistribute it and/or *
  11. * modify it under the terms of version 2 of the GNU General *
  12. * Public License as published by the Free Software Foundation. *
  13. * This program is distributed in the hope that it will be useful. *
  14. * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND *
  15. * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, *
  16. * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
  17. * DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD *
  18. * TO BE LEGALLY INVALID. See the GNU General Public License for *
  19. * more details, a copy of which can be found in the file COPYING *
  20. * included with this package. *
  21. *******************************************************************/
  22. #if defined(CONFIG_DEBUG_FS) && !defined(CONFIG_SCSI_LPFC_DEBUG_FS)
  23. #define CONFIG_SCSI_LPFC_DEBUG_FS
  24. #endif
  25. /* forward declaration for LPFC_IOCB_t's use */
  26. struct lpfc_hba;
  27. struct lpfc_vport;
  28. /* Define the context types that SLI handles for abort and sums. */
  29. typedef enum _lpfc_ctx_cmd {
  30. LPFC_CTX_LUN,
  31. LPFC_CTX_TGT,
  32. LPFC_CTX_HOST
  33. } lpfc_ctx_cmd;
  34. /* Enumeration to describe the thread lock context. */
  35. enum lpfc_mbox_ctx {
  36. MBOX_THD_UNLOCKED,
  37. MBOX_THD_LOCKED
  38. };
  39. union lpfc_vmid_tag {
  40. uint32_t app_id;
  41. uint8_t cs_ctl_vmid;
  42. struct lpfc_vmid_context *vmid_context; /* UVEM context information */
  43. };
  44. struct lpfc_cq_event {
  45. struct list_head list;
  46. uint16_t hdwq;
  47. union {
  48. struct lpfc_mcqe mcqe_cmpl;
  49. struct lpfc_acqe_link acqe_link;
  50. struct lpfc_acqe_fip acqe_fip;
  51. struct lpfc_acqe_dcbx acqe_dcbx;
  52. struct lpfc_acqe_grp5 acqe_grp5;
  53. struct lpfc_acqe_fc_la acqe_fc;
  54. struct lpfc_acqe_sli acqe_sli;
  55. struct lpfc_rcqe rcqe_cmpl;
  56. struct sli4_wcqe_xri_aborted wcqe_axri;
  57. struct lpfc_wcqe_complete wcqe_cmpl;
  58. } cqe;
  59. };
  60. /* This structure is used to handle IOCB requests / responses */
  61. struct lpfc_iocbq {
  62. /* lpfc_iocbqs are used in double linked lists */
  63. struct list_head list;
  64. struct list_head clist;
  65. struct list_head dlist;
  66. uint16_t iotag; /* pre-assigned IO tag */
  67. uint16_t sli4_lxritag; /* logical pre-assigned XRI. */
  68. uint16_t sli4_xritag; /* pre-assigned XRI, (OXID) tag. */
  69. uint16_t hba_wqidx; /* index to HBA work queue */
  70. struct lpfc_cq_event cq_event;
  71. uint64_t isr_timestamp;
  72. union lpfc_wqe128 wqe; /* SLI-4 */
  73. IOCB_t iocb; /* SLI-3 */
  74. struct lpfc_wcqe_complete wcqe_cmpl; /* WQE cmpl */
  75. u32 unsol_rcv_len; /* Receive len in usol path */
  76. /* Pack the u8's together and make them module-4. */
  77. u8 num_bdes; /* Number of BDEs */
  78. u8 abort_bls; /* ABTS by initiator or responder */
  79. u8 abort_rctl; /* ACC or RJT flag */
  80. u8 priority; /* OAS priority */
  81. u8 retry; /* retry counter for IOCB cmd - if needed */
  82. u8 rsvd1; /* Pad for u32 */
  83. u8 rsvd2; /* Pad for u32 */
  84. u8 rsvd3; /* Pad for u32 */
  85. u32 cmd_flag;
  86. #define LPFC_IO_LIBDFC 1 /* libdfc iocb */
  87. #define LPFC_IO_WAKE 2 /* Synchronous I/O completed */
  88. #define LPFC_IO_WAKE_TMO LPFC_IO_WAKE /* Synchronous I/O timed out */
  89. #define LPFC_IO_FCP 4 /* FCP command -- iocbq in scsi_buf */
  90. #define LPFC_DRIVER_ABORTED 8 /* driver aborted this request */
  91. #define LPFC_IO_FABRIC 0x10 /* Iocb send using fabric scheduler */
  92. #define LPFC_DELAY_MEM_FREE 0x20 /* Defer free'ing of FC data */
  93. #define LPFC_EXCHANGE_BUSY 0x40 /* SLI4 hba reported XB in response */
  94. #define LPFC_USE_FCPWQIDX 0x80 /* Submit to specified FCPWQ index */
  95. #define DSS_SECURITY_OP 0x100 /* security IO */
  96. #define LPFC_IO_ON_TXCMPLQ 0x200 /* The IO is still on the TXCMPLQ */
  97. #define LPFC_IO_DIF_PASS 0x400 /* T10 DIF IO pass-thru prot */
  98. #define LPFC_IO_DIF_STRIP 0x800 /* T10 DIF IO strip prot */
  99. #define LPFC_IO_DIF_INSERT 0x1000 /* T10 DIF IO insert prot */
  100. #define LPFC_IO_CMD_OUTSTANDING 0x2000 /* timeout handler abort window */
  101. #define LPFC_FIP_ELS_ID_MASK 0xc000 /* ELS_ID range 0-3, non-shifted mask */
  102. #define LPFC_FIP_ELS_ID_SHIFT 14
  103. #define LPFC_IO_OAS 0x10000 /* OAS FCP IO */
  104. #define LPFC_IO_FOF 0x20000 /* FOF FCP IO */
  105. #define LPFC_IO_LOOPBACK 0x40000 /* Loopback IO */
  106. #define LPFC_PRLI_NVME_REQ 0x80000 /* This is an NVME PRLI. */
  107. #define LPFC_PRLI_FCP_REQ 0x100000 /* This is an NVME PRLI. */
  108. #define LPFC_IO_NVME 0x200000 /* NVME FCP command */
  109. #define LPFC_IO_NVME_LS 0x400000 /* NVME LS command */
  110. #define LPFC_IO_NVMET 0x800000 /* NVMET command */
  111. #define LPFC_IO_VMID 0x1000000 /* VMID tagged IO */
  112. #define LPFC_IO_CMF 0x4000000 /* CMF command */
  113. uint32_t drvrTimeout; /* driver timeout in seconds */
  114. struct lpfc_vport *vport;/* virtual port pointer */
  115. struct lpfc_dmabuf *cmd_dmabuf;
  116. struct lpfc_dmabuf *rsp_dmabuf;
  117. struct lpfc_dmabuf *bpl_dmabuf;
  118. uint32_t event_tag; /* LA Event tag */
  119. union {
  120. wait_queue_head_t *wait_queue;
  121. struct lpfcMboxq *mbox;
  122. struct lpfc_node_rrq *rrq;
  123. struct nvmefc_ls_req *nvme_lsreq;
  124. struct lpfc_async_xchg_ctx *axchg;
  125. struct bsg_job_data *dd_data;
  126. } context_un;
  127. struct lpfc_io_buf *io_buf;
  128. struct lpfc_iocbq *rsp_iocb;
  129. struct lpfc_nodelist *ndlp;
  130. union lpfc_vmid_tag vmid_tag;
  131. void (*fabric_cmd_cmpl)(struct lpfc_hba *phba, struct lpfc_iocbq *cmd,
  132. struct lpfc_iocbq *rsp);
  133. void (*wait_cmd_cmpl)(struct lpfc_hba *phba, struct lpfc_iocbq *cmd,
  134. struct lpfc_iocbq *rsp);
  135. void (*cmd_cmpl)(struct lpfc_hba *phba, struct lpfc_iocbq *cmd,
  136. struct lpfc_iocbq *rsp);
  137. };
  138. #define SLI_IOCB_RET_IOCB 1 /* Return IOCB if cmd ring full */
  139. #define IOCB_SUCCESS 0
  140. #define IOCB_BUSY 1
  141. #define IOCB_ERROR 2
  142. #define IOCB_TIMEDOUT 3
  143. #define IOCB_ABORTED 4
  144. #define IOCB_ABORTING 5
  145. #define IOCB_NORESOURCE 6
  146. #define SLI_WQE_RET_WQE 1 /* Return WQE if cmd ring full */
  147. #define WQE_SUCCESS 0
  148. #define WQE_BUSY 1
  149. #define WQE_ERROR 2
  150. #define WQE_TIMEDOUT 3
  151. #define WQE_ABORTED 4
  152. #define WQE_ABORTING 5
  153. #define WQE_NORESOURCE 6
  154. #define LPFC_MBX_WAKE 1
  155. #define LPFC_MBX_IMED_UNREG 2
  156. typedef struct lpfcMboxq {
  157. /* MBOXQs are used in single linked lists */
  158. struct list_head list; /* ptr to next mailbox command */
  159. union {
  160. MAILBOX_t mb; /* Mailbox cmd */
  161. struct lpfc_mqe mqe;
  162. } u;
  163. struct lpfc_vport *vport; /* virtual port pointer */
  164. void *ctx_ndlp; /* caller ndlp information */
  165. void *ctx_buf; /* caller buffer information */
  166. void *context3;
  167. void (*mbox_cmpl) (struct lpfc_hba *, struct lpfcMboxq *);
  168. uint8_t mbox_flag;
  169. uint16_t in_ext_byte_len;
  170. uint16_t out_ext_byte_len;
  171. uint8_t mbox_offset_word;
  172. struct lpfc_mcqe mcqe;
  173. struct lpfc_mbx_nembed_sge_virt *sge_array;
  174. } LPFC_MBOXQ_t;
  175. #define MBX_POLL 1 /* poll mailbox till command done, then
  176. return */
  177. #define MBX_NOWAIT 2 /* issue command then return immediately */
  178. #define LPFC_MAX_RING_MASK 5 /* max num of rctl/type masks allowed per
  179. ring */
  180. #define LPFC_SLI3_MAX_RING 4 /* Max num of SLI3 rings used by driver.
  181. For SLI4, an additional ring for each
  182. FCP WQ will be allocated. */
  183. struct lpfc_sli_ring;
  184. struct lpfc_sli_ring_mask {
  185. uint8_t profile; /* profile associated with ring */
  186. uint8_t rctl; /* rctl / type pair configured for ring */
  187. uint8_t type; /* rctl / type pair configured for ring */
  188. uint8_t rsvd;
  189. /* rcv'd unsol event */
  190. void (*lpfc_sli_rcv_unsol_event) (struct lpfc_hba *,
  191. struct lpfc_sli_ring *,
  192. struct lpfc_iocbq *);
  193. };
  194. /* Structure used to hold SLI statistical counters and info */
  195. struct lpfc_sli_ring_stat {
  196. uint64_t iocb_event; /* IOCB event counters */
  197. uint64_t iocb_cmd; /* IOCB cmd issued */
  198. uint64_t iocb_rsp; /* IOCB rsp received */
  199. uint64_t iocb_cmd_delay; /* IOCB cmd ring delay */
  200. uint64_t iocb_cmd_full; /* IOCB cmd ring full */
  201. uint64_t iocb_cmd_empty; /* IOCB cmd ring is now empty */
  202. uint64_t iocb_rsp_full; /* IOCB rsp ring full */
  203. };
  204. struct lpfc_sli3_ring {
  205. uint32_t local_getidx; /* last available cmd index (from cmdGetInx) */
  206. uint32_t next_cmdidx; /* next_cmd index */
  207. uint32_t rspidx; /* current index in response ring */
  208. uint32_t cmdidx; /* current index in command ring */
  209. uint16_t numCiocb; /* number of command iocb's per ring */
  210. uint16_t numRiocb; /* number of rsp iocb's per ring */
  211. uint16_t sizeCiocb; /* Size of command iocb's in this ring */
  212. uint16_t sizeRiocb; /* Size of response iocb's in this ring */
  213. uint32_t *cmdringaddr; /* virtual address for cmd rings */
  214. uint32_t *rspringaddr; /* virtual address for rsp rings */
  215. };
  216. struct lpfc_sli4_ring {
  217. struct lpfc_queue *wqp; /* Pointer to associated WQ */
  218. };
  219. /* Structure used to hold SLI ring information */
  220. struct lpfc_sli_ring {
  221. uint16_t flag; /* ring flags */
  222. #define LPFC_DEFERRED_RING_EVENT 0x001 /* Deferred processing a ring event */
  223. #define LPFC_CALL_RING_AVAILABLE 0x002 /* indicates cmd was full */
  224. #define LPFC_STOP_IOCB_EVENT 0x020 /* Stop processing IOCB cmds event */
  225. uint16_t abtsiotag; /* tracks next iotag to use for ABTS */
  226. uint8_t rsvd;
  227. uint8_t ringno; /* ring number */
  228. spinlock_t ring_lock; /* lock for issuing commands */
  229. uint32_t fast_iotag; /* max fastlookup based iotag */
  230. uint32_t iotag_ctr; /* keeps track of the next iotag to use */
  231. uint32_t iotag_max; /* max iotag value to use */
  232. struct list_head txq;
  233. uint16_t txq_cnt; /* current length of queue */
  234. uint16_t txq_max; /* max length */
  235. struct list_head txcmplq;
  236. uint16_t txcmplq_cnt; /* current length of queue */
  237. uint16_t txcmplq_max; /* max length */
  238. uint32_t missbufcnt; /* keep track of buffers to post */
  239. struct list_head postbufq;
  240. uint16_t postbufq_cnt; /* current length of queue */
  241. uint16_t postbufq_max; /* max length */
  242. struct list_head iocb_continueq;
  243. uint16_t iocb_continueq_cnt; /* current length of queue */
  244. uint16_t iocb_continueq_max; /* max length */
  245. struct list_head iocb_continue_saveq;
  246. struct lpfc_sli_ring_mask prt[LPFC_MAX_RING_MASK];
  247. uint32_t num_mask; /* number of mask entries in prt array */
  248. void (*lpfc_sli_rcv_async_status) (struct lpfc_hba *,
  249. struct lpfc_sli_ring *, struct lpfc_iocbq *);
  250. struct lpfc_sli_ring_stat stats; /* SLI statistical info */
  251. /* cmd ring available */
  252. void (*lpfc_sli_cmd_available) (struct lpfc_hba *,
  253. struct lpfc_sli_ring *);
  254. union {
  255. struct lpfc_sli3_ring sli3;
  256. struct lpfc_sli4_ring sli4;
  257. } sli;
  258. };
  259. /* Structure used for configuring rings to a specific profile or rctl / type */
  260. struct lpfc_hbq_init {
  261. uint32_t rn; /* Receive buffer notification */
  262. uint32_t entry_count; /* max # of entries in HBQ */
  263. uint32_t headerLen; /* 0 if not profile 4 or 5 */
  264. uint32_t logEntry; /* Set to 1 if this HBQ used for LogEntry */
  265. uint32_t profile; /* Selection profile 0=all, 7=logentry */
  266. uint32_t ring_mask; /* Binds HBQ to a ring e.g. Ring0=b0001,
  267. * ring2=b0100 */
  268. uint32_t hbq_index; /* index of this hbq in ring .HBQs[] */
  269. uint32_t seqlenoff;
  270. uint32_t maxlen;
  271. uint32_t seqlenbcnt;
  272. uint32_t cmdcodeoff;
  273. uint32_t cmdmatch[8];
  274. uint32_t mask_count; /* number of mask entries in prt array */
  275. struct hbq_mask hbqMasks[6];
  276. /* Non-config rings fields to keep track of buffer allocations */
  277. uint32_t buffer_count; /* number of buffers allocated */
  278. uint32_t init_count; /* number to allocate when initialized */
  279. uint32_t add_count; /* number to allocate when starved */
  280. } ;
  281. /* Structure used to hold SLI statistical counters and info */
  282. struct lpfc_sli_stat {
  283. uint64_t mbox_stat_err; /* Mbox cmds completed status error */
  284. uint64_t mbox_cmd; /* Mailbox commands issued */
  285. uint64_t sli_intr; /* Count of Host Attention interrupts */
  286. uint64_t sli_prev_intr; /* Previous cnt of Host Attention interrupts */
  287. uint64_t sli_ips; /* Host Attention interrupts per sec */
  288. uint32_t err_attn_event; /* Error Attn event counters */
  289. uint32_t link_event; /* Link event counters */
  290. uint32_t mbox_event; /* Mailbox event counters */
  291. uint32_t mbox_busy; /* Mailbox cmd busy */
  292. };
  293. /* Structure to store link status values when port stats are reset */
  294. struct lpfc_lnk_stat {
  295. uint32_t link_failure_count;
  296. uint32_t loss_of_sync_count;
  297. uint32_t loss_of_signal_count;
  298. uint32_t prim_seq_protocol_err_count;
  299. uint32_t invalid_tx_word_count;
  300. uint32_t invalid_crc_count;
  301. uint32_t error_frames;
  302. uint32_t link_events;
  303. };
  304. /* Structure used to hold SLI information */
  305. struct lpfc_sli {
  306. uint32_t num_rings;
  307. uint32_t sli_flag;
  308. /* Additional sli_flags */
  309. #define LPFC_SLI_MBOX_ACTIVE 0x100 /* HBA mailbox is currently active */
  310. #define LPFC_SLI_ACTIVE 0x200 /* SLI in firmware is active */
  311. #define LPFC_PROCESS_LA 0x400 /* Able to process link attention */
  312. #define LPFC_BLOCK_MGMT_IO 0x800 /* Don't allow mgmt mbx or iocb cmds */
  313. #define LPFC_SLI_ASYNC_MBX_BLK 0x2000 /* Async mailbox is blocked */
  314. #define LPFC_SLI_SUPPRESS_RSP 0x4000 /* Suppress RSP feature is supported */
  315. #define LPFC_SLI_USE_EQDR 0x8000 /* EQ Delay Register is supported */
  316. #define LPFC_QUEUE_FREE_INIT 0x10000 /* Queue freeing is in progress */
  317. #define LPFC_QUEUE_FREE_WAIT 0x20000 /* Hold Queue free as it is being
  318. * used outside worker thread
  319. */
  320. struct lpfc_sli_ring *sli3_ring;
  321. struct lpfc_sli_stat slistat; /* SLI statistical info */
  322. struct list_head mboxq;
  323. uint16_t mboxq_cnt; /* current length of queue */
  324. uint16_t mboxq_max; /* max length */
  325. LPFC_MBOXQ_t *mbox_active; /* active mboxq information */
  326. struct list_head mboxq_cmpl;
  327. struct timer_list mbox_tmo; /* Hold clk to timeout active mbox
  328. cmd */
  329. #define LPFC_IOCBQ_LOOKUP_INCREMENT 1024
  330. struct lpfc_iocbq ** iocbq_lookup; /* array to lookup IOCB by IOTAG */
  331. size_t iocbq_lookup_len; /* current lengs of the array */
  332. uint16_t last_iotag; /* last allocated IOTAG */
  333. time64_t stats_start; /* in seconds */
  334. struct lpfc_lnk_stat lnk_stat_offsets;
  335. };
  336. /* Timeout for normal outstanding mbox command (Seconds) */
  337. #define LPFC_MBOX_TMO 30
  338. /* Timeout for non-flash-based outstanding sli_config mbox command (Seconds) */
  339. #define LPFC_MBOX_SLI4_CONFIG_TMO 60
  340. /* Timeout for flash-based outstanding sli_config mbox command (Seconds) */
  341. #define LPFC_MBOX_SLI4_CONFIG_EXTENDED_TMO 300
  342. /* Timeout for other flash-based outstanding mbox command (Seconds) */
  343. #define LPFC_MBOX_TMO_FLASH_CMD 300
  344. struct lpfc_io_buf {
  345. /* Common fields */
  346. struct list_head list;
  347. void *data;
  348. dma_addr_t dma_handle;
  349. dma_addr_t dma_phys_sgl;
  350. struct sli4_sge *dma_sgl; /* initial segment chunk */
  351. /* linked list of extra sli4_hybrid_sge */
  352. struct list_head dma_sgl_xtra_list;
  353. /* list head for fcp_cmd_rsp buf */
  354. struct list_head dma_cmd_rsp_list;
  355. struct lpfc_iocbq cur_iocbq;
  356. struct lpfc_sli4_hdw_queue *hdwq;
  357. uint16_t hdwq_no;
  358. uint16_t cpu;
  359. struct lpfc_nodelist *ndlp;
  360. uint32_t timeout;
  361. uint16_t flags;
  362. #define LPFC_SBUF_XBUSY 0x1 /* SLI4 hba reported XB on WCQE cmpl */
  363. #define LPFC_SBUF_BUMP_QDEPTH 0x2 /* bumped queue depth counter */
  364. /* External DIF device IO conversions */
  365. #define LPFC_SBUF_NORMAL_DIF 0x4 /* normal mode to insert/strip */
  366. #define LPFC_SBUF_PASS_DIF 0x8 /* insert/strip mode to passthru */
  367. #define LPFC_SBUF_NOT_POSTED 0x10 /* SGL failed post to FW. */
  368. uint16_t status; /* From IOCB Word 7- ulpStatus */
  369. uint32_t result; /* From IOCB Word 4. */
  370. uint32_t seg_cnt; /* Number of scatter-gather segments returned by
  371. * dma_map_sg. The driver needs this for calls
  372. * to dma_unmap_sg.
  373. */
  374. unsigned long start_time;
  375. spinlock_t buf_lock; /* lock used in case of simultaneous abort */
  376. bool expedite; /* this is an expedite io_buf */
  377. union {
  378. /* SCSI specific fields */
  379. struct {
  380. struct scsi_cmnd *pCmd;
  381. struct lpfc_rport_data *rdata;
  382. uint32_t prot_seg_cnt; /* seg_cnt's counterpart for
  383. * protection data
  384. */
  385. /*
  386. * data and dma_handle are the kernel virtual and bus
  387. * address of the dma-able buffer containing the
  388. * fcp_cmd, fcp_rsp and a scatter gather bde list that
  389. * supports the sg_tablesize value.
  390. */
  391. struct fcp_cmnd *fcp_cmnd;
  392. struct fcp_rsp *fcp_rsp;
  393. wait_queue_head_t *waitq;
  394. #ifdef CONFIG_SCSI_LPFC_DEBUG_FS
  395. /* Used to restore any changes to protection data for
  396. * error injection
  397. */
  398. void *prot_data_segment;
  399. uint32_t prot_data;
  400. uint32_t prot_data_type;
  401. #define LPFC_INJERR_REFTAG 1
  402. #define LPFC_INJERR_APPTAG 2
  403. #define LPFC_INJERR_GUARD 3
  404. #endif
  405. };
  406. /* NVME specific fields */
  407. struct {
  408. struct nvmefc_fcp_req *nvmeCmd;
  409. uint16_t qidx;
  410. };
  411. };
  412. #ifdef CONFIG_SCSI_LPFC_DEBUG_FS
  413. uint64_t ts_cmd_start;
  414. uint64_t ts_last_cmd;
  415. uint64_t ts_cmd_wqput;
  416. uint64_t ts_isr_cmpl;
  417. uint64_t ts_data_io;
  418. #endif
  419. uint64_t rx_cmd_start;
  420. };