Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp266509rdb; Thu, 2 Nov 2023 03:12:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEAr3xm2Ov29jfK8BkHW3YCHEcf4kQAUz+8tnq/aaznI863LCK4mYc7ADtWiJ13MDkZ3el8 X-Received: by 2002:a17:902:ea0a:b0:1cc:56b3:efcb with SMTP id s10-20020a170902ea0a00b001cc56b3efcbmr10340548plg.1.1698919974827; Thu, 02 Nov 2023 03:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698919974; cv=none; d=google.com; s=arc-20160816; b=NfB/6kzZAtUBtu7twmaUxFR9aHbwtWXCUc5OQ2MzYiNUDurHRCmp14N1/qMF/m5CQK Qy+qFftwMSS3Gf32pk6fvbiOJSXCiBvMrJ6pk9q2t3pjhplq36xWT3CReHb+yIvQFnja 0Gp/IKFXHvrwiqbzVgiar9NP7YG1Fd4RwfvfuGECIKS4zKWgp5axUvmn3V8j4qIS5zPR y87xJw0ig2b6QxrsdfKPGafsHvE4SYSwHfYidA6jLe87FEWZra9kJiE4RVxvahxzAqfb IZ6UOsl5xVcLlQ3UHrN+HVi63vsf0+VgvZzPFWeGAijMy2qRwnnFD9X4Npyc1P47R4yF tWRA== 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=IZqB9qrmysX13BT59JOVtj+fnTDElF0sFcixuSiHwSU=; fh=NqxszSnEbriGO2hu9hwwuBcBaXBIrTAcu5lCOmnzP+o=; b=omrVOORkifn4SbdoNSA3Utd142dvdd4x5uIPm2lonUaGZAyimAIu5uIHsNrALnvOl2 U+ckU48+PVGSeOUZPZP45Ft9urMTeEHVjzkTDZlleRa8RyIVFCN6xIcNQQjWlpnhgczC EXuZvdyE2kHYnE3fSds9F15L3bRyPCJkBPOdx45zRg+NXDJ1Gi4W5dIFAUmmEVpzJky8 fXZ7ECl41dNM8PJmrs+V+oZTTqfB25y4c7B8+0XJK/c5sjN/TKz2PBONBsghwk5PsQCg DO/E206uLEQmSY3lTMgqlLAeeyHeel1xmt1JRzi9GuuWzNf7TLkScuW1+btOYOg5wrny eC1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OHJUaVqB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ke16-20020a170903341000b001c73f364120si4579496plb.407.2023.11.02.03.12.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 03:12:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OHJUaVqB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 69448814597B; Thu, 2 Nov 2023 03:12:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346102AbjKBKMr (ORCPT + 99 others); Thu, 2 Nov 2023 06:12:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345944AbjKBKMq (ORCPT ); Thu, 2 Nov 2023 06:12:46 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82D78128 for ; Thu, 2 Nov 2023 03:12:43 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-9c603e235d1so104630566b.3 for ; Thu, 02 Nov 2023 03:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698919962; x=1699524762; 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=IZqB9qrmysX13BT59JOVtj+fnTDElF0sFcixuSiHwSU=; b=OHJUaVqBv/0QeBZg2/+BrobPFLKnYBcRK5JhixRJ9K3Hj91EdRd4ZfUlYmquH0lzvc lg8xhYoU0nrMRKfwkV3NdESsMUvRxbpfcV9bwNILUW3eqm6NEm6r5dJjSbqoiFSplvfS qDYJGa/WefAOywlcejCvUaZhsobHHP+t0CmyS8/PwtwwzOS/rm7tkDDDfJJaL5YzezQL bj6k6xS/ircf0I2b4Cg23GKz5bAHfqMoX6Cnb0QqhUNsdB0TS5mcSgVQ9weOOmm3oBYB yAhJXhke+UpCq9aE+pXLja30fCUdAeA6L2GP0E1LUlVy1f2eXQHIa7FSFvEb/HO/eZPk aX7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698919962; x=1699524762; 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=IZqB9qrmysX13BT59JOVtj+fnTDElF0sFcixuSiHwSU=; b=q02SEWn/MTE9rKVGEqgb4LLTgma2+oCIqjprWfWz6NSD0i4aZXLEI4khAfLSZ2XuSp qyXz1LgZJgUNjPD3GZPUTC8sJFDLUA+FA8cfAGL+k5qDPs6h8sExDolsiSRwFC+BUM4R PO+Yq8Tj+hdlQ1dGhy1KypqVe+SMJu24y7WBIbZvv35XRYkZU2EJmhdlXsgqAgb1Uvok 7jKa66kk66BirApHBhdSUA5gI3NwtOaxG7qR3cSMOPBlxpuXVZPHZxtWrXz763434Gzh TvOyx2KTnBqESlC3knt1zkQ1jKNccIes5o3iknxDmEwG8O1Jf8tNWIPOX1x3Z07HsbgY 8yNQ== X-Gm-Message-State: AOJu0YxSA3YK9x/p0kgUM2Sk+rBsoSA8XZnGBvWy88/1Al55w/nUXm9p YJ3mrSc/tXu+4fEXiugbBUuaXxtAhmgMPDDOV4utGNsQtpQBzbLbIJ8= X-Received: by 2002:a17:907:36cd:b0:9be:5ab2:73c2 with SMTP id bj13-20020a17090736cd00b009be5ab273c2mr3861703ejc.58.1698919961848; Thu, 02 Nov 2023 03:12:41 -0700 (PDT) MIME-Version: 1.0 References: <20231102002453.1299195-1-william@wkennington.com> <20231102005321.1303809-1-william@wkennington.com> In-Reply-To: From: William Kennington Date: Thu, 2 Nov 2023 03:12:30 -0700 Message-ID: Subject: Re: [PATCH RESEND] ARM: npcm: Add CPU hotplug callbacks for kexec support To: Tomer Maimon Cc: william@wkennington.com, Brian Ma , avifishman70@gmail.com, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, tali.perry1@gmail.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 02 Nov 2023 03:12:52 -0700 (PDT) On Thu, Nov 2, 2023 at 1:39=E2=80=AFAM Tomer Maimon w= rote: > > Hi William, > > > On Thu, 2 Nov 2023 at 02:53, wrote: > > > > From: Brian Ma > > > > Add callbacks required for kexec to function. The NPCM7xx/NPCN8xx does > > not expose controls for powering down CPU cores, so just wait in idle > > loop. > This patch is related only to NPCM7xx please modify NPCM7xx/NPCN8xx to NP= CM7xx. Fixed in v2 message. > > > > 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(unsigne= d 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= _ops); > > -- > > 2.42.0.820.g83a721a137-goog > > > > Best regards, > > Tomer