From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bojan Smojver Subject: Re: Memory corruption on hibernate/thaw with KMS Date: Fri, 14 Oct 2011 12:39:52 +1100 Message-ID: <1318556392.2029.3.camel@shrek.rexursive.com> References: <1317103928.1981.5.camel@shrek.rexursive.com> <1318554168.2081.8.camel@shrek.rexursive.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from beauty.rexursive.com (beauty.rexursive.com [150.101.121.179]) by gabe.freedesktop.org (Postfix) with ESMTP id 9F7E19E9D3 for ; Thu, 13 Oct 2011 18:39:53 -0700 (PDT) Received: from [10.1.120.20] (shrek.rexursive.com [10.1.120.20]) by beauty.rexursive.com (Postfix) with ESMTPSA id DBE201A01BE for ; Fri, 14 Oct 2011 12:39:52 +1100 (EST) In-Reply-To: <1318554168.2081.8.camel@shrek.rexursive.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, 2011-10-14 at 12:02 +1100, Bojan Smojver wrote: > Just one more note here. Forgot - Rafael mentioned that the patch below may help with 64-bit boxes. So, I'm going to test this next. --------------------- arch/x86/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/arch/x86/mm/init.c =================================================================== --- linux.orig/arch/x86/mm/init.c +++ linux/arch/x86/mm/init.c @@ -63,9 +63,9 @@ static void __init find_early_table_spac #ifdef CONFIG_X86_32 /* for fixmap */ tables += roundup(__end_of_fixed_addresses * sizeof(pte_t), PAGE_SIZE); +#endif good_end = max_pfn_mapped << PAGE_SHIFT; -#endif base = memblock_find_in_range(start, good_end, tables, PAGE_SIZE); if (base == MEMBLOCK_ERROR) --------------------- -- Bojan