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 71EA5C636D3 for ; Thu, 9 Feb 2023 20:38:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229985AbjBIUiF (ORCPT ); Thu, 9 Feb 2023 15:38:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbjBIUiC (ORCPT ); Thu, 9 Feb 2023 15:38:02 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BC50663DE for ; Thu, 9 Feb 2023 12:38:01 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id bu23so3070697wrb.8 for ; Thu, 09 Feb 2023 12:38:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; 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=QJr+4EpYTTFs+E9ANXNPhW823UAlULlMXH5uzAvSjck=; b=KBUryG+0wgeLUa1/gB37sANKxijfAuSu1wqXnHepZlhPkL4pl0weRa5Lf09izQWERj xj8Fj0h6SzxsLg6EywcfeYM113oJ2E26Kn3B+pAlkHf5fI4pAG/cRlIqFyWDgIf3Igjk mBVSbRxXqrhK3UkmhyO+MXC619kbmVwNq5I2pvCYAe7hHZgTtq2HoiarubosHdcNLqWx UYvHPwlqmtcc13sp+jh8fY5+UIM7RaAyQ3zzrhbHvEhgW6XoOIyTGZ7ydlkF7C2OxxAp ZEdVaaxwimIm40MBIkhcVevV6ypBHhrUsUBwLKcCPj+ZARrilBY9pRNNObo4quPwdI4Y 63aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=QJr+4EpYTTFs+E9ANXNPhW823UAlULlMXH5uzAvSjck=; b=QO+xkavPkca7hXQmGcVLsXb7FRZodPlHGD6HmbAg6Sp8yJPz8Cphfb47bdQPs+bTl/ Ok4HuKdKv8sQpU6XxD9KXEskEQE0gUrCg+u3KK6GtqkO699a90QNO2qKCf8diLoyL6dr eXacq/excmJz8I/3Xr/XqkiYPdWhVGT4U5d9fktyvL7Ph8bnm3mJgyJn9jLmsgfoDYYI GxIhLjUJ6h20c3hIF60fqoe27ZFMhl2oixX4LjvUx4CBC20coEEm0vGFI9GUYZpkX2y3 eSEea9MPxpNlb0v2xcDxRQHP8Uah2yM+G4gyg5w5rR+G1/NFZVgRZBZhFtciWSIfu4DJ PzTg== X-Gm-Message-State: AO0yUKVEiNzzGRTU2QSMOhUQ8nuTua6+wMcC2Ih6inVrlf0HlNjLQWE7 NoLLUxbuCulRCQxN1U8DRIqy0A== X-Google-Smtp-Source: AK7set/qiE/GEm5Mr2h9yLcJ2r9EgpDKeRcKrXxVBIUNr7+EUaTcjTxVxJS9A8KlfY0cYJG+FRgVDw== X-Received: by 2002:a5d:61cb:0:b0:2bc:67d:c018 with SMTP id q11-20020a5d61cb000000b002bc067dc018mr11751494wrv.48.1675975079724; Thu, 09 Feb 2023 12:37:59 -0800 (PST) Received: from ?IPV6:2a02:6b6a:b566:0:8009:2525:9580:8db2? ([2a02:6b6a:b566:0:8009:2525:9580:8db2]) by smtp.gmail.com with ESMTPSA id a4-20020adfeec4000000b002bfc0558ecdsm1925004wrp.113.2023.02.09.12.37.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Feb 2023 12:37:59 -0800 (PST) Message-ID: Date: Thu, 9 Feb 2023 20:37:58 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [External] Re: [PATCH v8 6/9] x86/smpboot: Support parallel startup of secondary CPUs Content-Language: en-US To: Thomas Gleixner , dwmw2@infradead.org, kim.phillips@amd.com Cc: arjan@linux.intel.com, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, x86@kernel.org, pbonzini@redhat.com, paulmck@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, rcu@vger.kernel.org, mimoja@mimoja.de, hewenliang4@huawei.com, thomas.lendacky@amd.com, seanjc@google.com, pmenzel@molgen.mpg.de, fam.zheng@bytedance.com, punit.agrawal@bytedance.com, simon.evans@bytedance.com, liangma@liangbit.com, David Woodhouse References: <20230209154156.266385-1-usama.arif@bytedance.com> <20230209154156.266385-7-usama.arif@bytedance.com> <87r0uy1ysm.ffs@tglx> From: Usama Arif In-Reply-To: <87r0uy1ysm.ffs@tglx> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/02/2023 18:25, Thomas Gleixner wrote: > On Thu, Feb 09 2023 at 15:41, Usama Arif wrote: >> >> +static bool do_parallel_bringup = true; > > Wants to be __ro_after_init > >> +static int __init no_parallel_bringup(char *str) >> +{ >> + do_parallel_bringup = false; >> + >> + return 0; >> +} >> +early_param("no_parallel_bringup", no_parallel_bringup); > > Lacks an entry in Documentation/admin/kernel-parameters.txt > > Thanks, > > tglx Thanks, I will add the below to next revision. Its quite minor so will wait for more comments and MTRR question to be resolved, unless told to send next revision with this diff only. diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 6cfa6e3996cf..d3696c9316f1 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -3830,6 +3830,9 @@ noreplace-smp [X86-32,SMP] Don't replace SMP instructions with UP alternatives + no_parallel_bringup + [X86,SMP] Disables parallel brinugp of secondary cores. + noresume [SWSUSP] Disables resume and restores original swap space. diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 3ec5182d9698..fecd934e72fb 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -813,7 +813,7 @@ static int __init cpu_init_udelay(char *str) } early_param("cpu_init_udelay", cpu_init_udelay); -static bool do_parallel_bringup = true; +static bool do_parallel_bringup __ro_after_init = true; static int __init no_parallel_bringup(char *str) {