Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3531423pxj; Mon, 24 May 2021 08:47:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoT9H6CI3KRFKQmSwLFW2ukUk1YFH/rPsuAoTOLdM+MambvzqulciHGOCbseRPz6kEtUE8 X-Received: by 2002:a05:6402:10cc:: with SMTP id p12mr26643902edu.328.1621871259804; Mon, 24 May 2021 08:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621871259; cv=none; d=google.com; s=arc-20160816; b=UNssUJnaN7CVYfyc3trcMOhFjzfe7AEZ4qX1EXP2gy6fb/dQ507zM6YNpm5ToRx+k5 lot0A2GhygTiABkf3dcA2V5KJm0+WLHyfjuWU9DYHnGXDf2UNxvkJYHab9phagxABV5+ cmHPoX6z6QBZXneJKy/+EVtq3eYhllg6rfjdNqkzyE426netLVQNeOcBYxUqCGbZdj7C UOgENNjFGqmOwoj2/6D5Z6Zc/kfQuqDt5P/ghtJ6dJteSNZeTSgxA1xdX6EUW5/dLhk2 ygAQI4CKsKaw7tKlmTMb1veTnYA175p93kA4hW8lsTSEmOE5HjnVGXEXmAHkGMscsMdP Q0KQ== 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:dkim-signature; bh=PKKzpcidL/QZTut978kAzG35YJexVRDO9jWnUggTwx8=; b=NPtVGWjYPx5xwr4mVh0q0TSCZj/lDE4JFYp+Avj1GP88zzGya/YRHVSmbP/r/zuYXK 3q4EfZACB7JPm4t5wLBjvvfcpGHvagBi8sDjGNCkB5ndEnKkK+BAAIejEWFy50ZWMKPg T/KJFkHmEmkNGrcPaitbmLI5PR+Gvts+yONsdQiqd2wxRAV6mSw9lUHwMEHis1pjDpL3 KsvnJDC18vgWRI8sxKeUDuMfnn7p5TjUTjG+B3bZODdGn6S0d1qyyUh25M7wP7hYvWOP I731P1t1ARNzM6ifTA+Qer2a+YHyndt1dr1daNebul3IIBYoOGtPFnqh1hdnREYaCtx1 SAnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="SJ5A0m3/"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z25si11407902edx.141.2021.05.24.08.47.16; Mon, 24 May 2021 08:47:39 -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=@linuxfoundation.org header.s=korg header.b="SJ5A0m3/"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234954AbhEXPpL (ORCPT + 99 others); Mon, 24 May 2021 11:45:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:57092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233923AbhEXPlH (ORCPT ); Mon, 24 May 2021 11:41:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6F0BE61448; Mon, 24 May 2021 15:34:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870479; bh=f2CEMHPJSzwJ1neyGt4aMJSk9pnhTKqaeY8szgUbAD0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SJ5A0m3/oPElSzDYhrvmSNJW9GouCYBjN5UbdwyrLJ3UsKjicVJ80Ic0bGB0GtXco VHRoxBNqhIC2KuSljvOZ0JjAgGZoHeonuoSBghAAsR4vNkTAIH2rrM74dqBqshl7Fv OR7aUfl+NkSHp/OUUzGHEW3UAc66fOhh//pt1YpA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maor Gottlieb , Leon Romanovsky , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.19 05/49] RDMA/mlx5: Recover from fatal event in dual port mode Date: Mon, 24 May 2021 17:25:16 +0200 Message-Id: <20210524152324.559105044@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152324.382084875@linuxfoundation.org> References: <20210524152324.382084875@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: Maor Gottlieb [ Upstream commit 97f30d324ce6645a4de4ffb71e4ae9b8ca36ff04 ] When there is fatal event on the slave port, the device is marked as not active. We need to mark it as active again when the slave is recovered to regain full functionality. Fixes: d69a24e03659 ("IB/mlx5: Move IB event processing onto a workqueue") Link: https://lore.kernel.org/r/8906754455bb23019ef223c725d2c0d38acfb80b.1620711734.git.leonro@nvidia.com Signed-off-by: Maor Gottlieb Signed-off-by: Leon Romanovsky Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/mlx5/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 1695605eeb52..13513466df01 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -6339,6 +6339,7 @@ static void *mlx5_ib_add_slave_port(struct mlx5_core_dev *mdev) if (bound) { rdma_roce_rescan_device(&dev->ib_dev); + mpi->ibdev->ib_active = true; break; } } -- 2.30.2