Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp423848pxb; Wed, 24 Feb 2021 06:01:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHBwXYfPVJQGDrDo+SpJ0zxzOk3kHBOlWdd2bZ/WSZcClq2JhWgPU6/Qxnn96yZNcVFWd1 X-Received: by 2002:a17:906:af84:: with SMTP id mj4mr31968991ejb.84.1614175315304; Wed, 24 Feb 2021 06:01:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614175315; cv=none; d=google.com; s=arc-20160816; b=lnctSrp6S9ii2dem7dHadIK+Ke7/W5a2Ed0Vh39eEFsV84BVL7uan/yku/VW8KbMZ1 5SwCRINE+qpUTxLOBGjBg0S+1z0BnPDnkx+GvpvTL2mCerrSf+At5+5XxZJSgraeZLkr 2geeAT5KFTHFiHkAJVaPYS+YkCQKowKU/3ptZdZsiEAZQVj7/DjeUiPh7HyltDA9wZuL unY9QKnsXCIstNO/DloiV64ZQwAIna815LPbOaqhVvHI2W6x8zIF07AIXMIX/n5IRObM Wh3sEvxJzbh84hv029FGhgRGlC1fdnCfqO8VRv/r5vNOYl+dMT5TX8xr0wCHdhe8xPLh jNlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cdB1n2zjbs7n/2wetexAMRm5kvD0Q1V5JNYfaziQxxU=; b=OadGS3kryn5QtqdrW/r1Leer7sV5IfZApmDAtewYQfOOZH40lL/oEOmbbJhP7kXAHk je0q2HEprJ16hFXf9ZSdKw3oEsgIGjzm61RFKRuIOSiEmXogUI5dcf2EiEwbhW9ZgqOx TJ3P5YJ8rUI8P7obXEqVow9VbG3dgusO7C4NI/UBvv+MV/3IuKiM7yG+XUDbxgcerq/c PFBTXwrNHBl/v9BFeIpHOc+ggFfxuXUYWCqKsRbZslTuWpTmRrFF+WVbdcSV7A++osI/ rHTqf1GxLxYx8I4GMvjDgy/69ezZ4RSBADN3Oyk+sCApaJPEIJNB/G9pL41eu1XVAG6G Px3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b2YnjQof; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si1138291edq.121.2021.02.24.06.00.57; Wed, 24 Feb 2021 06:01:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b2YnjQof; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238158AbhBXN6z (ORCPT + 99 others); Wed, 24 Feb 2021 08:58:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:58432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235800AbhBXNHK (ORCPT ); Wed, 24 Feb 2021 08:07:10 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9FA1364F74; Wed, 24 Feb 2021 12:54:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614171264; bh=TQwmV7NPb8dltdahmEF610sOO26f3WTes+Ne7T8MV1w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b2YnjQofnJ6xEd1uU26ir7Rj9KY+0oCoC61Qpwg2s9TmvGVEBcoepAF69Ab8Qze3W g8njACT9pTdZk18iBuf2Q5YK5yHZ78chu1ma8r70+pHxZeeIy2+FUn0rtlDcIDkQfZ VkfPL1q5V/z8HV8aR547u28OXQ5dgA4eoBJR02fRTgCdtqKNqP4bu5Xtb0BB/z7LUX U2s7lQT7FyntMTNsYxM9PFucLt4qVZ9XDApiDmPWNS+qkJbOXQ3JteDmP1RmVOhHs5 7Tb0kRhfTCKabxuC13kMVwneVixJXt/Nquwkk1xO1pWCC6imezrlhSudS8cyL78Fyf pd0Yo8CVtvRWg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jim Mattson , Peter Zijlstra , Andi Kleen , Sasha Levin Subject: [PATCH AUTOSEL 5.4 33/40] perf/x86/kvm: Add Cascade Lake Xeon steppings to isolation_ucodes[] Date: Wed, 24 Feb 2021 07:53:33 -0500 Message-Id: <20210224125340.483162-33-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210224125340.483162-1-sashal@kernel.org> References: <20210224125340.483162-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jim Mattson [ Upstream commit b3c3361fe325074d4144c29d46daae4fc5a268d5 ] Cascade Lake Xeon parts have the same model number as Skylake Xeon parts, so they are tagged with the intel_pebs_isolation quirk. However, as with Skylake Xeon H0 stepping parts, the PEBS isolation issue is fixed in all microcode versions. Add the Cascade Lake Xeon steppings (5, 6, and 7) to the isolation_ucodes[] table so that these parts benefit from Andi's optimization in commit 9b545c04abd4f ("perf/x86/kvm: Avoid unnecessary work in guest filtering"). Signed-off-by: Jim Mattson Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Andi Kleen Link: https://lkml.kernel.org/r/20210205191324.2889006-1-jmattson@google.com Signed-off-by: Sasha Levin --- arch/x86/events/intel/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index b24c38090dd99..90760393a9643 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -4002,6 +4002,9 @@ static const struct x86_cpu_desc isolation_ucodes[] = { INTEL_CPU_DESC(INTEL_FAM6_BROADWELL_X, 2, 0x0b000014), INTEL_CPU_DESC(INTEL_FAM6_SKYLAKE_X, 3, 0x00000021), INTEL_CPU_DESC(INTEL_FAM6_SKYLAKE_X, 4, 0x00000000), + INTEL_CPU_DESC(INTEL_FAM6_SKYLAKE_X, 5, 0x00000000), + INTEL_CPU_DESC(INTEL_FAM6_SKYLAKE_X, 6, 0x00000000), + INTEL_CPU_DESC(INTEL_FAM6_SKYLAKE_X, 7, 0x00000000), INTEL_CPU_DESC(INTEL_FAM6_SKYLAKE_L, 3, 0x0000007c), INTEL_CPU_DESC(INTEL_FAM6_SKYLAKE, 3, 0x0000007c), INTEL_CPU_DESC(INTEL_FAM6_KABYLAKE, 9, 0x0000004e), -- 2.27.0