From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: linux-pci@vger.kernel.org
Cc: mw@semihalf.com, Ard Biesheuvel <ard.biesheuvel@linaro.org>,
Leif Lindholm <leif.lindholm@linaro.org>,
Graeme Gregory <graeme.gregory@linaro.org>,
Bjorn Helgaas <bhelgaas@google.com>,
Jingoo Han <jingoohan1@gmail.com>,
Joao Pinto <Joao.Pinto@synopsys.com>,
Marc Zyngier <marc.zyngier@arm.com>
Subject: [PATCH v2 0/3] pci: add support for firmware initialized designware RCs
Date: Thu, 24 Aug 2017 19:43:18 +0100 [thread overview]
Message-ID: <20170824184321.19432-1-ard.biesheuvel@linaro.org> (raw)
UEFI based systems incorporating a Synopsys Designware PCIe controller
in RC mode will typically configure it before entering the OS. If this
configuration is fully static and ECAM compliant, there is no need to
expose particulars of the device to the OS, and we can simply describe
it as "pci-host-ecam-generic".
However, the Synopsys IP may be synthesized in a way where a quirk is
needed for config space accesses to the first bus. It makes little sense
to instantiate yet another pcie-designware driver that contains all the
low level setup code, but it is also not justified to add quirks handling
to the generic ECAM driver.
So instead, create a variant of the generic ECAM driver that filters config
space accesses directed at device #1 and up on the first bus.
Also, add a binding and driver to support the MSI functionality available
in some versions of this IP. This allows the MSI routing to be described
at the DT level rather than hardcoding it in the driver.
v2: - use dev->fwnode directly
- replace an instance of pr_err with dev_err, and clarify the error message
- fix Kconfig/Makefile dependency errors reported by kbuild
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Graeme Gregory <graeme.gregory@linaro.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jingoo Han <jingoohan1@gmail.com>
Cc: Joao Pinto <Joao.Pinto@synopsys.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Ard Biesheuvel (3):
pci: designware: add driver for DWC controller in ECAM shift mode
pci: designware: add separate driver for the MSI part of the RC
dt-bindings: designware: add binding for Designware PCIe in ECAM mode
Documentation/devicetree/bindings/pci/designware-pcie-ecam.txt | 56 +++++
drivers/pci/dwc/Kconfig | 11 +
drivers/pci/dwc/Makefile | 4 +-
drivers/pci/dwc/pcie-designware-ecam.c | 75 ++++++
drivers/pci/dwc/pcie-designware-msi.c | 255 ++++++++++++++++++++
5 files changed, 400 insertions(+), 1 deletion(-)
create mode 100644 Documentation/devicetree/bindings/pci/designware-pcie-ecam.txt
create mode 100644 drivers/pci/dwc/pcie-designware-ecam.c
create mode 100644 drivers/pci/dwc/pcie-designware-msi.c
--
2.11.0
next reply other threads:[~2017-08-24 18:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-24 18:43 Ard Biesheuvel [this message]
2017-08-24 18:43 ` [PATCH v2 1/3] pci: designware: add driver for DWC controller in ECAM shift mode Ard Biesheuvel
2017-08-24 18:43 ` [PATCH v2 2/3] pci: designware: add separate driver for the MSI part of the RC Ard Biesheuvel
2017-08-24 18:43 ` [PATCH v2 3/3] dt-bindings: designware: add binding for Designware PCIe in ECAM mode Ard Biesheuvel
2017-08-24 20:02 ` Rob Herring
2017-08-24 20:12 ` Ard Biesheuvel
2017-08-24 22:12 ` Rob Herring
2017-08-24 22:37 ` Ard Biesheuvel
2017-08-25 1:22 ` Rob Herring
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=20170824184321.19432-1-ard.biesheuvel@linaro.org \
--to=ard.biesheuvel@linaro.org \
--cc=Joao.Pinto@synopsys.com \
--cc=bhelgaas@google.com \
--cc=graeme.gregory@linaro.org \
--cc=jingoohan1@gmail.com \
--cc=leif.lindholm@linaro.org \
--cc=linux-pci@vger.kernel.org \
--cc=marc.zyngier@arm.com \
--cc=mw@semihalf.com \
/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;
as well as URLs for NNTP newsgroup(s).