]> git.baikalelectronics.ru Git - kernel.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)
commitabe707550ebf27bc54678be01903d0c6ab480f8a
tree6e6871cebe9412215e85709ce37181a1dea6e07d
parent9380d16324df461de079f4193384dba4dcd68baf
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