]> 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)
commit18aacd95fed8f3f7c54cb39bb8d0cf6d66fdf996
treefb6a737fb32192f8f3e4e01e95e6918adda8d406
parent6f97c494203246ec25e6e1a8e4028777477668a2
s390/pci: Fix unexpected write combine on resource

In the initial MIO support introduced in

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