From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e38.co.us.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 4ED23100835 for ; Thu, 29 Oct 2009 08:45:43 +1100 (EST) Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e38.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id n9SKh9Bn006355 for ; Wed, 28 Oct 2009 14:43:09 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n9SKlJ3p066380 for ; Wed, 28 Oct 2009 14:47:19 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id n9SEk7J8026687 for ; Wed, 28 Oct 2009 08:46:07 -0600 Message-ID: <4AE8ADCF.6090104@austin.ibm.com> Date: Wed, 28 Oct 2009 15:47:11 -0500 From: Nathan Fontenot MIME-Version: 1.0 To: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6 v5] Kernel handling of Dynamic Logical Partitioning Content-Type: text/plain; charset=ISO-8859-1; format=flowed List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a re-send of the entire patch set with updates made from recent comments received. The Dynamic Logical Partitioning (DLPAR) capabilities of the powerpc pseries platform allows for the addition and removal of resources (i.e. cpus, memory, pci devices) from a partition. The removal of a resource involves removing the resource's node from the device tree and then returning the resource to firmware via the rtas set-indicator call. To add a resource, it is first obtained from firmware via the rtas set-indicator call and then a new device tree node is created using the ibm,configure-coinnector rtas call and added to the device tree. The following set of patches implements the needed infrastructure to have the kernel handle the DLPAR addition and removal of memory and cpus (other DLPAR'able items to follow in future patches). The framework for this is to create a set of probe/release sysfs files that will facilitate arch-specific call-outs to handle addition and removal of cpus and memory to the system. Patches include in this set: 1/6 - DLPAR infracstructure for powerpc/pseries platform. 2/6 - Move the of_drconf_cell struct to prom.h 3/6 - Create memory probe/release files and the powerpc handlers for them 4/6 - Memory DLPAR handling 5/6 - Create sysfs cpu probe/release files and the powerpc handlers for them 6/6 - CPU DLPAR handling -Nathan Fontenot