Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp702003rwl; Thu, 5 Jan 2023 03:26:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXveFgq3Q9Gn43BdKcIU76HyvS6nhu1IW3eXf/W/5krFhaLOHG0HGKvGi4RSMqOsO+9gDhIO X-Received: by 2002:a05:6402:3ce:b0:481:f14d:fda5 with SMTP id t14-20020a05640203ce00b00481f14dfda5mr40340165edw.39.1672917994005; Thu, 05 Jan 2023 03:26:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672917993; cv=none; d=google.com; s=arc-20160816; b=mZzayA5X6lxRKaLIW0dqsJgh0CAEhx7ROqoYhPLRjVSjxt6vHVgNR7QYBctm/dEvPd B4Stn6kn9xUvHrTTLCwnJ0PJhk+ClzOrg/+D0u/X7L+WBbkPDijo/YnBRD2wvVquBAvY jb1MnugcbIo1O14B2ldTdfQykX059Muuo8rqUgPw9v10esRCEHz40kgKBFWZrALtdVK9 LcX+JPM37kMKKlHtdSZWYiHnrxUy3KvA1vJo5C+vyO21+zp6q1FFIvdmFezx7rjvnLP3 Rf9rtS2n6+43PXZ+xkES7uOlYkbTIUvaqAqZ0r+01onuEOgx+ZqylP2eV3UITZiOMTBU 785w== 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=nD6NUiTq9tpxELMD7nNLo6WEJ96OF9I1Mi0YcHBkQlA=; b=BPaOsor4G3y03j2Xaq1E0R0AWz5mSvgIk98SEdDWnIhIEyNk9Y0JjwMShCsR04WHoG xPqHk5nkVgDoqMs9mGpZWLWyniwmthXuDwdQQt1gaFpQpQR4m1LD9XscW7TrKcX5m1ds RG/kYREY3EVQSnkRFSslWdLJrfKFxkSGsLW9W4HYEc9tVFrfekedAsavnnZ26BTCMa+t rZJAe4gkdwg/RTGVRA/5JCNl3+mPYHtie0VAM+VQZlEUWABeMrOlE5objhQJIe9HbIM8 SbcuSXRrEO2lUF6DfcMLTPFcnRMo8aWDoUDAFx4FXcYwFjh1G0n/Sq2HgPDRuIsWPgF9 l7bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U5HdJ9+P; 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 e14-20020a056402190e00b004891744739esi23969793edz.570.2023.01.05.03.26.20; Thu, 05 Jan 2023 03:26:33 -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=U5HdJ9+P; 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 S232676AbjAELYF (ORCPT + 55 others); Thu, 5 Jan 2023 06:24:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232891AbjAELXz (ORCPT ); Thu, 5 Jan 2023 06:23:55 -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 C154650E7E; Thu, 5 Jan 2023 03:23:54 -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 5E16D619D6; Thu, 5 Jan 2023 11:23:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42D48C433D2; Thu, 5 Jan 2023 11:23:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672917833; bh=J4IQeUKege6YLmfEJkNgDqcK7NVwWSrt7mDfKFJWrOk=; h=From:To:Cc:Subject:Date:From; b=U5HdJ9+PgEYpcIJXa9q9IbRIQHO9pM0JKO4mTvyfopF4V6JPt4zHAv9xgct3uYBnp ixLvd4YPGMTt6EzcZnHvFlnIXeu+2jUFrrPVo5ul6wLXZGQiTURbDuVGSm3lobAnER bIeRLICX9vhharsodTJdx+ftV2oTyTrZTMNCDI/mtC8/pGPZArwT9q6T3xVO1EiPRu ks3oGzA+iDcB/zNozgIFAIlX3DR/OE4hC/zhOu4Lv03MKSh2nTPlXuDZZ63XwswuaA hAZDqpljEaddyWj0fwmtyNUUSsu3fEvsfND21b8uMWYucoDGqLyj4wTJ0UXaP7SRix jN3V9bsgDLpFA== 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 v1 0/4] Rely on firmware to get special mkeys Date: Thu, 5 Jan 2023 13:23:44 +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: * Use already stored mkeys.terminate_scatter_list_mkey. v0: https://lore.kernel.org/all/cover.1672819469.git.leonro@nvidia.com ----------------------------------------------------------------------- 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 | 30 +++++++------------ drivers/infiniband/hw/mlx5/cmd.h | 3 +- drivers/infiniband/hw/mlx5/main.c | 10 +++---- drivers/infiniband/hw/mlx5/mlx5_ib.h | 8 ++++- drivers/infiniband/hw/mlx5/odp.c | 29 +++++++----------- 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, 75 insertions(+), 52 deletions(-) -- 2.38.1