From: Michael Ellerman Subject: Re: [PATCH 2/2] powerpc/cpu: post the event cpux add/remove instead of online/offline during hotplug Date: Sat, 04 Aug 2018 12:48:46 +1000 Message-ID: <87tvoag835.fsf@concordia.ellerman.id.au> References: <1533217359-11420-1-git-send-email-kernelfans@gmail.com> <1533217359-11420-2-git-send-email-kernelfans@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1533217359-11420-2-git-send-email-kernelfans@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org Sender: "Linuxppc-dev" To: linuxppc-dev@lists.ozlabs.org Cc: "Rafael J. Wysocki" , Tyrel Datwyler , Pingfan Liu , linux-pm@vger.kernel.org List-Id: linux-pm@vger.kernel.org Hi Pingfan, Pingfan Liu writes: > Technically speaking, echo 1/0 > cpuX/online is only a subset of cpu > hotplug/unplug, i.e. add/remove. The latter one includes the physical > adding/removing of a cpu device. Some user space tools such as kexec-tools > resort to the event add/remove to automatically rebuild dtb. > If the dtb is not rebuilt correctly, we may hang on 2nd kernel due to > lack the info of boot-cpu-hwid in dtb. I notice you also sent a patch for ppc64_cpu to deal with CPUs being removed rather than just offlined. If I apply this patch then existing ppc64_cpu (without your other patch) will break. Is that right? cheers