|
@@ -20,6 +20,7 @@
|
|
#include <linux/bitops.h>
|
|
#include <linux/bitops.h>
|
|
#include <linux/ioport.h>
|
|
#include <linux/ioport.h>
|
|
#include <linux/suspend.h>
|
|
#include <linux/suspend.h>
|
|
|
|
+#include <linux/kmemleak.h>
|
|
#include <asm/e820.h>
|
|
#include <asm/e820.h>
|
|
#include <asm/io.h>
|
|
#include <asm/io.h>
|
|
#include <asm/iommu.h>
|
|
#include <asm/iommu.h>
|
|
@@ -94,6 +95,11 @@ static u32 __init allocate_aperture(void)
|
|
* code for safe
|
|
* code for safe
|
|
*/
|
|
*/
|
|
p = __alloc_bootmem_nopanic(aper_size, aper_size, 512ULL<<20);
|
|
p = __alloc_bootmem_nopanic(aper_size, aper_size, 512ULL<<20);
|
|
|
|
+ /*
|
|
|
|
+ * Kmemleak should not scan this block as it may not be mapped via the
|
|
|
|
+ * kernel direct mapping.
|
|
|
|
+ */
|
|
|
|
+ kmemleak_ignore(p);
|
|
if (!p || __pa(p)+aper_size > 0xffffffff) {
|
|
if (!p || __pa(p)+aper_size > 0xffffffff) {
|
|
printk(KERN_ERR
|
|
printk(KERN_ERR
|
|
"Cannot allocate aperture memory hole (%p,%uK)\n",
|
|
"Cannot allocate aperture memory hole (%p,%uK)\n",
|