Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp826508lqb; Wed, 29 May 2024 11:36:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrxgfK+3nxmQwAVmC3xw5vUEBcVIWTpyZU0K0XNV0sESICklVPqcTG0IDE0oBuaKr2S6U1zRXJ+4bLKD8LJaNZ67pk5Ql2KptnW64UEg== X-Google-Smtp-Source: AGHT+IEr22wk4Bp8qpZwoLbWdyk6TRp2iN678WCR7XSrTD07sc1pWXXvA3ULfFnLA8MDK5DLQM/Q X-Received: by 2002:a17:902:d2c2:b0:1f4:7e1c:34f5 with SMTP id d9443c01a7336-1f47e1c36f7mr181211515ad.63.1717007804032; Wed, 29 May 2024 11:36:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717007804; cv=pass; d=google.com; s=arc-20160816; b=pDOAsOZcN1Xn/hLqX8LQbB5Lktg6CpUw37FpaSC3Y1jO3LkN2TXbHkU/tlsChgE1FB iNCiQCnQ56dXsj3MdlVhVQKa2Vk8ym21eNY9DbBx6Qqu+SotvGE544YEv+vQ4WsiB6Lo 03v+jvIouig1cViahWCUYpzbwhr6ZkkYfzPX4pKhgTC5jBX43g1ppFjdh5hS6WC9ypn7 IH4gBnjqkijqOGXJXQMViQcsoc/3i5Fj1d858hHkggwE9aPyPTkkBO2G2bFrvaJaw8SO c6R9b404ArkreHUz57P1fEDW+4yo4QhaE/UuKzYLecoBjKdtliqaa/qIlXs6GzuZW4Pa 7u5w== 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=IzU5m9p0hW+uIvBBACeY6l1fdcE0COmEg3DhD8s4LKQ=; fh=KmTbZnj1xllfeR+4Vqjfu7cHmamfBd7aWmtTjOzryHc=; b=gxRKfRvVkwEo1G/hIkiJIxcNcI9aSpwxrGVjYUxjLMoSUu0Ydb5I2WaJjQflRdihr+ bhPMgW09gE+/3huzPNTC7/RMhdbxOSZ3q8+NQCxvi6MMm3uhD/97/TZDLJy8Lvf9r9J3 90b7y1eBuiFk7pT3bp3lzI6E8X1Zq87MIbdsHmUhIuiEqv8wllPufQuFVEDkk11w82JR A/CMzXtRg9ODGjvWM+Jm+nLKEM+MIRl1/o2EV2pfKBOcNKUAj32xmptxYM+jX/xmkt6z 09QaBxH8EesDt/tOe/E+tAHi8LCSbwgJxwUh1IrAdPjhWv1FNU3qz1V7VvhckorbmTKD FLFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@citrix.com header.s=google header.b=nKazFgMu; arc=pass (i=1 spf=pass spfdomain=cloud.com dkim=pass dkdomain=citrix.com dmarc=pass fromdomain=citrix.com); spf=pass (google.com: domain of linux-kernel+bounces-194574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194574-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=citrix.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 d9443c01a7336-1f44c97062fsi76675875ad.267.2024.05.29.11.36.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 11:36:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194574-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=@citrix.com header.s=google header.b=nKazFgMu; arc=pass (i=1 spf=pass spfdomain=cloud.com dkim=pass dkdomain=citrix.com dmarc=pass fromdomain=citrix.com); spf=pass (google.com: domain of linux-kernel+bounces-194574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194574-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=citrix.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 E4C3B283EDB for ; Wed, 29 May 2024 18:36:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 927441C0DC7; Wed, 29 May 2024 18:36:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="nKazFgMu" Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (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 2B1D813D8A6 for ; Wed, 29 May 2024 18:36:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717007774; cv=none; b=XxsdcjHaOZlaAWErr8pOjhtchTY2QRHbzfsj4+p1PLrFC8nC8KCXTgCgYvBrUUe92bsi4LMEW4TBlgaaYWvLeivIL2J+brbKv25jdETjS/Ej5DUIstAD7ON4lK00rPrsbs52c8MKMFRs/5HwGdeHi9HrepOOmGaBp0ePl0bodMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717007774; c=relaxed/simple; bh=6f0OKuDc4xwKhf8DbPPMe4W1MttTNxW/9P8EiCBR1J4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=WGd3SD0eK0cpEaZ0R2ZNpCLXX0GPO2nFgdvnNsiOQq/gGkJJAixBB8fHpAr+wsbOJgmC1mff56D7YFPxLD6wySqYSxXx/MizyvB0YkN4ebS5uU66cr021XGzQrhLsbrKa/hUbrg9NeVZHlFrX0wIu71UxULh4L11yMgy/xuwe+k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=citrix.com; spf=pass smtp.mailfrom=cloud.com; dkim=pass (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b=nKazFgMu; arc=none smtp.client-ip=209.85.160.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=citrix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cloud.com Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-43fe05d6bc9so7716631cf.2 for ; Wed, 29 May 2024 11:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1717007772; x=1717612572; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IzU5m9p0hW+uIvBBACeY6l1fdcE0COmEg3DhD8s4LKQ=; b=nKazFgMuPoVhc11uLX6HRLwRaW39cLYgdMP09MSA9t3qvM/D9KmH23ikFjmI/S6MuB 6+GPQnVu6OKQlftsBbyn4nBF5andYm5XuXPnnxR0DBttmCWTtRfEPtn63ihi9JjoAcx5 2Ul8m48F1A02kPAxWzYC0vQqjE6Q/TvqKg5u8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717007772; x=1717612572; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IzU5m9p0hW+uIvBBACeY6l1fdcE0COmEg3DhD8s4LKQ=; b=q29iLFm6SGmkihdsQllzGf2FjYHChnxz6sI/JhNIEYp/oo99FW/l53YjqH63/uLPPN 8M+2dDXBgR9z6aYnHxu04ThN0n1FHVBUAhcbpciLtwllgNeTzEQxGsupPcAlZV58SLtD 0MKbVE27BKcy+3KueJPPAdHuf2szLFzJ+qU5ZxpKEax3eJV2tZFOrE7esuPLBghuXqZA z91wlebfGNJLcskFd3H6EJ9OTP+/u3LG4MQUK0PkFX+g/LoxwpdOMrfTHXdmKDHksvsK xr+rzCaFAi6ERKHLgh737hpPJPzg36mEYzTETaz/sY81z0b4A/Fd+rjzzJPHGnOfcgRS /hCQ== X-Gm-Message-State: AOJu0YzuLOTI8iCoiaXI0LARCKwpaS5uRiZOKykprVXsTa8dOdJzw8Y8 Dc30RYArwKF6yZGzptcauV/neJWeVNue55amflVRC1Gi6VeR0fciutP70vzgijC5OPBLHTdgA4e K63M= X-Received: by 2002:ac8:5f0c:0:b0:43a:ef50:e6f1 with SMTP id d75a77b69052e-43fe92c217amr1050951cf.33.1717007771517; Wed, 29 May 2024 11:36:11 -0700 (PDT) Received: from andrew-laptop.. (host-92-26-98-202.as13285.net. [92.26.98.202]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-43fb16b792esm57101801cf.9.2024.05.29.11.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 11:36:11 -0700 (PDT) From: Andrew Cooper To: LKML Cc: Andrew Cooper , Tony Luck , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Ashok Raj , Alison Schofield Subject: [PATCH] x86/cpu/intel: Drop stray FAM6 check with new Intel CPU model defines Date: Wed, 29 May 2024 19:36:05 +0100 Message-Id: <20240529183605.17520-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The outer if () should have been dropped when switching to c->x86_vfm. Fixes: 6568fc18c2f6 ("x86/cpu/intel: Switch to new Intel CPU model defines") Signed-off-by: Andrew Cooper --- CC: Tony Luck CC: Dave Hansen CC: Thomas Gleixner CC: Ingo Molnar CC: Borislav Petkov CC: x86@kernel.org CC: "H. Peter Anvin" CC: Ashok Raj CC: Andrew Cooper CC: Alison Schofield CC: linux-kernel@vger.kernel.org --- arch/x86/kernel/cpu/intel.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index a813089ca408..a9ea0dba6f0c 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c @@ -294,17 +294,13 @@ static void early_init_intel(struct cpuinfo_x86 *c) } /* Penwell and Cloverview have the TSC which doesn't sleep on S3 */ - if (c->x86 == 6) { - switch (c->x86_vfm) { - case INTEL_ATOM_SALTWELL_MID: - case INTEL_ATOM_SALTWELL_TABLET: - case INTEL_ATOM_SILVERMONT_MID: - case INTEL_ATOM_AIRMONT_NP: - set_cpu_cap(c, X86_FEATURE_NONSTOP_TSC_S3); - break; - default: - break; - } + switch (c->x86_vfm) { + case INTEL_ATOM_SALTWELL_MID: + case INTEL_ATOM_SALTWELL_TABLET: + case INTEL_ATOM_SILVERMONT_MID: + case INTEL_ATOM_AIRMONT_NP: + set_cpu_cap(c, X86_FEATURE_NONSTOP_TSC_S3); + break; } /* -- 2.34.1