From patchwork Mon Oct 31 15:45:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liang, Kan" X-Patchwork-Id: 13306 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2390834wru; Mon, 31 Oct 2022 08:55:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5YeMmJIGOwJhLJ/nj2FvTIMAPx+PAMKKeAb0hvlCHtqz/ZFb6ZqIOnOhrxAjb14Rg9ZOSP X-Received: by 2002:a05:6402:5:b0:463:39ab:c1da with SMTP id d5-20020a056402000500b0046339abc1damr8399056edu.166.1667231701611; Mon, 31 Oct 2022 08:55:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667231701; cv=none; d=google.com; s=arc-20160816; b=KAGy8r2kIVqbZngetd7mqw+skTj9IYV7mFHOvD2RRQ1aTirYdjOwiRJKsGQasNJcZv lGXiau3+rBMQuJ+YODjmn4tcC8SGBjltARLZWKVApU8TIeNJcZE1BY/H8VklBTtPdkkt ZJg21cJfdFLHigg7koDUJiIM3kM8Rv8nblg64yAlvmqOlYosYwHjcEIDdvNP7sJrAcOh STBOy9efXrAkLEvXhSGF3ARUHD1uErXNn/pl8eN9J2spEyP4RPLYztRHdXorbmWZMbgl Ha0ihNlQl7OrjQKH7PrgLKSp3s0FHgw9b5j1giVP+WbgkOP+JTzDZ5fXfBYeHMfgtd87 IZLA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=S/yjKx6hDEQ90A/JhkyKHzfIVLfUPPVMqg7job6fK20=; b=t0TKY73HnaBsSh0vy7Y4yj5RpQigt5/ciOv0R/P8GONOejqWn3in9nhy0OVsQlX2CL Kwwl8b/hTDcld9IMoQmUuPI49RDJybVZNmNB2WKs0BJUGukk4EHn+1mfyHjeDKtoCk2V rm7u5ljq5mCeEvXB3zUK+4FejTLPbY8Kafw/ynwD2M8L/5Okelpoj9WVhWOGJ3mh+tYD 8whVYdv9m+PFbhiPQTYcy6whI4Km20b+6aj52FI2QYlBCgY+g/Okcgr18yKeg2917mX7 IOG0x76mqmpwYIaBu12WIwrxWmmjaQx/LuWahHd9KDF18uVlD9klmLHGaEEZl3SjA3a4 E0Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IJG22uTY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a50fa81000000b004604e9d477dsi7307260edr.265.2022.10.31.08.54.34; Mon, 31 Oct 2022 08:55:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IJG22uTY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232154AbiJaPqw (ORCPT + 99 others); Mon, 31 Oct 2022 11:46:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232078AbiJaPqc (ORCPT ); Mon, 31 Oct 2022 11:46:32 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDC0312743; Mon, 31 Oct 2022 08:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667231165; x=1698767165; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Rv2BsesbFTZnwZxgyh/OlXWZDsLx5F7KNt46lUd46hg=; b=IJG22uTYerEXdrdPp2pB1kmFFfPrT/QVTQpOqZ1lgD83mUXsQdyZl6oy 8UTljW7d71AfdsVNvSS3nQAyovbtVdxj0HwwyQ5HWgLmLmCF+AkDNM3vI 3WRtWDuRCl3xnWljmI1Xug4PHB3U/3/eP17PEXu0eK6qNojRtEtdSdxMP F4k7q9Qu7Z4rGFM9dC4DbLFs7iNZ68HI1TXnKhsqylJjMYiDx8cGLQMG6 9TcMJH1L2Tog4w+r0PT1mo4xGRAKxKNPxlCzNXYcqncTRonaw/EDG7eza wk7BzhdbtHonYlcT1fcV3MBgG5QVav70VPdbaNUDWrXXFFd62pbb5oDDc g==; X-IronPort-AV: E=McAfee;i="6500,9779,10517"; a="292224468" X-IronPort-AV: E=Sophos;i="5.95,228,1661842800"; d="scan'208";a="292224468" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2022 08:46:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10517"; a="664823186" X-IronPort-AV: E=Sophos;i="5.95,228,1661842800"; d="scan'208";a="664823186" Received: from kanliang-dev.jf.intel.com ([10.165.154.102]) by orsmga008.jf.intel.com with ESMTP; 31 Oct 2022 08:46:01 -0700 From: kan.liang@linux.intel.com To: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org Cc: ak@linux.intel.com, Kan Liang , stable@vger.kernel.org Subject: [PATCH] perf/x86/intel: Add Cooper Lake stepping to isolation_ucodes[] Date: Mon, 31 Oct 2022 08:45:50 -0700 Message-Id: <20221031154550.571663-1-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748219149011207965?= X-GMAIL-MSGID: =?utf-8?q?1748219149011207965?= From: Kan Liang The intel_pebs_isolation quirk checks both model number and stepping. Cooper Lake has a different stepping (11) than the other Skylake Xeon. It cannot benefit from the optimization in commit 9b545c04abd4f ("perf/x86/kvm: Avoid unnecessary work in guest filtering"). Add the stepping of Cooper Lake into the isolation_ucodes[] table. Signed-off-by: Kan Liang Cc: stable@vger.kernel.org --- arch/x86/events/intel/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index d8af75466ee9..dfd2c124cdf8 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -4908,6 +4908,7 @@ static const struct x86_cpu_desc isolation_ucodes[] = { 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_X, 11, 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),