Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2809919pxu; Mon, 14 Dec 2020 11:23:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAE3vkc45tCdxvgAgubcdEuEvtilqaomgq7OQ3rubnfGzIEjqN8EJ3InwKKqfiPWzRMLa+ X-Received: by 2002:a17:906:2984:: with SMTP id x4mr6417560eje.239.1607973794602; Mon, 14 Dec 2020 11:23:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607973794; cv=none; d=google.com; s=arc-20160816; b=ImU0yKB9HBdjAFXX73csIPUQiVKPrE4xc+gJHBtoz+u3kCHui7/NOR73gKqS1EC6KI XOn6HU+8i+T/+UKi076z/vszGQ/HIKPNrah//+O7fM3ASVyFrJPOTbDpLq3xWo9MjEjs Dgt/b+eTbfLMTnZDG+W+93WoTtQsUt6mhxmedlhRBmJQn5hMB9EgVaF/0rVY9Ao8ZF62 H0IIhmvAV+zfgDLOCNZpwwqsAIAqk/+juk7iH1Guj0wC0/gFN9GS5/wPzA2052DN3m6M Ti/s9my76SCduUrVI9BIvUKbZkDArUZrg1pykwKputJmwHprKyZlp4QRGc4O4ICD1/TU jtow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=v/Jz7+TJg0anxUHmWbqrYQqJNL+o90c6GCvXDIWDmwU=; b=Dvc3mJkzbEU1tI7iHYgYBgH0EbEveI1wOwSq43O9kUt3a3+Cr2Jm2G6jfuZelEJtsv G5oBVV3jIZuYaxmjpUGl5QaLU42blZe1+at6bvRRv3t8dn9OYAWNjhbcrzjY5wXMkKnM Uw2aD8IWWrZMYuWSBNnkCNNdaRs+e01SLW4eIOkMZRElJk17vmJOlxw++Ca+oUrLJ5yp FUK2yJy2I0cRXasG2W9wMj9BweaBzC1scMjgc3ry2nZs1XYzb3C7WE1q8UE5KlA3wKgn fahsWF8jIzE/hWvgE+1Rz36yyPyy437gPw2dEAbFqNGb3lFqG0xqXvm19Cr0n/oIcW7m JegA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si11276118edq.373.2020.12.14.11.22.51; Mon, 14 Dec 2020 11:23:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502659AbgLNTHg (ORCPT + 99 others); Mon, 14 Dec 2020 14:07:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:47736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408592AbgLNRhN (ORCPT ); Mon, 14 Dec 2020 12:37:13 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dany Madden , Lijun Pan , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.9 015/105] ibmvnic: handle inconsistent login with reset Date: Mon, 14 Dec 2020 18:27:49 +0100 Message-Id: <20201214172556.004392623@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201214172555.280929671@linuxfoundation.org> References: <20201214172555.280929671@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dany Madden [ Upstream commit 31d6b4036098f6b59bcfa20375626b500c7d7417 ] Inconsistent login with the vnicserver is causing the device to be removed. This does not give the device a chance to recover from error state. This patch schedules a FATAL reset instead to bring the adapter up. Fixes: 032c5e82847a2 ("Driver for IBM System i/p VNIC protocol") Signed-off-by: Dany Madden Signed-off-by: Lijun Pan Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/ibm/ibmvnic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 3654be5772c85..85c54c061ed91 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -4400,7 +4400,7 @@ static int handle_login_rsp(union ibmvnic_crq *login_rsp_crq, adapter->req_rx_add_queues != be32_to_cpu(login_rsp->num_rxadd_subcrqs))) { dev_err(dev, "FATAL: Inconsistent login and login rsp\n"); - ibmvnic_remove(adapter->vdev); + ibmvnic_reset(adapter, VNIC_RESET_FATAL); return -EIO; } release_login_buffer(adapter); -- 2.27.0