From patchwork Wed Nov 20 11:16:58 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: 1198034 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 47J0XC6d1wz9sPV; Wed, 20 Nov 2019 22:17:15 +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 1iXNyy-00022r-3j; Wed, 20 Nov 2019 11:17:12 +0000 Received: from mail-pl1-f194.google.com ([209.85.214.194]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iXNyv-00021b-Kb for kernel-team@lists.ubuntu.com; Wed, 20 Nov 2019 11:17:09 +0000 Received: by mail-pl1-f194.google.com with SMTP id w7so13670504plz.12 for ; Wed, 20 Nov 2019 03:17:09 -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=leU/8+nxmq+eOBwKyjwg4dxrIMhzC+hTLvCqABvFpcU=; b=dbuuUD38gK817g2QcNXkl93Q1mk68wusDG2EDxTi0wkfc+IKhIK1ovBpTGe1YBKZyU UMFviCGw2Kc37ajFIVnwz8NK4AEPNfcODvTf3gs5ByQbWH+4ePi3pIjvRo+TNw1kcezM gi9p6brzjXeE3GeBoQWoBpDbHQsTjb4BiAeJhCqOgCfe+ohB3PnqW4zGwdIiWogdzYrf HXGTvP+uxtYMQymoL8AKxiqh+KOJnLaHzSYJvdv5u1d1qKnNVLJZFS6R6U9WwbzZ98Hu oas4eKBrk0xCk6VPLhVtJTZgbdKEuB0jy5mckIo30VXwuHIFmRMeCRBNMP4tVUokViCd F97Q== X-Gm-Message-State: APjAAAWPgtycaytnEJrVvtFvPN/zHCj06bNkYulbyxC4VVU3KHHG/Te+ ejZm1no/Ps4oaW6e33O2MRtBvReo X-Google-Smtp-Source: APXvYqxXW85RlCgRBz6SLtu+GZewqs5KinOko5GGGFM5UF/pPLwnRA/wJk4zHZqJejdCdtn6jk6ILg== X-Received: by 2002:a17:902:6b47:: with SMTP id g7mr2397474plt.87.1574248627222; Wed, 20 Nov 2019 03:17:07 -0800 (PST) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id x70sm29299326pfd.132.2019.11.20.03.17.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 03:17:06 -0800 (PST) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [SRU][E][PATCH 1/1] tools/power turbostat: Add Cometlake support Date: Wed, 20 Nov 2019 19:16:58 +0800 Message-Id: <20191120111659.1005237-3-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191120111659.1005237-1-vicamo.yang@canonical.com> References: <20191120111659.1005237-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: Chen Yu BugLink: https://bugs.launchpad.net/bugs/1847451 From a turbostat point of view, Cometlake is like Kabylake. Suggested-by: Rui Zhang Signed-off-by: Chen Yu Signed-off-by: Len Brown (backported from commit 68973b44c86040ccd145d0dfe2143c839ff6ee45 https://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux.git) Signed-off-by: You-Sheng Yang --- tools/power/x86/turbostat/turbostat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index b2a86438f074..0235e2c3cd9a 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -4610,6 +4610,8 @@ unsigned int intel_model_duplicates(unsigned int model) case INTEL_FAM6_SKYLAKE_DESKTOP: case INTEL_FAM6_KABYLAKE_MOBILE: case INTEL_FAM6_KABYLAKE_DESKTOP: + case INTEL_FAM6_COMETLAKE_L: + case INTEL_FAM6_COMETLAKE: return INTEL_FAM6_SKYLAKE_MOBILE; case INTEL_FAM6_ICELAKE_MOBILE: