Re: [PATCH] x86, efi: Do not reserve boot services regions withinreserved areas

From: Matthew Garrett
Date: Tue Jun 14 2011 - 11:54:00 EST


On Tue, Jun 14, 2011 at 05:31:23PM +0200, Maarten Lankhorst wrote:
> Op 14-06-11 17:21, Matthew Garrett schreef:
> > On Tue, Jun 14, 2011 at 05:03:14PM +0200, Maarten Lankhorst wrote:
> >
> >> + /* Could not reserve boot area */
> >> + if (!size)
> >> + continue;
> >> +
> >> + printk(KERN_INFO PFX "Freeing boot area "
> >> + "[0x%llx-0x%llx)\n", start, start+size);
> > Probably don't need the printk - we could be dumping a few hundred of
> > those.
> Ok, I believe you are right about the succesful ones, since memblock=debug
> will let you see those anyhow.
>
> Should I change the unsuccesful ones to use memblock_dbg instead of printk?
> In that case you can still debug it if needed. Same question for free path,
> change printk to memblock_dbg?

I'd prefer just not printing anything here. We're engaging in a bug
workaround without any guarantee that the bug affects a machine, so
increasing the message load may result in people thinking something's
wrong even when everything's fine. Limiting it to memblock_dbg seems
sane.

--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/