]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Introduce first_pte_l7() helper
authorAndrei Dulea <adulea@amazon.de>
Fri, 13 Sep 2019 14:42:30 +0000 (16:42 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 24 Sep 2019 09:15:46 +0000 (11:15 +0200)
commitee7de4296ce4bb27533de8b412915861d7af7afe
tree946b5da79e9b8ae988fca051d87a8cf47cf61e01
parente2de844ca37191a02001db7fcd9d22b1abd8094b
iommu/amd: Introduce first_pte_l7() helper

Given an arbitrary pte that is part of a large mapping, this function
returns the first pte of the series (and optionally the mapped size and
number of PTEs)
It will be re-used in a subsequent patch to replace an existing L7
mapping.

Fixes: 4907705ee964 ("iommu/amd: Allow downgrading page-sizes in alloc_pte()")
Signed-off-by: Andrei Dulea <adulea@amazon.de>
drivers/iommu/amd_iommu.c