]> git.karo-electronics.de Git - linux-beck.git/commit
iommu/amd: use handle_mm_fault directly
authorJesse Barnes <jbarnes@virtuousgeek.org>
Sat, 13 Dec 2014 00:55:30 +0000 (16:55 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 13 Dec 2014 20:42:47 +0000 (12:42 -0800)
commit9dc00f4c4fdd1fab12a4da9a966e535b4284b0a4
tree6e6871cebe9412215e85709ce37181a1dea6e07d
parente1d6d01ab491bee6cfa02f2c10db50f31de85e79
iommu/amd: use handle_mm_fault directly

This could be useful for debug in the future if we want to track
major/minor faults more closely, and also avoids the put_page trick we
used with gup.

In order to do this, we also track the task struct in the PASID state
structure.  This lets us update the appropriate task stats after the fault
has been handled, and may aid with debug in the future as well.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Tested-by: Oded Gabbay <oded.gabbay@amd.com>
Cc: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/iommu/amd_iommu_v2.c