From mboxrd@z Thu Jan 1 00:00:00 1970 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 2958817E90E; Mon, 27 May 2024 19:13:25 +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=1716837205; cv=none; b=j+Wjgk1BPSEuia4H8nkYo9owHqw+LKrW1trr1YI9rt5gWwhAh3BZWyk1a0+ZEU+C1kd0tHzmqYQU0QXpN3qwPESrY00shGttcLaNmZbuV4Gm9kvTOFhHNL0guHIdkLIcGAbcgj3IOVGIwlgUYz6LC0PrREQilpJU5iackkirFFU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716837205; c=relaxed/simple; bh=pA5Be9n0ptiAkRLljzKV71x6q/2LEeo3UopdEy5GTGU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dpoEURg0zvG0hjrQafB3ikLdSrhysfCNCyfzHyHb+2kP4cTvi25RQNVl8Cjx/GdAIOpiLcYi1iqRTgq1x8E2AsnLEqdtZwJXronu0pYwuDIgXxus/VHN3eAz9XDwbTqFtJjlPDyQJZGsBKfOTEuQ8EpQNDHsZ+62EuQOvTL78zY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sdNKsiY0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="sdNKsiY0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF91FC2BBFC; Mon, 27 May 2024 19:13:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716837205; bh=pA5Be9n0ptiAkRLljzKV71x6q/2LEeo3UopdEy5GTGU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sdNKsiY0/NYzQvAGu6F+/H0+3PNYlHgHFZm+OhATK4O18jaTTLKGglZviJIL+9csQ qoQruG4GBOQHWrF9jp70upKPBWOu9Wmwo0ckunoqhi4MfZEdUdrAb2vOjhezQUGr0P rQ0C3L7RUsjhn7UYWjfu3UKq1aE2n+xiAbyVtgUc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Or Har-Toov , Leon Romanovsky , Sasha Levin Subject: [PATCH 6.9 349/427] RDMA/mlx5: Uncacheable mkey has neither rb_key or cache_ent Date: Mon, 27 May 2024 20:56:36 +0200 Message-ID: <20240527185633.364117857@linuxfoundation.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240527185601.713589927@linuxfoundation.org> References: <20240527185601.713589927@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Or Har-Toov [ Upstream commit 0611a8e8b475fc5230b9a24d29c8397aaab20b63 ] 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 Link: https://lore.kernel.org/r/f2742dd934ed73b2d32c66afb8e91b823063880c.1712140377.git.leon@kernel.org Signed-off-by: Leon Romanovsky Signed-off-by: Sasha Levin --- 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 a8de35c07c9ef..e74f048650624 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; }; -- 2.43.0