From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757327Ab0EGRtp (ORCPT ); Fri, 7 May 2010 13:49:45 -0400 Received: from mga10.intel.com ([192.55.52.92]:2733 "EHLO fmsmga102.fm.intel.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757389Ab0EGRrk (ORCPT ); Fri, 7 May 2010 13:47:40 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.52,349,1270450800"; d="scan'208";a="796418420" From: Jacob Pan To: Thomas Gleixner , "H. Peter Anvin" , Ingo Molnar , Alek Du , Arjan van de Ven , Feng Tang , LKML Cc: Jacob Pan Subject: [PATCH 8/8] x86/mrst: Add nop functions to x86_init mpparse functions Date: Fri, 7 May 2010 10:41:48 -0700 Message-Id: <1273254108-3234-9-git-send-email-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1273254108-3234-1-git-send-email-jacob.jun.pan@linux.intel.com> References: <1273254108-3234-1-git-send-email-jacob.jun.pan@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Moorestown does not have BIOS provided MP tables, we can save some time by avoiding scaning of these tables. e.g. [ 0.000000] Scan SMP from c0000000 for 1024 bytes. [ 0.000000] Scan SMP from c009fc00 for 1024 bytes. [ 0.000000] Scan SMP from c00f0000 for 65536 bytes. [ 0.000000] Scan SMP from c00bfff0 for 1024 bytes. Searching EBDA with the base at 0x40E will also result in random pointer deferencing within 1MB. This can be a problem in Lincroft if the pointer hits VGA area and VGA mode is not enabled. Signed-off-by: Jacob Pan --- arch/x86/kernel/mrst.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/mrst.c b/arch/x86/kernel/mrst.c index 0b3ef9f..73c1692 100644 --- a/arch/x86/kernel/mrst.c +++ b/arch/x86/kernel/mrst.c @@ -351,5 +351,9 @@ void __init x86_mrst_early_setup(void) legacy_pic = &null_legacy_pic; + /* Avoid searching for BIOS MP tables */ + x86_init.mpparse.find_smp_config = x86_init_noop; + x86_init.mpparse.get_smp_config = x86_init_uint_noop; + mrst_identify_cpu(); } -- 1.6.3.3