Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757015AbaLJHNd (ORCPT ); Wed, 10 Dec 2014 02:13:33 -0500 Received: from lgeamrelo01.lge.com ([156.147.1.125]:44416 "EHLO lgeamrelo01.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753123AbaLJHNb (ORCPT ); Wed, 10 Dec 2014 02:13:31 -0500 X-Original-SENDERIP: 10.177.222.213 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Wed, 10 Dec 2014 16:17:24 +0900 From: Joonsoo Kim To: Russell King Cc: Ingo Molnar , Marek Szyprowski , linux-kernel@vger.kernel.org, Andrew Morton , Daniel Drake , Minchan Kim Subject: Re: [regression] Boot crash with: f7426b983a6a ("mm: cma: adjust address limit to avoid hitting low/high memory boundary") Message-ID: <20141210071724.GF13371@js1304-P5Q-DELUXE> References: <20141117163903.GA17801@gmail.com> <20141127130556.GA4074@gmail.com> <20141128070220.GA11802@js1304-P5Q-DELUXE> <20141208105640.GA29431@gmail.com> <20141209075541.GA7714@js1304-P5Q-DELUXE> <20141209085032.GA18348@flint.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141209085032.GA18348@flint.arm.linux.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 09, 2014 at 08:50:32AM +0000, Russell King wrote: > On Tue, Dec 09, 2014 at 04:55:42PM +0900, Joonsoo Kim wrote: > > Could you manage this fix for above boot regression in x86? > > Patch itself is so dirty, because __pa_nodebug() is implemented only > > in x86. If someone knows better idea, please let me know. > > > +#ifdef CONFIG_X86 > > + /* > > + * high_memory isn't direct mapped memory so retrieving it's > > + * physical address isn't appropriate. But, it would be useful > > + * to check physical address of highmem boundary so it's > > + * justfiable to get physical address from it. In x86, there is > > + * a validation check for this case, so following workaround is > > + * needed to avoid it. > > + */ > > + highmem_start = __pa_nodebug(high_memory); > > +#else > > + highmem_start = __pa(high_memory); > > +#endif > > What about: > > highmem_start = __pa(high_memory - 1) + 1; > > As "high_memory - 1" should be a valid lowmem address. Thanks for suggestion. It looks tricky but it would work. I think that this one need to be fully tested, so the first dirty one is better for the stable tree. I will check and test Russell's suggestion and send it as clean-up. Thanks. -- 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/