s390/pci: Fix unexpected write combine on resource
authorNiklas Schnelle <schnelle@linux.ibm.com>
Thu, 27 Feb 2020 11:17:18 +0000 (12:17 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 4 Mar 2020 10:18:03 +0000 (11:18 +0100)
commitdf057c914a9c219ac8b8ed22caf7da2f80c1fe26
treefb6a737fb32192f8f3e4e01e95e6918adda8d406
parent582b4e55403e053d8a48ff687a05174da9cc3fb0
s390/pci: Fix unexpected write combine on resource

In the initial MIO support introduced in

commit 71ba41c9b1d9 ("s390/pci: provide support for MIO instructions")

zpci_map_resource() and zpci_setup_resources() default to using the
mio_wb address as the resource's start address. This means users of the
mapping, which includes most drivers, will get write combining on PCI
Stores. This may lead to problems when drivers expect write through
behavior when not using an explicit ioremap_wc().

Cc: stable@vger.kernel.org
Fixes: 71ba41c9b1d9 ("s390/pci: provide support for MIO instructions")
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/pci/pci.c