Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp264862rwb; Wed, 10 Aug 2022 07:59:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR6HnxyFm+vngEPWfzzuXG4UFbtsuNcVKZ57rf/muC6VlpI+80Jbe80k7i4r0CCBWY2zJRcm X-Received: by 2002:a17:907:75d5:b0:730:b051:d93f with SMTP id jl21-20020a17090775d500b00730b051d93fmr20184311ejc.568.1660143576131; Wed, 10 Aug 2022 07:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660143576; cv=none; d=google.com; s=arc-20160816; b=cPH+OdqgqBog9UzJtfdjF2guxXoP0cp7F/xv2zgBcTGdRH2yJaF0pI1F+JgeAxxgXK AGHnLzIdiXjDcqSs3xOizv4HyahrjgUQX7HkHn/UoF3T0POqMyr3U/OZ0GGoxD0fPWM5 m/rAqyyHYgKFBzYQT/iWiTZE1emTZH4x1yLKFkwHddCJxZl/2zEN319rXDi1Wyq8voua Ilij5K0+2/9e/Oo/5nJRBS3kIqA0jlHSDKHjTJ5ocjPUEuVv6dUWepkhbH9rl8SwCTtB pD/dzoN4C+NUokufX4s4V/CtRWX0Ja+oX1VyFl+6BWsZGAw4vySThUl//VqYENfS7l5N M/GA== 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=tUu6M2S/duiNeGM8Kec4bSt+ImPwKlLEvtTkCC42t94=; b=07Mx2bkyrNk9jRItyqiSmlEU1fx7sHhMxiF6g6z4SPJ/mw/7yPbtoNcoy5yMgISd33 oavLa6RtlkGMcjQguT96uBzWq7KdtVkdx4zo0eLQQDZKZ9dRRAAj6yvF+4fcWZw0lLWn v6rK2I+MeW5UeYYlXj3nrzUgmvcY62XVkr2clcBYsIHoK5W/n51ZB3TqaOZEEPkE/Upd DFNCy9d4NWhr8LnIYvKE04UwNfHwjByMnZ1fkEqI/ZrL7wNKcTwTSgiOeDHsdRKtE/AQ Wf0VCR5W1hkn3IyBfesG1FM24oUUoWd19W2mk+EnfV5K9S2MFlxt63w48xzU2wH2xYd7 yDmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JHEX0KFM; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a056402330c00b00440a49861dcsi7390596eda.412.2022.08.10.07.59.10; Wed, 10 Aug 2022 07:59:36 -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=@redhat.com header.s=mimecast20190719 header.b=JHEX0KFM; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232726AbiHJOpw (ORCPT + 99 others); Wed, 10 Aug 2022 10:45:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232698AbiHJOpa (ORCPT ); Wed, 10 Aug 2022 10:45:30 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6F3DB39BA6 for ; Wed, 10 Aug 2022 07:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660142728; 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=tUu6M2S/duiNeGM8Kec4bSt+ImPwKlLEvtTkCC42t94=; b=JHEX0KFMjMZbgB4iAbdpFxlC/HZyOCfsmcUe+ZKC26+3lJjuGZCYZydeo8UNnM2CePqAyE ETulEVf/KT74qqZskSDBFVCpbot8UMBhokM0q5Ja7GfMSCYRKGr4JJy+zviv3+fvtCPKaJ NENQeHn+ks+tg+vivwb0IfLoQZP78qo= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-641-XHbjNoS8OyaHBysqMp1iuA-1; Wed, 10 Aug 2022 10:45:25 -0400 X-MC-Unique: XHbjNoS8OyaHBysqMp1iuA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1F02138217F7; Wed, 10 Aug 2022 14:45:24 +0000 (UTC) Received: from lorien.usersys.redhat.com (unknown [10.39.194.86]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 493191121314; Wed, 10 Aug 2022 14:45:21 +0000 (UTC) Date: Wed, 10 Aug 2022 10:45:18 -0400 From: Phil Auld To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Peter Zijlstra , Valentin Schneider Subject: Re: [PATCH v3 0/2] cpuhp: fix some st->target issues Message-ID: References: <20220711211619.112854-1-pauld@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220711211619.112854-1-pauld@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, 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 Mon, Jul 11, 2022 at 05:16:17PM -0400 Phil Auld wrote: > Several small fixes that clean up some cpuhp inconsistencies. > The first prevents target_store() from calling cpu_down() when > target == state which prevents the cpu being incorrectly marked > as dying. The second just makes the boot cpu have a valid cpuhp > target rather than 0 (CPU_OFFLINE) while being in state > CPU_ONLINE. > > A further issue which these two patches don't address is that > the cpuX/online file looks at the device->offline state and can > thus get out of sync with the actual cpuhp state if the cpuhp > target is used to change state. > > v3: Added code to make sure st->target == target in the nop case. > > Phil Auld (2): > cpuhp: make target_store() a nop when target == state > cpuhp: Set cpuhp target for boot cpu > > kernel/cpu.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > -- > 2.31.1 > Ping? Any thoughts on this? I'm not sure what tree it needs to go in but getting a cpu shutdown by writing the current target/state back in here seems wrong. Thanks, Phil --