Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755611AbbGUPId (ORCPT ); Tue, 21 Jul 2015 11:08:33 -0400 Received: from g4t3427.houston.hp.com ([15.201.208.55]:53700 "EHLO g4t3427.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754211AbbGUPIa (ORCPT ); Tue, 21 Jul 2015 11:08:30 -0400 Message-ID: <1437491241.3214.211.camel@hp.com> Subject: Re: [PATCH RESEND 2/3] mm, x86: Remove region_is_ram() call from ioremap From: Toshi Kani To: Thomas Gleixner Cc: mingo@redhat.com, hpa@zytor.com, akpm@linux-foundation.org, travis@sgi.com, roland@purestorage.com, dan.j.williams@intel.com, mcgrof@suse.com, x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Borislav Petkov Date: Tue, 21 Jul 2015 09:07:21 -0600 In-Reply-To: References: <1437088996-28511-1-git-send-email-toshi.kani@hp.com> <1437088996-28511-3-git-send-email-toshi.kani@hp.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.3 (3.16.3-2.fc22) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 947 Lines: 26 On Tue, 2015-07-21 at 16:31 +0200, Thomas Gleixner wrote: > On Thu, 16 Jul 2015, Toshi Kani wrote: > > Note, removing the call to region_is_ram() is also necessary to > > fix bugs in region_is_ram(). walk_system_ram_range() requires > > RAM ranges be page-aligned in the iomem_resource table to work > > properly. This restriction has allowed multiple ioremaps to RAM > > (setup_data) which are page-unaligned. Using fixed region_is_ram() > > will cause these callers to start failing. > > Which callers? They are the callers I noticed. - Multiple ioremap calls from arch/x86/kernel/kdebugfs.c. - Multiple ioremap calls from arch/x86/kernel/ksysfs.c. - pcibios_add_device() Thanks, -Toshi -- 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/