Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10818956ybi; Thu, 25 Jul 2019 05:43:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlBlSWzOCt2SyuCI9GonjnXWryiaHw5iYasm0blrLcKM3xLb3MNr3EoZ/FYsyNM9VC1FXd X-Received: by 2002:a17:902:aa5:: with SMTP id 34mr93997455plp.166.1564058587073; Thu, 25 Jul 2019 05:43:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564058587; cv=none; d=google.com; s=arc-20160816; b=LDwAifwLckgVU9b2VVZMJApMkSp4iXSSRRc+fVCVBCgpomREhujVyLOb8kOE/YRLFi aEggfoSC7RstvJRfENAolfw+Y1WJL0hHbQ6jTRXtfddNaBEqbzSHxurOM6xj0WF3CenR eInr670lPGNrDcoinEFTOEPEY+Tn8wkUAlxrdZpVNT/fW9ejfpROdT8EJogWxFRQVNNY LGxOIxXLXRyk2Ml27PKeFt2WeGSoEBMbtPyT1MjZRhXDb49TpKUVb475SwNHX4BUOZHE ACOqCDUIMkUjEOdD13Zn/3ktDmbAcMUb2sVNqFMosY2ldwILuceHtlmzr0yDTzKlJqCE zyXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=uSrfYUw2OL4GyjQAYkfyFIDhu6VcvsK12J1AoUmxZ+k=; b=DxWF9V5jd7wJniMDMuA2RqV9UFaqtoSv5KYbdq2A10OmNGCeOVSfYIQMJz9oUse/ua Poh8BKZDYm/d1APXHhDn+SZm7EhsBkwisAcZh2/2ihdAoBhDcbvXl2/luOMEGApb2lyG kXT1kdSWCKd9GB3loPIQFnDSKtcPL8sYjv19FKtMOa5XbID70mnxh3cMoVYKbJfa48O2 h2KTQQNzXUvnhuimPszKAGG8OChv+ZsVWchRV4Y08y7hKQ3rMU2n1lxCUsNXS/ONqe0E rb5YpJCK2vggL2wJtwsnVkDwC4LoCE6hcwke3eNweDNhc1h6a11LnSuhKISfdRFpa7KY nNBg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13si16966549pfo.59.2019.07.25.05.42.52; Thu, 25 Jul 2019 05:43:07 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388972AbfGYIDb (ORCPT + 99 others); Thu, 25 Jul 2019 04:03:31 -0400 Received: from mga03.intel.com ([134.134.136.65]:12585 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387824AbfGYIDb (ORCPT ); Thu, 25 Jul 2019 04:03:31 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2019 01:03:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,306,1559545200"; d="scan'208";a="170171327" Received: from rbhardw1-mobl.gar.corp.intel.com (HELO [10.66.75.233]) ([10.66.75.233]) by fmsmga008.fm.intel.com with ESMTP; 25 Jul 2019 01:03:28 -0700 Subject: Re: [PATCH 2/2] powercap/rapl: Add Ice Lake NNPI support to RAPL driver To: "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org, len.brown@intel.com, rafael.j.wysocki@intel.com, linux-pm@vger.kernel.org References: <20190614080523.13464-1-rajneesh.bhardwaj@linux.intel.com> <2359736.lHFMKXy7DL@kreacher> From: "Bhardwaj, Rajneesh" Message-ID: <23df19ca-1ec5-ce9b-9862-29d33008e581@linux.intel.com> Date: Thu, 25 Jul 2019 13:33:28 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <2359736.lHFMKXy7DL@kreacher> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Thanks Rajneesh > > >