From patchwork Wed Nov 20 11:16:57 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: 1198033 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 47J0XB4M1Rz9sPj; Wed, 20 Nov 2019 22:17:14 +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 1iXNyw-000228-Uc; Wed, 20 Nov 2019 11:17:10 +0000 Received: from mail-pj1-f66.google.com ([209.85.216.66]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iXNys-0001zc-Uo for kernel-team@lists.ubuntu.com; Wed, 20 Nov 2019 11:17:07 +0000 Received: by mail-pj1-f66.google.com with SMTP id cq11so3976541pjb.3 for ; Wed, 20 Nov 2019 03:17:06 -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=iDbAHwYF3Drdce0WeidMNox5hC+ev+iv0t6IiOmnCQg=; b=tB12rd6uzC8R3KMb9QySkoUHn+6EbmvWExFfn9PIFO9VnZ1eZZxzB3uUt3IFbfb4hs ZX+IHQoORMfuEuzCO4qevYXSWcxCD3nSiZ+xGyzsWJbB5FeE1zj+9Sv0Ue7E5cRha2/T Xv7gd84GzPAMVUcJa+XBjfhevK2AlnHjfO+Pyuzptvw0HUyAXyqg09Z/3oMch8Qv44D3 dKJuAri5tDE+iKqnmgM+9TTsbKAn3nxoQ4KcmRM2fDqjhiRupGPdp4+wJJUthEZlSy9f H4RHjqsbzkABGeSo+sWoNI+lAJHjJYT2+PsfsFuepUwfO4Ls7sBIzHlB/2ol8OED6JQw Ggiw== X-Gm-Message-State: APjAAAVoze+QxDgS1eJOlzbMX42N4zBTROqSg/7tu0Ehzw5YOoRnX/ja wqswWeSBc7cEOY/7pALR32bFuu8C X-Google-Smtp-Source: APXvYqx0/rE0GTEtTdsr+9SMBGb6NuY45LIpu+/NcJI0Jwwdd4oCNXSZh8S0pGcapzny0xGcvePULA== X-Received: by 2002:a17:90a:fa84:: with SMTP id cu4mr3422683pjb.65.1574248624959; Wed, 20 Nov 2019 03:17:04 -0800 (PST) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id d6sm28685208pfn.32.2019.11.20.03.17.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 03:17:04 -0800 (PST) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [SRU][D/OEM-OSP1-B][PATCH 1/1] tools/power turbostat: Add Cometlake support Date: Wed, 20 Nov 2019 19:16:57 +0800 Message-Id: <20191120111659.1005237-2-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 c9817bdb40eb..d9ac9566a63d 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -4452,6 +4452,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; } return model;