Re: [PATCH 1/5] x86: Only direct map addresses that are marked asE820_RAM

From: Tejun Heo
Date: Mon Aug 13 2012 - 17:58:28 EST


Hello,

On Mon, Aug 13, 2012 at 04:47:00PM -0500, Jacob Shin wrote:
> Currently direct mappings are created for [ 0 to max_low_pfn<<PAGE_SHIFT )
> and [ 4GB to max_pfn<<PAGE_SHIFT ), which may include regions that are not
> backed by actual DRAM. This is fine for holes under 4GB which are covered
> by fixed and variable range MTRRs to be UC. However, we run into trouble
> on higher memory addresses which cannot be covered by MTRRs.

I presume one of the problems is the mysterious reboot on S4 resume?
Please be a bit more detailed. Let's say someone discovers a
performance regression on an obscure machine, say, two years from now,
which isn't too crazy given how enterprises roll. Somebody bisects it
to this commit. Then what? It's very difficult to assess whether the
said "problem" is something which we should avoid at the cost of the
regression or it was just something somebody thought might be a
problem and created the patch assuming the change wouldn't affect
anything.

So, *please* explain what the problems are, preferably with
LKML-References or links to bugzilla bugs if there are any.

> This patch iterates through e820 and only direct maps ranges that are
> marked as E820_RAM, and keeps track of those pfn ranges.

Also, please mention the possibility of using smaller size memory
mappings if e820 didn't align physical memory to GB boundary.

Thanks.

--
tejun
--
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/