]> git.baikalelectronics.ru Git - kernel.git/commit
s390/pci_dma: handle dma table failures
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 26 Oct 2015 10:19:13 +0000 (11:19 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 9 Nov 2015 08:10:49 +0000 (09:10 +0100)
commit51804328502c8b80b9b2e7cc7e72592fcf0f6538
treea04d86f83e773731272cf299d85069f4a66bc732
parentc5616741017415e1f12850ffe7d613c9bfacef6c
s390/pci_dma: handle dma table failures

We use lazy allocation for translation table entries but don't handle
allocation (and other) failures during translation table updates.

Handle these failures and undo translation table updates when it's
meaningful.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pci_dma.h
arch/s390/pci/pci_dma.c
drivers/iommu/s390-iommu.c