Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp455024ybb; Wed, 1 Apr 2020 03:24:42 -0700 (PDT) X-Google-Smtp-Source: APiQypJGqJGqKdmvcxdjqJGkG3AVGxw/PXfVITCNLf9WsaBErtHKs3THgFNGWEgP+FgSXBzp+oKh X-Received: by 2002:aca:2806:: with SMTP id 6mr2268607oix.135.1585736682437; Wed, 01 Apr 2020 03:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585736682; cv=none; d=google.com; s=arc-20160816; b=jFFZ8U7qq3tuHoapVsEaXoME7BGw5IiebJqIR1uraaitmEktitMSYK+sdNTOlR2Vzk biBF444dJdBeC/uTrfcetmWnO6HAqI/+Mh+Zk5QAUh84UizZfqmTf2F1pmNK5sc4ywON Q5XQl0il+FHUyIn3ZfyKN3H7mC+E/Sqdjc+DjglTF5eWAffGq89RMVf0L3H2axCQxoz2 PKb6xMat3jUqVRWWBzr2SyIZjm4MZT0CK3S84TRLKblBoEl2zTIzjYurtqvH8KfNI2Nb mwTRo7iEvmNHXbdDh54ZjyT0EN/dihgluzV8/FKtgZlyyb/jDpdvWjxXkVaGjutP3tXi WRTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=BmAhfeB6uhPPrrMVG6ATDe0Pg0OY3C2pETO54lzzw7U=; b=m9utmWESJWCnNnJc9+phsAEjssuRybhmilLXUvpSvzBgqhSsAC9Q9u5NV+poGdcCTs iQkGv0Iu7VLV4KEki7Zl3XaFI0dusMZqq8SHGhVAnOGKW7QE6M+gBXcDuuifUuF+TTGb aL/IlnwoEsuicvVJWoI7grXiIjeAbFkY0nocwMCruNanZn/h/qE7HvMCfU+59EQRs+lL VySjpyoe/u6E4X5IZzQbCje8PN1nFuNfvLatrUxr5TVyLT/QMAupXZok/cabVDwXdyhx 4nXXcunEJcOPRQRy5IbmHpqFJd+nJ7TK5dOIzXfbb4QvO1C2iN0S9NMoSbCjUiP1I4rp 79Sw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z65si587544otb.197.2020.04.01.03.24.29; Wed, 01 Apr 2020 03:24:42 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730574AbgDAKYA convert rfc822-to-8bit (ORCPT + 99 others); Wed, 1 Apr 2020 06:24:00 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:52016 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbgDAKYA (ORCPT ); Wed, 1 Apr 2020 06:24:00 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-22-QSeBAbmuOtiRMVlLTjHioQ-1; Wed, 01 Apr 2020 11:23:56 +0100 X-MC-Unique: QSeBAbmuOtiRMVlLTjHioQ-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 1 Apr 2020 11:23:55 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Wed, 1 Apr 2020 11:23:55 +0100 From: David Laight To: "'Maciej W. Rozycki'" , 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 Thread-Topic: [PATCH] x86/smpboot: Remove 486-isms from the modern AP boot path Thread-Index: AQHWB7UNIHnKX6bM4USvtOwoEXANa6hkDYfw Date: Wed, 1 Apr 2020 10:23:55 +0000 Message-ID: <23147db6f0c548259357babfc22a87d3@AcuMS.aculab.com> References: <20200325101431.12341-1-andrew.cooper3@citrix.com> <601E644A-B046-4030-B3BD-280ABF15BF53@zytor.com> <87r1xgxzy6.fsf@nanos.tec.linutronix.de> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maciej W. Rozycki > Sent: 01 April 2020 00:35 > 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. I remember ICL trying to get SVR4.2MP working on similar vintage hardware. I wasn't directly involved (doing SMP sparc ethernet drivers) but ISTR that the SMP support silicon they were using (or rather trying to use) was basically broken. By the time they got it (nearly) working single cpu systems were faster. > 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. I also remember one of those Compaq dual 486 boxes. We must have has SVR4/Unixware running on it. I suspect that any such systems would also be too slow and not have enough memory to actually run anything recent. OTOH there are modern 486 (like) systems than might have a reasonable amount of memory and clock speed. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)