diff options
| author | Niklas Schnelle <[email protected]> | 2023-10-04 08:56:12 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2023-10-05 11:00:57 +0000 |
| commit | 92bce97f0c341d3037b0f364b6839483f6a41cae (patch) | |
| tree | 19d6087d56fe01170069861681285309e1adfe50 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | iommu/dma: Use a large flush queue and timeout for shadow_on_flush (diff) | |
| download | kernel-92bce97f0c341d3037b0f364b6839483f6a41cae.tar.gz kernel-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 <[email protected]>
Reviewed-by: Matthew Rosato <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
