From: Niklas Cassel <cassel@kernel.org>
To: "Jesper Nilsson" <jesper.nilsson@axis.com>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
"Rob Herring" <robh@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Jingoo Han" <jingoohan1@gmail.com>,
"Kishon Vijay Abraham I" <kishon@kernel.org>
Cc: Damien Le Moal <dlemoal@kernel.org>, Frank Li <Frank.Li@nxp.com>,
Niklas Cassel <cassel@kernel.org>,
linux-arm-kernel@axis.com, linux-pci@vger.kernel.org
Subject: [PATCH 0/3] PCI endpoint additional pci_epc_set_bar() checks
Date: Thu, 14 Nov 2024 12:03:26 +0100 [thread overview]
Message-ID: <20241114110326.1891331-5-cassel@kernel.org> (raw)
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
next reply other threads:[~2024-11-14 11:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 11:03 Niklas Cassel [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241114110326.1891331-5-cassel@kernel.org \
--to=cassel@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=bhelgaas@google.com \
--cc=dlemoal@kernel.org \
--cc=jesper.nilsson@axis.com \
--cc=jingoohan1@gmail.com \
--cc=kishon@kernel.org \
--cc=kw@linux.com \
--cc=linux-arm-kernel@axis.com \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox