From patchwork Wed Nov 27 08:02:14 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: 1201413 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 47NCtL2pWkz9sSq; Wed, 27 Nov 2019 19:02:34 +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 1iZsHO-0002B6-Hu; Wed, 27 Nov 2019 08:02:30 +0000 Received: from mail-pj1-f65.google.com ([209.85.216.65]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iZsHN-00029T-FM for kernel-team@lists.ubuntu.com; Wed, 27 Nov 2019 08:02:29 +0000 Received: by mail-pj1-f65.google.com with SMTP id cq11so9573679pjb.3 for ; Wed, 27 Nov 2019 00:02:29 -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=Jq700dVIeCvlPxyc4+R37BAbvXGGaz2FpTugItUMsio=; b=js0osKSqHLGwQN/AJzG8ggYQqagiXnfZj2Exn/ErBwYH5DZLnAF1DGH+5EA45jv9op yrsXfbV4Gy4xVNaMT5yRjQu1W3eCt6AtHgg3KyLVZ2Oviv2ISoBU00p6kp3ZH+Zjj0Ae DlccoKtPmFScj81bY0NEz/KQL2AWh0Yz8qMTKfkvomdCOW31zj91wIkUQWddBKlR5zNn AB5BtV+J6OuMweXzTokIU9Egaq5fDLllOVOik2XXewrEf7bHPNoHaKtlBHaZuIlSbZEQ NNnkt41nnVG77guKFGitGH9ISWy3225KfB0dWM8dLwydQJ9beOecJIphwXuzD5bJGV4Y cUqw== X-Gm-Message-State: APjAAAU0e7JuwEgkick+g/UVLaz/ZNOD34slaab+EXznjffTokvLIXSI jW13k+Xte+aXN7fpoEx7AwwvkKu5 X-Google-Smtp-Source: APXvYqwfvSgheWECCnKYKfAXiuZnVqJQvEJAkoe/sR0pkSFzrTklKKrcEzSyMmNNG0dOQRlyHYhjuQ== X-Received: by 2002:a17:90a:bb82:: with SMTP id v2mr4364579pjr.90.1574841747153; Wed, 27 Nov 2019 00:02:27 -0800 (PST) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id g191sm4972006pfb.19.2019.11.27.00.02.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 00:02:26 -0800 (PST) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [SRU][E][PATCH v2 4/5] perf/x86/msr: Add new CPU model numbers for Ice Lake Date: Wed, 27 Nov 2019 16:02:14 +0800 Message-Id: <20191127080215.203148-5-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 PPERF and SMI_COUNT MSRs are also supported by Ice Lake desktop and server. 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-6-git-send-email-kan.liang@linux.intel.com Signed-off-by: Ingo Molnar (backported from commit 1a5da78d00ce0152994946debd1417513dc35eb3) Signed-off-by: You-Sheng Yang --- arch/x86/events/msr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c index ddab9d68c1e9..48d2571e5863 100644 --- a/arch/x86/events/msr.c +++ b/arch/x86/events/msr.c @@ -92,6 +92,9 @@ static bool test_intel(int idx, void *data) case INTEL_FAM6_COMETLAKE_L: case INTEL_FAM6_COMETLAKE: case INTEL_FAM6_ICELAKE_MOBILE: + case INTEL_FAM6_ICELAKE_DESKTOP: + case INTEL_FAM6_ICELAKE_X: + case INTEL_FAM6_ICELAKE_XEON_D: if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF) return true; break;