From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 4 Apr 2013 14:09:05 +1100 From: Paul Mackerras To: Nathan Fontenot Subject: Re: [PATCH v2 1/11] Expose pseries devicetree_update() Message-ID: <20130404030905.GB19443@drongo> References: <51509AE8.8070803@linux.vnet.ibm.com> <51509CBA.9010101@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <51509CBA.9010101@linux.vnet.ibm.com> Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Mar 25, 2013 at 01:51:38PM -0500, Nathan Fontenot wrote: > From: Jesse Larrew > > Newer firmware on Power systems can transparently reassign platform resources > (CPU and Memory) in use. For instance, if a processor or memory unit is > predicted to fail, the platform may transparently move the processing to an > equivalent unused processor or the memory state to an equivalent unused > memory unit. However, reassigning resources across NUMA boundaries may alter > the performance of the partition. When such reassignment is necessary, the > Platform Resource Reassignment Notification (PRRN) option provides a > mechanism to inform the Linux kernel of changes to the NUMA affinity of > its platform resources. > > When rtasd receives a PRRN event, it needs to make a series of RTAS > calls (ibm,update-nodes and ibm,update-properties) to retrieve the > updated device tree information. These calls are already handled in the > pseries_devtree_update() routine used in partition migration. > > This patch simply exposes pseries_devicetree_update() so it can be > called by rtasd. pseries_devicetree_update() and supporting functions > are also modified to take a 32-bit 'scope' parameter. This parameter is > required by the ibm,update-nodes/ibm,update-properties RTAS calls, and > the appropriate value is contained within the RTAS event for PRRN > notifications. In pseries_devicetree_update() it was previously > hard-coded to 1, the scope value for partition migration. > > Signed-off-by: Nathan Fontenot Acked-by: Paul Mackerras