From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mackerras Subject: Re: [PATCH 02/13] powerpc/64: Provide functions for accessing POWER9 partition table Date: Sat, 19 Nov 2016 15:23:18 +1100 Message-ID: <20161119042318.GG29462@fergus.ozlabs.ibm.com> References: <1479454122-26994-1-git-send-email-paulus@ozlabs.org> <1479454122-26994-3-git-send-email-paulus@ozlabs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, linuxppc-dev@ozlabs.org To: Balbir Singh Return-path: Received: from ozlabs.org ([103.22.144.67]:43507 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752528AbcKSEX2 (ORCPT ); Fri, 18 Nov 2016 23:23:28 -0500 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Sat, Nov 19, 2016 at 11:45:52AM +1100, Balbir Singh wrote: > > +#ifdef CONFIG_PPC_BOOK3S_64 > > +void mmu_partition_table_init(void) > > +{ > > + unsigned long patb_size = 1UL << PATB_SIZE_SHIFT; > > + > > + BUILD_BUG_ON_MSG((PATB_SIZE_SHIFT > 24), "Partition table size too large."); > > This should be 36 (12 + 24) True, though for P9, PATB_SIZE_SHIFT has to be 16. The BUILD_BUG_ON_MSG is probably not really necessary - I just moved this code from elsewhere. Paul.