Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp671413ybb; Wed, 1 Apr 2020 07:39:50 -0700 (PDT) X-Google-Smtp-Source: APiQypKJiI7dpe4LcHLtu2ncNDwpYqZ0upY9Rpk/QqXPjCbX8tpHAFZ2jpNeFQwaAx5oxbcdBN5O X-Received: by 2002:aca:b144:: with SMTP id a65mr3093731oif.75.1585751990756; Wed, 01 Apr 2020 07:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585751990; cv=none; d=google.com; s=arc-20160816; b=LPMh2K9sjaiFk6vMQWHqHDpbymy4TyW+DB2HQszXvnOAvBydoQ7YhjqYvnweMoFgHe pzLP8nXOonZs8cwirmOc0Q0uuUQSsQG2Tl7IhVqVS0gcHxQ18VoGveAgzE2NS9kVi7AX McJ+nmiPE4QCd6iG4dY26DBuCjwI0Xp8H07wqVj65qxzyaFPd7fhaOf9BmpKdxeVlHyh niobNfPP6TVd41I6Y8QQ/GxOYY2dZmGhN8vHwO5cL2soArJuijcdBzh/mVJfAIp97LBQ Gk7yH4J0Cpj99+7w5JhSpyCdgYC1qG6MFrLUj5hjXDdHoTqpZG2dcqVrah0Q1OoUj/pp OC9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Bc9t147F81S9ClX5m+UTR/FQ0DxmDDOUUXqttzbZFk4=; b=IcAogOQX7j0V35z/VaG3LmhS5t3vbLrI1Yo2luFvb0Huu/eXTSR4SyF995bBBITlLP Qpb6oJ7IoFWZA8eXv8mojk6NA6UM7fy5mefwyYNuMzwAxl0URhuEOyW5Rf8/bpI8gmEH HBZJu6t587XHQ48XvDIDmn0Y25Nny57RxpJ5uQkDphxAoGmp6VdlnUKwAHtez2f3k6S6 2WBzDVIOzOJmyxZiiZRe0xs1YrBkUR0u1j19E13fAoYjtaypfGqI4ogd9c0DbysRMZFR +1HCr8ZlVWcc8T6T+46zT2zOvQk/NpoeelvDzuWMT4tAgcYHXynzv/4imLflQuEbMYRC kKJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ek/j4h4c"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si979703oik.72.2020.04.01.07.39.38; Wed, 01 Apr 2020 07:39:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ek/j4h4c"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733083AbgDAOjF (ORCPT + 99 others); Wed, 1 Apr 2020 10:39:05 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:39384 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732791AbgDAOjE (ORCPT ); Wed, 1 Apr 2020 10:39:04 -0400 Received: by mail-io1-f66.google.com with SMTP id c16so11473505iod.6 for ; Wed, 01 Apr 2020 07:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Bc9t147F81S9ClX5m+UTR/FQ0DxmDDOUUXqttzbZFk4=; b=ek/j4h4cEOxaVs5N/K4Vix6Kj+19pTFOE0OdfE++vZf3wyhSCWwyWNnQkxKY6uy5gz aiWG324ajiDbmUXZrJy5q7HFlimLks3AebOUkADIlkr4vCtpwddfmoFyaJh/EcrINSre EWzZniblJgWeSbZTVprPSQ1JubFBt9iyQI67nr1hu7d5tXLnTeC4vZ5YOW0cOlNppRgz a1+WqWyjq4geFceLxVFucpVrjpR2UR8pvySd3bWEFIqSAaXuH8XFBKI5ZUn2n5Ek/Bxu LYceGsbvrqDIDTmvNn/GCt7vg0i8blUdHClnAXiyw+gaEor7M8ohVnC+5X2auiQMizCb PIPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Bc9t147F81S9ClX5m+UTR/FQ0DxmDDOUUXqttzbZFk4=; b=NxXZsmHkOXKk6YGwo87fKc2tH9/12d1W/ue20cn6F5o+pzTYzbG9aTWKBkDx9QfaBG VLpLMJOjSNF0tCvQvcoj5W0FbiFNsv2C+AzXhYPONh3KntE9k7GZrYtDLYi3IQnldhYr wxwyWFPCW/sKQ2nntZtcu3M8cc15Dbe0ZRv5atc9mlC+KXREFkreIIagjmsXiMbc1ALf CX4c91JIyQm8CWFi687C554tKfDP1UWp9NB+MhUJf5h3T6LQ4yv5ZlS9an6pg2dmwssL Ga5rmDA9qvlcDXr4IOn7XjlCZNqxnWKa685o8GZdgzGkxS90QbfEYsPz5O7kpQ7hMrg5 Q8WA== X-Gm-Message-State: ANhLgQ10ErV4GZ/bc+VwdpW1/QxWDarepFA8Akfv7iy1xV8Y5FsdfnGH MM0ougQubimc1XB0NmWvYKSWav4srfAR7PejCA== X-Received: by 2002:a6b:b512:: with SMTP id e18mr20432245iof.168.1585751942391; Wed, 01 Apr 2020 07:39:02 -0700 (PDT) MIME-Version: 1.0 References: <20200325101431.12341-1-andrew.cooper3@citrix.com> <20200331175810.30204-1-andrew.cooper3@citrix.com> In-Reply-To: From: Brian Gerst Date: Wed, 1 Apr 2020 10:38:51 -0400 Message-ID: Subject: Re: [PATCH v2] x86/smpboot: Remove 486-isms from the modern AP boot path To: Andrew Cooper Cc: LKML , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "the arch/x86 maintainers" , Jan Kiszka , James Morris , David Howells , Matthew Garrett , Josh Boyer , Steve Wahl , Mike Travis , Dimitri Sivanich , Arnd Bergmann , "Peter Zijlstra (Intel)" , Giovanni Gherdovich , "Rafael J. Wysocki" , Len Brown , Kees Cook , Martin Molnar , Pingfan Liu , jailhouse-dev@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 1, 2020 at 8:14 AM Andrew Cooper wrote: > > On 01/04/2020 12:39, Brian Gerst wrote: > > On Wed, Apr 1, 2020 at 5:22 AM Andrew Cooper wrote: > >> On 31/03/2020 23:53, Brian Gerst wrote: > >>> On Tue, Mar 31, 2020 at 6:44 PM Andrew Cooper wrote: > >>>> On 31/03/2020 23:23, Brian Gerst wrote: > >>>>> On Tue, Mar 31, 2020 at 1:59 PM Andrew Cooper wrote: > >>>>>> Linux has an implementation of the Universal Start-up Algorithm (MP spec, > >>>>>> Appendix B.4, Application Processor Startup), which includes unconditionally > >>>>>> writing to the Bios Data Area and CMOS registers. > >>>>>> > >>>>>> The warm reset vector is only necessary in the non-integrated Local APIC case. > >>>>>> UV and Jailhouse already have an opt-out for this behaviour, but blindly using > >>>>>> the BDA and CMOS on a UEFI or other reduced hardware system isn't clever. > >>>>>> > >>>>>> We could make this conditional on the integrated-ness of the Local APIC, but > >>>>>> 486-era SMP isn't supported. Drop the logic completely, tidying up the includ > >>>>>> list and header files as appropriate. > >>>>>> > >>>>> You removed x86_platform.legacy.warm_reset in the original patch, but > >>>>> that is missing in V2. > >>>> Second hunk? Or are you referring to something different? > >>> Removing the warm_reset field from struct x86_legacy_features. > >> Ok, but that is still present as the 2nd hunk of the patch. > > My apologies, Gmail was hiding that section of the patch because it > > was a reply to the original patch. For future reference, add the > > version number to the title when resubmitting a patch (ie. [PATCH > > v2]). > > Erm... is Gmail hiding that too? > > Lore thinks it is there: > https://lore.kernel.org/lkml/CAMzpN2g0LS5anGc7CXco4pgBHhGzc8hw+shMOg8WEWGsx+BHpg@mail.gmail.com/ Ugh, yes. I thought it was the title that Gmail threaded on, but it must be the In-Reply-To: header. Sorry for the confusion. That said, I think the v1 patch is probably the better way to go (but adjusting the comments to include early Pentium-era systems without integrated APICs). Then the decision to drop support for external APICs could be a separate patch. -- Brian Gerst