From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933520AbcI0NuP (ORCPT ); Tue, 27 Sep 2016 09:50:15 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36848 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932870AbcI0NuH (ORCPT ); Tue, 27 Sep 2016 09:50:07 -0400 Date: Tue, 27 Sep 2016 15:49:57 +0200 From: Greg Kroah-Hartman To: Prarit Bhargava Cc: Borislav Petkov , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Peter Zijlstra , Len Brown , Andi Kleen , Jiri Olsa , Juergen Gross Subject: Re: [PATCH 0/2 v3] cpu hotplug: Preserve topology directory after soft remove event Message-ID: <20160927134957.GB19759@kroah.com> References: <1474457973-19536-1-git-send-email-prarit@redhat.com> <20160921130428.2e7bprll64vs6h2r@pd.tnic> <57E28BFF.8060107@redhat.com> <20160921140135.i5emid4qno2o6cre@pd.tnic> <57E3C78C.5040400@redhat.com> <20160922121039.l6lnhb53os2af27x@pd.tnic> <57E90A61.60402@redhat.com> <20160926115728.sdnvjaz3ty6xpsvr@pd.tnic> <57EA5BF4.1060508@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57EA5BF4.1060508@redhat.com> User-Agent: Mutt/1.7.0 (2016-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 27, 2016 at 07:45:56AM -0400, Prarit Bhargava wrote: > On 09/26/2016 07:57 AM, Borislav Petkov wrote: > > $ echo 0 > /sys/devices/system/cpu/cpu2/online > > This results in the topology directory being destroyed. It shouldn't be -- the > socket and core are still there. If you could open up your computer you could > touch them. This is similar to downing a PCI device, or removing !kernel memory > DIMM from a system. The device is still physically there. If you remove a PCI device from the system, by turning it off from the PCI hotplug interface, it will go away from sysfs, just like this CPU device is going away, no matter if you physically remove the device or not. Thanks for validating that everything is working the same and correctly :) greg k-h