]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 06:18:35 +0000 (07:18 +0100)
commit5bd47f102c2432c2e9ebd2e64459dca9b47f1aa8
tree654f329c44d3d1fd6e059ea13ebe6a3216f22ce0
parent6050ad42c5020164719304510facb32a3c1be2de
s390/pci: Fix unexpected write combine on resource

commit df057c914a9c219ac8b8ed22caf7da2f80c1fe26 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/pci/pci.c