Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp491117rwb; Thu, 1 Dec 2022 05:00:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6hWmpOSGPdV+2S8PyF5kZ64BKU9NYZySa0e8I57d5PJTIcHLyFOfVLl4pkS4BrsOhBtcBr X-Received: by 2002:a17:90a:710b:b0:218:725:c820 with SMTP id h11-20020a17090a710b00b002180725c820mr70625643pjk.170.1669899602371; Thu, 01 Dec 2022 05:00:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669899602; cv=none; d=google.com; s=arc-20160816; b=Z1dD/8kAMrEUuqYT+jGSe83HCsjLl26tWWYeE33OrahYv6ShflYw0FwP9jxnYoLQqO YCjaNTIU8kdoN/m6ShUqtU0NiLRroef6mkhxKYcIWaMdeqnPNUvtiDYbhYPmH2hg6vYg AkNxmtqHnRNNAKvAWxUNWnAPQdF/xEeDRuWo1H+FjG2hLLKB/widIFtn179gJfQ7Av6y U5Gz0LwWG60pUQr9CzTA1aG+urcLYfGRBVyDpCX95j2CxfXatcWQkWF0i2Kxb+Uj3E0e 7RN0s0WqIUDvWl3NMlyoUngVKflQWz6c0GduVtZ7+jE6c61F84hZaDeiYbevgzJh7BS7 /WwQ== 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=V1cbd6hq1aBPo8PBxZgH12qMPl3yl8Mr+Uku+gvk4Mk=; b=T5ujK2vY0OP3hFXTCFFUH/aUjPzXe7Nyy8gJ7Fw3A6tfQiRVPujQNoGhz9/4pKc+A2 wjd0xKw6ROEgUWmXszUxqj6KueVZ6kUEBAMbIaMgvIH2lAa3Pg5KTCiJfIe4iMiDBMn3 rgFsVvKHAuEOH33fw5U0yCG9yzglIzgFJvKsYPKE/opuG+dclvwznth6mU6vuXN5RCsx K0qj+cNm1qQ1i8H458kgKNL1ponJqCI2d4kAnQ3nZYfhw+uJnI6/awJIaG9jCqWEDJdD L1aYJms7/HIrMgPyRZgS7JBlxhRxM2bpnt/JcC9XSHR7ZI32xQGdC3MDMzi5c0OZXK86 Ml8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=O8ja7bfF; 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 p18-20020a170902e35200b00179f9521d08si4009602plc.149.2022.12.01.04.59.52; Thu, 01 Dec 2022 05:00:02 -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=O8ja7bfF; 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 S230425AbiLAM1L (ORCPT + 82 others); Thu, 1 Dec 2022 07:27:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230368AbiLAM1K (ORCPT ); Thu, 1 Dec 2022 07:27:10 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2136C2A95E for ; Thu, 1 Dec 2022 04:26:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669897571; 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=V1cbd6hq1aBPo8PBxZgH12qMPl3yl8Mr+Uku+gvk4Mk=; b=O8ja7bfFUzDRYl7zW0r6E5opAIUmb3afnFi7sbU+5gAKNma1KkoBYLh3H+S+ITy9NCE4Cl md82Kz2EK390uxZFQHNWdKNKObZ5L8wwIbtETbW2Cj8tEqOK1ddhNJohX7idt9lXFJ8LFw zy32ker96KYVKbmwFxc2nxgtDJVh4II= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-654-6D2d9tSbMrOnq2QZAMB1iA-1; Thu, 01 Dec 2022 07:26:06 -0500 X-MC-Unique: 6D2d9tSbMrOnq2QZAMB1iA-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 42475800186; Thu, 1 Dec 2022 12:26:06 +0000 (UTC) Received: from lorien.usersys.redhat.com (unknown [10.22.8.218]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F1D90FD48; Thu, 1 Dec 2022 12:26:05 +0000 (UTC) Date: Thu, 1 Dec 2022 07:26:01 -0500 From: Phil Auld To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Peter Zijlstra , Valentin Schneider , Steven Price , Mark Rutland , Frederic Weisbecker Subject: Re: [PATCH v5 0/2] cpuhp: fix some st->target issues Message-ID: References: <20221117162329.3164999-1-pauld@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221117162329.3164999-1-pauld@redhat.com> 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 On Thu, Nov 17, 2022 at 11:23:27AM -0500 Phil Auld wrote: > 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(-) > Thanks for picking these up, Thomas! Cheers, Phil > -- > 2.31.1 > --