From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753986Ab2LOWSn (ORCPT ); Sat, 15 Dec 2012 17:18:43 -0500 Received: from terminus.zytor.com ([198.137.202.10]:60276 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752189Ab2LOWSm (ORCPT ); Sat, 15 Dec 2012 17:18:42 -0500 Message-ID: <50CCF6F6.4020107@zytor.com> Date: Sat, 15 Dec 2012 14:17:26 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Yinghai Lu CC: "H. Peter Anvin" , Borislav Petkov , "Yu, Fenghua" , "mingo@kernel.org" , "linux-kernel@vger.kernel.org" , "tglx@linutronix.de" , "linux-tip-commits@vger.kernel.org" , Konrad Rzeszutek Wilk , Stefano Stabellini Subject: Re: [tip:x86/microcode] x86/microcode_intel_early.c: Early update ucode on Intel's CPU References: <20121211170605.GD28827@liondog.tnic> <50C76F9E.4080001@zytor.com> <50C7C859.60405@zytor.com> <50C82ABF.3020907@zytor.com> <20121212133853.GC8760@liondog.tnic> <50C963B1.3040609@zytor.com> <50C96717.3020407@zytor.com> <20121213191317.GE31485@liondog.tnic> <50CA4A7A.10104@zytor.com> <50CB8213.9000908@zytor.com> <50CCCFD0.7030704@linux.intel.com> <50CCEE49.3080801@zytor.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/15/2012 02:13 PM, Yinghai Lu wrote: > > AMD system could have all mem between TOLM and TOHM all WB, and don > need to set them in MTRRs entries. > I include the TOM2 mechanism in the overall umbrella of MTRRs for this purpose. > and also your switchover change that handle cross 1G, and 512g, and it > is not 1G aligned. > for example, if kernel at 4095G+512M, it will map from 4095G+512M to > 4096G + 512M. That is for the kernel region itself (that code is actually unchanged from the current code), and yes, we could cap that one to _end if there are systems which have bugs in that area. The dynamic page tables map 1G aligned at a time. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.