Re: [PATCH] trim memory not covered by WB MTRRs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Jesse Barnes wrote:

It looks like end_pfn might be ~0UL now... can you print that out in your configuration?
Er, do you need the value of end_pfn ?
Here's what I changed:

if ((highest_addr >> PAGE_SHIFT) != end_pfn) {
        printk(KERN_WARNING "***************\n");
        printk(KERN_WARNING "**** WARNING: likely BIOS bug\n");
        printk(KERN_WARNING "**** MTRRs don't cover all of "
               "memory, trimmed %lu pages\n", end_pfn -
               (highest_addr >> PAGE_SHIFT));
        printk(KERN_WARNING "**** end_pfn before = %lu\n", end_pfn);
        end_pfn = highest_addr >> PAGE_SHIFT;
        printk(KERN_WARNING "**** end_pfn after = %lu\n", end_pfn);
        printk(KERN_WARNING "***************\n");

Here's the result:
**** WARNING: likely BIOS bug
**** MTRRs don't cover all of memory, trimmed 18446744073709486080 pages
**** end_pfn before = 2293760
**** end_pfn after = 2359296

Hope that's what you needed.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at
Please read the FAQ at

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux