kernel_samsung_a53x/drivers/infiniband/hw/bnxt_re
Kashyap Desai 34772ac4b8 RDMA/bnxt_re: Check cqe flags to know imm_data vs inv_irkey
[ Upstream commit 808ca6de989c598bc5af1ae0ad971a66077efac0 ]

Invalidate rkey is cpu endian and immediate data is in big endian format.
Both immediate data and invalidate the remote key returned by
HW is in little endian format.

While handling the commit in fixes tag, the difference between
immediate data and invalidate rkey endianness was not considered.

Without changes of this patch, Kernel ULP was failing while processing
inv_rkey.

dmesg log snippet -
nvme nvme0: Bogus remote invalidation for rkey 0x2000019Fix in this patch

Do endianness conversion based on completion queue entry flag.
Also, the HW completions are already converted to host endianness in
bnxt_qplib_cq_process_res_rc and bnxt_qplib_cq_process_res_ud and there
is no need to convert it again in bnxt_re_poll_cq. Modified the union to
hold the correct data type.

Fixes: 95b087f87b78 ("bnxt_re: Fix imm_data endianness")
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/1730110014-20755-1-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:08 +01:00
..
bnxt_re.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_counters.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_counters.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib_verbs.c RDMA/bnxt_re: Check cqe flags to know imm_data vs inv_irkey 2024-12-17 13:24:08 +01:00
ib_verbs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.c RDMA/bnxt_re: Correct module description string 2024-11-18 12:11:41 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_fp.c RDMA/bnxt_re: synchronize the qp-handle table array 2024-11-23 23:22:03 +01:00
qplib_fp.h RDMA/bnxt_re: Check cqe flags to know imm_data vs inv_irkey 2024-12-17 13:24:08 +01:00
qplib_rcfw.c RDMA/bnxt_re: synchronize the qp-handle table array 2024-11-23 23:22:03 +01:00
qplib_rcfw.h RDMA/bnxt_re: synchronize the qp-handle table array 2024-11-23 23:22:03 +01:00
qplib_res.c RDMA/bnxt_re: Fix a bug while setting up Level-2 PBL pages 2024-11-23 23:21:58 +01:00
qplib_res.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_sp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qplib_sp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
roce_hsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00