misc: pci_endpoint_test: Add support to provide aligned buffer addresses
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 18 Aug 2017 14:58:06 +0000 (20:28 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Aug 2017 21:00:39 +0000 (16:00 -0500)
commit13107c60681f19fec25af93de86442ac9373e43f
treed27f957e3b3014419bb4aa42eeddf5a724010a85
parent834b9051992580ac8fd3966d023b911ad77d5b8d
misc: pci_endpoint_test: Add support to provide aligned buffer addresses

Some platforms like TI's K2G have a restriction that the host side buffer
address should be aligned to either 1MB/2MB/4MB or 8MB (Ref: 11.14.4.9.1
Outbound Address Translation in K2G TRM SPRUHY8F January 2016 – Revised May
2017) addresses depending on how it is configured in the endpoint.

Add support to provide such aligned address here so that pci_endpoint_test
driver can be used to test K2G EP.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/misc/pci_endpoint_test.c