]> 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)
commitde7530f61d90c46b4a089ba4911758f0e7d00409
tree6e6871cebe9412215e85709ce37181a1dea6e07d
parent13fc1d39ba60ff7c3c892d1c66372c40532d549c
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