public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] PCI endpoint additional pci_epc_set_bar() checks
@ 2024-11-14 11:03 Niklas Cassel
  2024-11-14 11:03 ` [PATCH 1/3] PCI: artpec6: Implement dw_pcie_ep operation get_features Niklas Cassel
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Niklas Cassel @ 2024-11-14 11:03 UTC (permalink / raw)
  To: Jesper Nilsson, Lorenzo Pieralisi, Krzysztof Wilczyński,
	Manivannan Sadhasivam, Rob Herring, Bjorn Helgaas, Jingoo Han,
	Kishon Vijay Abraham I
  Cc: Damien Le Moal, Frank Li, Niklas Cassel, linux-arm-kernel,
	linux-pci

Hello all,

This series adds some extra checks to ensure that can not program the iATU
with an address that we did not intend to use.

These checks would have given resulting in an error when testing some of
the earlier revisions of Frank's doorbell patches (which did not handle
fixed BARs properly).

With these checks in place, we will hopefully avoid unnecessary debugging
in the future.


Kind regards,
Niklas


Niklas Cassel (3):
  PCI: artpec6: Implement dw_pcie_ep operation get_features
  PCI: endpoint: Add size check for fixed size BARs in pci_epc_set_bar()
  PCI: dwc: ep: Improve alignment check in dw_pcie_prog_ep_inbound_atu()

 drivers/pci/controller/dwc/pcie-artpec6.c       | 13 +++++++++++++
 drivers/pci/controller/dwc/pcie-designware-ep.c |  8 +++++---
 drivers/pci/controller/dwc/pcie-designware.c    |  5 +++--
 drivers/pci/controller/dwc/pcie-designware.h    |  2 +-
 drivers/pci/endpoint/pci-epc-core.c             | 11 +++++++++--
 5 files changed, 31 insertions(+), 8 deletions(-)

-- 
2.47.0


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

end of thread, other threads:[~2024-11-15  8:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-14 11:03 [PATCH 0/3] PCI endpoint additional pci_epc_set_bar() checks Niklas Cassel
2024-11-14 11:03 ` [PATCH 1/3] PCI: artpec6: Implement dw_pcie_ep operation get_features Niklas Cassel
2024-11-14 17:04   ` Frank Li
2024-11-14 11:03 ` [PATCH 2/3] PCI: endpoint: Add size check for fixed size BARs in pci_epc_set_bar() Niklas Cassel
2024-11-14 17:06   ` Frank Li
2024-11-14 11:03 ` [PATCH 3/3] PCI: dwc: ep: Improve alignment check in dw_pcie_prog_ep_inbound_atu() Niklas Cassel
2024-11-14 17:21   ` Frank Li
2024-11-15  8:15     ` Niklas Cassel

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