Re: [Nouveau] RFC: [PATCH] x86/kmmio: fix mmiotrace for hugepages

2016-03-03 Thread Pierre Moreau
The secondary hit exception thrown while MMIOtracing NVIDIA's driver is gone with this patch. Tested-by: Pierre Moreau On 02:03 AM - Mar 03 2016, Karol Herbst wrote: > Because Linux might use bigger pages than the 4K pages to handle those mmio > ioremaps, the kmmio code

[Nouveau] RFC: [PATCH] x86/kmmio: fix mmiotrace for hugepages

2016-03-02 Thread Karol Herbst
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 let's us lookup how big the page is and what it's base address is, so that we won't get a page