From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaohua Li Subject: Re: [PATCH] ACPI: use ioremap_cache() Date: Tue, 28 Dec 2010 13:02:20 +0800 Message-ID: <1293512540.10593.46.camel@sli10-conroe> References: <20101214220932.GA1206@sgi.com> <20101215024136.GB19601@sgi.com> <20101215164635.GA27373@sgi.com> <1293506460.10593.43.camel@sli10-conroe> <4D195AFF.9020106@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com ([192.55.52.93]:29938 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750718Ab0L1FD1 (ORCPT ); Tue, 28 Dec 2010 00:03:27 -0500 In-Reply-To: <4D195AFF.9020106@zytor.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "H. Peter Anvin" Cc: Len Brown , Jack Steiner , Henrique de Moraes Holschuh , "tony.luck@gmail.com" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "gbeshers@sgi.com" On Tue, 2010-12-28 at 11:35 +0800, H. Peter Anvin wrote: > On 12/27/2010 07:21 PM, Shaohua Li wrote: > > RCRB is a memory mapped io. In ICH, it's chipset configuration > > registers. this range can't be cached. > > I thought we should add a check like > > if page is E820_RAM or E820_ACPI then > > cached_map > > else > > uncached_map > > we have page_is_ram() API which just checks E820_RAM, I thought we can > > add a new API to check E820_ACPI. > > For x86, that is handled by the MTRRs; does it cause any problem if the pat and mtrr doesn't match?