Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40r1WT1z38zDqL4 for ; Wed, 23 May 2018 02:36:53 +1000 (AEST) Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4MGXjZG048433 for ; Tue, 22 May 2018 12:36:50 -0400 Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) by mx0b-001b2d01.pphosted.com with ESMTP id 2j4mhf04js-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 22 May 2018 12:36:50 -0400 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 22 May 2018 10:36:49 -0600 From: Michael Bringmann Subject: [RFC v4 0/4] powerpc/drcinfo: Fix bugs 'ibm,drc-info' property Cc: Michael Bringmann , Nathan Fontenot , John Allen , Tyrel Datwyler , Thomas Falcon To: linuxppc-dev@lists.ozlabs.org Date: Tue, 22 May 2018 11:36:44 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Message-Id: <47581596-1d6e-a1a9-9490-5b5ff0f5304f@linux.vnet.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This patch set corrects some errors and omissions in the previous set of patches adding support for the "ibm,drc-info" property to powerpc systems. Unfortunately, some errors in the previous patch set break things in some of the DLPAR operations. In particular when attempting to hot-add a new CPU or set of CPUs, the original patch failed to properly calculate the available resources, and aborted the operation. In addition, the original set missed several opportunities to compress and reuse common code, especially, in the area of device processing. Signed-off-by: Michael W. Bringmann --- Changes in V4: -- Update code for latest kernel checkins. -- Fix bug with virtual devices. -- Rebase on top of 4.17-rc5 kernel -- Simplify parser code for "ibm,drc-info" property