summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-brcmstb.c
diff options
context:
space:
mode:
authorMatthew Rosato <mjrosato@linux.ibm.com>2022-12-02 05:54:02 -0800
committerJason Gunthorpe <jgg@nvidia.com>2022-12-02 11:50:10 -0400
commit2a54e347d990574ceb047b71ea0b03979232b85e (patch)
treedab5d8b945a2d381f221399f64613315806b779c /drivers/mmc/host/sdhci-brcmstb.c
parent4dc334cab1c34efb17fa6cd10b12fbc9458e5760 (diff)
downloadlinux-2a54e347d990574ceb047b71ea0b03979232b85e.tar.bz2
vfio/ap: Validate iova during dma_unmap and trigger irq disable
Currently, each mapped iova is stashed in its associated vfio_ap_queue; when we get an unmap request, validate that it matches with one or more of these stashed values before attempting unpins. Each stashed iova represents IRQ that was enabled for a queue. Therefore, if a match is found, trigger IRQ disable for this queue to ensure that underlying firmware will no longer try to use the associated pfn after the page is unpinned. IRQ disable will also handle the associated unpin. Link: https://lore.kernel.org/r/20221202135402.756470-3-yi.l.liu@intel.com Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com> Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/mmc/host/sdhci-brcmstb.c')
0 files changed, 0 insertions, 0 deletions