From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNZLZ-0006vy-Mb for qemu-devel@nongnu.org; Mon, 16 Feb 2015 23:01:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNZLU-0002xU-OT for qemu-devel@nongnu.org; Mon, 16 Feb 2015 23:01:17 -0500 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:58247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNZLT-0002xE-Vl for qemu-devel@nongnu.org; Mon, 16 Feb 2015 23:01:12 -0500 Received: from /spool/local by e23smtp07.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 17 Feb 2015 14:01:05 +1000 Received: from d23relay09.au.ibm.com (d23relay09.au.ibm.com [9.185.63.181]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id 45B052CE804E for ; Tue, 17 Feb 2015 15:01:03 +1100 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay09.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t1H40rw635586092 for ; Tue, 17 Feb 2015 15:01:03 +1100 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t1H40SxM015663 for ; Tue, 17 Feb 2015 15:00:28 +1100 Date: Tue, 17 Feb 2015 09:30:08 +0530 From: Bharata B Rao Message-ID: <20150217040008.GA1930@in.ibm.com> References: <1420697420-16053-1-git-send-email-bharata@linux.vnet.ibm.com> <1420697420-16053-12-git-send-email-bharata@linux.vnet.ibm.com> <20150212051936.GB20593@voom.redhat.com> <20150212053914.GB3307@in.ibm.com> <20150216045624.GI26645@voom.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150216045624.GI26645@voom.fritz.box> Subject: Re: [Qemu-devel] [RFC PATCH v1 11/13] spapr: Initialize hotplug memory address space Reply-To: bharata@linux.vnet.ibm.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: imammedo@redhat.com, agraf@suse.de, qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com On Mon, Feb 16, 2015 at 03:56:24PM +1100, David Gibson wrote: > > > > diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h > > > > index ae8b4e1..64681c4 100644 > > > > --- a/include/hw/ppc/spapr.h > > > > +++ b/include/hw/ppc/spapr.h > > > > @@ -482,6 +482,9 @@ struct sPAPRTCETable { > > > > #define TIMEBASE_FREQ 512000000ULL > > > > #define SPAPR_MIN_MEMORY_BLOCK_SIZE (1 << 28) /* 256MB */ > > > > > > > > +/* Support a min of 1TB hotplug memory assuming 256MB per slot */ > > > > +#define SPAPR_MAX_RAM_SLOTS (1ULL << 12) > > > > > > Is this constraint arbitrary, or does it come from something in PAPR+? > > > > Arbitrary max, not defined by PAPR. > > Ok. Why do we need a fixed maximum value? I don't see this used to > size any arrays.. The max slots limit comes from x86 where ACPI limits the max dimm devices to 256. Since pc-dimm implementation requires this max, I came up with the above value for ppc. Regards, Bharata.