From patchwork Wed Nov 20 11:16:59 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: 1198035 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 47J0XG0gyWz9sPf; Wed, 20 Nov 2019 22:17:18 +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 1iXNz0-00024D-AA; Wed, 20 Nov 2019 11:17:14 +0000 Received: from mail-pg1-f195.google.com ([209.85.215.195]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iXNyx-00022L-UG for kernel-team@lists.ubuntu.com; Wed, 20 Nov 2019 11:17:12 +0000 Received: by mail-pg1-f195.google.com with SMTP id b1so3691984pgq.10 for ; Wed, 20 Nov 2019 03:17:11 -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=X6bXQE/x9h6JRWfGp+Arsw14+UdN37zTg98Y8B5ulTY=; b=fZJTHeTV98HiO0QlaGfXLs68e9m7n1Pma646tDJf4zYEg7E0qeeDQsX7ysok+/h1YF A3dw8W9fK6Iy+o8HZCn7E0KN2ridnKvtr0huhGHqO0QctOg/Yw+Q5vgQ43SXY4w7vALM fdMh3m/4i+zE/XfTCYJkC/eDlV5+RZZ74URbGFNxjApxvqieVlVcsMBsa8vCmxWrKgSk xixDpHQafSGXA8cz44AQFfI2/8CwGnJjNwWwXnAGCfCH+KOQZezaPFP1utxJ/ZMcKLYO VhhAvmh9AEEae94QpYditKm/M7j5vRbhO0OwT/jS1U4L8ty9YeeYCdH7vm8zyRk4n1iw EaRA== X-Gm-Message-State: APjAAAVQiZOp5FFTzU1sNVA5IBx650roZad83M0UPKQ80mZlBUsZQhqn ntCstJ/pzxhgxASqyjsnMb4+9QUa X-Google-Smtp-Source: APXvYqwkU0A3IJSOPQd3SxAVuPiTyQcAlRznVuZH0w11I4oXF5IFuZF8In4/6/nXhFiCW6WZE1NvHg== X-Received: by 2002:a62:7b09:: with SMTP id w9mr3383987pfc.8.1574248629792; Wed, 20 Nov 2019 03:17:09 -0800 (PST) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id e7sm29705628pfe.173.2019.11.20.03.17.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 03:17:08 -0800 (PST) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [SRU][U][PATCH 1/1] tools/power turbostat: Add Cometlake support Date: Wed, 20 Nov 2019 19:16:59 +0800 Message-Id: <20191120111659.1005237-4-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 (cherry picked 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 5d0fddda842c..985e195f066b 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: case INTEL_FAM6_KABYLAKE_L: case INTEL_FAM6_KABYLAKE: + case INTEL_FAM6_COMETLAKE_L: + case INTEL_FAM6_COMETLAKE: return INTEL_FAM6_SKYLAKE_L; case INTEL_FAM6_ICELAKE_L: