Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753639Ab2H2VCm (ORCPT ); Wed, 29 Aug 2012 17:02:42 -0400 Received: from mail-vb0-f46.google.com ([209.85.212.46]:43198 "EHLO mail-vb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000Ab2H2VCl (ORCPT ); Wed, 29 Aug 2012 17:02:41 -0400 MIME-Version: 1.0 In-Reply-To: <1346267046-6724-6-git-send-email-jacob.shin@amd.com> References: <1346267046-6724-1-git-send-email-jacob.shin@amd.com> <1346267046-6724-6-git-send-email-jacob.shin@amd.com> Date: Wed, 29 Aug 2012 14:02:40 -0700 X-Google-Sender-Auth: BW7BSL7dkaL8KpUSx6MCy4qgJyE Message-ID: Subject: Re: [PATCH 5/6] x86: Fixup code testing if a pfn is direct mapped From: Yinghai Lu To: Jacob Shin Cc: X86-ML , LKML , "H. Peter Anvin" , Tejun Heo , Dave Young , Chao Wang , Vivek Goyal , Andreas Herrmann , Borislav Petkov Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1019 Lines: 32 On Wed, Aug 29, 2012 at 12:04 PM, Jacob Shin wrote: > Update code that previously assumed pfns [ 0 - max_low_pfn_mapped ) and > [ 4GB - max_pfn_mapped ) were always direct mapped, to now look up > pfn_mapped ranges instead. please swap patch 5 and patch 4 applying sequence. aka. should have [PATCH 4/6] x86:Fixup code testing if a pfn is direct mapped and it should have dummy function bool pfn_range_is_mapped(u64 start_pfn, u64 end_pfn) { return end_pfn <= max_low_pfn_mapped || (end_pfn > (1UL << (32 - PAGE_SHIFT)) && end_pfn <= max_pfn_mapped); } and [PATCH 5/6] x86: Only direct map addresses that are marked as E820_RAM will update pfn_range_is_mapped accordingly. Thanks Yinghai -- 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/