]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/ism: ignore some errors during deregistration
authorSebastian Ott <sebott@linux.ibm.com>
Thu, 14 Feb 2019 13:46:23 +0000 (14:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2019 20:33:04 +0000 (22:33 +0200)
commit2c6e3ec8a90699b82c99acd44d5d3c4c7143818c
tree1d45fc6048f0aa1a42e49d0ccf7e89ab0f4728cd
parentd60f458e4c4dddb4d7ad20656d41a0d83a3d855b
s390/ism: ignore some errors during deregistration

[ Upstream commit 0ff06c44efeede4acd068847d3bf8cf894b6c664 ]

Prior to dma unmap/free operations the ism driver tries to ensure
that the memory is no longer accessed by the HW. When errors
during deregistration of memory regions from the HW occur the ism
driver will not unmap/free this memory.

When we receive notification from the hypervisor that a PCI function
has been detached we can no longer access the device and would never
unmap/free these memory regions which led to complaints by the DMA
debug API.

Treat this kind of errors during the deregistration of memory regions
from the HW as success since it is already ensured that the memory
is no longer accessed by HW.

Reported-by: Karsten Graul <kgraul@linux.ibm.com>
Reported-by: Hans Wippel <hwippel@linux.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/net/ism_drv.c