From mboxrd@z Thu Jan 1 00:00:00 1970 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 41B2cM3zl2zF0xS for ; Thu, 21 Jun 2018 10:28:34 +1000 (AEST) Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5L0OX0o075649 for ; Wed, 20 Jun 2018 20:28:32 -0400 Received: from e36.co.us.ibm.com (e36.co.us.ibm.com [32.97.110.154]) by mx0b-001b2d01.pphosted.com with ESMTP id 2jqx24xj76-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 20 Jun 2018 20:28:31 -0400 Received: from localhost by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 20 Jun 2018 18:28:31 -0600 From: Michael Bringmann To: linuxppc-dev@lists.ozlabs.org Cc: Michael Bringmann , Nathan Fontenot , John Allen , Tyrel Datwyler , Thomas Falcon Subject: [PATCH v04 0/9] powerpc/hotplug: Update affinity for migrated CPUs Date: Wed, 20 Jun 2018 19:28:09 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Message-Id: <0425b353-54b0-6ccd-fbb6-3d26d9448bb5@linux.vnet.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , The migration of LPARs across Power systems affects many attributes including that of the associativity of CPUs. The patches in this set execute when a system is coming up fresh upon a migration target. They are intended to, * Recognize changes to the associativity of CPUs recorded in internal data structures when compared to the latest copies in the device tree. * Generate calls to other code layers to reset the data structures related to associativity of the CPUs. * Re-register the 'changed' entities into the target system. Re-registration of CPUs mostly entails acting as if they have been newly hot-added into the target system. Signed-off-by: Michael Bringmann Michael Bringmann (9): hotplug/cpu: Conditionally acquire/release DRC index hotplug/cpu: Add operation queuing function hotplug/cpu: Provide CPU readd operation mobility/numa: Ensure numa update does not overlap numa: Disable/enable arch_update_cpu_topology pmt/numa: Disable arch_update_cpu_topology during CPU readd powerpc/rtas: Allow disabling rtas_event_scan hotplug/rtas: No rtas_event_scan during property update hotplug/pmt: Update topology after PMT --- Changes in patch: -- Restructure and rearrange content of patches to co-locate similar or related modifications -- Rename pseries_update_drconf_cpu to pseries_update_processor -- Simplify code to update CPU nodes during mobility checks. Remove functions to generate extra HP_ELOG messages in favor of direct function calls to dlpar_cpu_readd_by_index. -- Revise code order in dlpar_cpu_readd_by_index() to present more appropriate error codes from underlying layers of the implementation. -- Add hotplug device lock around all property updates -- Add call to rebuild_sched_domains in case of changes -- Various code cleanups and compaction -- Rebase to 4.17-rc5 kernel