diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2025-06-03 19:03:40 +0200 |
---|---|---|
committer | Manivannan Sadhasivam <mani@kernel.org> | 2025-07-09 18:06:51 +0530 |
commit | e7cd58d2fdf8b3d2cb8c1d7a6d8eac2c67e5e18b (patch) | |
tree | d48802a5356efdd636fe5306035ca2b071cea5b5 /net/lapb/lapb_timer.c | |
parent | a079d83c4afd4896f7f29bd9e807cb382043b360 (diff) |
PCI: endpoint: pci-epf-vntb: Allow BAR assignment via configfs
The current BAR configuration for the PCI vNTB endpoint function allocates
BARs in order, which lacks flexibility and does not account for
platform-specific quirks. This is problematic on Renesas platforms, where
BAR_4 is a fixed 256B region that ends up being used for MW1, despite being
better suited for doorbells.
Add new configfs attributes to allow users to specify arbitrary BAR
assignments. If no configuration is provided, the driver retains its
original behavior of sequential BAR allocation, preserving compatibility
with existing userspace setups.
This enables use cases such as assigning BAR_2 for MW1 and using the
limited BAR_4 for doorbells on Renesas platforms.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
[mani: adjusted the indent of EPF_NTB_BAR_W, fixed kdoc & squashed bar fix]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20250603-pci-vntb-bar-mapping-v2-3-fc685a22ad28@baylibre.com
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions