Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp374510rwd; Tue, 16 May 2023 02:12:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7VkIEzRdBCjAZWJ+1K1AU5gFBKkcQ2xR0xxalNxV9xoizOVvhOOoCWQa72UvSiSwXCXDkq X-Received: by 2002:a17:903:280b:b0:1ab:197d:2de1 with SMTP id kp11-20020a170903280b00b001ab197d2de1mr32697890plb.2.1684228354345; Tue, 16 May 2023 02:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684228354; cv=none; d=google.com; s=arc-20160816; b=BZkxntZpsQcmdqphhHyJogjnXPCN3jnOxUxixuTkSgOGYQh6hH8FcujRde0fltt+uK 74YD/g/FitTgaZDXGteBbyA/ECyFnydrXE7rn2sAcW+mK5WjCOOwF/JMKkNpZCeI1D+n v1u/3cVloXiw26qIRsp+l1wmlJqhWC8HR/C6I4cqnyqWuC1tD4jUJlh0PrU0Cqm4ebKx +iCg5jTi9IfHXBX0nJbrrRXWSOP9o5Rvh4Zm1SX0n2m45jCA7grzkN+P7bxzFobNNGmy JYa2ZThF6tLG5VD8WhNRiaUcIvDGXq5RdzoTWl6h3STR36KUDH6hco2+/xEO9ddXMgxV 29aA== 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; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id je20-20020a170903265400b001ae001e8bc9si6930410plb.188.2023.05.16.02.12.20; Tue, 16 May 2023 02:12:34 -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; 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 S231815AbjEPJLK (ORCPT + 99 others); Tue, 16 May 2023 05:11:10 -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 ); 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" 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 , "Peter Zijlstra (Intel)" , Michael Kelley , Oleksandr Natalenko , Helge Deller , "Guilherme G. Piccoli" , 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: Robot-Unsubscribe: Contact 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 AuthorDate: Fri, 12 May 2023 23:07:24 +02:00 Committer: Peter Zijlstra 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 Signed-off-by: Peter Zijlstra (Intel) Tested-by: Michael Kelley Tested-by: Oleksandr Natalenko Tested-by: Helge Deller # parisc Tested-by: Guilherme G. Piccoli # 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; }