health.c (fdb7f139864aa332ea8f161beb636dc0599c64f2) health.c (e99c1618f9dfc0ec87660f8df1dc83693f2724ff)
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright (c) 2024, Intel Corporation. */
3
4#include "ice.h"
5#include "ice_adminq_cmd.h" /* for enum ice_aqc_health_status_elem */
6#include "health.h"
7
8#define ICE_DEVLINK_FMSG_PUT_FIELD(fmsg, obj, name) \

--- 190 unchanged lines hidden (view full) ---

199 if (enable)
200 enable_bits = ICE_AQC_HEALTH_STATUS_SET_PF_SPECIFIC_MASK |
201 ICE_AQC_HEALTH_STATUS_SET_GLOBAL_MASK;
202
203 ret = ice_aq_set_health_status_cfg(&pf->hw, enable_bits);
204 if (ret)
205 dev_err(ice_pf_to_dev(pf), "Failed to %s firmware health events, err %d aq_err %s\n",
206 str_enable_disable(enable), ret,
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright (c) 2024, Intel Corporation. */
3
4#include "ice.h"
5#include "ice_adminq_cmd.h" /* for enum ice_aqc_health_status_elem */
6#include "health.h"
7
8#define ICE_DEVLINK_FMSG_PUT_FIELD(fmsg, obj, name) \

--- 190 unchanged lines hidden (view full) ---

199 if (enable)
200 enable_bits = ICE_AQC_HEALTH_STATUS_SET_PF_SPECIFIC_MASK |
201 ICE_AQC_HEALTH_STATUS_SET_GLOBAL_MASK;
202
203 ret = ice_aq_set_health_status_cfg(&pf->hw, enable_bits);
204 if (ret)
205 dev_err(ice_pf_to_dev(pf), "Failed to %s firmware health events, err %d aq_err %s\n",
206 str_enable_disable(enable), ret,
207 ice_aq_str(pf->hw.adminq.sq_last_status));
207 libie_aq_str(pf->hw.adminq.sq_last_status));
208}
209
210/**
211 * ice_process_health_status_event - Process the health status event from FW
212 * @pf: pointer to the PF structure
213 * @event: event structure containing the Health Status Event opcode
214 *
215 * Decode the Health Status Events and print the associated messages

--- 337 unchanged lines hidden ---
208}
209
210/**
211 * ice_process_health_status_event - Process the health status event from FW
212 * @pf: pointer to the PF structure
213 * @event: event structure containing the Health Status Event opcode
214 *
215 * Decode the Health Status Events and print the associated messages

--- 337 unchanged lines hidden ---