PCI: endpoint: Add support for configurable page size
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 18 Aug 2017 14:57:56 +0000 (20:27 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Aug 2017 21:00:37 +0000 (16:00 -0500)
commit52c9285d47459cf241e144c7d8ef15941ba1b181
tree2fb522bf05fb3227b9fba950ad9f31844afce158
parent28daeff66990db85022c6a8b410e5b78dc78ff6a
PCI: endpoint: Add support for configurable page size

pci-epc-mem uses a page size equal to *PAGE_SIZE* (usually 4KB) to manage
the address space. However certain platforms like TI's K2G have a
restriction that this address space should be either divided into
1MB/2MB/4MB or 8MB sizes (Ref: 11.14.4.9.1 Outbound Address Translation in
K2G TRM SPRUHY8F January 2016 – Revised May 2017).  Add support to handle
different page sizes here.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/endpoint/pci-epc-mem.c
include/linux/pci-epc.h