From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764030AbZANQOy (ORCPT ); Wed, 14 Jan 2009 11:14:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763860AbZANQOm (ORCPT ); Wed, 14 Jan 2009 11:14:42 -0500 Received: from sj-iport-1.cisco.com ([171.71.176.70]:47867 "EHLO sj-iport-1.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763725AbZANQOk (ORCPT ); Wed, 14 Jan 2009 11:14:40 -0500 X-IronPort-AV: E=Sophos;i="4.37,263,1231113600"; d="scan'208";a="128875512" From: Roland Dreier To: "Yinghai Lu" Cc: "James Kirin" , linux-kernel@vger.kernel.org Subject: Re: memory beyond4GB invisible to the system even though CONFIG_HIGHMEM64G=y References: <86802c440901132207l433227d9nf149506012a5721e@mail.gmail.com> X-Message-Flag: Warning: May contain useful information Date: Wed, 14 Jan 2009 08:14:35 -0800 In-Reply-To: <86802c440901132207l433227d9nf149506012a5721e@mail.gmail.com> (Yinghai Lu's message of "Tue, 13 Jan 2009 22:07:26 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OriginalArrivalTime: 14 Jan 2009 16:14:35.0952 (UTC) FILETIME=[31682B00:01C97663] Authentication-Results: sj-dkim-1; header.From=rdreier@cisco.com; dkim=pass ( sig from cisco.com/sjdkim1004 verified; ); Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > please do > 1. boot linux with "disable_mtrr_trim" in grub.conf etc > 2. after booting input: > echo "base=0x100000000 size=0x20000000 type=write-back" >/proc/mtrr Is there any way we can have the kernel do this automatically if there are any free mtrr slots? I would guess this type of BIOS bug is pretty common (desktop boards not validated with > 4GB of RAM), and having the kernel throw away 4GB of memory unless the user does some fancy scripting is not very friendly (not to mention the fact that things are likely to be very slow until the mtrr fixup script runs). - R.