linux/drivers/ntb
Koichiro Den 7148d63ee7 NTB: epf: Make db_valid_mask cover only real doorbell bits
[ Upstream commit 6eb7e28f1f ]

ndev->db_count includes an unused doorbell slot due to the legacy extra
offset in the peer doorbell path. db_valid_mask must cover only the real
doorbell bits and exclude the unused slot.

Set db_valid_mask to BIT_ULL(db_count - 1) - 1.

Fixes: 812ce2f8d1 ("NTB: Add support for EPF PCI Non-Transparent Bridge")
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260513024923.451765-10-den@valinux.co.jp
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-07-24 15:51:40 +02:00
..
hw NTB: epf: Make db_valid_mask cover only real doorbell bits 2026-07-24 15:51:40 +02:00
test ntb_perf: Delete duplicate dmaengine_unmap_put() call in perf_copy_chunk() 2025-04-10 14:32:05 +02:00
core.c NTB: fix possible name leak in ntb_register_device() 2024-03-26 18:21:28 -04:00
Kconfig New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
Makefile New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
msi.c NTB/msi: Use irq_has_action() 2020-12-15 16:19:32 +01:00
ntb_transport.c NTB: ntb_transport: Fix too small buffer for debugfs_name 2026-03-04 07:20:37 -05:00