Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp365721ioo; Thu, 26 May 2022 05:34:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyICrccsC9FUxNag4U6C+d5QsvqXD6MykEa3fJwzyS5RCXIrWqV1XWTrTWI+G4jX9hojCH6 X-Received: by 2002:a17:902:ea12:b0:163:62b9:a50c with SMTP id s18-20020a170902ea1200b0016362b9a50cmr6483855plg.52.1653568472801; Thu, 26 May 2022 05:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653568472; cv=none; d=google.com; s=arc-20160816; b=Wdl6WYV8VHFTTGxhRkG5u/fNbyFqaQHKPiMg210qzqiom2s8WgvG/015Tmd9oe3Ec5 QYqPNqQBLKqV8YCb6A2Dbq5T4PKdOWjRUSRTs+G1s3lhCzun/9HiUADGGMs/YBM/Xr1Z lAJlghRPtVG1jtX2QzVzl755nvM8oV0bB85S7WJvaPXxdy7j14ceo5naNAevwwy4WVG7 dWgSEQSL/sy1IVdb3DqyY8/LKGDeJRRs40FVrnm3fukzomwjvqf3lzPbIMexyNYKOr1O uKYTWyGhTxb+3suQOW60jqF+QjPVhmeJs7FjR+r8dJwLrXJ07r42lE5eivwY4tJ3Wndf 0l4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QrMQdl+7eAngoEDHGtum/kWjmPhefhrNuIZO2rfUGK0=; b=kPB/p6oCCSRdq2bWOxsTnBEOH1SjAu7VH8bVnoPxTZseRUxfZ5St3r6dHLlLXbuvjx emLosV3yGKDPNztKgzDfr6uPVIbeltKTPP1ric66q7Afeoj42NfoKKc8BDhV82q0P2xf YFjsNhG5C52TKD1CXjFTqHuKeMLXDq8ngZHQxmbOPiCnkT46j+JK6cfbbBDRm/SADC8W qH2KqCh1IVMCnDQBDT/KDh5dJ5lPlwiqf1QTURQDxnIdfDYYfMuhQmFdM1PUMN/gEy2E Me3CjJQQIjxntla0/wXAGddD9A8Eul3eRg4tW32QmM4Lo12WrQ6XUdqCDqHopFDqE4ga htIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=MY1f+zSX; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pg5-20020a17090b1e0500b001e016bba7c5si2294389pjb.168.2022.05.26.05.34.19; Thu, 26 May 2022 05:34:32 -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=@infradead.org header.s=casper.20170209 header.b=MY1f+zSX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233162AbiEZKP6 (ORCPT + 99 others); Thu, 26 May 2022 06:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231858AbiEZKPx (ORCPT ); Thu, 26 May 2022 06:15:53 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E427AC9ED2 for ; Thu, 26 May 2022 03:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=QrMQdl+7eAngoEDHGtum/kWjmPhefhrNuIZO2rfUGK0=; b=MY1f+zSXnf+Tg/WVXnC/OUlg+N RFGdqCbYG4Tq+yt2mJ1+9OoxOtIMoKtqoCkL56e0ew5yT05JpPekpgbY3/Z/OEeCz+sbnqBkWyhAC 8nDhYfflOgQEUFKqPLtZ86HrxzLsqFJ72PkR2me+CgZQKT7PIIIjbmIkVMfOFy4Gt58n0x8sCGElo YJQqoUGeTBFJd0okk2UwNIqo5Ix3jSOnbSLCBgFRbBb0BQ0eLmNFPyYK2LBDUzLsWTOoLsuIqjDoK 9dV8gQ3u5Pur7bEu8jS7F0ocZko+eiGUVJ/8gttIA6JGpjPml3Zy4g1LT9jzerccmTfB0pEhaNNfW qMutxnTQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuAWo-0019o4-Tc; Thu, 26 May 2022 10:15:39 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id D1D61981124; Thu, 26 May 2022 12:15:36 +0200 (CEST) Date: Thu, 26 May 2022 12:15:36 +0200 From: Peter Zijlstra To: Vincent Donnefort Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, vschneid@redhat.com, kernel-team@android.com, Derek Dolney Subject: Re: [PATCH v2] cpu/hotplug: Do not bail-out in DYING/STARTING sections Message-ID: <20220526101536.GP2578@worktop.programming.kicks-ass.net> References: <20220523160536.2889162-1-vdonnefort@google.com> <20220525165248.GI2578@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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_NONE,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 On Thu, May 26, 2022 at 09:24:28AM +0100, Vincent Donnefort wrote: > On Wed, May 25, 2022 at 06:52:48PM +0200, Peter Zijlstra wrote: > > On Mon, May 23, 2022 at 05:05:36PM +0100, Vincent Donnefort wrote: > > > The DYING/STARTING callbacks are not expected to fail. However, as reported > > > by Derek, drivers such as tboot are still free to return errors within > > > those sections. In that case, there's nothing the hotplug machinery can do, > > > so let's just proceed and log the failures. > > > > > > > I'm confused. Why isn't this a driver bug? > > It is a entirely a driver bug which has been reported already. but 453e41085183 > (cpu/hotplug: Add cpuhp_invoke_callback_range()) changed the behaviour so I > thought it would be worth to revert to the original one which is to not break > the entire up/down for a single driver error. Ah I see. Fair enough I suppose.