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 E9F8BC433F5 for ; Thu, 16 Dec 2021 19:25:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241033AbhLPTZ0 (ORCPT ); Thu, 16 Dec 2021 14:25:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231376AbhLPTZW (ORCPT ); Thu, 16 Dec 2021 14:25:22 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECDD5C061574; Thu, 16 Dec 2021 11:25:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type:References: In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=nw+QyVmvoeztudKCPr7lg9PgQJIVm8glncAr2T+hc8k=; b=YbPTvuBHTFRiwIbsm09Yh+hEtI vHQWG88ab465nk6HMhQAvhTkI/37kficvHXgb67iIKT3/cID3xmEiFfjFfuVLSIms8NtlwRVSUIpA BecdoteOR2XxZHxgd2YccqZxdZKmpLeaQCyGmj71FjCbjRfx/PXVlUfJ92X+zDRapJ0gRz1xAJQo9 InjfLU/YCAbTLxnEvkSHCySjI5pIYOv/9HCc+h/zmbGgeSaBU0Q32YcxX+XdtO9B0oPFyeF0iwV2E kqfvOhpxvf/AblGjMzKYz4QkLSfjtzeECyZv0oBfv1eHt6RGjSA/ZmerFy+kTJfuhPZfc5dLA9LOZ TP2rL60A==; Received: from [2001:8b0:10b:1::3ae] (helo=u3832b3a9db3152.ant.amazon.com) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxwNB-007LRh-I0; Thu, 16 Dec 2021 19:25:01 +0000 Message-ID: Subject: Re: [PATCH v3 0/9] Parallel CPU bringup for x86_64 From: David Woodhouse To: Tom Lendacky , Thomas Gleixner Cc: Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Paolo Bonzini , "Paul E . McKenney" , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, rcu@vger.kernel.org, mimoja@mimoja.de, hewenliang4@huawei.com, hushiyuan@huawei.com, luolongjun@huawei.com, hejingxian@huawei.com Date: Thu, 16 Dec 2021 19:24:56 +0000 In-Reply-To: <761c1552-0ca0-403b-3461-8426198180d0@amd.com> References: <20211215145633.5238-1-dwmw2@infradead.org> <761c1552-0ca0-403b-3461-8426198180d0@amd.com> Content-Type: multipart/signed; micalg="sha-256"; protocol="application/pkcs7-signature"; boundary="=-5RF9FfvqskXvLvB+S+1Q" User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-5RF9FfvqskXvLvB+S+1Q Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2021-12-16 at 10:27 -0600, Tom Lendacky wrote: > On 12/15/21 8:56 AM, David Woodhouse wrote: > > Doing the INIT/SIPI/SIPI in parallel for all APs and *then* waiting for > > them shaves about 80% off the AP bringup time on a 96-thread socket > > Skylake box (EC2 c5.metal) =E2=80=94 from about 500ms to 100ms. > >=20 > > There are more wins to be had with further parallelisation, but this is > > the simple part. >=20 > I applied this series and began booting a regular non-SEV guest and hit a= =20 > failure at 39 vCPUs. No panic or warning, just a reset and OVMF was=20 > executing again. I'll try to debug what's going, but not sure how quickly= =20 > I'll arrive at anything. Thanks for testing. This is working for me with BIOS and EFI boots in qemu and real hardware but it's mostly been Intel so far. I'll try harder on an AMD box. Anything else special about your setup, kernel config or qemu invocation that might help me reproduce? If it can repro without KVM, 'qemu -d in_asm' can be extremely useful for this kind of thing btw. --=-5RF9FfvqskXvLvB+S+1Q Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCECow ggUcMIIEBKADAgECAhEA4rtJSHkq7AnpxKUY8ZlYZjANBgkqhkiG9w0BAQsFADCBlzELMAkGA1UE BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxPTA7BgNVBAMTNENPTU9ETyBSU0EgQ2xpZW50IEF1dGhl bnRpY2F0aW9uIGFuZCBTZWN1cmUgRW1haWwgQ0EwHhcNMTkwMTAyMDAwMDAwWhcNMjIwMTAxMjM1 OTU5WjAkMSIwIAYJKoZIhvcNAQkBFhNkd213MkBpbmZyYWRlYWQub3JnMIIBIjANBgkqhkiG9w0B AQEFAAOCAQ8AMIIBCgKCAQEAsv3wObLTCbUA7GJqKj9vHGf+Fa+tpkO+ZRVve9EpNsMsfXhvFpb8 RgL8vD+L133wK6csYoDU7zKiAo92FMUWaY1Hy6HqvVr9oevfTV3xhB5rQO1RHJoAfkvhy+wpjo7Q cXuzkOpibq2YurVStHAiGqAOMGMXhcVGqPuGhcVcVzVUjsvEzAV9Po9K2rpZ52FE4rDkpDK1pBK+ uOAyOkgIg/cD8Kugav5tyapydeWMZRJQH1vMQ6OVT24CyAn2yXm2NgTQMS1mpzStP2ioPtTnszIQ Ih7ASVzhV6csHb8Yrkx8mgllOyrt9Y2kWRRJFm/FPRNEurOeNV6lnYAXOymVJwIDAQABo4I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