Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10824262ybi; Thu, 25 Jul 2019 05:47:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxShmzDREquE+1bK34cPijKLgyU+d5pjF3jJMtoKFGbDtYI41RdE5zEYO/TyO3SMFaPtOvI X-Received: by 2002:a02:aa1d:: with SMTP id r29mr19144096jam.127.1564058869665; Thu, 25 Jul 2019 05:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564058869; cv=none; d=google.com; s=arc-20160816; b=ZhhLq/uj5sgBMdeUxPazKl2t9WmyofbKpWCTMSe/lMXpjRF4JwsmIhwdnOne1GM4Ov 7K6M2NQbKUhO5rKHCzDsYNaygpo9Vh2G98pUb8apcjP8moyBYqkWpSxxhxzPnNPUAIbH JGLJsFOvszvKdNKg4HJQNAGELt5LuVhRdeFNBtdEJOk/oQ8Hy4pfJwbOayjTM+NNJ91X vg0JRVg5X2KMP829ZT/srWLd9YY7JFvaHFMA4G61uOl6kEFXTtBmtlIz+9I6T5S+ZWSr p38ZxpOc1pCnCGizFIIzqrptzdQN+UEY1RtV8JcMkcN/HloYhB+xC6TndMfRwtvjaJST 8FWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=mEFxbvSwQELuCN6dR9dFdhakTWqxzMlr3rxTqwGbm6o=; b=L6tjL5cf6oDMpnAXfquVC666g+61aeKFhzxCVcRPEqVYh8pNw2Z6gK4jrNHAPzs3eE 8nvfWArzNksEhVg9XwyELfPmlxMR3e9SV3QSftVauvtQr3E7BmGXsQZjxxssQB3EuIcf KpC6w5KXxn3hoSd2oplV9kfSXMat7ZnObWIMbwoi0LcgZH9IAkzNpPS3Ol2YAz1YmPYD C5t9FbvUo72n1Tm6bshIKLeXewBK8HoHzAC2VbGPkP8xq7YaNdLTm//QUCIva/bVLzx/ /3v5+NR1hgv+DzS1ndDdentZ7XxakzhU2w6ALXKvlVarZyYAQLvCv+vQkAuF7wqeonLP TWhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 191si73984006jay.46.2019.07.25.05.47.36; Thu, 25 Jul 2019 05:47:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389578AbfGYIZs (ORCPT + 99 others); Thu, 25 Jul 2019 04:25:48 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:39253 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389189AbfGYIZs (ORCPT ); Thu, 25 Jul 2019 04:25:48 -0400 Received: by mail-ot1-f67.google.com with SMTP id r21so44750777otq.6; Thu, 25 Jul 2019 01:25:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mEFxbvSwQELuCN6dR9dFdhakTWqxzMlr3rxTqwGbm6o=; b=DGcK5yBHyB5MXpbbFuPoZYYdd2KLOUG5614dyk6juMyNSvQk95PhOhbU6MTCkQTchF sOpjRX35hU9UV9EXMiSmKLDcyT+XM5aZ4rZdanpDJRTvO/iT0TxRIyzou1uU9s1us8/v QC61/Ji2CTA51YSM2AIntI1uVi5XKdWuHU68f87FPwcrqXG2E0FNkJ9w7PVWLGayvYfp P+lzM8uHn1nTKYch+Fpy1LZGqbc+gsD427uogSc/JQmharQhQXDwnOV4GuUN7RbCr1/3 7bvoGdQIAM38KuhigdAnqDiYotFiWDyN9R4fuJ6sH0J/C+JV+fDf6leakO/YSSsJoCQ5 fMfw== X-Gm-Message-State: APjAAAWUfO45n2UQc8AXBvMUU0qYi/GmiK5WasK1EOR9iMJ0zFPEHSZK U4+eMzRe4JRvalPgdDYHlhawKO/CH6U5HVrc2bQ= X-Received: by 2002:a9d:6b96:: with SMTP id b22mr65775246otq.262.1564043147812; Thu, 25 Jul 2019 01:25:47 -0700 (PDT) MIME-Version: 1.0 References: <20190614080523.13464-1-rajneesh.bhardwaj@linux.intel.com> <2359736.lHFMKXy7DL@kreacher> <23df19ca-1ec5-ce9b-9862-29d33008e581@linux.intel.com> In-Reply-To: <23df19ca-1ec5-ce9b-9862-29d33008e581@linux.intel.com> From: "Rafael J. Wysocki" Date: Thu, 25 Jul 2019 10:25:36 +0200 Message-ID: Subject: Re: [PATCH 2/2] powercap/rapl: Add Ice Lake NNPI support to RAPL driver To: "Bhardwaj, Rajneesh" Cc: "Rafael J. Wysocki" , Linux Kernel Mailing List , Len Brown , Rafael Wysocki , Linux PM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 25, 2019 at 10:03 AM Bhardwaj, Rajneesh wrote: > > Hi Rafael > > On 28-Jun-19 3:32 AM, Rafael J. Wysocki wrote: > > On Friday, June 14, 2019 10:05:23 AM CEST Rajneesh Bhardwaj wrote: > >> Enables support for ICL-NNPI, which is a neural network processor for deep > >> learning inference. From RAPL point of view it is same as Ice Lake Mobile > >> processor. > >> > >> Cc: "Rafael J. Wysocki" > >> Cc: linux-pm@vger.kernel.org > >> Link: https://lkml.org/lkml/2019/6/5/1034 > >> Signed-off-by: Rajneesh Bhardwaj > >> --- > >> drivers/powercap/intel_rapl.c | 1 + > >> 1 file changed, 1 insertion(+) > >> > >> diff --git a/drivers/powercap/intel_rapl.c b/drivers/powercap/intel_rapl.c > >> index 4347f15165f8..431c8c8bdf07 100644 > >> --- a/drivers/powercap/intel_rapl.c > >> +++ b/drivers/powercap/intel_rapl.c > >> @@ -1157,6 +1157,7 @@ static const struct x86_cpu_id rapl_ids[] __initconst = { > >> INTEL_CPU_FAM6(KABYLAKE_DESKTOP, rapl_defaults_core), > >> INTEL_CPU_FAM6(CANNONLAKE_MOBILE, rapl_defaults_core), > >> INTEL_CPU_FAM6(ICELAKE_MOBILE, rapl_defaults_core), > >> + INTEL_CPU_FAM6(ICELAKE_NNPI, rapl_defaults_core), > >> > >> INTEL_CPU_FAM6(ATOM_SILVERMONT, rapl_defaults_byt), > >> INTEL_CPU_FAM6(ATOM_AIRMONT, rapl_defaults_cht), > >> > > It is in my queue, but I get build errors when I try to apply it. > > > > I guess the definition of ICELAKE_NNPI is not there in the Linus' tree yet. > > The dependent patch is now available in mainline, so can you please > apply this one? > > https://github.com/torvalds/linux/blob/bed38c3e2dca01b358a62b5e73b46e875742fd75/arch/x86/include/asm/intel-family.h#L59 It's already been applied along with the Rui's series.