Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp428853rdb; Mon, 15 Jan 2024 01:42:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGruNBTMtunyFv+FwzPA/V3VFOib8u9So5ee3R99LP2Uo0XTr4aesRy///nYRFRS8s5Iiup X-Received: by 2002:a05:6870:1681:b0:205:fcf7:1bd3 with SMTP id j1-20020a056870168100b00205fcf71bd3mr6343785oae.111.1705311724046; Mon, 15 Jan 2024 01:42:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705311724; cv=none; d=google.com; s=arc-20160816; b=Q3+PkXDYeD9CLqmIjezo1L2t8TrNstGT2Duf5LShyIoKwV4wd+vsQ0fBWeu/Gn0mtj I6Bv32eNNnqTRZ1qJ0CCf/faola45+ZwoUqtQek+tyEis05vg1oohHaSFmEj7yqrLNF7 L2vLpeBYY7aqFG2ZazqHkTdeY2HkhY7vM1MgtkPcimFB+q1BUQd4CfD5mIs1qCa+JujL nrfhBS7NYWvSfgBrRiTzj53Kdg5rZ2RYLajqOIrotT9Tf93q8uccTDAzm6Mka7Cnbjc6 uD2ig3Gn4/++rSzKEyyZl4HBylvdt6ME+SqkovOdhVu9E4kjSdCZmB76+qym5B+9QCcP O9mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=jW6EgVzQUaQoLb1vz2iTmsqFo+thhXthmccLpVlE5zo=; fh=PjTnxV5NE80CaeuvIvAKKEDHo2Nd+YEV91DXqx51ZC8=; b=JKA1/ulP0c5HHIud0hykMVbEPnJ4FLFzNpBhrWTMo5ELboNnNiD9KK/UrMcj/+y4fz HpMTZhgfdHgh6CtecAlE2lktLMIG0ojfxuF5B308wcfF6eTurkslq+JkydKveq0qP1pD 6n0/C6G7Q4L/doMh13vR26CQ5Svt4CI7WwXIF9Cqx8Sk+F0E0jne+vi97IzlGRucBT9x 6KAgFnA42nl7QDLCWabpDm5WnmXbgvUdgKf5E5gc0qsLIfGz5LM1JH2pcULAxmJF2w2N BbIoIb7LO1mKETVPYnQi+JbO1JzvOHK2Mot/5DI319eWEvDB46dn0BouOSm/+wCOHNZh ZHEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=UKmgqObc; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel+bounces-25813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s24-20020a656918000000b005c6001ec190si8813844pgq.892.2024.01.15.01.42.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 01:42:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=UKmgqObc; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel+bounces-25813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 469D8B212BC for ; Mon, 15 Jan 2024 09:42:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1FE1DF41; Mon, 15 Jan 2024 09:41:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="UKmgqObc"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="tvMa7edt" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E1A2D2F5 for ; Mon, 15 Jan 2024 09:41:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1705311710; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jW6EgVzQUaQoLb1vz2iTmsqFo+thhXthmccLpVlE5zo=; b=UKmgqObc2reVuU1aNJMeq5PbR/Q2+mVvQf5zbtNYEJlXVynUBzUtnRNTgu+u0ejC2LUh2G G00nUugBK6fuVikytVStJQMpkhWs+0rXVUElI8pxBnLgsIpAjXAGpEgLMnibzJvT57w5ZZ OJLVgkE0Kzfy/rDfFMneTVI1kBJIpmAcI0of0iZthB/OuAQlSfm1ifbicWEUvrfuPEVFNn DbGbHkAQ6Ur2PQU2w674Nm4tveLLxPF0kI2lTzaAzPvZOCQjqDJgT1okLl6d0lHWy172xj nWsPnlCNu0LqQZ0Y3QOyk6XFJp7WJVCW0c8uF+pRcELkJ14KP/paW/rH7x447A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1705311710; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jW6EgVzQUaQoLb1vz2iTmsqFo+thhXthmccLpVlE5zo=; b=tvMa7edtUMlBU2C77nC8PnxnizfC6UpwzAW3+5VEweD5czsZcl0lHLuBEUG164X7+ILAXf Fhjg/TXUGt67uyAQ== To: "Zhang, Rui" , "Brown, Len" , "linux-kernel@vger.kernel.org" Cc: "jgross@suse.com" , "x86@kernel.org" , "arjan@linux.intel.com" , "kprateek.nayak@amd.com" , "Tang, Feng" , "kan.liang@linux.intel.com" , "thomas.lendacky@amd.com" , "ray.huang@amd.com" , "andrew.cooper3@citrix.com" , "Sivanich, Dimitri" , "paulmck@kernel.org" , "Mehta, Sohil" , "andy@infradead.org" Subject: Re: [patch 37/53] x86/cpu: Detect real BSP on crash kernels In-Reply-To: <365568d9441d74516d0bfb802018ee0943b1b94b.camel@intel.com> References: <20230807130108.853357011@linutronix.de> <20230807135028.381851690@linutronix.de> <7443f3200ef0be756566059e8c9b0657f3cefcff.camel@intel.com> <871qarlvub.ffs@tglx> <87y1czkdlg.ffs@tglx> <87frz5jmnl.ffs@tglx> <87a5pdjk54.ffs@tglx> <87edemimrj.ffs@tglx> <365568d9441d74516d0bfb802018ee0943b1b94b.camel@intel.com> Date: Mon, 15 Jan 2024 10:41:49 +0100 Message-ID: <87a5p7gcgy.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Sat, Jan 13 2024 at 07:35, Zhang, Rui wrote: > On Fri, 2024-01-12 at 16:39 +0100, Thomas Gleixner wrote: >> It brings the effect that we can detect when we are not booting >> (kexec >> case) on the actual boot CPU because then the first enumerated APIC >> ID >> is not the same as the boot CPU APIC ID. No? > > Right. > I was thinking in the way this patch series does, which just compares > the boot CPU APIC ID and the lowest numbered APIC ID. Yes, that's obviously not working when the lowest APIC ID is not the actual boot CPU. >> I agree that MADT is error prone too given the fact that not even >> Intel >> can get it right.... > > For this MTL, I can raise an internal ticket to get it right. > > Are there quite some platforms with BSP not listed as the first entry > in MADT? > if so, we still have to live with the kexec boot parameter? :) I haven't found one yet, but you might look through the P/E systems to get a picture.