Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3284549ybb; Tue, 31 Mar 2020 02:05:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsaN229QOUPrh2io3DwZHfkdkW/grd8Z9bEv/67ayxb7V/9raNp5ehKpUqdGfBIRi14IVG4 X-Received: by 2002:aca:f0d7:: with SMTP id o206mr1287614oih.41.1585645509821; Tue, 31 Mar 2020 02:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585645509; cv=none; d=google.com; s=arc-20160816; b=uCaLPkFpFt2KX5w4Q13XOEd/ldUdgBVMLV+yW1uT9Cqq2/cKFdZY7cXB6vFfvCapsU o7LU+t8qeUsS3sFtWUU6IL3Ujde9aCODNi83Sfw/2SNFjSaap0smYPXe+JBkhBmN2vYH d1PAC0C5PtwnxqRBVh/ovxMx5N190US1ZyWjMoRjQs3CSBm9uojdF1JxPnX6AgUHph/q HqpQNlI4b//NT8ifIo6AMdANKFY7gSXqnhYUzf53KNv52JFR1wI0efIkgG2XK9lB7VHT 7YUJ+d5zLTfbnKICpUUqfoSqm9mjbRrwk+QwgmMgNdidDf09wy8Es/pWrtblgwHTYemm jORg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wYoZcEWXjgj7ZcrNaq+pyAia5CAlKg70n0iq6OevwBQ=; b=IsVK2PckTzA+tI3Bu/Y1KwafgTTagbvLtCkPMixROxtxfV9+mythK8TfSO/p3bh1a5 6oNpHNPANbuvTvrN5G44suI7QmUi7msE/r7VNdrgw6CNlzVGGu46hLs14xRbQtwZxubK iUMWVJptwM+OO2R5Zbgxz8sJ7V068Zo2VWojr08Ad+FauWVGcWvbWuzCQH02oHDbjPJa RBwNCgwZG0WTNp1D5qmRE7708fPavOUH9fB6QkV5fmRY4L6rE21tvUC7PaT9+8K/pc6F 8r69C2XPLiJFpuQEsM0jhxUV8QMj+wazO7JDElj6KpLH+cEVfGJ/iaFdubff2hi6m/39 Q2CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uGXFBdG0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f128si6719418oig.208.2020.03.31.02.04.57; Tue, 31 Mar 2020 02:05:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uGXFBdG0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730950AbgCaJEZ (ORCPT + 99 others); Tue, 31 Mar 2020 05:04:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:44314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730940AbgCaJEU (ORCPT ); Tue, 31 Mar 2020 05:04:20 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AB3BC20675; Tue, 31 Mar 2020 09:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645460; bh=3PC6TWgTDvSLeX/Jgr+1SwtX1haQuV2NKoab2HFbPJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uGXFBdG0zqLagQiCjQp2G0Pal7gWQhMy8OR+2vXuddKNnZFdFbnuXm2dG6yBkcwCV rCl+jQ/1PqndcmdCl3tTUXh+ILj4HxexD9vLl7Adz5Dve/qnZgI9qu/Sw5XkjHPvuD 3tBc8nEetB57qaFpWs2ERCS03+J/V0A11sCAhH24= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aya Levin , Tariq Toukan , Saeed Mahameed , "David S. Miller" Subject: [PATCH 5.5 060/170] net/mlx5e: Do not recover from a non-fatal syndrome Date: Tue, 31 Mar 2020 10:57:54 +0200 Message-Id: <20200331085430.914003504@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aya Levin [ Upstream commit 187a9830c921d92c4a9a8e2921ecc4b35a97532c ] For non-fatal syndromes like LOCAL_LENGTH_ERR, recovery shouldn't be triggered. In these scenarios, the RQ is not actually in ERR state. This misleads the recovery flow which assumes that the RQ is really in error state and no more completions arrive, causing crashes on bad page state. Fixes: 8276ea1353a4 ("net/mlx5e: Report and recover from CQE with error on RQ") Signed-off-by: Aya Levin Reviewed-by: Tariq Toukan Signed-off-by: Saeed Mahameed Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/en/health.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/en/health.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/health.h @@ -10,8 +10,7 @@ static inline bool cqe_syndrome_needs_recover(u8 syndrome) { - return syndrome == MLX5_CQE_SYNDROME_LOCAL_LENGTH_ERR || - syndrome == MLX5_CQE_SYNDROME_LOCAL_QP_OP_ERR || + return syndrome == MLX5_CQE_SYNDROME_LOCAL_QP_OP_ERR || syndrome == MLX5_CQE_SYNDROME_LOCAL_PROT_ERR || syndrome == MLX5_CQE_SYNDROME_WR_FLUSH_ERR; }