summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorShivaprasad G Bhat <sbhat@linux.ibm.com>2024-06-24 12:38:58 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-09-12 11:11:31 +0200
commit4ef01846c686d3638c7093195392de13f9ae70e6 (patch)
tree0f3c279b9f3597beee7203b4ef5273fe29e058b1 /drivers/pci/controller/dwc
parent4676bacc6eafe1ad53413c3e42781cd324550c4b (diff)
vfio/spapr: Always clear TCEs before unsetting the window
[ Upstream commit 4ba2fdff2eb174114786784926d0efb6903c88a6 ] The PAPR expects the TCE table to have no entries at the time of unset window(i.e. remove-pe). The TCE clear right now is done before freeing the iommu table. On pSeries, the unset window makes those entries inaccessible to the OS and the H_PUT/GET calls fail on them with H_CONSTRAINED. On PowerNV, this has no side effect as the TCE clear can be done before the DMA window removal as well. Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/171923273535.1397.1236742071894414895.stgit@linux.ibm.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions