Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751844Ab2JEHqx (ORCPT ); Fri, 5 Oct 2012 03:46:53 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:35878 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750718Ab2JEHqv (ORCPT ); Fri, 5 Oct 2012 03:46:51 -0400 MIME-Version: 1.0 In-Reply-To: <506E059B.40808@zytor.com> References: <1348991844-12285-1-git-send-email-yinghai@kernel.org> <1348991844-12285-5-git-send-email-yinghai@kernel.org> <20121004164551.GA2244@phenom.dumpdata.com> <506E029E.3000102@zytor.com> <506E059B.40808@zytor.com> Date: Fri, 5 Oct 2012 00:46:49 -0700 X-Google-Sender-Auth: S0AUq6H8LfVGrAWZoNMfovS0c4s Message-ID: Subject: Re: [PATCH 04/13] x86, mm: Revert back good_end setting for 64bit From: Yinghai Lu To: "H. Peter Anvin" Cc: Konrad Rzeszutek Wilk , Stefano Stabellini , Thomas Gleixner , Ingo Molnar , Jacob Shin , Tejun Heo , "linux-kernel@vger.kernel.org" Content-Type: multipart/mixed; boundary=0015175cd7ea1711b804cb4b13d4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7600 Lines: 114 --0015175cd7ea1711b804cb4b13d4 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Oct 4, 2012 at 2:54 PM, H. Peter Anvin wrote: > > See my other post. This is bringing up the Kernel Summit algorithm again. > sure. please check if you are ok with attached one on top of x86/mm2 Thanks Yinghai --0015175cd7ea1711b804cb4b13d4 Content-Type: application/octet-stream; name="fix_max_pfn_xx_11.patch" Content-Disposition: attachment; filename="fix_max_pfn_xx_11.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h7wzdu1j0 U3ViamVjdDogW1BBVENIXSB4ODY6IGdldCBlYXJseSBwYWdlIHRhYmxlIGZyb20gQlJLCgpzZXQg cGd0X2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21lbWluaXRkYXRhIGVh cmx5X3BndF9idWZfdG9wOworCiAjZW5kaWYgLyogX0FTTV9YODZfSU5JVF8zMl9IICovCg== --0015175cd7ea1711b804cb4b13d4-- -- 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/