Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10817635ybi; Thu, 25 Jul 2019 05:41:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVqG0DIokhTKM3t++nHw6u8C6mc7Nbuu9T3YZRZ8ycwAdIUEG4KqSzTUs6fhWRpfDoa6eB X-Received: by 2002:a62:7990:: with SMTP id u138mr15835149pfc.191.1564058516100; Thu, 25 Jul 2019 05:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564058516; cv=none; d=google.com; s=arc-20160816; b=MWsBPXDutBl0NG8+iW4agBrVrPDmoZicBJtMk71Sb/IR0oyNWALmYojvC3aFwK3Ok+ xrt4ioV0RemepAY2McBSHteCZXmVGIKcR1S5vI0JCZHcgexJUW228g7SrSdExDNJKBd+ 8FpxZmOKsFI0VytOYmJwbxy4ThXI1ekaIVodxsDVjjJTCA4UzxoA8B2mIfHZVBb8Q9NG 1pUIwlCRe31Z3UYGF0wM0kA6DFWCqdInbvM1Uj1wr9PEhLnXHt8uQPaXnts38MIGdYg/ 8EdGn+zmHe3QA58HdOEYw6ZGPkMsqfETmRpz0z0DQcfkErRm9ZIxTt9Lcyy8wTMDN3PR Namg== 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=3pQ+hCxfIEWm0HHm6T3//g5Kl/yqlmG+CEmVAqDjKzI=; b=goh8JLuGR3MDhyHxEw5V7DjavSpWPXHbpRmKAZ1iFuniWiKvnYFFOCEHOwpnicdgPl D+3k0AJGTBvZYi9u4fgdtSm4pwFu+rD+vBaZPZWxzIAx+A/48U0H1Vxi8uAO/9UM8Fs/ P+vnAt9UJPaF+czFhSK7X6k/UMsm/n29ffPFKND8OGYQbfmXvTCQkf4qiZ3sUrhV5Jbj ZfwnxoAtVJLjVbwJvfBNOtyzGgcCKJPu6Sb+Jc6DG/e/S5yxAyhigBaUgEjhx6u2Mxqh oPFL9g9RYOumHHGe7eI9BHcy4w8BvHqefgvL0FMNkn2+Q2iFDb/QZ1FOnOYN5Qnv31UW +Lgg== 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 w16si23363604pfq.70.2019.07.25.05.41.41; Thu, 25 Jul 2019 05:41:56 -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 S2388833AbfGYIBI (ORCPT + 99 others); Thu, 25 Jul 2019 04:01:08 -0400 Received: from mga07.intel.com ([134.134.136.100]:20296 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388596AbfGYIBI (ORCPT ); Thu, 25 Jul 2019 04:01:08 -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 orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2019 01:01:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,306,1559545200"; d="scan'208";a="170170809" 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:01:05 -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> <52eaefed-8f94-8cb0-0cfa-c0c16a34bd0b@linux.intel.com> <3695289.DUDsO16Ie3@kreacher> From: "Bhardwaj, Rajneesh" Message-ID: Date: Thu, 25 Jul 2019 13:31:04 +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: <3695289.DUDsO16Ie3@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 05-Jul-19 3:43 PM, Rafael J. Wysocki wrote: > On Friday, June 28, 2019 10:21:41 AM CEST Bhardwaj, Rajneesh wrote: >> 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. >> Yes, though >> https://www.spinics.net/lists/linux-tip-commits/msg48978.html is >> accepted by Thomas already. > It is not in 5.2-rc7, though, AFAICS. > > The patch is still in my queue and waiting. The CPUID patch on which this change depends is upstream now. https://github.com/torvalds/linux/blob/bed38c3e2dca01b358a62b5e73b46e875742fd75/arch/x86/include/asm/intel-family.h#L59 Thank you Rajneesh > > >