Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp811264ioo; Thu, 26 May 2022 15:46:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPAkAV/+/wZkwvNj12kq1U98SPkhEFWHC2g5oKi2+q/C5v25d/+OmqeHDz6UZl+WzDSHX2 X-Received: by 2002:a05:6402:26d6:b0:42b:31b9:2064 with SMTP id x22-20020a05640226d600b0042b31b92064mr32926630edd.227.1653605178276; Thu, 26 May 2022 15:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653605178; cv=none; d=google.com; s=arc-20160816; b=jS5zaeLmkDGlT453P396SncQxLurvsG8AEXEtfGVuE9Q8hRztqbqO6Dhpn0WRYUSbj g+xOLfkC3r1X7WZ/rake2HHmq5P9qtphdGl6r2sywBIYQ+YJJLI01BoxGsw2PdXwN37Q LdMvtGYGP3RuFqFxLNNlWe/lrMPfePi+KUH5pZKqAkS+N3c6viW7I4ZFc1Ka6TzYPJmI hd/sVjncEh5oN3h5kZdLjeZTKhgNOHvGTHznj458TrHQAEmebJuis6JhTWhEnAIw5j4p UD9Ql8G6gxloyBsGYhQvcRPd5xSdhEaKua0PPnUAMeFqqAD6ANrBRgJL7kZ/JIcgL3j4 9Wbw== 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:subject:cc:to:from :dkim-signature; bh=dDvOC9kHzg2JKrvyQ+NBfN1SdP3sUV6g6Wnf5nRBBwc=; b=MuyzZmip97gAOcUs0YmaCab+4TLjm4VuTqQ173t93fhQ1KmnSHHdZb5/7ceJwb23Q3 GEAK4DMCe+xVIlevtR6QfhBs8DLcscSt5Vsvnli0EhGMINvuRHRoVyrngEAGbOPlzSu3 UgRI//8/UmOfufaeGDBy2sef/xcyQPNnCtFlD8yholU+5zZRyPjqtP4UYcv8MQs1u6j+ tq84XCLmwShNthNf2slm1oISGH91ajZjqga7w860tEPqUGLXQGZxcsitlfyoHorgGbWi O1MHMJzBl+fSq0DkYjt9H4NORAKt4whr/FiUJY/O+Fo2w4AVXHDN71u/RvWTF+qzJojC 1tow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PWbJbbRf; 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 r26-20020a170906c29a00b006fef493f611si2622135ejz.26.2022.05.26.15.45.51; Thu, 26 May 2022 15:46:18 -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=PWbJbbRf; 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 S1348106AbiEZQG0 (ORCPT + 99 others); Thu, 26 May 2022 12:06:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244710AbiEZQGV (ORCPT ); Thu, 26 May 2022 12:06:21 -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 0D967E093 for ; Thu, 26 May 2022 09:06:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653581180; 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; bh=dDvOC9kHzg2JKrvyQ+NBfN1SdP3sUV6g6Wnf5nRBBwc=; b=PWbJbbRfWKHL/BBs+D3UTrG+doOSxyxY8ZiMKw2od1hTsYwVd/M4SgMo/UjVrcX9dcTPCX dmCVNlELnFC9NYKSDWnVKeMnxlcmXHJeq5TB4Mrh62+JykfHVO/yayN/phh0fOxA4aM+gp lShwx3zlg5qQYdxMecyqic3rWHuOTxU= 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-669-CMkUvEOfPGan6cr0UpucDw-1; Thu, 26 May 2022 12:06:16 -0400 X-MC-Unique: CMkUvEOfPGan6cr0UpucDw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 68450296A60A; Thu, 26 May 2022 16:06:16 +0000 (UTC) Received: from pauld.bos.com (dhcp-17-51.bos.redhat.com [10.18.17.51]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4552F400F3E8; Thu, 26 May 2022 16:06:16 +0000 (UTC) From: Phil Auld To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Peter Zijlstra , Valentin Schneider Subject: [PATCH v2 0/2] cpuhp: fix some st->target issues Date: Thu, 26 May 2022 12:06:13 -0400 Message-Id: <20220526160615.7976-1-pauld@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Spam-Status: No, score=-3.5 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 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. Cheers, Phil Phil Auld (2): cpuhp: make target_store() a nop when target == state cpuhp: Set cpuhp target for boot cpu kernel/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.18.0