Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1050879imu; Mon, 5 Nov 2018 13:01:29 -0800 (PST) X-Google-Smtp-Source: AJdET5dsL+vxSXrc+toOwnjc8jNm/sfSgL4Ox5zB8XY7b6AVA7br1oeenQf2Ggcb1jvxx7Lx8Cbc X-Received: by 2002:a63:bd01:: with SMTP id a1-v6mr21431107pgf.58.1541451689590; Mon, 05 Nov 2018 13:01:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541451689; cv=none; d=google.com; s=arc-20160816; b=HPF7DuvA2crBUW7nKif2m4ytMHUKAw3h6UFJuCyP47keEPcKGf+D4VM6C2e9fJL9lw rswfNggfeMLEmnsYj8LR596bUd5pdj0aBQhDu2jr3DARUfI9j3SfLrd56EOKmzQctgiW NbjGb1v6qJGmrncIoqYYYkSMX0qjOiOSLAgG85CPriLxSrmE5u4P3uHCBO6kLxBWxtAp obavOrwzW01R+/qvGlR6TzACMgwfj5/yW4zk/8YcUaOaQP1aHXKL6O66gzfvJN2TsOM2 unyHr5wF2Qul05iRh2AVtJPne5EjmuglWe0EFVJSpBc95sEg4ehti2VNV6cymbxjSfof qdvg== 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=iTs4iGm1Nh376GUoO/+Ci7TJnO62ZQEist1Mpl2V0Zg=; b=NH16k+f95jwUj5IAigALv90sIVTls+UgtErD2AtPeX3tL+YKGvwe6PEsWvIbCZHwg9 WAD2faYT7K+NjqQw197R3zb3aNQRUZbjP+7Tm3ZNGH0nCQsQ8bg++Ktj5/v/4SvezvSg SqNiFuot4cEkQcWsjB6Qcip8p6Bty9aTMvonZHYFOIfEWy+L/deQfUbXo6e8oNXTFBDr A79ErcETc02zl6yXeY13h2AnMuuwrdMqMGtZml1jl1J28kAR/d8PJsQpi1aw8H91zl9L cydADgyI8JKq+/hyjNgZjON642HS/PFtHxq+vYLQjAhYqP0gWmEFFm6/0wg028OGfcCH DQBg== 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 r22-v6si51718462pfr.18.2018.11.05.13.01.13; Mon, 05 Nov 2018 13:01:29 -0800 (PST) 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 S2387726AbeKFGWS (ORCPT + 99 others); Tue, 6 Nov 2018 01:22:18 -0500 Received: from mga07.intel.com ([134.134.136.100]:32979 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387441AbeKFGWS (ORCPT ); Tue, 6 Nov 2018 01:22:18 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Nov 2018 13:00:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,469,1534834800"; d="scan'208";a="105504096" Received: from rbhardw1-mobl.gar.corp.intel.com (HELO [10.252.93.140]) ([10.252.93.140]) by fmsmga001.fm.intel.com with ESMTP; 05 Nov 2018 13:00:42 -0800 Subject: Re: [PATCH v3 3/3] platform/x86: intel_pmc_core: Decode Snoop / Non Snoop LTR To: Andy Shevchenko Cc: Platform Driver , Darren Hart , Andy Shevchenko , Linux Kernel Mailing List , Rajneesh Bhardwaj , Srinivas Pandruvada References: <20181102103441.21943-1-rajneesh.bhardwaj@linux.intel.com> From: "Bhardwaj, Rajneesh" Message-ID: <8021ed8d-6931-3ffd-6e46-630e9a2c4a66@linux.intel.com> Date: Tue, 6 Nov 2018 02:30:41 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: 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 On 03-Nov-18 12:02 AM, Andy Shevchenko wrote: > On Fri, Nov 2, 2018 at 12:37 PM Rajneesh Bhardwaj > wrote: >> The LTR values follow PCIE LTR encoding format and can be decoded as per >> https://pcisig.com/sites/default/files/specification_documents/ECN_LatencyTolnReporting_14Aug08.pdf >> >> This adds support to translate the raw LTR values as read from the PMC >> to meaningful values in nanosecond units of time. >> +#include > I told you something different, i.e. put this header where you _use_ > it, i.o.w into the header file. Oops! Will move it to the header. > >> +#define LTR_REQ_NONSNOOP BIT(31) >> +#define LTR_REQ_SNOOP BIT(15) >> +#define LTR_DECODED_VAL GENMASK(9, 0) >> +#define LTR_DECODED_SCALE GENMASK(12, 10) > If these are in one register, please keep ordered by start bit. Sure, will do. > > The rest is fine. > Many thanks again for your detailed review.