]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c17c69876ebc9cc6d4858e5b55a117557d5b9bc
treefb6a737fb32192f8f3e4e01e95e6918adda8d406
parente2324de8a4268a2c5af16b5ad618077628ab45b9
s390/pci: Fix unexpected write combine on resource

In the initial MIO support introduced in

commit ba02aa1e0079 ("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: ba02aa1e0079 ("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