Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2283053rwb; Thu, 17 Nov 2022 08:45:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf5lFfvPQygRyGd2Jttphwtj7hrSra+QWyfj5WBFN3Js4S7zyYl0XzxnNBMYNcdeGFxrQf3a X-Received: by 2002:a17:906:a416:b0:7ad:923a:b849 with SMTP id l22-20020a170906a41600b007ad923ab849mr2842759ejz.677.1668703518349; Thu, 17 Nov 2022 08:45:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668703518; cv=none; d=google.com; s=arc-20160816; b=eB867lD2jM291T3VdYEkmORJ2KkRQkPbJfbZDOK9loNhjPpCNrf0BL6B0PNQTlONMH fTorARRhGZB/SkryGc59uKQyKr4fgdQeKgVyTUgWrkLXx91pKF4Tx2tEtImmz24CmagC 96d90mqHX1owi0cq4IaiPOGeU8OCXMgZZtzklgnwv+IuLoiJUUyCtbCyCCCfW/28LIuQ KrkdIjmh2yDKXa+qAOk/Kwjd9U/ZZI5NJeyomx22E2X/VbOozsJolS9CgTkRicE4YWz7 7GgMJiy2/0Q0TbqzMccbfV63ThIOO4OiYmlmsfk06ireT3zfcPxovc14yCaCVU0lJWow W0pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Wlt5unR1IlykHqwwCL72sYJUvClxf8f/c3u+ZPgz6uA=; b=u/g82icgByEan5fg+Eu2+J+R49n91y2WiOdSdkH00XflF+8qiQ5aSNdvidvUV3Xzel ZNl6e8hk8slufX6YvnG8N+TvhrME4Wip0v3fS5xOpoVMOJ5Jf7AXDa1uzDCkndvLo8ug 1PLCbgZX8Ifu7ZR/gVrgQDsq2kDQFPCKeW3RNHyL/M0L7oF8o4yuHv9myGDQ8yFi/G4+ v7NJ6JBpmnDzjEECBEbYvDu14UkncX/GTznmI5f80PSb68dIU7NBNRuzqIODzJgur+RM 8e036q4No4Iaq4utawcJ/Lrhs743A6dAzw1SAfNpKe2uPHV4PFXbdP75nv1Q/yHGfIhr 0a0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LnSfHI4Q; 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 lx8-20020a170906af0800b007ae814af686si762847ejb.974.2022.11.17.08.44.48; Thu, 17 Nov 2022 08:45:18 -0800 (PST) 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=LnSfHI4Q; 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 S240636AbiKQQ1p (ORCPT + 93 others); Thu, 17 Nov 2022 11:27:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240441AbiKQQ0l (ORCPT ); Thu, 17 Nov 2022 11:26:41 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F6691403A for ; Thu, 17 Nov 2022 08:23:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668702218; 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: content-transfer-encoding:content-transfer-encoding; bh=Wlt5unR1IlykHqwwCL72sYJUvClxf8f/c3u+ZPgz6uA=; b=LnSfHI4Q6fKoIoln9W+Um0GmcXNxDz0w3+YW1HAp0WdA/l0/0tPAkWDxyv6BvWS2+2r1bW NUHckXwouYeZdnSqnFiy5EgTBBNVwGKHEE+24dP91T9gjcqJqedxxVOOLyQcJXEkwF7C4g 85KXunyBuRiXTkfhzPj78LihNQ7EeY4= 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-459-BnDAMHQbNDiW3fEUbffCFw-1; Thu, 17 Nov 2022 11:23:32 -0500 X-MC-Unique: BnDAMHQbNDiW3fEUbffCFw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C7D6538041CD; Thu, 17 Nov 2022 16:23:30 +0000 (UTC) Received: from pauld.bos.com (dhcp-17-237.bos.redhat.com [10.18.17.237]) by smtp.corp.redhat.com (Postfix) with ESMTP id 868724C819; Thu, 17 Nov 2022 16:23:30 +0000 (UTC) From: Phil Auld To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Peter Zijlstra , Valentin Schneider , Steven Price , Mark Rutland , Frederic Weisbecker , pauld@redhat.com Subject: [PATCH v5 0/2] cpuhp: fix some st->target issues Date: Thu, 17 Nov 2022 11:23:27 -0500 Message-Id: <20221117162329.3164999-1-pauld@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Fix a few cpuhp related issues. 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. v3: Added code to make sure st->target == target in the nop case. v4: Use WARN_ON in the case where state == target but st->target does not. v5: Fixed lowercase on first patch title and cleaned up cover letter. Rebased on v6.1-rc5. Phil Auld (2): cpuhp: Make target_store() a nop when target == state cpuhp: Set cpuhp target for boot cpu cpu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.31.1