diff options
author | Hieu Tran <hieu.t.tran@intel.com> | 2018-08-09 09:29:55 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-08-28 14:04:04 -0400 |
commit | 8b97ceb1dc0f29d6af0cd85983041a9fbac8e14c (patch) | |
tree | a091d9a3a62f3b0fd7c90721ca967dae29c11e27 /drivers/net/ethernet/intel/ice/ice_common.h | |
parent | b1edc14a3fbfe0154a2aecb8bb9775c3012cb6e2 (diff) |
ice: Enable firmware logging during device initialization.
To enable FW logging, the "cq_en" and "uart_en" enable bits of the
"fw_log" element in struct ice_hw need to set accordingly based on
some user-provided parameters during driver loading. To select which
FW log events to be emitted, the "cfg" elements of corresponding FW
modules in the "evnts" array member of "fw_log" need to be configured.
Signed-off-by: Hieu Tran <hieu.t.tran@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.h')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_common.h b/drivers/net/ethernet/intel/ice/ice_common.h index 409b9957f407..aac2d6cadaaf 100644 --- a/drivers/net/ethernet/intel/ice/ice_common.h +++ b/drivers/net/ethernet/intel/ice/ice_common.h | |||
@@ -95,4 +95,5 @@ enum ice_status | |||
95 | ice_ena_vsi_txq(struct ice_port_info *pi, u16 vsi_id, u8 tc, u8 num_qgrps, | 95 | ice_ena_vsi_txq(struct ice_port_info *pi, u16 vsi_id, u8 tc, u8 num_qgrps, |
96 | struct ice_aqc_add_tx_qgrp *buf, u16 buf_size, | 96 | struct ice_aqc_add_tx_qgrp *buf, u16 buf_size, |
97 | struct ice_sq_cd *cd); | 97 | struct ice_sq_cd *cd); |
98 | void ice_output_fw_log(struct ice_hw *hw, struct ice_aq_desc *desc, void *buf); | ||
98 | #endif /* _ICE_COMMON_H_ */ | 99 | #endif /* _ICE_COMMON_H_ */ |