Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp287548lqo; Wed, 15 May 2024 14:44:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7iJQAgfhdvrMPi7vwIkJBX7ubif2WeZIVs0k2qFXetQsqaZ1OdXez9O64VZ7CSLLxZnI7DdScLz/1ntmWZt3BmCWTffBeHh3uJMFmbQ== X-Google-Smtp-Source: AGHT+IGMBZapq4vkh2p+MuS7Jg5pqjyCLKsVHX8d7PuaMkXgyLZxViCvjcLgFjuzudYdsF35QoSA X-Received: by 2002:a05:6a21:3949:b0:1b0:111f:2b7f with SMTP id adf61e73a8af0-1b0111f2d11mr6337824637.39.1715809454252; Wed, 15 May 2024 14:44:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715809454; cv=pass; d=google.com; s=arc-20160816; b=fF20to8L/MzNZkhuCWHAQzMLWxixIDtEkgeiGsireF7MuY6X1ACvNfxfC1MAnU2g7h LaHOQ+mnoEtMJE4n5YmOnqz7ahVelwLaG52HLgK4lGhT6bR458AmUbZbKvI36DQfl8w1 rqTGtnlXsb+nfvQhQOcoE096VU2XAbgHNeB25rXNlHLnNaHb4RxHo/pMOF82zVogvZJJ 0SrhxtJ9du3Lv4+S7yHLnTH6FP41rQz4JizrkP/n1l/ZQJSgFik7eM41U1Oa9FKtH8TK bzOwaFle8rRsVe9uTOQo8nD+1eW6QtnfI36eGKb/On+qzesTeTTW+fHuHoybrJIGN/Zo exmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ZOUgxE4PQ3Pdz9A/CtcXuEcew3K+oBJYNbtdQY7P2ok=; fh=DuYJY5z2/dpOGIkANn2OpZsisqkLrfBvtC6gNTNKJ6k=; b=UJULzgW7nCQB3PNtp1evTGhvgmPPUVH1pKIIENxQ4QShbbRqtZrNtc6zubXGM4Gqoa 9CJeQ892nrMqlCQRET0jubQYS4IcjPFyntIviFeJZ8UTkM/Qg8cQVtyen6zS91UOyP4j 2CIuN5TVf+m220yX5ztAa/7W0aD7ZiMmBSOVRfMrA3fFB1gT/nQFlnz4ATJEpBn3P6rw 4jsSmTdPsj7Hy2WxIcAp41GWqAUEf+ri1fGkTiPdyDPZS9lHA9fixUqCWQjxMbuS9UCN g7bmHSXIeUYD2cGRlUNeNxMxMqsVI7r16oyzEGmWnNT8gcqkmVCm7G+bE2K6MGpkLZ+z Rqkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VXz+v8EP; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-180397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-657b33f9147si918913a12.631.2024.05.15.14.44.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 14:44:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180397-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=@intel.com header.s=Intel header.b=VXz+v8EP; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-180397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 C82972839B8 for ; Wed, 15 May 2024 21:44:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DD7515B553; Wed, 15 May 2024 21:44:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VXz+v8EP" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 F3F011591EC for ; Wed, 15 May 2024 21:44:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715809447; cv=none; b=PjS5bmByIP+CS9Uhxia622BVaVUkmsBVc39RCi/C0e2tGM6VrBvUzNX1SP9kObzrOEznz20P0mJs0rldyOpBLZlsWo+QbVO8zq7RiK6/FBuGiZcvPuwVZL8KtljGoSksAR92qdbcDs5q36FCdkwjM+FZ1zmOV9PrJ69+kWefqu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715809447; c=relaxed/simple; bh=5qEbwkLcOrEvBA+Jfj2Sig7VdcHS47eVtQcB3Ya+vhA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=quxy7cgwdBPM0H32e3g0l2TFNKfrYIy4R6JG/rv1OONadvRhCPifrR0wY4wQbkCWBgdGBL6FSv2+1md/K/DzXBeSQb+NQ73tQNw6uFuw3UDU3zZWwn+rtjxMVv0d6kvn2R22OApqxWoAiuBseEILLP5WMYXAiAlgXXMm+A3znn4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=VXz+v8EP; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715809446; x=1747345446; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5qEbwkLcOrEvBA+Jfj2Sig7VdcHS47eVtQcB3Ya+vhA=; b=VXz+v8EPpngZBgJNZZVggACf/ll3vzq/T6NpVa9gY2LNYoZkF3Qmi8z0 zKevjhmw6Sam+IMed9JXH8a3wdRLWTnqu46Vng/zirmQxoYO8ChNOSvyu eVH+2yUloXodxmCo7yUHucUHQjPRSPT0P6UO09hLO50uaBARoI/LMpCyr Cr4ZnaNl/JcgPihgLwhxVG0jV49twEThmoCehwGOeDnojhgqKwOlPuZiR rkY7lxdbgv88Bw9WovyXkROKeXBIt6i+kLh+zuf8fVyE2zuhEKPyA1uLq 1+8abVYtg9/C5LCY7EYjeG62DCqsvxMexGMjXsR72KVKgeLYmuLc3n3UJ Q==; X-CSE-ConnectionGUID: AWb6eLXTTcea9AfPDaISKg== X-CSE-MsgGUID: jiN3dK2pTlC/KsgNDu7C5Q== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="12062139" X-IronPort-AV: E=Sophos;i="6.08,162,1712646000"; d="scan'208";a="12062139" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2024 14:44:06 -0700 X-CSE-ConnectionGUID: y+PWi6rLQryn5aDZO4Uggw== X-CSE-MsgGUID: t4cKo+MIRHKBGvkLVjhNHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,162,1712646000"; d="scan'208";a="31253888" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2024 14:44:05 -0700 From: Tony Luck To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH] x86/cpu: Fix x86_match_cpu() to match just X86_VENDOR_INTEL Date: Wed, 15 May 2024 14:43:57 -0700 Message-ID: <20240515214357.73798-1-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There's a wildcard match in arch/x86/kernel/smpboot.c that wants to hit on any CPU made by Intel. The match used to work because the check was actually looking for any Intel CPU in family 6. With the change to ease support for families other than 6, this wildcard match failed because every entry in the struct x86_cpu_id was zero. This is used as the end-marker in arrays of x86_cpu_id structures, so can never match. Failure to match meant the logic to detect Intel Sub-NUMA cluster mode didn't operate and there were boot messages about insane cache configuration. Fix by changing X86_VENDOR_INTEL to a non-zero value (4 was lowest unused value, so I picked that). Fixes: 4db64279bc2b ("x86/cpu: Switch to new Intel CPU model defines") Signed-off-by: Tony Luck --- arch/x86/include/asm/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index cb4f6c513c48..271c4c95bc37 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -175,10 +175,10 @@ struct cpuinfo_x86 { unsigned initialized : 1; } __randomize_layout; -#define X86_VENDOR_INTEL 0 #define X86_VENDOR_CYRIX 1 #define X86_VENDOR_AMD 2 #define X86_VENDOR_UMC 3 +#define X86_VENDOR_INTEL 4 #define X86_VENDOR_CENTAUR 5 #define X86_VENDOR_TRANSMETA 7 #define X86_VENDOR_NSC 8 -- 2.44.0