Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp340473lqj; Sun, 2 Jun 2024 00:25:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQCNob9Qbg+FmLVnjG3c99mFpnm6DkqV0d+J3/1DJBM5I2L+3nk9Y3cfTi4BuF4PczmO7ffL2Ml6zHmgfR2+I80jcBW7TzdDWz1d2kaw== X-Google-Smtp-Source: AGHT+IHwOqETTIbpp+CfL3f2//gHwA4SE3BdTCeybjyrWsAxOW6OpAUPfFoBlBYR2181hHrbWw3s X-Received: by 2002:a05:6a21:61d:b0:1a9:c4cc:721d with SMTP id adf61e73a8af0-1b26f28ea8amr5177669637.57.1717313156252; Sun, 02 Jun 2024 00:25:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717313156; cv=pass; d=google.com; s=arc-20160816; b=QRgh2D0k9/BFQZfpXJFbGfK+gc+Z4gZviSH8o55NfsS/QjuZxYZq5/3j9h/QbYf0vN 5sAd7jstUALiZN3y/ealwnbTsktjHoqImR2NCmv+QcKcYVsApS/JnvFpRoLqxqxDwjA4 wqyvsmsL4H1z4meWMjaYSMHfwd4+QtBTL6Ae4rTPa7YkE8+Np4OAwWLnDw2879OyN+5H rQBsfmIofpx7E+jzFG7SjrgiflI6DOVchza1EOJL2/cEZW7DUlrr502HW9cIY1VcKh4h PsGs+NOzjcsebJC51A0nPktICj2kmqZbEv5RZhcpJZ+QJ9rcVXEafxeRdy1/w9RDniY4 b8uQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date:sender :dkim-signature; bh=TsxbkRuE7YlKGK2F3uej8fyXODYWogpkK3Wcg5zOdFg=; fh=UANtPEHvdzu+w/ugxNm2NYr4kSF2sDiQ8QW/5S+EVYQ=; b=l+dMmMFpzUX1qL7iXEUZSOsn8vMOkm5a058r1XjT6ElypeI9prwoQ6tgQdTWw0YVcW 78E+cD1MS2dWDgGLWeqv/5fvnakyexJWW3DwBY2UCghAFMrlGpKkcZuq2wePON5AIN10 ZXcJxL9A9w6fTAO53N8qPjVeQK5PBbBYRl7KjhBqS/BQKx/ybW6IyevkqbbiyrxqTqDm XXrV8xiWVd8z+a5uJZhMhep/WiIY5EfUI5LRtyzdFjUep0kVvo45Qfo3HUV0l5aUNvNn mtOVb16jkCZozekygRZ7u2YvECtSc7YeRCE/5OSHfnWsGsqpxKO2+zVwqbpuXKcWMvYK CWDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DpCpTc20; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-198149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1a776aea3si6472760a91.19.2024.06.02.00.25.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 00:25:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198149-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=@gmail.com header.s=20230601 header.b=DpCpTc20; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-198149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 6A8E0B20F8D for ; Sun, 2 Jun 2024 07:25:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCE361CD06; Sun, 2 Jun 2024 07:25:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DpCpTc20" Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CDD1639 for ; Sun, 2 Jun 2024 07:25:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717313145; cv=none; b=ZZJCnAzEe2+X24oxjaoDoggR6EIq3GjaTlWMqtg3w4reI164/JIJDFRmMMcFxmjSaSfG22jR/jyZBpTYcCDj/1SdjJgSO+Bl3tMqTWXOsQliQu+s9FLJ3LKlfQQLnUTZW7ycOPdpZEU9IoZa+q1/0wDxaEQnuTqXLuTiaPhMSAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717313145; c=relaxed/simple; bh=7WD64i0+k7wzrdv9SPMsVhhFAKaO8wTNQRFiydpM9fg=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=s+yDvh35oWTrcs5QvHI1pnhOZ/Z7fxAWgKaWsBmbZcWXK9Mv3Ho8pY/068b8qMxf2zEvbiE4GUUYQF6Z2fUJvTF2KL6rQJEC03HAdC0Q9K5g3C7J4habWazkAp1aYlyw47w2MC3nlTJ9SoCU2oOFgG7hiP+QJhoX4OPlABACNyw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DpCpTc20; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-35dca73095aso2751705f8f.0 for ; Sun, 02 Jun 2024 00:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717313142; x=1717917942; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=TsxbkRuE7YlKGK2F3uej8fyXODYWogpkK3Wcg5zOdFg=; b=DpCpTc207MJQsp9K0ueRGlXxK9g+gmQbqbXuzIZTPnIBretI9nQlhugC0mA2cyHgYs /070a4mcNq86f3oLwT2Bl5CXUsUp/5DBaJg5Qi9aWzFn1UjrRqtJUZqXwi3+yXnyVztr d26Qd/yIYa47vHowjGjDwXMJLfEVuWCSeEfMAazhqyVGFVVfNoYemv6BQ2elWgByccXu yPsFdBsJtdO/3tjBm1vfIKfNDqXd9JkPwZAgQ/a09Q30z9o2o06eAwqdRFx+j6QZCJ0A rWr6ecsWjmyIxX0qSyfEJ8lOIX6exvsi6YdROBmnvb315zd3omKnv4Q2pjOsUyCSG5ja WFfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717313142; x=1717917942; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TsxbkRuE7YlKGK2F3uej8fyXODYWogpkK3Wcg5zOdFg=; b=q7I7N9X2EyiL25qmmxgi+c04HEjt6km6Oa2C7nZvCuXHLfzkOGmps3rW7mH3oBBlG7 hxzzMPJKdTb1gcWTpQrRCHYAgTYpfoxeKZo0T4TNvWTo+Ck8AA2gcPom3JAOW/sZSxsC w268dZer/jUHypf/FPbnvRPXI8SubevfAMLvKAB7gSTknoMslTchV/8jeDGuNYOKOxeq pFVrEyzSvBKrW5gE5fSVH03KRdB8nt9L8EsfBmxmteGCt2E2sNJ718t99QuvssMQ0kSq p4vpONDIqpFUxJZ8YVLngKXfxm2KXxIUdpdQ+u0Nac7p3+YdgULMQhfGQ2eyu+QgB/E0 G0uA== X-Gm-Message-State: AOJu0YwM9snMP72PUZa5YwCo9LurfVuqo6zPliMMFZsYXWk/PnH7sXD5 /NpXyD0SeT7zWKBkZav2T2UHiRU+m8ps+7YWY1W2kVdXocz/NWY9wOocFAJg X-Received: by 2002:adf:ef11:0:b0:357:39e7:33a2 with SMTP id ffacd0b85a97d-35e0f27276emr4215784f8f.21.1717313141485; Sun, 02 Jun 2024 00:25:41 -0700 (PDT) Received: from gmail.com (1F2EF2F4.nat.pool.telekom.hu. [31.46.242.244]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42133227f8asm55626315e9.19.2024.06.02.00.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 00:25:40 -0700 (PDT) Sender: Ingo Molnar Date: Sun, 2 Jun 2024 09:25:38 +0200 From: Ingo Molnar To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Borislav Petkov , Dave Hansen , Peter Zijlstra , Andrew Morton , "H. Peter Anvin" , x86@kernel.org Subject: [GIT PULL] x86 fixes Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Linus, Please pull the latest x86/urgent Git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-2024-06-02 # HEAD: 0c2f6d04619ec2b53ad4b0b591eafc9389786e86 x86/topology/intel: Unlock CPUID before evaluating anything Miscellaneous topology parsing fixes: - Fix topology parsing regression on older CPUs in the new AMD/Hygon parser - Fix boot crash on odd Intel Quark and similar CPUs that do not fill out cpuinfo_x86::x86_clflush_size and zero out cpuinfo_x86::x86_cache_alignment as a result. Provide 32 bytes as a general fallback value. - Fix topology enumeration on certain rare CPUs where the BIOS locks certain CPUID leaves and the kernel unlocked them late, which broke with the new topology parsing code. Factor out this unlocking logic and move it earlier in the parsing sequence. Thanks, Ingo ------------------> Dave Hansen (1): x86/cpu: Provide default cache line size if not enumerated Thomas Gleixner (2): x86/topology/amd: Evaluate SMT in CPUID leaf 0x8000001e only on family 0x17 and greater x86/topology/intel: Unlock CPUID before evaluating anything arch/x86/kernel/cpu/common.c | 7 ++++++- arch/x86/kernel/cpu/cpu.h | 2 ++ arch/x86/kernel/cpu/intel.c | 25 ++++++++++++++++--------- arch/x86/kernel/cpu/topology_amd.c | 4 ++-- 4 files changed, 26 insertions(+), 12 deletions(-)