|
@@ -2507,12 +2507,14 @@ static u32 hclge_check_event_cause(struct hclge_dev *hdev, u32 *clearval)
|
|
|
|
|
|
/* check for vector0 reset event sources */
|
|
|
if (BIT(HCLGE_VECTOR0_GLOBALRESET_INT_B) & rst_src_reg) {
|
|
|
+ set_bit(HCLGE_STATE_CMD_DISABLE, &hdev->state);
|
|
|
set_bit(HNAE3_GLOBAL_RESET, &hdev->reset_pending);
|
|
|
*clearval = BIT(HCLGE_VECTOR0_GLOBALRESET_INT_B);
|
|
|
return HCLGE_VECTOR0_EVENT_RST;
|
|
|
}
|
|
|
|
|
|
if (BIT(HCLGE_VECTOR0_CORERESET_INT_B) & rst_src_reg) {
|
|
|
+ set_bit(HCLGE_STATE_CMD_DISABLE, &hdev->state);
|
|
|
set_bit(HNAE3_CORE_RESET, &hdev->reset_pending);
|
|
|
*clearval = BIT(HCLGE_VECTOR0_CORERESET_INT_B);
|
|
|
return HCLGE_VECTOR0_EVENT_RST;
|