From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F0A2C7EE2F for ; Mon, 12 Jun 2023 23:49:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238277AbjFLXta (ORCPT ); Mon, 12 Jun 2023 19:49:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238187AbjFLXt3 (ORCPT ); Mon, 12 Jun 2023 19:49:29 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DD3710FE for ; Mon, 12 Jun 2023 16:49:27 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9745d99cfccso861723266b.1 for ; Mon, 12 Jun 2023 16:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686613766; x=1689205766; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=KdDi50ZcI/FLwaJCGeRMVNgmMDqblajVGcvGtWq/rU0=; b=h14Y/off+2kKH+CZ9xuEqnth8dkIR68MU6fTRlm6+a1ccdcM0M0IsU1vvHNgsK8p2Y 0C3NyMHNpdoVINJwXJ2UsLvgZ4NTbFLvy78i26qPyTkArpsvqQO8P3rqJaQrm8rGzPXS b21ZAicO32Ry1R7mkMJ6NNUImtgdcpa22tAe3I7ZxvHegVAwZ0w/UvF0S48EVuSzeqn9 b3JjK1ZAX8STmHG870Zb54I4LTDZcNLOHVNCHnZhE6ryjThlXIgkPKnQSaTbHbmt0aPo YIMzeRPPStNBrG12bFe/IsSOLZJnGkaCG+swAqxSi4tHTnfqr5byW4FG9+MbQBtCjN2v e6sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686613766; x=1689205766; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KdDi50ZcI/FLwaJCGeRMVNgmMDqblajVGcvGtWq/rU0=; b=ALwViy4iIMowq/YLZWyr/9dZaxASRyamfrtSCm3wRl8oTQFHbv3GHuk07pjtE2HMK0 TnCiXr6zqRHnFAzATk0YwfqNiAxm+aeGnqARqzkNQLBH7Ek8OPPKHJmOAd2qL2cQwv3m b5F+0YU7f3quOSBbE93doCRyOb6hhvyuXw8Ojeedk0B4hgF7j+TsztNwvQa/4lKxTiZ9 pk5FO8FTf1d2gTGjFeM9lOnzZxMyshVkNM7pFrzp2d2MDwIPcb/t96/7FcWc5c7MHpcg 5UxKMlpRJex/Wu6K63QiMJwH/2PaNu69LT0xSoT8ROuWGK+vyVLTZWKhayWAc58qcAlh czmA== X-Gm-Message-State: AC+VfDySWEOdfRdMDMv8+twELdwioujFjkpkDjkFMOICbaIL5hGOeCss k3DidLE5kArQx/VWj+m1lxAmXQ== X-Google-Smtp-Source: ACHHUZ5d+tF+AAPixk/kFmtV+CtWpDVmOxGFS7Q1zOS4cdYHHVXnx1KgJdGHPbzDoYU+p/rh+kAXUw== X-Received: by 2002:a17:907:7207:b0:978:9e92:f903 with SMTP id dr7-20020a170907720700b009789e92f903mr11221800ejc.46.1686613765790; Mon, 12 Jun 2023 16:49:25 -0700 (PDT) Received: from [10.10.0.115] ([185.140.244.249]) by smtp.gmail.com with ESMTPSA id g20-20020aa7c854000000b005169cd0edffsm5568532edt.35.2023.06.12.16.49.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Jun 2023 16:49:25 -0700 (PDT) Message-ID: <94b05905-df3a-4534-a28c-fe9e3030fc4a@linaro.org> Date: Tue, 13 Jun 2023 01:49:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [patch V4 10/37] x86/smpboot: Get rid of cpu_init_secondary() Content-Language: en-US To: Thomas Gleixner , LKML Cc: x86@kernel.org, David Woodhouse , Andrew Cooper , Brian Gerst , Arjan van de Veen , Paolo Bonzini , Paul McKenney , Tom Lendacky , Sean Christopherson , Oleksandr Natalenko , Paul Menzel , "Guilherme G. Piccoli" , Piotr Gorski , Usama Arif , Juergen Gross , Boris Ostrovsky , xen-devel@lists.xenproject.org, Russell King , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Guo Ren , linux-csky@vger.kernel.org, Thomas Bogendoerfer , linux-mips@vger.kernel.org, "James E.J. Bottomley" , Helge Deller , linux-parisc@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , linux-riscv@lists.infradead.org, Mark Rutland , Sabin Rapan , "Michael Kelley (LINUX)" , Ross Philipson References: <20230512203426.452963764@linutronix.de> <20230512205255.981999763@linutronix.de> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20230512205255.981999763@linutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org On 12/5/23 23:07, Thomas Gleixner wrote: > From: Thomas Gleixner > > The synchronization of the AP with the control CPU is a SMP boot problem > and has nothing to do with cpu_init(). > > Open code cpu_init_secondary() in start_secondary() and move > wait_for_master_cpu() into the SMP boot code. > > No functional change. > > Signed-off-by: Thomas Gleixner > Tested-by: Michael Kelley > --- > arch/x86/include/asm/processor.h | 1 - > arch/x86/kernel/cpu/common.c | 27 --------------------------- > arch/x86/kernel/smpboot.c | 24 +++++++++++++++++++----- > 3 files changed, 19 insertions(+), 33 deletions(-) Reviewed-by: Philippe Mathieu-Daudé