]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
misc: pci_endpoint_test: Gate doorbell test on dynamic inbound mapping
authorKoichiro Den <den@valinux.co.jp>
Sun, 15 Feb 2026 15:03:33 +0000 (00:03 +0900)
committerManivannan Sadhasivam <mani@kernel.org>
Tue, 24 Feb 2026 10:30:50 +0000 (16:00 +0530)
commit51fba4aa66192fa65a31f213218167d9af326f1e
tree9bbe318c6a06f02bebc8f7b70eb5e97fc465f91d
parent9a940a3d08b25cf8e864785ee06b65756d6e4573
misc: pci_endpoint_test: Gate doorbell test on dynamic inbound mapping

The doorbell test relies on the endpoint being able to update inbound
translations at runtime so the host can reach the doorbell target
through a BAR mapping.

If the endpoint does not advertise CAP_DYNAMIC_INBOUND_MAPPING, return
-EOPNOTSUPP from PCITEST_DOORBELL.

This avoids confusing failures in user space and kselftests when the
required capability is not available.

Suggested-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Link: https://patch.msgid.link/20260215150334.3391943-3-den@valinux.co.jp
drivers/misc/pci_endpoint_test.c