Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1150386lqb; Thu, 30 May 2024 01:30:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFhDjWIjvlFqjFGr6MSU+En3sVKsXm6GqjOIiadlWEpFIWKHpBIiuM1/49YZ/SbmXV/m5TF9IforKh58u70pMUyIHNroh6MUu3Vrbyiw== X-Google-Smtp-Source: AGHT+IGXLDDATh8XJLSfJi/+1H0x+2MLesRGS1s354JySWWX606n5abZXFiiP1XYvtswhNC6BIc2 X-Received: by 2002:a05:6a00:27a9:b0:6f3:34c0:13c9 with SMTP id d2e1a72fcca58-702311e37e9mr1357011b3a.29.1717057823219; Thu, 30 May 2024 01:30:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717057823; cv=pass; d=google.com; s=arc-20160816; b=ATcsPY3HCWE6r9thg3CCctM9riwopmWm44xwZDIj4vhRBWjWPQfrkbPwpDbB3Rxw+Z ScsN/8TnTTPMQIH0jPCL7AWZrrSXZiVpnH/XnBh/7Ouw8zr4zOMY9cVj591gb4Arm1ep ynA1I5/yTc8dThr/k1t9zQM5/DF9ESRyHAeB6dlgYz5o0FQV4C2jP9xbvAZdHJVft4eO lK+s7bHPK7bRuAn3HDGvjGQayvzS6pME1Kv6r42H3Vs2AtAqvxi2xhf87FII/JmzQRDJ TSwOIFO9EHYSrX4+OCezDg2hiU9y8fW+r+pWhEUhyeaFyz7dWUy3uH8KxQv4RuWIGypN HWgw== ARC-Message-Signature: i=2; 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=wPLYtheb57Rblm9GDh2pb6WDY4geRPaBbhxs9rtzT8Y=; fh=BcVcGina2nBMs11Vn/xTZYZTdWbDfuFQHT71XvA50qw=; b=e0S741kN0MoFoSS7FabKJ2pN4SErM1alTpUX7gf3O6R8g6P6eXI9HQck/12FATny7Y DX2kIY9VHcibE2OvRD/Hdmcro5vkBOcKju5ZmGhbA9cV56Vcac7dssL/EnPkVSGdBWFH 6yRXGRUeK36Dof3ijTl9JSeWui1cG6/q84/H1KRU8wR/YXeQuoHtnhnSg4/k91jzVYYf nO1XLZPT9PN1sDbn8nfGVx/SIs2xQ52V1oA/93W+6A1hIb5LJAXbP79p8wdlkB6Woxgq 2uHlKP8ABmTnd2vGj8/K0lYrDDsI+FlQpKRPbtTKOTQ8J0TORxTei4YuTcJCLoybe1+L e8fg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=KLiXbJ5k; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-195065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195065-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-7022fa9a1b2si1215003b3a.58.2024.05.30.01.30.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 01:30:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=KLiXbJ5k; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-195065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195065-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D67A7285168 for ; Thu, 30 May 2024 08:30:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50C2415219C; Thu, 30 May 2024 08:30:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="KLiXbJ5k"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="9gO2GsiN" 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 13F7E176AB8; Thu, 30 May 2024 08:30:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717057815; cv=none; b=svVDW8tpQe9iDRNBPAZwXIQPhGB/QYS4MzBtXgu9esZaG41Sa0bD5ZE64RxBjYYw/dU01uK8r1Sc9p0K5siMbMUkRrGIlmemZVAaoKtf1DgsINrrFPiUAyRiDWAHXrBgJYxpjTM2L52g+5ZWGNlZ9/3kOy7E4DSE8DzEPMpY3mI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717057815; c=relaxed/simple; bh=MvdkkCKPSepl91Y7804RHqMcNOXEkytlMBE1ugKuISI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Vk+JEnINf+3Cn6S6T8lPiNXD1nnHm1HV8YSGd6M8cQmSH8PxbaxqxcLlw01MhbiK4yqDBjk9rJNXtmMp2vTfOxpvQHsIRO6Jx32Ltu4UJweTIQXi30VojOxW/hVb7gwmsU9m5PfTx+cciXtWW6PQJmAKNePUPmSGRUkVWsoMoKg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=KLiXbJ5k; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=9gO2GsiN; arc=none smtp.client-ip=193.142.43.55 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=1717057812; 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=wPLYtheb57Rblm9GDh2pb6WDY4geRPaBbhxs9rtzT8Y=; b=KLiXbJ5kVOu3neydHnHQVL+J8kVUVKtyY8TxS1nD9omXKtTUWM0JyIb0h9gB8lULE3IvGn UjAzYScGJS08NL0WEoUgZfF42H5kD+3qSASisrsIyufFWT9qdkYvLLlbhsWcx8XeJ5txUs IzfSHyPS6wZtkfZuqoKn6oUQpomf9GCU8mTiAdW8K6b1FDXEz3KxJDygooUV1k8FpsC3Kj DEzEAQmvzOEzw5hWFosu2o3r/QaVG+626sQc4dlfH+tceb5tHcUas4Hh+gvLmR64txHmWa 5VxU/rYiw41OEClVVK4MCwwjkdQmld4Y4Ddrfd0+LcNwcbA8koKnpN3xu6FfaQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1717057812; 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=wPLYtheb57Rblm9GDh2pb6WDY4geRPaBbhxs9rtzT8Y=; b=9gO2GsiNU0j80SYgjCU5ZMvX9PLfCkhd8juQRmDqn3rfO80GTDojdfoxa2KY0+53FX4Jd/ FYTbnDYWwPwxf2Cg== To: Peter Schneider Cc: LKML , x86@kernel.org, stable@vger.kernel.org, regressions@lists.linux.dev Subject: Re: Kernel 6.9 regression: X86: Bogus messages from topology detection In-Reply-To: References: <877cffcs7h.ffs@tglx> <16cd76b1-a512-4a7b-a304-5e4e31af3c8a@googlemail.com> Date: Thu, 30 May 2024 10:30:09 +0200 Message-ID: <87zfs78zxq.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 Peter! On Mon, May 27 2024 at 23:15, Peter Schneider wrote: Thanks for providing all the information! > I want to add one thing: there is a log entry in the dmesg output of a "bad" kernel, which > I initially overlooked, because it is way up, and I noticed this just now. I guess this > might be relevant: > > [ 1.683564] [Firmware Bug]: CPU0: Topology domain 0 shift 1 != 5 Yes. That's absolutely related. I can see what goes wrong, but I have absolutely no idea how that happens. Can you please apply the debug patch below ad provide the full dmesg after boot? Thanks, tglx --- --- a/arch/x86/kernel/cpu/topology_common.c +++ b/arch/x86/kernel/cpu/topology_common.c @@ -65,6 +65,7 @@ static void parse_legacy(struct topo_sca cores <<= smt_shift; } + pr_info("Legacy: %u %u %u\n", c->cpuid_level, smt_shift, core_shift); topology_set_dom(tscan, TOPO_SMT_DOMAIN, smt_shift, 1U << smt_shift); topology_set_dom(tscan, TOPO_CORE_DOMAIN, core_shift, cores); } --- a/arch/x86/kernel/cpu/topology_ext.c +++ b/arch/x86/kernel/cpu/topology_ext.c @@ -72,6 +72,9 @@ static inline bool topo_subleaf(struct t cpuid_subleaf(leaf, subleaf, &sl); + pr_info("L:%0x %0x %0x S:%u N:%u T:%u\n", leaf, subleaf, sl.level, sl.x2apic_shift, + sl.num_processors, sl.type); + if (!sl.num_processors || sl.type == INVALID_TYPE) return false; @@ -97,6 +100,7 @@ static inline bool topo_subleaf(struct t leaf, subleaf, tscan->c->topo.initial_apicid, sl.x2apic_id); } + pr_info("D: %u\n", dom); topology_set_dom(tscan, dom, sl.x2apic_shift, sl.num_processors); return true; }