From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758026AbYEFSYW (ORCPT ); Tue, 6 May 2008 14:24:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752200AbYEFSYN (ORCPT ); Tue, 6 May 2008 14:24:13 -0400 Received: from rv-out-0506.google.com ([209.85.198.233]:26130 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752624AbYEFSYL (ORCPT ); Tue, 6 May 2008 14:24:11 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AGrd/AYIEA04ENh4tjsmjaOYBgc3aoYiQlQnF4qP4/qNl/Aro5Y5n1gBLsTNu5dMzLJ/IFfFulwiBjLgLFSQQGTkX/PmYWGZ47L/qcGyAFZwZEjl+PCz/4Yj9zN1DXu6ITnWoNpd3Fj2Mq+fR10AnzfXa+5eir9Ry14Uh0yIyQY= Message-ID: <86802c440805061124w630bc987k71c3c290fdfde773@mail.gmail.com> Date: Tue, 6 May 2008 11:24:11 -0700 From: "Yinghai Lu" To: "H. Peter Anvin" Subject: Re: [PATCH] x86: fixed mtrr change WP to WB Cc: "Ingo Molnar" , "Eric W. Biederman" , "Thomas Gleixner" , "Andrew Morton" , "linux-kernel@vger.kernel.org" In-Reply-To: <482099E6.5060208@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200805041823.57198.yhlu.kernel@gmail.com> <200805061038.58023.yhlu.kernel@gmail.com> <200805061041.40047.yhlu.kernel@gmail.com> <482099E6.5060208@zytor.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 6, 2008 at 10:48 AM, H. Peter Anvin wrote: > Yinghai Lu wrote: > > > [PATCH] x86: fixed mtrr change WP to WB > > > > so we modify mptable near below 1M > > > > Signed-off-by: Yinghai Lu > > > > Again: > > This does not work on even the majority of all systems. > > If the mptable should be modified, it should be copied to kernel memory and > modified there. Modifying it in-place is both unsafe and, in general, > simply will not work. but * 1) Scan the bottom 1K for a signature * 2) Scan the top 1K of base RAM * 3) Scan the 64K of bios */ if (smp_scan_config(0x0, 0x400, reserve) || smp_scan_config(639 * 0x400, 0x400, reserve) || smp_scan_config(0xF0000, 0x10000, reserve)) return; and all these areas are reserved already. wonder if we could only modify mpf->mpf_physptr to point to another mpc and reuse mpf? YH