Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5308816pxv; Wed, 21 Jul 2021 02:17:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyV0DdvLaBwoyHSOIb2HZydrUPBMdWpv/MkrezDqTs9VZhQ1FyZHND2tt7hQbsdCblGvCOW X-Received: by 2002:a05:6638:c58:: with SMTP id g24mr29945592jal.63.1626859053313; Wed, 21 Jul 2021 02:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626859053; cv=none; d=google.com; s=arc-20160816; b=JdKUoda+g3k5UVU8B/jmfq9czY6g11fv78M+wZG9RPZ5hQDTPLioSimN3/pwxrJKlI 2MeVImwCL/bWRzUBU3z0mq/WKm0cx+UFYBmu3UyyykRu0fs8amNAPF8NDKLMvhaNpFTm OBX5FNsUITFuBGo5hDWWWlewPHRB894KZIG5qls/A+x8w9+RaBeg3Hul3PUdGbLVS/xm vd0DHZnmXy58EKRzxQXJOzHf7rX1YZgqqhs8tKYovl3qMLKts/Q1QEsi0I8fNlgkOdny fT0zu1Vp+S1dj80J+QfIvhuSy7KiPotbYnKA2LlOlBMtWB6yeuvJ+hGofjsNP+rZl6XJ AlDA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=w08H5eeoVKbY3rMx8R73wY7lGndCvJCOCTr/DPu4L9U=; b=pZplZFyHDNNY+QZy5UfZ/U3ZRs7jTN+Mw75btMuM33YQLm6WjSGmx+Sw8L5C6Tjqd7 9+POfoTbYjoLTg4oKQ2SqXJ4gE8bnQ4EmtJKm5f+b6cBkUxJUpR4EbA8D3xy3eH5bPQG Z8af5QPXb4fvHxEFwL0ETErS7T6IpUlXEyokwAGqYAGOodn7/Z3qc2EbjbbXm+qQhzql CJQ+do0xe04tOzRg0Mdt0ZuCEO4tykQagS4K2EyVDAlg/+yidevluIyv2iU4mzKM+S4y 3FViBaO4JNb0DRtat6G3QnvtqToFr23JStcUE/yeA9+3BHbDCLS2p/nv6kN7s2jJThDb j3cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uZ9nYGvp; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si16394172iln.90.2021.07.21.02.17.22; Wed, 21 Jul 2021 02:17: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=@kernel.org header.s=k20201202 header.b=uZ9nYGvp; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237352AbhGUIcB (ORCPT + 99 others); Wed, 21 Jul 2021 04:32:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:56320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235879AbhGUI0n (ORCPT ); Wed, 21 Jul 2021 04:26:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1F65D611C1; Wed, 21 Jul 2021 09:07:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626858440; bh=5J+jBturQ/bt30k9Ss/DG7LeflH8jrxgH/e5dbAPOps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uZ9nYGvpwOJ2oDLwJnfIOgxsPQ8VF2qR0P6+/QYZVFEdOFtXUEbyglw9e9/nNRlva Qbyf0Qk4Q2yMuTMCj52LQ9F9+Loou5kCxsNKWDoNPwE2BJSU7y5p/cdlYsyOTUdRwM kkm/CGTBidL4ZbNSBPZ5H5IIBtKpTyEYMxiNM+s1eYaU4jntupnBG4qglD3/y+3jco u64orbNdhIbs653x8dJzLARhQ6R7Gyd90pQ28p0pxJBs/oKgwRLixCSv+OdIHMoEA9 F/lr8rHhzv1CqeKA1to0I7QmytF6uGpzmhtNG7psTSaC4ba+3aU5+GNKN7laBfmToZ dCzsD7iQCfpZg== From: Leon Romanovsky To: Doug Ledford , Jason Gunthorpe Cc: Leon Romanovsky , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Mark Zhang , Christoph Hellwig Subject: [PATCH rdma-next v1 1/7] RDMA/mlx5: Delete not-available udata check Date: Wed, 21 Jul 2021 12:07:04 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky XRC_TGT QPs are created through kernel verbs and don't have udata at all. Fixes: 6eefa839c4dd ("RDMA/mlx5: Protect from kernel crash if XRC_TGT doesn't have udata") Fixes: e383085c2425 ("RDMA/mlx5: Set ECE options during QP create") Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/qp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c index 18b018f1db83..81e3170a1ae6 100644 --- a/drivers/infiniband/hw/mlx5/qp.c +++ b/drivers/infiniband/hw/mlx5/qp.c @@ -1908,7 +1908,6 @@ static int get_atomic_mode(struct mlx5_ib_dev *dev, static int create_xrc_tgt_qp(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp, struct mlx5_create_qp_params *params) { - struct mlx5_ib_create_qp *ucmd = params->ucmd; struct ib_qp_init_attr *attr = params->attr; u32 uidx = params->uidx; struct mlx5_ib_resources *devr = &dev->devr; @@ -1928,8 +1927,6 @@ static int create_xrc_tgt_qp(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp, if (!in) return -ENOMEM; - if (MLX5_CAP_GEN(mdev, ece_support) && ucmd) - MLX5_SET(create_qp_in, in, ece, ucmd->ece_options); qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); MLX5_SET(qpc, qpc, st, MLX5_QP_ST_XRC); -- 2.31.1