Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3124777rwb; Mon, 7 Aug 2023 08:35:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWx70wY2sVG/3ObtVKlWLckMTcYZ2biUnrisuXJAEQzUD283ppYVj5JIHHOu5ODWBQJ8hp X-Received: by 2002:a05:6512:3c9f:b0:4f9:5196:5ed0 with SMTP id h31-20020a0565123c9f00b004f951965ed0mr7732315lfv.7.1691422527033; Mon, 07 Aug 2023 08:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691422527; cv=none; d=google.com; s=arc-20160816; b=fia0V6P01oO1EfvsPXV9EtSO3y7fiWLqSGGrVbwyJPKav8NTdZ3p8kcdSj/WEDM8Js gAvvqMe3dbsaXaG5VZR1BCimuZsYCuGOc4wF/cQmw1Ak3isTqB3VyzNLC5PxHGB11MbJ SN40HT9K8k5ShgWlpOzQaUL3H5C0YvToPkx3umT+yVKrhVp8EGC9nvxb86a8mvrXncAY xwwii/0wqXH0QNah0o7/NlckeoU9UvIOMRF3bAq8fQ6YItjvsJGLWUZGYpchsKEPRxhX 7Jw++pTfugpg4yXYmFiu5OynAZMHR5iFInP+RAuohgK0YfN1tkcsMfvS+H6Kx7+kbGfz sswQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=dWPWCeO32Ooz2qU+ay/je0IMsANVu/pNL7syLVoePSQ=; fh=g1VLX5M2a7T9lcEDq90RH+l8s9ME3Sh0K2JSE3TB+ac=; b=q642qb0e4ldwBEYyQh30UZvKzN2FjIXn5I2XRcPDGcG58T3C2Tn3jJA+Uzw1Eh7CWn rqEcKQH2MgHm4KLwte9j46TKDleof6e/3HaBBZGA6fvZ5aGufEvd8TrRF177EDOrH1Mr EFnib6616GybPYdRO0KD8hGzZnnplivk3VhmBzqhMA1iGIqAKm/Ytk4+sPeER78BAO/+ ypuKJRVPftMcZBt+VAeh41Tfu9g5t3KQb1CxdhH5F+XHPBp6F0cP2t/WXKwrcT+q0uLb H7HvRS4FCsokVwr4TTPemJSNc2sTNYicCyc9DtUNbcBJBGJ/H6I4WznXsPwNMzPW1y/W oLsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=F8UAS1H2; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p10-20020a170906604a00b0099238b86eecsi5261741ejj.566.2023.08.07.08.35.02; Mon, 07 Aug 2023 08:35:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=F8UAS1H2; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229615AbjHGOyN (ORCPT + 99 others); Mon, 7 Aug 2023 10:54:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjHGOyK (ORCPT ); Mon, 7 Aug 2023 10:54:10 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D15E710CC for ; Mon, 7 Aug 2023 07:54:08 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691420044; 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=dWPWCeO32Ooz2qU+ay/je0IMsANVu/pNL7syLVoePSQ=; b=F8UAS1H2nTThs6X6voolX/Rn/DN0B0TQqBa527ADk/LMxy+hv+Tr+JVSGV3oP5F942lWsx TN5IXwDs5OAfMpxSxLaSWzchMtZymhoSVtZqQ1gPRNYTgw+7eM+f7lwch+eNynqDWiXSZm ebbT85k/qOX9lDWbGwZqWhSxH6W+/sZ7p5OzWL6JNgJBbgOPSDSEK4e2nrLnkzbEUQnxnH tfiTAV5tTfL5rtkt6C9TyH9wH/M8UkEUwrKP7dwkz43NsX8z7YLGXxp55cbTw8ghobD+ln W5JV2c68KbgZgszeS27TI31zCUrAuES5mVb/i5eUz3q7LemhtINxqXXQ86147g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691420044; 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=dWPWCeO32Ooz2qU+ay/je0IMsANVu/pNL7syLVoePSQ=; b=uTkP1nZBwhoskT5ObsbqbZFAjb026R/rU1gA5ZqKLvpPNPe4y7aqXOXQwiKswTvHj8BfwZ nvR17JW9byOjG4AQ== To: Arjan van de Ven , LKML Cc: x86@kernel.org, Tom Lendacky , Andrew Cooper , Huang Rui , Juergen Gross , Dimitri Sivanich , Michael Kelley , Sohil Mehta , K Prateek Nayak , Kan Liang , Zhang Rui , "Paul E. McKenney" , Feng Tang , Andy Shevchenko Subject: Re: [patch 02/53] x86/cpu/topology: Make the APIC mismatch warnings complete In-Reply-To: References: <20230807130108.853357011@linutronix.de> <20230807135026.528433010@linutronix.de> Date: Mon, 07 Aug 2023 16:54:03 +0200 Message-ID: <877cq6vr78.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 07 2023 at 07:28, Arjan van de Ven wrote: > On 8/7/2023 6:52 AM, T >> >> --- a/arch/x86/kernel/cpu/topology_common.c >> +++ b/arch/x86/kernel/cpu/topology_common.c >> @@ -176,6 +176,16 @@ void cpu_parse_topology(struct cpuinfo_x >> >> parse_topology(&tscan, false); >> >> + if (c->topo.initial_apicid != c->topo.apicid) { >> + pr_err(FW_BUG "CPU%4u: APIC ID mismatch. CPUID: 0x%04x APIC: 0x%04x\n", >> + cpu, c->topo.initial_apicid, c->topo.apicid); >> + } >> + >> + if (c->topo.apicid != cpuid_to_apicid[cpu]) { >> + pr_err(FW_BUG "CPU%4u: APIC ID mismatch. Firmware: 0x%04x APIC: 0x%04x\n", >> + cpu, cpuid_to_apicid[cpu], c->topo.apicid); >> + } >> + > > while these messages are basically the same as current ones they are short one key thing for the user > ... which one of the two will be used. Yes one can look up in the source code where the message comes from > and reverse engineer that... or we can just add this to these pr_err() messages > > > like > > pr_err(FW_BUG "CPU%4u: APIC ID mismatch. CPUID: 0x%04x APIC: 0x%04x. APIC value will be used.\n", > cpu, c->topo.initial_apicid, c->topo.apicid); Good point.