Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759994AbZAIWzz (ORCPT ); Fri, 9 Jan 2009 17:55:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756156AbZAIWzp (ORCPT ); Fri, 9 Jan 2009 17:55:45 -0500 Received: from terminus.zytor.com ([198.137.202.10]:57484 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755756AbZAIWzo (ORCPT ); Fri, 9 Jan 2009 17:55:44 -0500 Message-ID: <4967D5FB.5020302@zytor.com> Date: Fri, 09 Jan 2009 14:55:55 -0800 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.18 (X11/20081119) MIME-Version: 1.0 To: Suresh Siddha CC: "mingo@elte.hu" , "tglx@linutronix.de" , "Pallipadi, Venkatesh" , "linux-kernel@vger.kernel.org" , "tvignaud@mandriva.com" Subject: Re: [patch] x86, pat: fix reserve_memtype() for legacy 1MB range References: <20090109223520.GC6472@linux-os.sc.intel.com> <4967D223.1090703@zytor.com> <20090109224804.GD6472@linux-os.sc.intel.com> In-Reply-To: <20090109224804.GD6472@linux-os.sc.intel.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1012 Lines: 24 Suresh Siddha wrote: > On Fri, Jan 09, 2009 at 02:39:31PM -0800, H. Peter Anvin wrote: >> Suresh Siddha wrote: >>> Here X is trying to map first 8KB of memory using /dev/mem. Existing >>> code treats first 0-4KB of memory as non-RAM and 4KB-8KB as RAM. Recent >>> code changes don't allow to map memory with different attributes >>> at the same time. >>> >> Why was 0-4 KB marked as non-RAM? It is most definitely RAM, and should >> be WB. > > While in reality it is RAM, we have CONFIG_STRICT_DEVMEM which doesn't allow > apps to map RAM pages using /dev/mem. And to allow app's to map the > legacy 0-4KB bios data page, we consider it as non-RAM. Permission to map and memory type should not be connected. Just to clarify, when mapped, was it still WB? -hpa -- 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/