Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2460177imd; Fri, 2 Nov 2018 11:47:23 -0700 (PDT) X-Google-Smtp-Source: AJdET5cFapeVpyLfswKDOcRlprU/SEjty7OQ8LSLBNvrnLm3q8TMCEIwdLwFczI5QJV+wNAHo4c7 X-Received: by 2002:aa7:8348:: with SMTP id z8-v6mr12651457pfm.81.1541184443419; Fri, 02 Nov 2018 11:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184443; cv=none; d=google.com; s=arc-20160816; b=vPCuQa19anylJIqZJd5XNjodKbs1L6Ug+1jbPVCvH/gsD1c0uMFNbOI1kqE0sxjAJX gdHp78ZII2IA7uQm/naqaLXj3AKHIaWX/5YG5oojwOttb8ZWYQ7TevqJWdGziF9GhyXH edPhGYXinqZy2Fq63LPAhPapG7I3tlt/gj0UQTT/vdswtzFymr7Pkm8ifenyRmOQANu+ oMwnWePn/yEdpv3cpCH4DxXKlIe2AyCvS22QESKCK+k3wUF2TGEdpSOG4T9WXe8DxpZI 6N1NIcoT2jITmHgF7XElSZF0SEbZfgcmwtZ5HMmc9Nt1PJCRcYuVxpFhvRn9uyTYDuzh AImw== 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=fxaVPZPLsH6h/V0OOxVuDdP4heFdtfvUT1WdzOomhWk=; b=j62RLF4qiOUAFS08DjPHSxge1ZF2nV8iflyRrN8JTMurhf94Eby6r3vyXAHJAJz5wA udRJpPx7NkJwB8zhFvc6hAXtVbbLMQE4iYVGj6DcVkGEHBvFm0nF3/ZnreJg99fdPh/a mXi9V5bJoRrxDbS1YrDrw95l5kJpis8oWB7+kaueXlaK21nomIYfUgXZH//CTya3blHg zZdnp6reQeDQF4uc1vUBsfadfhZtB6cNpc4FdlD3I5dCq6Sx2HNuaf02kV8+D1/R7OJC qVhI6O/iFq8te10nn+dRip/CgrMNrHXFdi6FJ71+8AGd2RqoBXt7zjNyw4lQvoVSIes8 Cnjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="tlyjIZ/h"; 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 b13-v6si4219565plm.316.2018.11.02.11.47.08; Fri, 02 Nov 2018 11:47:23 -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="tlyjIZ/h"; 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 S1730114AbeKCDxJ (ORCPT + 99 others); Fri, 2 Nov 2018 23:53:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:48668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729136AbeKCDxI (ORCPT ); Fri, 2 Nov 2018 23:53:08 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.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 24B4E20847; Fri, 2 Nov 2018 18:44:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184295; bh=qLvrr1TVP6a9IjcTjb+pUqpMJb/4dk8buReP5SwMEro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tlyjIZ/hk+Ga69JPFoE3xouZ3XwMNRvOMnrgwzByodIPZN9B4kOpKJDZ2srkzsQ7G qyIMsFYWlmHWkUQmxrWRo2B7ETQUvZ1ETq+dsaDi2TVmNAA3WsNZsXBIlb6IkSk2y4 4VjjEKR+8LVsKaUOmInC1q6OwerS59b/gAPMKvZU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Huy Nguyen , Eli Cohen , Saeed Mahameed Subject: [PATCH 4.18 127/150] net/mlx5: Take only bit 24-26 of wqe.pftype_wq for page fault type Date: Fri, 2 Nov 2018 19:34:49 +0100 Message-Id: <20181102182911.689678650@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Huy Nguyen [ Upstream commit a48bc513159d4767f9988f0d857b2b0c38a4d614 ] The HW spec defines only bits 24-26 of pftype_wq as the page fault type, use the required mask to ensure that. Fixes: d9aaed838765 ("{net,IB}/mlx5: Refactor page fault handling") Signed-off-by: Huy Nguyen Signed-off-by: Eli Cohen Signed-off-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/eq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/eq.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eq.c @@ -269,7 +269,7 @@ static void eq_pf_process(struct mlx5_eq case MLX5_PFAULT_SUBTYPE_WQE: /* WQE based event */ pfault->type = - be32_to_cpu(pf_eqe->wqe.pftype_wq) >> 24; + (be32_to_cpu(pf_eqe->wqe.pftype_wq) >> 24) & 0x7; pfault->token = be32_to_cpu(pf_eqe->wqe.token); pfault->wqe.wq_num =