Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1082307ybt; Wed, 1 Jul 2020 18:24:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUjo635wwPTB1Z/Un3/i4clLzfieiPENaYdJncdrQoi8xNnnWiIEx11ixlA3vxmPPvavyn X-Received: by 2002:a17:907:20af:: with SMTP id pw15mr26542081ejb.204.1593653078843; Wed, 01 Jul 2020 18:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593653078; cv=none; d=google.com; s=arc-20160816; b=ZD/7J8x7aYz400koXx6uTUjArSG6ne4dJF7hRhRPBokdsYwZbTOd1PYYau7FA6waLa CpQEp807WLOcqLrK+oHuWYVQI/x296qXZ72guGIBhiTWTqxqXh4CEmIVbu8zFgLJTxas eg7+pFWFxEd5jJEQWJBqhHoMsg+iyFMgBm9Y4LhDchGWlR3WiR7cDcHJ0uJRY/SBA7f1 Ood20JSBGbP0sITfdGIlhZ99FqZSx04WDKlcFSNN4CO5QofnYyp2J1D0fSJKXzlKffP4 ZNhYkDzDTcuUxiedl1SkP7gXil1Od+kb35eBqgITc9qnUk4ht8dqw4KR51hEb+xmOQem OpjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b+UOgG+QiRz5rNBL2mYxlyHUL1jAbEfJNutjj27o+5o=; b=uJac6NVUo7cxt6AdtDn37rWT/BhROrvslWxHv2Q9f5XXrbPnZyvjNaqZvxHNopo701 k4dZe2W2TmT3NVFCekTEWDRTNHaq/ipSnBvsyFYx79e1nhma0gH5wTl2HlyxW/SxYOBY aa6kJdkCaZe6ccW9H5iLvMJpDrIqEOTF1tnjb9sRjXnLcCblO3qqkcdehRVRzR4vPtxq r5yVCeqHrGfFotTeoFj9TUMh6qbDWPatGTMVfz9ury9T6cnUMDZSd3REaVh6u/4VcRi0 1LiM3yU8zZ/g2vTRlMfKeAosXiJBdapRdf15SnCexWLUSRi1YSxJIy+Yv5B97OoVfbZh 2uIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iUsvnQgM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc26si4824690edb.329.2020.07.01.18.24.15; Wed, 01 Jul 2020 18:24:38 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=iUsvnQgM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728412AbgGBBXj (ORCPT + 99 others); Wed, 1 Jul 2020 21:23:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:54060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbgGBBXa (ORCPT ); Wed, 1 Jul 2020 21:23:30 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 71A002085B; Thu, 2 Jul 2020 01:23:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593653010; bh=veRgKsegTkK+mGLSlUJksyux8IRzvf0/wRoMvomENGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iUsvnQgMbwLbTnH40KkwLIOH82/I842ScfwaXOH18hiM+at4JF1N0vXnXxgB43pL0 Jj09pEzEbb8JhuJfsXkt+LaaZCu1IhNLdQv32g1ARsw/21rfvh1K6Z6RAxDOuKpkB9 QY09pH8pCVGRGi0Lnjft1tuXPT2MEY+NJeU3MYv0= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Dany Madden , "David S . Miller" , Sasha Levin , netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH AUTOSEL 5.7 28/53] ibmvnic: continue to init in CRQ reset returns H_CLOSED Date: Wed, 1 Jul 2020 21:21:37 -0400 Message-Id: <20200702012202.2700645-28-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200702012202.2700645-1-sashal@kernel.org> References: <20200702012202.2700645-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dany Madden [ Upstream commit 8b40eb73509f5704a0e8cd25de0163876299f1a7 ] Continue the reset path when partner adapter is not ready or H_CLOSED is returned from reset crq. This patch allows the CRQ init to proceed to establish a valid CRQ for traffic to flow after reset. Signed-off-by: Dany Madden Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/ibm/ibmvnic.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 1b4d04e4474bb..2dbcbdbb0e4ad 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -1958,13 +1958,18 @@ static int do_reset(struct ibmvnic_adapter *adapter, release_sub_crqs(adapter, 1); } else { rc = ibmvnic_reset_crq(adapter); - if (!rc) + if (rc == H_CLOSED || rc == H_SUCCESS) { rc = vio_enable_interrupts(adapter->vdev); + if (rc) + netdev_err(adapter->netdev, + "Reset failed to enable interrupts. rc=%d\n", + rc); + } } if (rc) { netdev_err(adapter->netdev, - "Couldn't initialize crq. rc=%d\n", rc); + "Reset couldn't initialize crq. rc=%d\n", rc); goto out; } -- 2.25.1