From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753963AbYIFPvt (ORCPT ); Sat, 6 Sep 2008 11:51:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752133AbYIFPvk (ORCPT ); Sat, 6 Sep 2008 11:51:40 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:42234 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752103AbYIFPvk (ORCPT ); Sat, 6 Sep 2008 11:51:40 -0400 Date: Sat, 6 Sep 2008 17:51:24 +0200 From: Ingo Molnar To: Krzysztof Helt Cc: Yinghai Lu , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , Jesse Barnes , linux-kernel@vger.kernel.org, Krzysztof Helt Subject: Re: [PATCH 5/6] x86: move mtrr cpu cap setting early in early_init_xxxx Message-ID: <20080906155124.GE1774@elte.hu> References: <1220312246-30879-1-git-send-email-yhlu.kernel@gmail.com> <1220312246-30879-5-git-send-email-yhlu.kernel@gmail.com> <20080904191333.GD24990@elte.hu> <86802c440809041217p454c4471y66a8ed6907d9cc8@mail.gmail.com> <20080904221418.239c2b54.krzysztof.h1@poczta.fm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080904221418.239c2b54.krzysztof.h1@poczta.fm> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Krzysztof Helt wrote: > On Thu, 4 Sep 2008 12:17:14 -0700 > "Yinghai Lu" wrote: > > > On Thu, Sep 4, 2008 at 12:13 PM, Ingo Molnar wrote: > > > > > > * Yinghai Lu wrote: > > > > > >> Krzysztof Helt found mtrr is not detected on k6-2 > > >> > > >> root case: > > >> we move mtrr_bp_init early for mtrr trimming. > > >> and in early_detect, only read cap from cpuid, so some cpu doesn't have > > >> that bit in cpuid and need to set workaround bit will have problem. > > >> > > >> need to add early_init_xxxx to preset those bit before mtrr_bp_init > > >> for those earlier cpus. > > >> > > >> this patch is for 2.6.27 > > > > > > hm, not sure we can do it in v2.6.27 as it depends on the other CPU init > > > patches and that is a rather sensitive codepath. This problem should be > > > present in v2.6.26 too, right? > > > > Yes. old cpus without cpuid bit for mtrr need this patch... > > Krzysztof Helt tested it and it works with 2.6.27-rc5 (?) > > > > > > Yes, I tested the patches with 2.6.27-rc5. ok, i've cherry-picked those two commits over into tip/x86/urgent. Ingo