aboutsummaryrefslogtreecommitdiff
path: root/arch/s390/include
diff options
context:
space:
mode:
authorGravatar Niklas Schnelle <schnelle@linux.ibm.com> 2023-10-04 10:56:12 +0200
committerGravatar Joerg Roedel <jroedel@suse.de> 2023-10-05 13:00:57 +0200
commit92bce97f0c341d3037b0f364b6839483f6a41cae (patch)
tree19d6087d56fe01170069861681285309e1adfe50 /arch/s390/include
parentiommu/dma: Use a large flush queue and timeout for shadow_on_flush (diff)
downloadlinux-92bce97f0c341d3037b0f364b6839483f6a41cae.tar.gz
linux-92bce97f0c341d3037b0f364b6839483f6a41cae.tar.bz2
linux-92bce97f0c341d3037b0f364b6839483f6a41cae.zip
s390/pci: Fix reset of IOMMU software counters
Together with enabling the Function Measurement Block zpci_fmb_enable_device() also resets the software counters. This allows to use "echo 0 > /sys/kernel/debug/pci/<dev>/statistics" followed by echo "1 > /../statistics" to reset all counters. In commit c76c067e488c ("s390/pci: Use dma-iommu layer") this use of the now obsolete counters in struct zpci_device was missed as was their removal. Fix this by resetting the new counters and removing the old ones. Fixes: c76c067e488c ("s390/pci: Use dma-iommu layer") Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com> Link: https://lore.kernel.org/r/20231004-dma_iommu_fix-v1-1-129777cd8232@linux.ibm.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'arch/s390/include')
-rw-r--r--arch/s390/include/asm/pci.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h
index 3f74f1cf37df..e91cd6bbc330 100644
--- a/arch/s390/include/asm/pci.h
+++ b/arch/s390/include/asm/pci.h
@@ -173,10 +173,6 @@ struct zpci_dev {
struct zpci_fmb *fmb;
u16 fmb_update; /* update interval */
u16 fmb_length;
- /* software counters */
- atomic64_t allocated_pages;
- atomic64_t mapped_pages;
- atomic64_t unmapped_pages;
u8 version;
enum pci_bus_speed max_bus_speed;