Re: [PATCH] EFI: Only set regions uncacheable if they support it

From: H. Peter Anvin
Date: Thu Mar 15 2012 - 10:37:03 EST


On 03/15/2012 07:33 AM, Matthew Garrett wrote:
>>
>> If we map it WB software can do speculative loads from that region which
>> would bring it into the cache. If we map it UC we might have to CLFLUSH...
>
> We've already mapped it at this point - we then go back and flag it UC
> if it's not writeback. The latter seems to be causing problems, I'm not
> sure we've seen any indication that the former is. And these regions are
> marked as runtime accessible, so per spec they do need to be mapped into
> address space...
>

In other words, it's totally f*cked. I guess at that point mapping it
WB and letting the BIOS-configured MTRRs deal with the caching
attributes is probably the right thing to do.

I would still really like to understand why we're seeing #MCs... that's
bothersome all by itself.

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