Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp611082lqd; Wed, 24 Apr 2024 11:22:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMzjiirTpc75IcjNQV7sxrr73/Ll8ICPXhVTYY7aCifyFensjk0Fva+J+HxT7oo21HyzNjO54Y6DcJ1nKgbz8dzmIbiv0SVq62a94UOA== X-Google-Smtp-Source: AGHT+IH62qgWji10whkRas+WwUqKPpYJMpydwQikPCik5YevNGLd7lj9BEQak/XmaXWWNmAq0fXw X-Received: by 2002:a05:620a:4589:b0:78d:4a14:b307 with SMTP id bp9-20020a05620a458900b0078d4a14b307mr4639625qkb.44.1713982965560; Wed, 24 Apr 2024 11:22:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713982965; cv=pass; d=google.com; s=arc-20160816; b=eJV9GRpeEQKDbGhqUQpLbbO/j/baZE5ynMI5ojOoT4islYw0Em/700SAgmSDQRHN2v S4cQpULeDPdlbWWAwfRzUpwC4eUxIc2h+vuA3v8iv+qI7ytLFe3MClzOBxiZYO48h++i 9zqt0C86QVLulialcFkRHYGkxQ+zdJd7tf+oezX/pqYqCDC0cMtG6hk1AA3PWKGKcK7J i+E9Bm6SxMeccu5TTzoDJHAJxEwgSepZwlsj35txOif2NKi1vRdeckb3ezwWsRzZvmEi a+IlebMehatotPfpNrs91imH0OahKy8Bx7CZgPBpnGnWhuBoRNau+Wg1zGA9/fER5vzv 29jQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=1bBl9H8VPdgcATdOkbfosvW2KhHghLIhXX05BXULrhc=; fh=u2VOD+NJjo1ddas1xlfygQ7ilPw7Ep/K6rZm156Dl9k=; b=jL7kVXhfAnx+d6xArG10NxH/gxE3noMnKA83sUv4AKtnzfy1x7Xstph1Ev9Mib0ytI x7WNS1fP39y4KqJItyO3yPRyBNi5JqpbazOWm6K50k45jRkvjnRo7GYZZFbFyWpqEoLf TJGVrBRxol1Rxv1qEFEJwrQVb/XOYfxVdb9Gp2S5ZzUdM34q1hGi/Q7QNJujpstjbpIA pbc8a8A3ufWdef/+xHYHIvXqd9DKntRscLoCAeNLTsOkOYKJIivEUnneCcoct/+wGp0H UcMhVf3Ap3GhEoQKWmL0jAnbQZ5U9KOlliGUmhS7sTk5FJbz23YEpSXy6+nSsGzWvHPh x/rA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U8SoRNU0; 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-157488-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157488-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ou28-20020a05620a621c00b0078ecdb3c832si15077297qkn.781.2024.04.24.11.22.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:22:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157488-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U8SoRNU0; 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-157488-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157488-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5C5431C22FC3 for ; Wed, 24 Apr 2024 18:22:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B42D199EBB; Wed, 24 Apr 2024 18:15:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="U8SoRNU0" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 C15101836E3 for ; Wed, 24 Apr 2024 18:15:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982527; cv=none; b=NZfqqTupC5HtNSNgiOjQ6p02X216Znkygq+EuDHIThZcQ7MFJGE7QWe55cpRGASJ0SRfkpV4cj4bvGoDSzDElwQh2JuAXCBSeO6pVySAII0KIs+DTyhlx//6UhUgl+lHbaPi6wrJMEiYpdnyjuf2dWhzMm3hOZX+l/W/XMbN2cY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713982527; c=relaxed/simple; bh=rbO/n0ZcIOAgbilZJb15Crb7LJz39zrSZlFzfUY+p5o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LGB57w16kj+zRm/vHYjlhUjW2dnflgq0pRe9qIEZClgHNwK8zItFMQ3lozVJrxbix8oce/piIjpEwt0saXXuWLWZEK9gNHhIfLXACwXR5bZ+nmvoJIdmLlPqWiluVkEY4dJqKQMWRBZXXZF38h43+6cW4byAEjqOqu3mdN9vaSg= 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=U8SoRNU0; arc=none smtp.client-ip=192.198.163.18 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=1713982525; x=1745518525; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rbO/n0ZcIOAgbilZJb15Crb7LJz39zrSZlFzfUY+p5o=; b=U8SoRNU0S3JcAbfUG0Rymof+sr6+YA4HsYKRflfnE1y56ahsaCZNKokK iFhyeeqyjTAg6e4jGHKJm3JRxTO/KEd4KLtkIn4M2EKmUSfD9g6n+O8dd h62+ZPfG+OW50wvA3ek02heRwfGOENU7Tz8U53nc/lFgfNC6KfEG1ZABL +JCxyqgPrPLCpdTfUYnAe9dgdJ+x1CPDu3oULxx9qYa0ossQ/2yo9Fhpz 4A54A0yQwhB/6FLB20PvyO+j34FNuBqkusgqd5krLHO2OHXhFLTTAUsw8 nSL5knNUmk9kQs9N26PO25tNqrUfCnIN4lBZw1g6iGuKVSgF03rUWWbq7 Q==; X-CSE-ConnectionGUID: NN+MYepwS36Vp14L9mDYFg== X-CSE-MsgGUID: Z2jM0IV8SJeHqwiwYzAbMw== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9482031" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9482031" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:14 -0700 X-CSE-ConnectionGUID: tbjZvTI6QoKjNbkICFGz+A== X-CSE-MsgGUID: hMpfnLJBRtKz+nILQ8lYYw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="29262768" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 11:15:14 -0700 From: Tony Luck To: Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org Cc: Fenghua Yu , Reinette Chatre , "H. Peter Anvin" , linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v4 36/71] x86/resctrl: Switch to new Intel CPU model defines Date: Wed, 24 Apr 2024 11:15:14 -0700 Message-ID: <20240424181514.41848-1-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240424181245.41141-1-tony.luck@intel.com> References: <20240424181245.41141-1-tony.luck@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck --- arch/x86/kernel/cpu/resctrl/core.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c index 83e40341583e..19b4fdb94a36 100644 --- a/arch/x86/kernel/cpu/resctrl/core.c +++ b/arch/x86/kernel/cpu/resctrl/core.c @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include "internal.h" @@ -821,18 +821,18 @@ static __init bool get_rdt_mon_resources(void) static __init void __check_quirks_intel(void) { - switch (boot_cpu_data.x86_model) { - case INTEL_FAM6_HASWELL_X: + switch (boot_cpu_data.x86_vfm) { + case INTEL_HASWELL_X: if (!rdt_options[RDT_FLAG_L3_CAT].force_off) cache_alloc_hsw_probe(); break; - case INTEL_FAM6_SKYLAKE_X: + case INTEL_SKYLAKE_X: if (boot_cpu_data.x86_stepping <= 4) set_rdt_options("!cmt,!mbmtotal,!mbmlocal,!l3cat"); else set_rdt_options("!l3cat"); fallthrough; - case INTEL_FAM6_BROADWELL_X: + case INTEL_BROADWELL_X: intel_rdt_mbm_apply_quirk(); break; } -- 2.44.0