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 EFB7EC636D6 for ; Mon, 20 Feb 2023 22:23:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232439AbjBTWXu (ORCPT ); Mon, 20 Feb 2023 17:23:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231993AbjBTWXs (ORCPT ); Mon, 20 Feb 2023 17:23:48 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95D781ADF5 for ; Mon, 20 Feb 2023 14:23:46 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id az11-20020a05600c600b00b003dc4fd6e61dso2114107wmb.5 for ; Mon, 20 Feb 2023 14:23:46 -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:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LczbbPN2kv2frYuEgJiCHxGTOf36S6cKvzlYYeWhcYc=; b=ikrp60BCJBudlPSFvolBO82G/COksPn0tDwAWENWUOYwuM+9Db3zUrF8CjanQXljgW zQECHzWScYM4p2vVrTeJ69Ss97PnrJLrz7HdICQ+nmYJ/xj94ZrUb1JLnUbn/KceYw+0 kWsNMaf0qtj1JK6GHbVFFRaIxquzLtxKirbRT3vW1vRq9OmmlEl5Vjr7wX4caqWoEeUJ BflbeggOi576F6hy0EeVpww7CTAaPZ5ha+/GaIC29JTCGX2KFjzqIrNQUVy5ZCydpSxP yyaRWb+if1u/4D6sM/yRlXsHS6a7oxVyJwpR8v+iIQ09K2JvIWB8X7WsuLa4Q5zdvj1M 5lzw== 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:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LczbbPN2kv2frYuEgJiCHxGTOf36S6cKvzlYYeWhcYc=; b=kNiTvp043R7FVOVynXgfHd48GhGUEs0U2Nfan6YjVKFjRQUaplpYyqY7nWP/a8LZYK tG3jNbU86Kkz7Oy6RIVq6o/3TMPTrJYVRyGgtf5DkkZnMv1Ot58rCE4vUmSghhWc/PLD VVpPZakLjhuMg22f6vV+RlZY8Mx8X48FFJkhdQiOT9FvemSk77jz0vHjYdVB2Xedy09U krNV4j14qLpfacHy66Y7+IY8R1KMrHKxAcmxsraLQA2zJnwyk2Q9apOHex49Xx/hjY6i xXiB8klQTGX0xggOKDVe4hzslTEF3bKGeZFrFpUO/VBj6bjlde9QAvR6yT3ABD8Me8Ou 3q1A== X-Gm-Message-State: AO0yUKU37ONOLp7IxrxvZhFw5d9ImsxHpshek4lXqhYph6kE4wP6QPU5 wdVWW9cJr8q79rnvcR5swidsTQ== X-Google-Smtp-Source: AK7set/AoVRk1CSi530XSOQqXgKgQFGwnbmmgQs7zjKPPMKULilagc+ntPnuh70+ZOczY+cFJWCFww== X-Received: by 2002:a05:600c:80f:b0:3df:e46f:c226 with SMTP id k15-20020a05600c080f00b003dfe46fc226mr1217438wmp.16.1676931825044; Mon, 20 Feb 2023 14:23:45 -0800 (PST) Received: from ?IPV6:2a02:6b6a:b566:0:8498:f303:14d8:47b5? ([2a02:6b6a:b566:0:8498:f303:14d8:47b5]) by smtp.gmail.com with ESMTPSA id x8-20020a1c7c08000000b003dc4480df80sm1468425wmc.34.2023.02.20.14.23.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Feb 2023 14:23:44 -0800 (PST) Message-ID: <4a7b863c-469d-ea61-fc49-7aa8c819bb73@bytedance.com> Date: Mon, 20 Feb 2023 22:23:43 +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 v9 0/8] Parallel CPU bringup for x86_64 To: Oleksandr Natalenko , David Woodhouse Cc: tglx@linutronix.de, kim.phillips@amd.com, 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, Piotr Gorski References: <20230215145425.420125-1-usama.arif@bytedance.com> <2668799.mvXUDI8C0e@natalenko.name> <2668869.mvXUDI8C0e@natalenko.name> <2a67f6cf18dd2c1879fad9fd8a28242918d3e5d2.camel@infradead.org> <982e1d6140705414e8fd60b990bd259a@natalenko.name> Content-Language: en-US From: Usama Arif In-Reply-To: <982e1d6140705414e8fd60b990bd259a@natalenko.name> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/02/2023 21:23, Oleksandr Natalenko wrote: > Hello. > > On 20.02.2023 21:31, David Woodhouse wrote: >> On Mon, 2023-02-20 at 17:40 +0100, Oleksandr Natalenko wrote: >>> On pondělí 20. února 2023 17:20:13 CET David Woodhouse wrote: >>> > On Mon, 2023-02-20 at 17:08 +0100, Oleksandr Natalenko wrote: >>> > > >>> > > I've applied this to the v6.2 kernel, and suspend/resume broke on >>> > > my >>> > > Ryzen 5950X desktop. The machine suspends just fine, but on >>> > > resume >>> > > the screen stays blank, and there's no visible disk I/O. >>> > > >>> > > Reverting the series brings suspend/resume back to working state. >>> > >>> > Hm, thanks. What if you add 'no_parallel_bringup' on the command >>> > line? >>> >>> If the `no_parallel_bringup` param is added, the suspend/resume >>> works. >> >> Thanks for the testing. Can I ask you to do one further test: apply the >> series only as far as patch 6/8 'x86/smpboot: Support parallel startup >> of secondary CPUs'. >> >> That will do the new startup asm sequence where each CPU finds its own >> per-cpu data so it *could* work in parallel, but doesn't actually do >> the bringup in parallel yet. > > With patches 1 to 6 (including) applied and no extra cmdline params > added the resume doesn't work. > >> Does your box have a proper serial port? > > No, sorry. I know it'd help with getting logs, and I do have a > serial-to-USB cable that I use for another machine, but in this one the > port is not routed to outside. I think I can put a header there as the > motherboard does have pins, but I'd have to buy one first. In theory, I > can do that, but that won't happen within the next few weeks. > > P.S. Piotr Gorski (in Cc) also reported this: "My friend from CachyOS > can confirm bugs with smpboot patches. AMD FX 6300 only shows 1 core > when using smp boot patchset". Probably, he can reply to this thread and > provide more details. > Hi Oleksandr, So for initial boot, do all CPUs comes up for you when parallel smp boot is enabled or only 1? I don't have access to Ryzen hardware so can only say from code, but it would be weird if initial boot is fine but resume is broken if the same code path is being taken. Thanks, Usama