linux/drivers/infiniband/hw/mlx5
Or Har-Toov 85fe9f565d IB/mlx5: Fix obj_type mismatch for SRQ event subscriptions
Fix a bug where the driver's event subscription logic for SRQ-related
events incorrectly sets obj_type for RMP objects.

When subscribing to SRQ events, get_legacy_obj_type() did not handle
the MLX5_CMD_OP_CREATE_RMP case, which caused obj_type to be 0
(default).
This led to a mismatch between the obj_type used during subscription
(0) and the value used during notification (1, taken from the event's
type field). As a result, event mapping for SRQ objects could fail and
event notification would not be delivered correctly.

This fix adds handling for MLX5_CMD_OP_CREATE_RMP in get_legacy_obj_type,
returning MLX5_EVENT_QUEUE_TYPE_RQ so obj_type is consistent between
subscription and notification.

Fixes: 7597385371 ("IB/mlx5: Enable subscription for device events over DEVX")
Link: https://patch.msgid.link/r/8f1048e3fdd1fde6b90607ce0ed251afaf8a148c.1755088962.git.leon@kernel.org
Signed-off-by: Or Har-Toov <ohartoov@nvidia.com>
Reviewed-by: Edward Srouji <edwards@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2025-08-25 15:06:46 -03:00
..
Kconfig
Makefile RDMA/mlx5: Add DMAH object support 2025-07-23 01:42:10 -04:00
ah.c RDMA/mlx5: Handle errors returned from mlx5r_ib_rate() 2025-03-06 03:22:08 -05:00
cmd.c RDMA/mlx5: Add the initialization flow to utilize the 'data direct' device 2024-08-11 11:12:49 +03:00
cmd.h RDMA/mlx5: Add the initialization flow to utilize the 'data direct' device 2024-08-11 11:12:49 +03:00
cong.c IB/mlx5: Don't expose debugfs entries for RRoCE general parameters if not supported 2024-01-31 11:15:29 +02:00
counters.c RDMA v6.17 merge window pull request 2025-07-31 12:19:55 -07:00
counters.h RDMA/mlx5: Refactor optional counters steering code 2025-07-23 03:38:57 -04:00
cq.c RDMA/mlx5: Support driver APIs pre_destroy_cq and post_destroy_cq 2025-06-25 03:49:56 -04:00
data_direct.c RDMA/mlx5: Introduce the 'data direct' driver 2024-08-11 11:12:49 +03:00
data_direct.h RDMA/mlx5: Introduce the 'data direct' driver 2024-08-11 11:12:49 +03:00
devx.c IB/mlx5: Fix obj_type mismatch for SRQ event subscriptions 2025-08-25 15:06:46 -03:00
devx.h RDMA/mlx5: Check enabled UCAPs when creating ucontext 2025-03-09 13:13:02 -04:00
dm.c net/mlx5: Check device memory pointer before usage 2025-07-02 14:08:23 -04:00
dm.h
dmah.c RDMA/mlx5: Add DMAH object support 2025-07-23 01:42:10 -04:00
dmah.h RDMA/mlx5: Add DMAH object support 2025-07-23 01:42:10 -04:00
doorbell.c
fs.c RDMA/mlx5: Refactor optional counters steering code 2025-07-23 03:38:57 -04:00
fs.h RDMA/mlx5: Add multiple priorities support to RDMA TRANSPORT userspace tables 2025-06-25 04:00:33 -04:00
gsi.c
ib_rep.c RDMA/mlx5: Allocate IB device with net namespace supplied from core dev 2025-06-26 08:10:07 -04:00
ib_rep.h
ib_virt.c
macsec.c
macsec.h
mad.c RDMA/mlx5: Support querying per-plane IB PortCounters 2024-11-04 06:57:20 -05:00
main.c RDMA v6.17 merge window pull request 2025-07-31 12:19:55 -07:00
mem.c net/mlx5: Reimplement write combining test 2024-06-16 18:33:59 +03:00
mlx5_ib.h RDMA/mlx5: Refactor optional counters steering code 2025-07-23 03:38:57 -04:00
mr.c RDMA v6.17 merge window pull request 2025-07-31 12:19:55 -07:00
odp.c RDMA v6.17 merge window pull request 2025-07-31 12:19:55 -07:00
qos.c
qp.c RDMA/mlx5: Fix AH static rate parsing 2025-02-20 01:43:13 -05:00
qp.h RDMA/mlx5: Fix AH static rate parsing 2025-02-20 01:43:13 -05:00
qpc.c RDMA/mlx5: Fix error flow upon firmware failure for RQ destruction 2025-05-05 11:44:37 -04:00
restrack.c RDMA/mlx5: Extend ODP statistics with operation count 2024-12-10 04:09:09 -05:00
restrack.h
srq.c RDMA v6.11 merge window 2024-07-19 09:51:33 -07:00
srq.h
srq_cmd.c
std_types.c RDMA/mlx5: Introduce GET_DATA_DIRECT_SYSFS_PATH ioctl 2024-08-11 11:12:50 +03:00
umr.c RDMA/mlx5: Fix incorrect MKEY masking 2025-07-21 02:27:52 -04:00
umr.h RDMA/mlx5: Optimize DMABUF mkey page size 2025-07-13 03:14:19 -04:00
wr.c RDMA/mlx5: Fix fortify source warning while accessing Eth segment 2024-01-31 11:15:17 +02:00
wr.h