]> 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)
commitd720ed79bfff12ca149374c753cc84402e881f78
tree946b5da79e9b8ae988fca051d87a8cf47cf61e01
parent1accd8b9067b48b215e5910470d74c3b3dc640eb
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: ab8a4925a149 ("iommu/amd: Allow downgrading page-sizes in alloc_pte()")
Signed-off-by: Andrei Dulea <adulea@amazon.de>
drivers/iommu/amd_iommu.c