Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp39308ybb; Tue, 31 Mar 2020 16:37:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vseOI+lOFVkipROLh+Q7WlZwPtFFxBAxUiIu4KN+nRi5MoHbDMgEgJVt2Aex6w5iUF0OWIQ X-Received: by 2002:a05:6830:3090:: with SMTP id f16mr14369267ots.211.1585697856537; Tue, 31 Mar 2020 16:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585697856; cv=none; d=google.com; s=arc-20160816; b=lIJlz27wQk8bBGMU4tkm0MjLTdUN93XuJtxyCJ0KW3In9YM8zLJUdpuvNQpTaIut59 Y5VpgI37eEGhLPiyyYhy8F0BkuFAstfzr8H24kVebUqKahBtGbqSpmMylAFKvoKVqc5T UPman0SFYgSDVS7MmqtF/xMMLVe/uuVLxO/Ii1RMBYYwIsroXSpkFPpcXXV2qDWz6lcH xIXCTQIOH30ZhmGalk0C3XE7uweOjiNnrfwO3e+hcYXVT/E760zOyN3qpjXiU1MVmlWd NhdHjm7mHKgeDdcaerrMyKMvv48gFcP2oeyhtk4GGeCf2J5nsQ4NCbAR2/Ea0HMih368 X0Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date; bh=1QK/mus41cSrIbucDjB1hwaXOOFjBCxptBtFwqCREgQ=; b=PUfVyEgxA1pduLkVBLOz5/JdtsHY9KPEiWHvb5vN0NSGDH5w3JQMB5XY2bYPS5Q8M2 JF4zjZoBW74PtYikhTB3vh/E6M1MwmJA4hcVin46o5dQ0/YQMvuURWtr9cMWqKLXzDZ4 jES5hR1nh4d9UhTPNf7hLUs8BgXSEJfMmzFWtS0brFSyacaynAz1UmQG03dLhTT/W/nR dr9hzw7aZQZuyBxCNyOecCb1+UDz6lMWr0Prk180GIrOMTl42zCmmTo4jOXjth7rki1R tX0zFX0GndfrAEATNMYkSdbqyoDYRUZ9DMojGx/WRe2ZeM5m0v6tFPO/kJ4jEAX+qYp9 aEow== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i16si49417otc.180.2020.03.31.16.36.57; Tue, 31 Mar 2020 16:37:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731509AbgCaXfV (ORCPT + 99 others); Tue, 31 Mar 2020 19:35:21 -0400 Received: from eddie.linux-mips.org ([148.251.95.138]:54170 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731259AbgCaXfV (ORCPT ); Tue, 31 Mar 2020 19:35:21 -0400 Received: (from localhost user: 'macro', uid#1010) by eddie.linux-mips.org with ESMTP id S23991035AbgCaXfQ0q2BF (ORCPT ); Wed, 1 Apr 2020 01:35:16 +0200 Date: Wed, 1 Apr 2020 00:35:16 +0100 (BST) From: "Maciej W. Rozycki" To: Thomas Gleixner cc: hpa@zytor.com, Andrew Cooper , LKML , Ingo Molnar , Borislav Petkov , x86@kernel.org, Jan Kiszka , James Morris , David Howells , Matthew Garrett , Josh Boyer , Zhenzhong Duan , 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 Subject: Re: [PATCH] x86/smpboot: Remove 486-isms from the modern AP boot path In-Reply-To: <87r1xgxzy6.fsf@nanos.tec.linutronix.de> Message-ID: References: <20200325101431.12341-1-andrew.cooper3@citrix.com> <601E644A-B046-4030-B3BD-280ABF15BF53@zytor.com> <87r1xgxzy6.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Mar 2020, Thomas Gleixner wrote: > >>@@ -1118,7 +1121,7 @@ static int do_boot_cpu(int apicid, int cpu, > >>struct task_struct *idle, > >> } > >> } > >> > >>- if (x86_platform.legacy.warm_reset) { > >>+ if (!APIC_INTEGRATED(boot_cpu_apic_version)) { > >> /* > >> * Cleanup possible dangling ends... > >> */ > > > > We don't support SMP on 486 and haven't for a very long time. Is there > > any reason to retain that code at all? > > Not that I'm aware off. For the record: this code is for Pentium really, covering original P5 systems, which lacked integrated APIC, as well as P54C systems that went beyond dual (e.g. ALR made quad-SMP P54C systems). They all used external i82489DX APICs for SMP support. Few were ever manufactured and getting across one let alone running Linux might be tough these days. I never managed to get one for myself, which would have been helpful for maintaining this code. Even though we supported them by spec I believe we never actually ran MP on any 486 SMP system (Alan Cox might be able to straighten me out on this); none that I know of implemented the MPS even though actual hardware might have used the APIC architecture. Compaq had its competing solution for 486 and newer SMP, actually deployed, the name of which I long forgot. We never supported it due to the lack of documentation combined with the lack of enough incentive for someone to reverse-engineer it. FWIW, Maciej