summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorKarol Herbst <nouveau@karolherbst.de>2016-03-03 02:03:11 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-04 14:49:12 -0700
commitd62a28a60562a8ba82e67e13c268245f37e796cb (patch)
treefb06e86cdc53dcf0965a98c61941c696f5d604b8 /fs
parent17ad226851d1ee8303543568940774233de3fb18 (diff)
downloadlinux-stable-d62a28a60562a8ba82e67e13c268245f37e796cb.tar.gz
linux-stable-d62a28a60562a8ba82e67e13c268245f37e796cb.tar.bz2
linux-stable-d62a28a60562a8ba82e67e13c268245f37e796cb.zip
x86/mm/kmmio: Fix mmiotrace for hugepages
commit cfa52c0cfa4d727aa3e457bf29aeff296c528a08 upstream. Because Linux might use bigger pages than the 4K pages to handle those mmio ioremaps, the kmmio code shouldn't rely on the pade id as it currently does. Using the memory address instead of the page id lets us look up how big the page is and what its base address is, so that we won't get a page fault within the same page twice anymore. Tested-by: Pierre Moreau <pierre.morrow@free.fr> Signed-off-by: Karol Herbst <nouveau@karolherbst.de> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Luis R. Rodriguez <mcgrof@suse.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Toshi Kani <toshi.kani@hp.com> Cc: linux-mm@kvack.org Cc: linux-x86_64@vger.kernel.org Cc: nouveau@lists.freedesktop.org Cc: pq@iki.fi Cc: rostedt@goodmis.org Link: http://lkml.kernel.org/r/1456966991-6861-1-git-send-email-nouveau@karolherbst.de Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions