Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp638604iog; Mon, 13 Jun 2022 09:39:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sPQVpbZV6tr++g8yQZIltNcnDQbQvXIlE7m/UWPYiw19RPz83BcRZ8ZZ6allaFOvMVnY08 X-Received: by 2002:a17:902:ce89:b0:167:6117:f905 with SMTP id f9-20020a170902ce8900b001676117f905mr473629plg.41.1655138350188; Mon, 13 Jun 2022 09:39:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655138350; cv=none; d=google.com; s=arc-20160816; b=KVTdIFkz26r6Z3yTz2Tn4VmThWGCkzAxoJurCo3NBx0JH2iLAm0ePfOCTyrrABE4ax oNmv2TQGdN0iC8QQbAVPCMAF9/PmdyzBprHCmFJmZ/9X83HskMFgHM8R/B0qxH7cANWk XZNLnU8rqYJOeXCAqoGVWtn9oRN05OQYmU46fZaat6CtTYR8CRier4mX11eaqgvw8oDT 2HkVZaVGlWE4UmNKQleWrK8cyxkD+iI16UAuFmXZeF73WE185qN6FGG3lk6w6vy4hcZG y+1ORtnUwCPM/JvIn+PZOW1gd9KazYrsEJNGkOvKxhI2bwW7MuRB/IuHxOQ0YiRJZooo cf2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=vhsJGvgbTSULjQe9rAN8kAWgucSRuf4nK7/LbKJ59/c=; b=pP7I+AdqtTSys7Tos/7ukioxgISm/rYRHkks8oYElvxnaDJsc8zHKUyoAH+KiLbg80 BZFHcmNF/72w4SC6vj6L7PB9gTEqt1gPaEgKd9Xtag40ovFgIPinqM7H4bPEWNpeqtpL no9LSL72v44wlKCmCP4GfA3l5mn3040ULc+5YA/+BYiaO73F1MG/75iEvjbGqXTr9oGa tIjH2AeY3vZEdbZX9bLUbDKExLEuHT6Jq/Kwfs7xzym/1M2YQ0JZZPH4Tqlh9smyh13Q cbYV4BUB55h9Je8kqQqsCqMG9bsKz6VHJP5wJDVJHz9RiJ6SlA2AW1b+isj6X8vJnzes G6fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=I1SKlwy+; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=9MEwiMhM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a637243000000b003fe25580540si10462111pgn.476.2022.06.13.09.38.57; Mon, 13 Jun 2022 09:39:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=I1SKlwy+; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=9MEwiMhM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242464AbiFMPSw (ORCPT + 99 others); Mon, 13 Jun 2022 11:18:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345984AbiFMPSM (ORCPT ); Mon, 13 Jun 2022 11:18:12 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88098127198 for ; Mon, 13 Jun 2022 05:36:21 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1655123778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vhsJGvgbTSULjQe9rAN8kAWgucSRuf4nK7/LbKJ59/c=; b=I1SKlwy+9Kr7dqrHKzQUy6+PxcNNEYDymTHhdH3g3oaFVGG2Tor/fsRJ7nNSyJmOebK8nY Yg+UNT1knFyd4QukEpLSfdHSCYqgoXxtxQs8mVFdtMi4yqieqJiFn8ie/gVJXt7X6V0vvM RyM5ZfwiRSOvT8zv9cNMNRFpvBw3ldBFeP4zPkB2uqIh1AHIhdwfbb83KfsE/v15Yvdp/c Cc1Fcr0/LQahMBhUfccpbgEmzZZRAc6VWBIXZlWujd59nHYjzxDDAbZFqA6+MaDDungHyS q6Ltz9WXAOuvQHkwT9Msmwqx/iBX9HhFsVRK1HcT7pJ8ZYEtgNxfwUVLudwfTA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1655123778; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vhsJGvgbTSULjQe9rAN8kAWgucSRuf4nK7/LbKJ59/c=; b=9MEwiMhM5UEMaUZkRQU35aVcyFuKS9lYU0Z++F6KDQY5asSh4Znd3UPaegf9MOzlwDl/60 isCCJNyNnuIBbcCA== To: Vincent Donnefort , peterz@infradead.org Cc: linux-kernel@vger.kernel.org, vschneid@redhat.com, kernel-team@android.com, Vincent Donnefort , Derek Dolney Subject: Re: [PATCH v2] cpu/hotplug: Do not bail-out in DYING/STARTING sections In-Reply-To: <20220523160536.2889162-1-vdonnefort@google.com> References: <20220523160536.2889162-1-vdonnefort@google.com> Date: Mon, 13 Jun 2022 14:36:18 +0200 Message-ID: <87mteg3flp.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vincent, On Mon, May 23 2022 at 17:05, Vincent Donnefort wrote: > +static int _cpuhp_invoke_callback_range(bool bringup, > + unsigned int cpu, > + struct cpuhp_cpu_state *st, > + enum cpuhp_state target, > + bool nofail) > { > enum cpuhp_state state; > - int err = 0; > + int ret = 0; > > while (cpuhp_next_state(bringup, &state, st, target)) { > + int err; > + > err = cpuhp_invoke_callback(cpu, state, bringup, NULL, NULL); > - if (err) > + if (!err) > + continue; > + > + if (nofail) { > + pr_warn("CPU %u %s state %s (%d) failed (%d)\n", > + cpu, bringup ? "UP" : "DOWN", > + cpuhp_get_step(st->state)->name, > + st->state, err); > + ret = -1; I have a hard time to map this to the changelog: > those sections. In that case, there's nothing the hotplug machinery can do, > so let's just proceed and log the failures. That's still returning an error code at the end. Confused. Thanks, tglx