Message ID | 168422819921.404.10642421522981044037.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp287045vqo; Tue, 16 May 2023 02:19:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5x+dtdvjuP02lcyxWDsmBB/WCG2hu2QtI9GGXgK2OE04JBEXiMSDXrzYkUY7o2FC3BvO8U X-Received: by 2002:a05:6a21:99a9:b0:100:8cf0:f92c with SMTP id ve41-20020a056a2199a900b001008cf0f92cmr38815517pzb.12.1684228746645; Tue, 16 May 2023 02:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684228746; cv=none; d=google.com; s=arc-20160816; b=iFixfSb8WIUPk8aFge1DoqC51yOiHfNaHAoj6ApZr4U8zlrb7AtfvyRKmEqCnXicms HZMxZLkWqFil3hW5kgBcaZHGpFFolGQjsF+UNQYqBpLtJHROrHPGs5dSvOgU26wVWLz+ nQbSeOk+lbHt8unZ7U+tymcOIRg01jpG7GCyPqPAYRq6CwWnpQTe0EBwNwHK1CL93PUZ 0uKEiFv0sXVyLaTrePhfiRwxV27gsieKTqf4EMuiFGHJR1dB8rc3o+H06VtJ3ftBWOvI 1SvjItsbbJPHaqn2QWMgkjg+rjB/p1dluHIX09noRWvDLZOv2uBbgYt1bu4IX9BcysRE Ipxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=Te3ghZBp6wpNyW2Ta4F0OhsvLt52lAei2YT8fMwsGOE=; b=GKI3q6PQHBbdDgazFQOLN2jU26LrOPSTO4sqPXBDcY7pbJSvaOUAGOG3/3vszKT4tC 46Kk7/1dSDNHSQMYsELTOisO3KZlLC0ykNxJiRQTUgg6nPLBGBhEfOiaDkGLufugxvLB ++7VBpELbU2rW1sUrOPx7RGE4txirfZd5Q8WQGLM9Eokk7gE3dsvIpOFn/ABT1t/+JYT VMa689vxl15ZkvoqiNSy4eb3ukS1JureFQ56iGeJoOjpVs6SUNscJfBeE11s83zqf70A /HNUvvxSDk+JRvPKUowneYtOuE4f2RGfx5JpoxWEbWJ1tYAxFVz/E1HEBVjp3Lp5dFZ6 VcHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oMRzZwaE; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Aaeadbfm; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a636e03000000b0053059dfafe4si15489874pgc.86.2023.05.16.02.18.53; Tue, 16 May 2023 02:19:06 -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=@linutronix.de header.s=2020 header.b=oMRzZwaE; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Aaeadbfm; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231873AbjEPJLL (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Tue, 16 May 2023 05:11:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231816AbjEPJKH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 16 May 2023 05:10:07 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 580722D55; Tue, 16 May 2023 02:10:04 -0700 (PDT) Date: Tue, 16 May 2023 09:09:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1684228199; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references; bh=Te3ghZBp6wpNyW2Ta4F0OhsvLt52lAei2YT8fMwsGOE=; b=oMRzZwaE8MG0/fI/DWq80Ngrg6GhItOzLl+yL1oFIPi9aBIU0fF9Rmct1J9SJ7MhZCJloj zSkQ7Kmv1IxL35tO90h5R1MdE+21aBclONqV3UnExHUGGjj9iPxs/ZCA6S5rqZYR7PlGp8 3wTmdybKZycE7H3WKax+dSETsPRGNVoYVGefmw9mjK0VWp3YDzJ7XnEXxxXuoos+IEfNBL n8lDC74hLoyh0sHlo+xLPM1qkpCTwmEWZI+20YTkpk8DaPjjVFVtAL4lVkj9K27w3sneXZ HXUwCwDjZlClm1u2ZSToR8Hra7G+EbWmZcbNwr2b4sSEj3EvAjTDdsoAPeytkQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1684228199; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references; bh=Te3ghZBp6wpNyW2Ta4F0OhsvLt52lAei2YT8fMwsGOE=; b=AaeadbfmMZ92AWeTi8Ym6VDoIj1PVMCNUZKk2X00wlvBsmEe2yExSxXvmzn7UshgA9n+yY UX1IuTmi76uMQ9DA== From: "tip-bot2 for Thomas Gleixner" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: smp/core] x86/xen/smp_pv: Remove wait for CPU online Cc: Thomas Gleixner <tglx@linutronix.de>, "Peter Zijlstra (Intel)" <peterz@infradead.org>, Michael Kelley <mikelley@microsoft.com>, Oleksandr Natalenko <oleksandr@natalenko.name>, Helge Deller <deller@gmx.de>, "Guilherme G. Piccoli" <gpiccoli@igalia.com>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230512205256.369512093@linutronix.de> References: <20230512205256.369512093@linutronix.de> MIME-Version: 1.0 Message-ID: <168422819921.404.10642421522981044037.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765724774626114220?= X-GMAIL-MSGID: =?utf-8?q?1766041842139996065?= |
Series |
[tip:,smp/core] x86/xen/smp_pv: Remove wait for CPU online
|
|
Commit Message
tip-bot2 for Thomas Gleixner
May 16, 2023, 9:09 a.m. UTC
The following commit has been merged into the smp/core branch of tip: Commit-ID: 2de7fd26d90729c4e3430f9924b199dea810a9bc Gitweb: https://git.kernel.org/tip/2de7fd26d90729c4e3430f9924b199dea810a9bc Author: Thomas Gleixner <tglx@linutronix.de> AuthorDate: Fri, 12 May 2023 23:07:24 +02:00 Committer: Peter Zijlstra <peterz@infradead.org> CommitterDate: Mon, 15 May 2023 13:44:54 +02:00 x86/xen/smp_pv: Remove wait for CPU online Now that the core code drops sparse_irq_lock after the idle thread synchronized, it's pointless to wait for the AP to mark itself online. Whether the control CPU runs in a wait loop or sleeps in the core code waiting for the online operation to complete makes no difference. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Michael Kelley <mikelley@microsoft.com> Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name> Tested-by: Helge Deller <deller@gmx.de> # parisc Tested-by: Guilherme G. Piccoli <gpiccoli@igalia.com> # Steam Deck Link: https://lore.kernel.org/r/20230512205256.369512093@linutronix.de --- arch/x86/xen/smp_pv.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/x86/xen/smp_pv.c b/arch/x86/xen/smp_pv.c index a6f9128..be40927 100644 --- a/arch/x86/xen/smp_pv.c +++ b/arch/x86/xen/smp_pv.c @@ -340,11 +340,11 @@ static int xen_pv_cpu_up(unsigned int cpu, struct task_struct *idle) xen_pmu_init(cpu); - rc = HYPERVISOR_vcpu_op(VCPUOP_up, xen_vcpu_nr(cpu), NULL); - BUG_ON(rc); - - while (cpu_report_state(cpu) != CPU_ONLINE) - HYPERVISOR_sched_op(SCHEDOP_yield, NULL); + /* + * Why is this a BUG? If the hypercall fails then everything can be + * rolled back, no? + */ + BUG_ON(HYPERVISOR_vcpu_op(VCPUOP_up, xen_vcpu_nr(cpu), NULL)); return 0; }