From patchwork Wed Nov 27 08:02:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1201410 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47NCtC3S8Cz9sSt; Wed, 27 Nov 2019 19:02:27 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1iZsHH-00026o-UZ; Wed, 27 Nov 2019 08:02:23 +0000 Received: from mail-pf1-f195.google.com ([209.85.210.195]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iZsHG-00026T-R2 for kernel-team@lists.ubuntu.com; Wed, 27 Nov 2019 08:02:22 +0000 Received: by mail-pf1-f195.google.com with SMTP id y206so1953360pfb.0 for ; Wed, 27 Nov 2019 00:02:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ejWt5rJPuTQP5BxWsaFSX39hzfyyZ5Ygli9hikLNzSE=; b=g0G059KlJQaJYL3mMkq4c+scgr51o1q1an/ITGIzlfJMwHIyJA4/sUzGWQg280LL8c XdYhu7AJ7jUEFEthtUQrwYzhVkvapZ2b4++ItVhNd4YZfO3SyldbBAT3Y1Ov6XgUhOw6 N1pdsJ0wNsQy2GR7kmgDlW75jyDvch4FNjt4aZf18IiIAJ1viLlD9O07jO4vs4y44o2K RB9uRsnbXaJd8BJvf11TkX2gf35D1+0BHI3pGNFuO4PBFMV9W+0D5R1geG4tqg6ZVr8X sdjzO6KzYjVc0WW0+16JfPdK8qKFC11zsy1z8lnaH4T5Z1+sjrxizDaXQZe6CBAEkJNg 6zDQ== X-Gm-Message-State: APjAAAWazmReajweBwNiS1X9LvhSN75hXQ95utqFr3Kc1CeETMvp9vmT tKPrTXU9iCRZ5kMChPNcYdvfnNKN X-Google-Smtp-Source: APXvYqxagoC2CIRTSNxQkkLBmKBdA9wa5qYnX6Hj083tyW1VHi0QmFEJwSKRUtgzc1+FKh7Ue1R7XQ== X-Received: by 2002:a63:d550:: with SMTP id v16mr3283883pgi.443.1574841739865; Wed, 27 Nov 2019 00:02:19 -0800 (PST) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id q16sm15310619pgg.40.2019.11.27.00.02.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 00:02:19 -0800 (PST) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [SRU][E][PATCH v2 1/5] perf/x86/intel: Add Comet Lake CPU support Date: Wed, 27 Nov 2019 16:02:11 +0800 Message-Id: <20191127080215.203148-2-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127080215.203148-1-vicamo.yang@canonical.com> References: <20191127080215.203148-1-vicamo.yang@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Kan Liang Comet Lake is the new 10th Gen Intel processor. From the perspective of Intel PMU, there is nothing changed compared with Sky Lake. Share the perf code with Sky Lake. The patch has been tested on real hardware. Signed-off-by: Kan Liang Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: https://lkml.kernel.org/r/1570549810-25049-3-git-send-email-kan.liang@linux.intel.com Signed-off-by: Ingo Molnar (backported from commit 9066288b2aab1804dc1eebec6ff88474363b89cb) Signed-off-by: You-Sheng Yang --- arch/x86/events/intel/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index e4c2cb65ea50..4a8e3a28c618 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -4965,6 +4965,8 @@ __init int intel_pmu_init(void) case INTEL_FAM6_SKYLAKE_DESKTOP: case INTEL_FAM6_KABYLAKE_MOBILE: case INTEL_FAM6_KABYLAKE_DESKTOP: + case INTEL_FAM6_COMETLAKE_L: + case INTEL_FAM6_COMETLAKE: x86_add_quirk(intel_pebs_isolation_quirk); x86_pmu.late_ack = true; memcpy(hw_cache_event_ids, skl_hw_cache_event_ids, sizeof(hw_cache_event_ids));