PCI: designware: improve iATU programming and usage
Status from this message: Applied both with Pratyush's ack to pci/host-designware for v4.2, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 5 repliesApplied
- v12 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- remove outbound iATU programming for IO in dw_pcie_host_init, since it can be done by berlin_pcie_{rd|wr}_other_conf() latter.
- only do outbound iATU programming for MEM if pp->ops->rd_other_conf is not set. Thank Fabrice Gasnier to point out "some platforms doesn't have support for ATU"
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | PCI: designware: consolidate outbound iATU programming functionsdrivers/ | +39 | 1 reply | |
| 2/2 | PCI: designware: use iATU0 for cfg and IO, iATU1 for MEMdrivers/ | +45 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Pratyush Anand |
|---|---|
| 1/2 | A-b |
| 2/2 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] PCI: designware: improve iATU programming and usage
The outbound iATU programming functions are similar, so PATCH1 consolidates them into one.
Most transactions' type are cfg0 and MEM, so current iATU usage is not balanced. PATCH2 adopts idea from Minghuan Lian <[email protected]>:
http://www.spinics.net/lists/linux-pci/msg40440.html
to change the iATU allocation: iATU0 for cfg and IO, iATU1 for MEM.
Changes since v1:
- remove outbound iATU programming for IO in dw_pcie_host_init, since it can be done by berlin_pcie_{rd|wr}_other_conf() latter.
- only do outbound iATU programming for MEM if pp->ops->rd_other_conf is not set. Thank Fabrice Gasnier to point out "some platforms doesn't have support for ATU"
Jisheng Zhang (2):
PCI: designware: consolidate outbound iATU programming functions
PCI: designware: use iATU0 for cfg and IO, iATU1 for MEM
drivers/pci/host/pcie-designware.c | 142 ++++++++++++++++--------------------- 1 file changed, 60 insertions(+), 82 deletions(-)
Signature · 1 line
2.1.4