Commit 2d22bc83 authored by Michal Kalderon's avatar Michal Kalderon Committed by David S. Miller

qed: FW 8.42.2.0 debug features

Add to debug dump more information on the platform it was collected
from (pci func, path id).
Provide human readable reg fifo erros.

Removed static debug arrays from HSI Functions, and move them to
the hwfn.

Some structures were slightly changed (removing reserved chip id
for example) which lead to many long initializations being modified
with one parameter less during initialization. This leads to
some long diffs that don't really change anything.
Signed-off-by: default avatarAriel Elior <ariel.elior@marvell.com>
Signed-off-by: default avatarMichal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6bc82d9b
...@@ -666,6 +666,7 @@ struct qed_hwfn { ...@@ -666,6 +666,7 @@ struct qed_hwfn {
struct dbg_tools_data dbg_info; struct dbg_tools_data dbg_info;
void *dbg_user_info; void *dbg_user_info;
struct virt_mem_desc dbg_arrays[MAX_BIN_DBG_BUFFER_TYPE];
/* PWM region specific data */ /* PWM region specific data */
u16 wid_count; u16 wid_count;
...@@ -877,6 +878,7 @@ struct qed_dev { ...@@ -877,6 +878,7 @@ struct qed_dev {
struct qed_cb_ll2_info *ll2; struct qed_cb_ll2_info *ll2;
u8 ll2_mac_address[ETH_ALEN]; u8 ll2_mac_address[ETH_ALEN];
#endif #endif
struct qed_dbg_feature dbg_features[DBG_FEATURE_NUM];
bool disable_ilt_dump; bool disable_ilt_dump;
DECLARE_HASHTABLE(connections, 10); DECLARE_HASHTABLE(connections, 10);
const struct firmware *firmware; const struct firmware *firmware;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2346,7 +2346,7 @@ int qed_resc_alloc(struct qed_dev *cdev) ...@@ -2346,7 +2346,7 @@ int qed_resc_alloc(struct qed_dev *cdev)
if (rc) if (rc)
goto alloc_err; goto alloc_err;
rc = qed_dbg_alloc_user_data(p_hwfn); rc = qed_dbg_alloc_user_data(p_hwfn, &p_hwfn->dbg_user_info);
if (rc) if (rc)
goto alloc_err; goto alloc_err;
} }
......
This diff is collapsed.
...@@ -2637,7 +2637,7 @@ static int qed_set_grc_config(struct qed_dev *cdev, u32 cfg_id, u32 val) ...@@ -2637,7 +2637,7 @@ static int qed_set_grc_config(struct qed_dev *cdev, u32 cfg_id, u32 val)
if (!ptt) if (!ptt)
return -EAGAIN; return -EAGAIN;
rc = qed_dbg_grc_config(hwfn, ptt, cfg_id, val); rc = qed_dbg_grc_config(hwfn, cfg_id, val);
qed_ptt_release(hwfn, ptt); qed_ptt_release(hwfn, ptt);
......
...@@ -1178,6 +1178,15 @@ struct qed_common_ops { ...@@ -1178,6 +1178,15 @@ struct qed_common_ops {
#define GET_FIELD(value, name) \ #define GET_FIELD(value, name) \
(((value) >> (name ## _SHIFT)) & name ## _MASK) (((value) >> (name ## _SHIFT)) & name ## _MASK)
#define GET_MFW_FIELD(name, field) \
(((name) & (field ## _MASK)) >> (field ## _OFFSET))
#define SET_MFW_FIELD(name, field, value) \
do { \
(name) &= ~(field ## _MASK); \
(name) |= (((value) << (field ## _OFFSET)) & (field ## _MASK));\
} while (0)
#define DB_ADDR_SHIFT(addr) ((addr) << DB_PWM_ADDR_OFFSET_SHIFT) #define DB_ADDR_SHIFT(addr) ((addr) << DB_PWM_ADDR_OFFSET_SHIFT)
/* Debug print definitions */ /* Debug print definitions */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment