Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3547068pxj; Mon, 24 May 2021 09:06:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznnWXals+FWZhrsx2TGPGjMU55CW2lPthRigXl5T6M+xGonwEbjmmhJRy0264b8j5wbb+j X-Received: by 2002:a92:c5ac:: with SMTP id r12mr14786265ilt.283.1621872393816; Mon, 24 May 2021 09:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872393; cv=none; d=google.com; s=arc-20160816; b=tyQZUjPSC1Ja4oT05nlPDRa/KvsgGFBck9GBut5FuJzL/T1zM+Sth1U3pln3m3PwF0 H4akaP9J7u/5ywYiED2yeNJ6sIiZkcbXFgao6lV8O5oumfpkP55GGO6fPvKPxJOmY+Gj 7L9qkiii1FXrafODPI0f5G2lN4qdbyWCuL6NTdeP9lBAar1moixCHrsjmnmTQaagG+z5 3z25U/DFScfv4vlTPLFfYO+quCp9IQvyemHoXrAsvlBNY9oKrO4rwHfotSlMM0nDbTs+ wfOf6BO/Ndli+hrUfCR29YfP7PlB27nRs0HNnLaYLS9nX6Xa7KLwS+Kp8R5ZeguVKfJN L02g== 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=qld2Y0BdYixxVPPkbBgVtapQC01FhrbF2JOkCm9BVH0=; b=SPHKrQHiVFDMKmYQeuwdvfUnrD3lyHu3PlAHeN8eY4GdR7W+sYGim3CyMIs+rp8xqn PWJUXV85+lDAakmzlO3GOGEAFhlfkzjGOdkvInuGdn35ierxDyvyAqd0SRi039lFXAKV xof/0Ew0ilZYKAgNtc6uYdnnBY19kw+JjY7i03NnvRXCFL/TD8f6pbznGVu9AqkCVXuL xj+e59hlq0+YHsB5W0OnED8zxAIHxlGgf5HuN0V1o3GuMf47gJ3bhbOckf087X4KGstD 8dfaB6AKWCucBehfDH/fHGb2Q8M+CRGFCuUx7TZQsiVA8nWymSlfMHELpdxLO0gec6wk iAyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jvImX2aB; 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 x23si13159816jab.92.2021.05.24.09.06.15; Mon, 24 May 2021 09:06:33 -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=jvImX2aB; 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 S236947AbhEXQEp (ORCPT + 99 others); Mon, 24 May 2021 12:04:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:41186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233751AbhEXP6L (ORCPT ); Mon, 24 May 2021 11:58:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E406661955; Mon, 24 May 2021 15:44:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621871044; bh=XajUPmwXR5zfffuyVJVb2YcdGKA6i9U3J41tieZRjnQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jvImX2aBFNrgOH1gs7jyJhBmTatuMS+E4p9KbaP3lTcxa4fc963FNZogza6eC7UtQ UPfejEFzLYLbzA8kCYiw2biR+RqRyPbhUqa3GpOuHncvxE7kWXG7kdHv7WG3W0GtzZ Ut4STEFrF/5XagEsB1H76k2y38YYlsxD+P0813t8= 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 5.12 013/127] RDMA/mlx5: Recover from fatal event in dual port mode Date: Mon, 24 May 2021 17:25:30 +0200 Message-Id: <20210524152335.303953482@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152334.857620285@linuxfoundation.org> References: <20210524152334.857620285@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 4be7bccefaa4..59ffbbdda317 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -4655,6 +4655,7 @@ static int mlx5r_mp_probe(struct auxiliary_device *adev, if (bound) { rdma_roce_rescan_device(&dev->ib_dev); + mpi->ibdev->ib_active = true; break; } } -- 2.30.2