From patchwork Wed Apr 3 10:35:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 13615767 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F4B1433AD for ; Wed, 3 Apr 2024 10:36:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712140574; cv=none; b=dLs2YaY982cENb9lFQwL5tOnR4sAd8hfDzPdrTI4WdhNa7HPd7xL/+YSSGs2zBBqk2+uAPSNdHgbzn4UWoKe+qFdP6mwlUrQ7hpQZ58EwEtbZXmeyipzPz+vmVnuAggeZOk0vTyNUqxApwHxybVYmHV6R/3GfQGRGfrLRqtMX+U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712140574; c=relaxed/simple; bh=oUJRha4fMxW+pvW8Uz39rjHv6c2cWJRFI++Ii6JasxE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FRLHjLz9+Fy3Aij3NRtJ1Odox84ZM/e3Q5ZFQBrO7uUk4SrPKMH4macwfXgF7PiPP7IRxf7h52ioMnVeBiDCjjH0Qp30HUowh+C3/WkXrJR/8onWQ3iJIe3np50Pw3Y7FVe1RkqWE14Zrdw3b/tiwL4APz8HVMdGdGaY+DE6VVU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ef6wwbix; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ef6wwbix" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 446C3C433C7; Wed, 3 Apr 2024 10:36:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712140573; bh=oUJRha4fMxW+pvW8Uz39rjHv6c2cWJRFI++Ii6JasxE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ef6wwbix2X1/kHRDFJfOsQ9+FSzNxCgjAeP5cq+6dO+aUPl4haLCbh1FCXWgXp+ol yTzAKn/niCJLEHRrFuYkp5hnly/NbWIvD6rgSnwNxZ3NheuVOw8HPleYj+sNYbzLrG XritGJ2tUfowHOWFp08+qydtvWbuTT5yLqbm0ANzGLKrifXs9qKg+7Tqsuv/VVUvAI mt7G4ZJ4xTfGTR1y4UqKtPE8Mwg7ka9QCqBqt2GJZalFMgtRxM5a7pO3Gz+i0Kintg Bgx9/vUGZ/nbzV8ZTTei7BjaGheclkAPy2if5s02dvNS1VLAyK7htnQe9RWoL+Mke0 Onv/WJI8EdbfA== From: Leon Romanovsky To: Jason Gunthorpe Cc: Or Har-Toov , linux-rdma@vger.kernel.org, Michael Guralnik Subject: [PATCH rdma-next v2 1/3] RDMA/mlx5: Uncacheable mkey has neither rb_key or cache_ent Date: Wed, 3 Apr 2024 13:35:59 +0300 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Or Har-Toov As some mkeys can't be modified with UMR due to some UMR limitations, like the size of translation that can be updated, not all user mkeys can be cached. Fixes: dd1b913fb0d0 ("RDMA/mlx5: Cache all user cacheable mkeys on dereg MR flow") Signed-off-by: Or Har-Toov Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/mlx5_ib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h index a8de35c07c9e..e74f04865062 100644 --- a/drivers/infiniband/hw/mlx5/mlx5_ib.h +++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h @@ -643,7 +643,7 @@ struct mlx5_ib_mkey { unsigned int ndescs; struct wait_queue_head wait; refcount_t usecount; - /* User Mkey must hold either a rb_key or a cache_ent. */ + /* Cacheable user Mkey must hold either a rb_key or a cache_ent. */ struct mlx5r_cache_rb_key rb_key; struct mlx5_cache_ent *cache_ent; };