public inbox for ntb@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH v2 0/3] PCI: endpoint: pci-epf-vntb: allow arbitrary BAR mapping
@ 2025-06-03 17:03 Jerome Brunet
  2025-06-03 17:03 ` [PATCH v2 1/3] PCI: endpoint: pci-epf-vntb: Return an error code on bar init Jerome Brunet
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Jerome Brunet @ 2025-06-03 17:03 UTC (permalink / raw)
  To: Jon Mason, Dave Jiang, Allen Hubbe, Manivannan Sadhasivam,
	Kishon Vijay Abraham I, Bjorn Helgaas, Frank Li,
	Krzysztof Wilczyński, Krzysztof Wilczyński
  Cc: ntb, linux-pci, linux-kernel, Jerome Brunet

The patchset allows arbitrary BAR mapping for vNTB PCI endpoint function.

This was developed for the Renesas platform with requires a mapping that
was not possible before:
* BAR0 (1MB):  CTRL+SPAD
* BAR2 (1MB):  MW0
* BAR4 (256B): Doorbell

It is possible to setup the host side driver with the mapping above without any
functional change but it makes sense to also add arbitrary mapping support
there. This is will be sent in a dedicated series.

The patchset should not change anything for existing users.

Possible next steps:
- Align the NTB endpoint function: I'd be happy to propose something there
  but I would only be able to compile test it since I do not have the HW
  to test it.
- Expose BAR configuration in the CTRL registers: I've been doodling with
  the idea to add a few extra registers in the CTRL region to describe
  the BAR mapping of the other regions. That way, there would less chance
  for the 2 sides to become mis-aligned. I'm not certain it makes sense and
  would welcome others opinion on this :)

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
Changes in v2:
- Align commit description casing style
- Delay adding MW4 enumeration to patch 3
- Apply renaming suggestion on patch 3
- Dropped patch 4 for the NTB: will be re-sent separately.
- Link to v1: https://lore.kernel.org/r/20250505-pci-vntb-bar-mapping-v1-0-0e0d12b2fa71@baylibre.com

---
Jerome Brunet (3):
      PCI: endpoint: pci-epf-vntb: Return an error code on bar init
      PCI: endpoint: pci-epf-vntb: Align mw naming with config names
      PCI: endpoint: pci-epf-vntb: Allow BAR assignment via configfs

 drivers/pci/endpoint/functions/pci-epf-vntb.c | 141 +++++++++++++++++++++++---
 1 file changed, 129 insertions(+), 12 deletions(-)
---
base-commit: db2e86db6ec76de51aff24fb0ae43987d4c02355
change-id: 20250505-pci-vntb-bar-mapping-3cc3ff624e76

Best regards,
-- 
Jerome


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-07-01  7:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-03 17:03 [PATCH v2 0/3] PCI: endpoint: pci-epf-vntb: allow arbitrary BAR mapping Jerome Brunet
2025-06-03 17:03 ` [PATCH v2 1/3] PCI: endpoint: pci-epf-vntb: Return an error code on bar init Jerome Brunet
2025-06-03 17:03 ` [PATCH v2 2/3] PCI: endpoint: pci-epf-vntb: Align mw naming with config names Jerome Brunet
2025-06-03 19:43   ` Frank Li
2025-06-03 17:03 ` [PATCH v2 3/3] PCI: endpoint: pci-epf-vntb: Allow BAR assignment via configfs Jerome Brunet
2025-06-03 19:46   ` Frank Li
2025-06-30 20:38   ` Bjorn Helgaas
2025-07-01  7:37     ` Jerome Brunet
2025-06-23 12:06 ` [PATCH v2 0/3] PCI: endpoint: pci-epf-vntb: allow arbitrary BAR mapping Manivannan Sadhasivam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox