Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2054286rdb; Sun, 3 Dec 2023 00:04:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlUprLbTKXtdo3tC/BlbnZpQi4z9jSow4M1h22iTw6w88lNXb2dzU49NuhiN2eDRlgrVVI X-Received: by 2002:a17:90b:33d2:b0:286:a4fc:9f51 with SMTP id lk18-20020a17090b33d200b00286a4fc9f51mr120788pjb.29.1701590663155; Sun, 03 Dec 2023 00:04:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701590663; cv=none; d=google.com; s=arc-20160816; b=bPLk6906D8XyqqJzy//kGyMzNq9BKe4vHfmYdV15iRBNfV4kBMpXEwd4eLrMN5LCnn dmq2dGRnz50hODAi2WxY9DHNPVN9yBnfmOhONrKhTJ747XU0H4r2sg2+LakW+nK2HkY3 3ICl7xbEFUrTFEF/dOqbCdhZqfLZyHUY5YPP0vfaCAo6UAhaY4WFH2mqlhLyfIoFS0Ol oaIYad7uP9BK1sJu7r/LxeerrRTSYkrsPTOEG52P3YE80OZUR2GeeoxBazscWsjha+Mh rYtXSgcHXDf2yUtPEuoY5aiVqAYYPLjj9v+N63IL/WT1x+x8qvlWMd9HTFCwA6SjRjjR C31Q== 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=dTVJVIDBZaj5fzzMVjd2zG2bVjzxreayrJVae6FjjUs=; fh=WxRl02S5PFjYnq+PARUivlHDDQdHG4ejoXdR5/oYJmo=; b=LiI0Cq39GAMAtlg63Q/E+mkNpONAocuKjDqt/d8MsXt3lnjDlSTCc2G76HDKXjPQXu CvwO6Cn4YaDMVd0bDtMy/uKAMOiI2ldmKkSuS5oziQo2e8kLSwaHM8CA5MnXJuD/IqFB zdZiSJLsCYY6qfyF4zjX9Tuj5d07I0mMW1NtDGIM+FlaBnV7xvHX2HVMNs8wQ0ELYSfu n36xQEuT/E/ExAU7n7LMLMRiWwQYxiyPLbCjsuHcvFZHCUE0ERu1Hlvq5JvnJfp7ZQMt dX79Wl7+t17Si7LMdlNK3zE0Av04XnFzfJGWNK+AYw63TEGYnp4bDmvFxmLZL3YbPpau gmYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=K00nUIPc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id je20-20020a170903265400b001c62cfff799si1762057plb.176.2023.12.03.00.04.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 00:04:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=K00nUIPc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 55E4C8087DDE; Sun, 3 Dec 2023 00:04:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233208AbjLCIDd (ORCPT + 99 others); Sun, 3 Dec 2023 03:03:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLCIDc (ORCPT ); Sun, 3 Dec 2023 03:03:32 -0500 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83EF1C0 for ; Sun, 3 Dec 2023 00:03:38 -0800 (PST) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5cdc0b3526eso28842847b3.1 for ; Sun, 03 Dec 2023 00:03:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701590617; x=1702195417; 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=dTVJVIDBZaj5fzzMVjd2zG2bVjzxreayrJVae6FjjUs=; b=K00nUIPcuRc0mhcPWlO4ECajga3brX6qTM8kN32qE+MhAlV5NhHmOEDaDHM2JUYxDg sI6UhGmB8OXTYH4Pfz7gFoLy4yaeQwa82l9WgYEPG2A/rFf06WKgOAzuKPo+PI6eQA0Y sFeMrvtWWaYipBZ7yqHUBaABUcqj/ufnDnB9hdmQ7xq7QSNBMlIx8ucfo2nYukf84oAj BgpJegmCGxZhTPGN46yYcxVzz7sPjQ5LfY4e6AWbVua1J0X/+L4wvui3/LKghreRl9uO oD4Gk3ErCHUV00DDBQ9aoWWgc4YbN72X7H/YV5S6n2amDp+wFJJCP1X92KEK4F87VQL4 e3+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701590617; x=1702195417; 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=dTVJVIDBZaj5fzzMVjd2zG2bVjzxreayrJVae6FjjUs=; b=Pj2XBg34F9owXr0q5hI+jOzdUDkBStNNZ98PmchMJMZho2m2HtiuS70OF+d1+DXE8G mkclIchE+KTEKIT7OdSVg4tJhF2Mm1egfOzb33Ew/nWF5t7dYEuf2RSQ2m3r9eBtLTWp RMjax0W0QPofoCUdWXbyOXxTTH8K0rK2hBvTJRkZTg/5xwC1SrZpBZxBnh59lVjF8LP1 /N0NYn8YFGv2yd43VvB7fq/ttrhFea15M4FD51FDvGTD94pwKu2RfzanAZ6Bp8zMVdae Yov6g8iCsTsP5wHrcADhfJ51ISBGHNFaewlMRtvZaoOmNdHLJF5trawlJtNeNSqc8WJn ZrqQ== X-Gm-Message-State: AOJu0Yw6iJjXYprCF8Y5qReUDg9lKeg8XTHnfiZuQtKfcRrltbeGropY CDhfj/TeQzKCbFDzhOIWUSS6/lqwlc2ApXpBcyY= X-Received: by 2002:a81:99d3:0:b0:5d3:a63b:88f7 with SMTP id q202-20020a8199d3000000b005d3a63b88f7mr1157215ywg.25.1701590617445; Sun, 03 Dec 2023 00:03:37 -0800 (PST) MIME-Version: 1.0 References: <20231102002453.1299195-1-william@wkennington.com> <20231102101009.15104-1-william@wkennington.com> In-Reply-To: From: Tomer Maimon Date: Sun, 3 Dec 2023 10:03:26 +0200 Message-ID: Subject: Re: [PATCH v2] ARM: npcm: Add CPU hotplug callbacks for kexec support To: William Kennington Cc: tali.perry1@gmail.com, avifishman70@gmail.com, 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.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 groat.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 (groat.vger.email [0.0.0.0]); Sun, 03 Dec 2023 00:04:20 -0800 (PST) Hi William, On Sat, 2 Dec 2023 at 01:51, William Kennington w= rote: > > 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(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 > >' > > Mind taking another look? This should be updated accordingly. Reviewed-by: Tomer Maimon Best regards, Tomer