Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12921583rwl; Wed, 4 Jan 2023 00:27:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXt6NdkX2BQsCo/0tIuFxZTR1p5skgFwssvs6NUCnqERM5hcIVQZ2n5kaHlbKF2feZJgN1LM X-Received: by 2002:a17:90a:6609:b0:225:dec8:e81b with SMTP id l9-20020a17090a660900b00225dec8e81bmr43605529pjj.15.1672820836647; Wed, 04 Jan 2023 00:27:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672820836; cv=none; d=google.com; s=arc-20160816; b=H67AuoJCA6MeCIwyaj+PMUCK9oN5pJlxZVySnNbYgZ6QpP5GCqZMf/2jSpEoDNI/54 oPqLXetjoiP4o1pR9oVoO7b3orqtpXzdabHtma8zZpPZR2ynsv9kzkEgOIDwNmscUnVX I2HEooBjaiC0pb9722YeLmYLS2gwIOgHukhGslqz6914t/qvQG0bvy0L3Ni3WKSha8jg D2Jxcu9MXaMP8mLovT1rLp99xQZjnPVS7zr64p0LXtcKkE+8GOgC7FUpEDe9kaITqeRQ ZSkTDtuB+oxghSfXlDqSdTdt7pbj9vbdtdyiLpc9jHo0YkWmmApW3IE7LIngQci7Nwit SVZA== 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=aSNmf9UQgjkjZQcg+Mwcv4BCKwK/aw+X3Yc3ED0SxP4=; b=QRAdy+wUsbc8Cq67KyLVg6K2XZkILNs0ohuxnpBj0tns8KM+KDpBKbCKnALmDg7/qU brKPAm0Mdd8v4i5xi1jEdKswZl+kP1gdgJZoqOZlCF4nMCJpGZRHDPBQ/8isgC1M4Vsr EZBe2l9ER2C8WpsFBIKhsXq6u0jH8h4hYYdfHgwxCFFTrPFL9kGXmu94uuv9XSzotgyK 2J15OnH9aElxAXqUT5sknT2bTyR16mQiNTcSeuecu+D35U9ndr+LnOwMog5yHv3A0whp hkGNeYlK82zpRb/0ZZzkn1dt8U9u21v5Hx3/bNTFddDIP2+wnqDx6S+8peyGSPzc7hF1 l1xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jgwopIAI; 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 lr1-20020a17090b4b8100b00225be28a55esi37243351pjb.19.2023.01.04.00.27.09; Wed, 04 Jan 2023 00:27:16 -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=jgwopIAI; 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 S233761AbjADILg (ORCPT + 57 others); Wed, 4 Jan 2023 03:11:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230251AbjADILd (ORCPT ); Wed, 4 Jan 2023 03:11:33 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD5FDDEAC; Wed, 4 Jan 2023 00:11:32 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 5D163615C1; Wed, 4 Jan 2023 08:11:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E509C433EF; Wed, 4 Jan 2023 08:11:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672819891; bh=SIPCFfmc72iP44TKzaToJdxfKCMW0e9hhb3cSHdlX8g=; h=From:To:Cc:Subject:Date:From; b=jgwopIAIv0bRg9NMUyNLs86h3NhcGTgxs1/Husy6wNrnoeY74XxzztEJdIiOU08ZF TyD9as1T4iMvqVL15mHRsOVLZ9DNt39f92lTvFtLCQOkU3iJ0Jgk8j97amZOZ6eLpB 0DuB2VHi6Z+wYka9GvozKlMT9dnsq4O/Yis+sTL12DNdhQA5VJofuqPo4Bwt84sI/S PQjml2a48mKqouGZnLwyB3q/i/9LEOjkxSwiGuFgcrUwvJrRFxt2jUQ5iWBvtyshLe lI/ebQAmbwoKWUXgK/o8jKG/fGgrV6r5DJh6ggzPpOWmuh9AAU51PAecmspB0n8AaI iSEf5uTUKeEoA== From: Leon Romanovsky To: Jason Gunthorpe Cc: Leon Romanovsky , Eric Dumazet , Jakub Kicinski , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Michael Guralnik , netdev@vger.kernel.org, Or Har-Toov , Paolo Abeni , Saeed Mahameed Subject: [PATCH rdma-next 0/4] Rely on firmware to get special mkeys Date: Wed, 4 Jan 2023 10:11:21 +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 This series from Or extends mlx5 driver to rely on firmware to get special mkey values. Thanks Or Har-Toov (4): net/mlx5: Expose bits for querying special mkeys net/mlx5: Change define name for 0x100 lkey value net/mlx5: Use query_special_contexts for mkeys RDMA/mlx5: Use query_special_contexts for mkeys drivers/infiniband/hw/mlx5/cmd.c | 41 ++++++++++--------- drivers/infiniband/hw/mlx5/cmd.h | 3 +- drivers/infiniband/hw/mlx5/main.c | 10 ++--- drivers/infiniband/hw/mlx5/mlx5_ib.h | 9 +++- drivers/infiniband/hw/mlx5/odp.c | 27 ++++-------- drivers/infiniband/hw/mlx5/srq.c | 2 +- drivers/infiniband/hw/mlx5/wr.c | 2 +- .../net/ethernet/mellanox/mlx5/core/en_main.c | 3 +- .../net/ethernet/mellanox/mlx5/core/main.c | 27 ++++++++++++ include/linux/mlx5/driver.h | 1 + include/linux/mlx5/mlx5_ifc.h | 10 ++++- include/linux/mlx5/qp.h | 2 +- 12 files changed, 85 insertions(+), 52 deletions(-) -- 2.38.1