Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753281Ab0L1Dfj (ORCPT ); Mon, 27 Dec 2010 22:35:39 -0500 Received: from terminus.zytor.com ([198.137.202.10]:60671 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752240Ab0L1Dfh (ORCPT ); Mon, 27 Dec 2010 22:35:37 -0500 Message-ID: <4D195AFF.9020106@zytor.com> Date: Mon, 27 Dec 2010 19:35:27 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 MIME-Version: 1.0 To: Shaohua Li 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" Subject: Re: [PATCH] ACPI: use ioremap_cache() References: <20101214220932.GA1206@sgi.com> <20101215024136.GB19601@sgi.com> <20101215164635.GA27373@sgi.com> <1293506460.10593.43.camel@sli10-conroe> In-Reply-To: <1293506460.10593.43.camel@sli10-conroe> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 911 Lines: 26 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; for ia64, I would assume ioremap() handles that somehow, otherwise it wouldn't be able to handle existing drivers with ioremap() in them. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- 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/