summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2024-11-04 09:40:33 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:02:09 +0100
commit0d780cda143144856d8268e755e8ff8bae82b186 (patch)
tree353cbeb41c12528731b6854b0c0541f7291e38e0 /scripts
parent1c0e321244de5e4ce8f1c7a1b60156f8758952ba (diff)
downloadlinux-0d780cda143144856d8268e755e8ff8bae82b186.tar.gz
linux-0d780cda143144856d8268e755e8ff8bae82b186.tar.bz2
linux-0d780cda143144856d8268e755e8ff8bae82b186.zip
iommu/vt-d: Fix checks and print in pgtable_walk()
[ Upstream commit f1645676f25d2c846798f0233c3a953efd62aafb ] There are some issues in pgtable_walk(): 1. Super page is dumped as non-present page 2. dma_pte_superpage() should not check against leaf page table entries 3. Pointer pte is never NULL so checking it is meaningless 4. When an entry is not present, it still makes sense to dump the entry content. Fix 1,2 by checking dma_pte_superpage()'s returned value after level check. Fix 3 by removing pte check. Fix 4 by checking present bit after printing. By this chance, change to print "page table not present" instead of "PTE not present" to be clearer. Fixes: 914ff7719e8a ("iommu/vt-d: Dump DMAR translation structure when DMA fault occurs") Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Link: https://lore.kernel.org/r/20241024092146.715063-3-zhenzhong.duan@intel.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions