]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 12:00:22 +0000 (13:00 +0100)
commite08e603f098e0f03511b5629838a53d8b3e2f346
treee9741a9090860247ea656af33b1881f8d5d91233
parent61dacd9aebcb9d8eda6d01b99ae6899c47627e63
s390/pci: Fix unexpected write combine on resource

commit 4c17c69876ebc9cc6d4858e5b55a117557d5b9bc upstream.

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