Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1399076rdb; Fri, 1 Dec 2023 15:52:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOYA1xBiJY8FyTU2XY3M0Ef1XQkUL33EVCgGa9oejfi5S1jw2l3MKxBYEsqSRfR/8ah5Qc X-Received: by 2002:a05:6808:4d:b0:3b8:47a0:252a with SMTP id v13-20020a056808004d00b003b847a0252amr340500oic.18.1701474758947; Fri, 01 Dec 2023 15:52:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701474758; cv=none; d=google.com; s=arc-20160816; b=fdlQ9PRoTjl+nT6pqBUG9PF918BU4Aqma/ZNGKfulT74Ch5q5Ec2NdbqK7KalRO9VY sCZJfNdtFcYeL54kFMdTibCw0H0pZKXhTAlRVjVeDywMogKESGPId7w9W+uveDTlsmjR D/+P7ZXpRZiafBLMEqdCK93FiRZJUCPoKY6IpVwme/3+R8CyR+VWP0Vg33ivW0fHk/Da bSfB6F9lBZd/JMmHmfNw12ODLP5ukSciMANCn+yCvKlBj5JQutqCGz067WJ9bVUBz9Qx +1qiomqzbbI45OiVSQE5+I68n+Otm0FcYOianZK0jFbkMlYNHISSQ6Ygkr6xRoZn41P0 K2Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pf2tnTinXuxDyl3nKRHwSTUjqBMUY0SHJXZlyfM0i1U=; fh=iufKBJUlWVw8XyBeBY5sbmYGrFO/AFAJNi227mkM9u0=; b=pN55hZOZ/J8o7Yo4+nrfIRZPEteLU73151hqHILT/djaTGU62WaSw2LXWHb8qWE5ZA hROmn+SJZDn9aNXwFr8FfWGiYwZ0v2jmV11NivS9x36BW46S03mP1Iszp4hc71FFqVsP 13VJ2UgxXxAK6FzjR+bg6hPNwrMPQPMyhkwH0ak8UfrZYlkQffpsvD7cNdygdk1gGurN e8BM5aCgwSiJkxhlqxSIx3NC44zdtcR2jI7HRCZQcEI/nisN2Ne+Fcrhqef1oy9Fgs/3 Q1YnvlE2lLaf4QXmMgaNNUBBD9gnAxrFwhV0/mzHpbbgTx5Q54ka/6NuGCK09U3geiz9 JasQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wkennington-com.20230601.gappssmtp.com header.s=20230601 header.b=LPe1iLg9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id q33-20020a635061000000b005c60319034csi4077336pgl.644.2023.12.01.15.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 15:52:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@wkennington-com.20230601.gappssmtp.com header.s=20230601 header.b=LPe1iLg9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2DD4A8051A13; Fri, 1 Dec 2023 15:52:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441922AbjLAXwT (ORCPT + 99 others); Fri, 1 Dec 2023 18:52:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441926AbjLAXwH (ORCPT ); Fri, 1 Dec 2023 18:52:07 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C1011BEA for ; Fri, 1 Dec 2023 15:51:48 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a185fb3aa18so486715666b.1 for ; Fri, 01 Dec 2023 15:51:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wkennington-com.20230601.gappssmtp.com; s=20230601; t=1701474706; x=1702079506; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pf2tnTinXuxDyl3nKRHwSTUjqBMUY0SHJXZlyfM0i1U=; b=LPe1iLg937woGEy02r4KHrg4zzZayoev+gCQl18ogSaanscHYzaZhvbPGOnUxLOxn2 XSd+UeGxlYgIN6+ahTgVY1yC4PlvIKgSt7KuUzdqwYJ3calm5OjAXR9XiGqKueMjdtkv S2z50OWAmZIEIt568V+Y4sBM9ZIvCNFh/fQGnGiKTY+btI5KedeEtQYibiYLuRkMOid+ /O8rTv1cKP2EUjstnAajiiOxo0naYFR6DTAD6ytbXjsWCwqjdZVNqJ7NtdGCDEj8YqHt qCw3sStS0efqMoNexqIK33IEgCzuoE9S/m4w5nBgu3OKDcVMLgEN2DQrtdQU+7enyVbx 1XpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701474706; x=1702079506; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pf2tnTinXuxDyl3nKRHwSTUjqBMUY0SHJXZlyfM0i1U=; b=DpCX5xfhlRqXIjiYX2Il5tuCU98e5Axn+d6i35qPyQksjFYignVa8kaMflI7WqKnXc kz6t93QeG1uCSxaVhCpAbe/WQVlhFrnsxa3JWtH7v9ihJqBZlvUqpe/+gJzm0L8EsGyP s6Fa4I1pnM3JdPNTiYfSNzVtQuENA4osSXmw/Ut+tGjqJCkjOSIY2IyK5toEB6s7T6I3 d0FZfNnRaCzEU7SOoXFyFh+mOvR+p6JO2tBbjwZdgyazXHhsXf20gdOuPzCHpC5Pi70F x4Fut1Wru+Eg8OQ+Oy8z1Q146BIb4StmEtz5bOpEHLCWJb3GERTGOhe0kW9SMV95BFdz FY5Q== X-Gm-Message-State: AOJu0YwmQeelb2YCf9xYvcCNQvzPagyy36M6tQpaFSNldQDl9GXc040V kw9vp0fPO52p7KtiI0YU4+h3u02OHNUtqQwxkkDMFw== X-Received: by 2002:a17:906:5193:b0:a1a:5cbf:4b5c with SMTP id y19-20020a170906519300b00a1a5cbf4b5cmr289954ejk.15.1701474706293; Fri, 01 Dec 2023 15:51:46 -0800 (PST) MIME-Version: 1.0 References: <20231102002453.1299195-1-william@wkennington.com> <20231102101009.15104-1-william@wkennington.com> In-Reply-To: <20231102101009.15104-1-william@wkennington.com> From: William Kennington Date: Fri, 1 Dec 2023 15:51:35 -0800 Message-ID: Subject: Re: [PATCH v2] ARM: npcm: Add CPU hotplug callbacks for kexec support To: tmaimon77@gmail.com, tali.perry1@gmail.com, avifishman70@gmail.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Brian Ma Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 01 Dec 2023 15:52:36 -0800 (PST) On Thu, Nov 2, 2023 at 3:10=E2=80=AFAM William A. Kennington III wrote: > > From: Brian Ma > > Add callbacks required for kexec to function. The NPCM7xx does > not expose controls for powering down CPU cores, so just wait in idle > loop. > > Signed-off-by: Brian Ma > Signed-off-by: William A. Kennington III > --- > arch/arm/mach-npcm/platsmp.c | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm/mach-npcm/platsmp.c b/arch/arm/mach-npcm/platsmp.c > index 41891d3aa124..6cc7b5894f08 100644 > --- a/arch/arm/mach-npcm/platsmp.c > +++ b/arch/arm/mach-npcm/platsmp.c > @@ -69,10 +69,27 @@ static void __init npcm7xx_smp_prepare_cpus(unsigned = int max_cpus) > > iounmap(scu_base); > } > +#ifdef CONFIG_HOTPLUG_CPU > +static void npcm7xx_cpu_die(unsigned int cpu) > +{ > + while (1) > + cpu_do_idle(); > +} > + > +static int npcm7xx_cpu_kill(unsigned int l_cpu) > +{ > + return 1; > +} > +#endif > + > > static struct smp_operations npcm7xx_smp_ops __initdata =3D { > .smp_prepare_cpus =3D npcm7xx_smp_prepare_cpus, > .smp_boot_secondary =3D npcm7xx_smp_boot_secondary, > +#ifdef CONFIG_HOTPLUG_CPU > + .cpu_die =3D npcm7xx_cpu_die, > + .cpu_kill =3D npcm7xx_cpu_kill, > +#endif > }; > > CPU_METHOD_OF_DECLARE(npcm7xx_smp, "nuvoton,npcm750-smp", &npcm7xx_smp_o= ps); > -- > 2.42.0.820.g83a721a137-goog >' Mind taking another look? This should be updated accordingly.