From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755645AbZGETTl (ORCPT ); Sun, 5 Jul 2009 15:19:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752725AbZGETTe (ORCPT ); Sun, 5 Jul 2009 15:19:34 -0400 Received: from terminus.zytor.com ([198.137.202.10]:60484 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752067AbZGETTd (ORCPT ); Sun, 5 Jul 2009 15:19:33 -0400 Message-ID: <4A50FC68.1030002@zytor.com> Date: Sun, 05 Jul 2009 12:18:00 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Cyrill Gorcunov CC: "Maciej W. Rozycki" , Ingo Molnar , Thomas Gleixner , Yinghai Lu , LKML Subject: Re: [RFC -tip] x86,apic -- reduce disable_apic usage References: <20090705162044.GC4791@lenovo> <4A50E323.6060109@zytor.com> <20090705190211.GK4791@lenovo> In-Reply-To: <20090705190211.GK4791@lenovo> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Cyrill Gorcunov wrote: > > Peter, Maciej but how kernel behaved on older cpu long time ago? > > I mean -- should user pass "lapic" cmdline option too be > able to use apic functionality? (i'm asking since I just > don't know how it had been working before). Current > code (if only I'm not _missing_ something) relies on cpu_has_apic > bit. And even if MP table has been parsed and APIC base found, > cpu_has_apic could be not set so detect_init_APIC will fail > if no "lapic" option passed (in case of old cpu without this cpuid > bit produced) as we eventually stay with pic mode. > Well, systems with discrete APICs were few and far between. I'm not sure if there are any such systems still in meaningful existence (kind of like Voyager.) That makes it a bit hard to test things, and certainly means we shouldn't bend over backwards in doing *anything* that could possibly break other machines. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.