From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C9DA1B7BDD for ; Fri, 4 Dec 2009 18:19:01 +1100 (EST) From: Kumar Gala Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Subject: using different format for hugetlbfs Date: Fri, 4 Dec 2009 01:18:51 -0600 Message-Id: <230774E3-2D94-44DA-85AC-151485996789@kernel.crashing.org> To: Benjamin Herrenschmidt , David Gibson Mime-Version: 1.0 (Apple Message framework v1076) Cc: linux-ppc list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Ben, David, If we want to support true 4G/4G split on ppc32 using the MSB of the address to determine of the pgd_t is for hugetlbfs isn't going to work. Since every pointer in the pgd_t -> pud_t -> pmd_t is point to at least a 4K page I would think the low order 12-bits should always be 0. Could we use something like: addr[0:51] || shift [52:59] || flags [60:63] with the LSB flag being 'normal pointer' vs 'hugetlbfs mangled pointer'. Seems like shift will at most be 64 so 8-bits should cover it. - k