Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12998025rwl; Wed, 4 Jan 2023 01:54:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXskDPEx/5jNb+3B1GlDGyReURTjk5/rvIlkijwdo2sfH6TY8pObXsKtfipg7OJ1QQFOBiZg X-Received: by 2002:a17:903:181:b0:191:1b93:e391 with SMTP id z1-20020a170903018100b001911b93e391mr64920335plg.63.1672826046407; Wed, 04 Jan 2023 01:54:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672826046; cv=none; d=google.com; s=arc-20160816; b=ZFgzCk2lRb1OZzKDWUnwRqbNgNTTIyVQxJx+0nqZUC5rXLuu2muv1jkCFNe8gsiZzK vZUn6AcXulGfVIH0YsML6DbyfZazjIRQU8kCtee+OqCHuDV0QOSvz7HPTkpIXYnXl2Rw OJOK3kaknSHzUTfROKZ9SOF48vssfD1cEZHCwebcsnEltNgoFJtI75EuApzgBjrrFyrq TWH2AQoh0vd37yzAO2noBgVG964SFR+D9ARpnzTdWTG3XoL/iRuFFGOkjsMeMdHZQQ6x 3/7ef25z4kGux70w4QjDpu+k2T7BF6UJOS2Q2h6Se8ID20xleEZvGOoJVZ57iU67ZDR9 N5UQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=bL9Q+CZ7QVXcE+qGl0rp3nYNRWh4uCCrZ4SgLCs7AFw=; b=Nf0i0IdA2/FeASCMPasTE8WK01A5YXBuoCY1H3mZV4MHtPzFr/OPX8lM8Rrss6Grh8 /aU261OYDLOEKIT6KLimyn/g1N/DC6EpBH+R17IoFo8P75SouNEdMH/lFYfMdwz5VkoX H49zn3Xg7NLdEDu6veNirIw2Idb9O6iPGIiiAzZNeFMt2Gk4lRGz8EOu5bkyU6dCR6a5 sb8YKJeNnHMTbEqeQ8X5GhCGheBEcgtdntWo9u6ToSAmFRk3mQVyuZHWKfzcXbc9dEIo moW/yArbEH1JQqdxCtx2XwnMxUDazGBZiIS/XBQpTf+3ik1SmwIwV6lzufU5ZtjCVfzC T6Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cBRdYwaF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jc5-20020a17090325c500b001929a8ed5adsi17595857plb.430.2023.01.04.01.53.58; Wed, 04 Jan 2023 01:54:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cBRdYwaF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233945AbjADJns (ORCPT + 59 others); Wed, 4 Jan 2023 04:43:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbjADJnq (ORCPT ); Wed, 4 Jan 2023 04:43:46 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DD60AE7A; Wed, 4 Jan 2023 01:43:45 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5869EB811A2; Wed, 4 Jan 2023 09:43:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55DE1C433EF; Wed, 4 Jan 2023 09:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672825423; bh=GFCkxrwWNgg3EDS4bs73kYo8VaU7YWYv528Dyhkwodg=; h=From:To:Cc:Subject:Date:From; b=cBRdYwaF9rvneXWWpfBfXtC04WI/HLROvyAyCiBqFH9E6SHUI9oVJUnccX4MIYCJQ RE7Eea0nyS/BgIkiRGu3cTAmxEESMDcd1jaivPbSP78mAnFh2oowRnuAO8JDDGHEbi hgREYjjJ6ivL79VC0TsQLKnuOuE4g1FIVRik5fQ6C3tudtDDGv2IlAOizFxoZU1skD eus5Rb+3ImcV0O4WeRE5Dd4KaqexD6UoMxEkBf3REOOIP9yzpYpDfSSh9obuVQREcP VfG+nerm/fW1lCD6KzMtArHCVl96S24h12ThhEO3s1GxjsVR8FRc99s7y/Gm5yacZb Q745KtNOJCh3w== From: Leon Romanovsky To: Jason Gunthorpe Cc: Leon Romanovsky , Eric Dumazet , Jakub Kicinski , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Mark Zhang , netdev@vger.kernel.org, Paolo Abeni , Patrisious Haddad , Saeed Mahameed , Tariq Toukan , Yishai Hadas , Sagi Grimberg , Christoph Hellwig Subject: [PATCH rdma-next v1 0/3] Provide more error details when a QP moves to error state Date: Wed, 4 Jan 2023 11:43:33 +0200 Message-Id: X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky Changelog: v1: * Reworked mlx4 to allow non-atomic IB QP event handler. v0: https://lore.kernel.org/linux-rdma/20220907113800.22182-1-phaddad@nvidia.com/ ------------------------------------------ The following series adds ability to get information about fatal QP events. This functionality is extremely useful for the following reasons: * Provides an information about the reason why QP moved to error state, in cases where CQE isn't generated. * Allows to provide vendor specfic error codes and information that could be very useful to users who know them. An example of a case without CQE is a remote write with RKEY violation. In this flow, on remote side no CQEs are generated and such error without indication is hard to debug. Thanks. Mark Zhang (1): RDMA/mlx: Calling qp event handler in workqueue context Patrisious Haddad (2): net/mlx5: Introduce CQE error syndrome RDMA/mlx5: Print error syndrome in case of fatal QP errors drivers/infiniband/hw/mlx4/main.c | 8 ++ drivers/infiniband/hw/mlx4/mlx4_ib.h | 3 + drivers/infiniband/hw/mlx4/qp.c | 121 +++++++++++------ drivers/infiniband/hw/mlx5/main.c | 7 + drivers/infiniband/hw/mlx5/qp.c | 164 ++++++++++++++++++------ drivers/infiniband/hw/mlx5/qp.h | 4 +- drivers/infiniband/hw/mlx5/qpc.c | 7 +- drivers/net/ethernet/mellanox/mlx4/qp.c | 14 +- include/linux/mlx4/qp.h | 1 + include/linux/mlx5/mlx5_ifc.h | 47 ++++++- include/rdma/ib_verbs.h | 2 +- 11 files changed, 292 insertions(+), 86 deletions(-) -- 2.38.1