Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758857AbXFZPi1 (ORCPT ); Tue, 26 Jun 2007 11:38:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757457AbXFZPiT (ORCPT ); Tue, 26 Jun 2007 11:38:19 -0400 Received: from outbound-mail-59.bluehost.com ([69.89.20.39]:53248 "HELO outbound-mail-59.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757111AbXFZPiS (ORCPT ); Tue, 26 Jun 2007 11:38:18 -0400 From: Jesse Barnes To: Andi Kleen Subject: Re: [PATCH] trim memory not covered by WB MTRRs Date: Tue, 26 Jun 2007 08:38:05 -0700 User-Agent: KMail/1.9.7 Cc: Jesse Barnes , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Justin Piszcz , "Eric W. Biederman" , Yinghai Lu References: <200706251434.43863.jesse.barnes@intel.com> <200706251636.53636.jesse.barnes@intel.com> <20070626150249.GA7877@one.firstfloor.org> In-Reply-To: <20070626150249.GA7877@one.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706260838.05737.jbarnes@virtuousgeek.org> X-Identified-User: {642:box128.bluehost.com:virtuous:virtuousgeek.org} {sentby:smtp auth 76.103.130.182 authed with jbarnes@virtuousgeek.org} Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1737 Lines: 35 On Tuesday, June 26, 2007 8:02:49 am Andi Kleen wrote: > On Mon, Jun 25, 2007 at 04:36:52PM -0700, Jesse Barnes wrote: > > On Monday, June 25, 2007 4:34:33 Andi Kleen wrote: > > > > This patch fixes a bug in the last patch that caused the code to > > > > run on non-Intel machines (AMD machines apparently don't need it > > > > > > Actually the problem can happen on AMD too, but the symptoms can > > > be different and there can be more wrong than just the MTRRs. > > > > I should have been more specific in the changelog. My understanding is > > that AMD systems don't need it for memory above 4G, and since the code > > AMD systems need MTRRs to get cached memory too, or what is your point? My point is that yes, this problem can happen on AMD, but the code doesn't handle the problems that AMD systems might have, since it doesn't look for problems in low memory (e.g. if you have an AMD system with 6G of memory, the code will probably trim everything above 4G since it doesn't know about the new AMD mapping stuff from RevE), as Eric pointed out. Both you and Eric say you've seen AMD systems with problems, but handling them would make the code more complex than it is now, and I haven't seen the actual reports (memory maps & MTRR setups) so I can't really fix them anyway. And since this patch solves real problems as-is, it seems like we should push it upstream then rework it, if necessary (i.e. real user machines with this problem) later. What do you think? Jesse - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/