Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2449102imd; Fri, 2 Nov 2018 11:34:48 -0700 (PDT) X-Google-Smtp-Source: AJdET5cb7oCnjoFrRKTn6uTo4QToDvgIs7pX1Gy0NQFBTjutUrkQPRT5ObOlwSCTRxKoZ0NY69yg X-Received: by 2002:a63:3842:: with SMTP id h2-v6mr11638000pgn.300.1541183687985; Fri, 02 Nov 2018 11:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541183687; cv=none; d=google.com; s=arc-20160816; b=1C0acBcNnltPkTPhJ1M2aZeYX7YqznhTexeEUyd9eunES4UzuREC63MsQ6/Z6J9FAj L3sVbgZjwJbFHw2Jko4SE2malw4zlaseEZfBWForkFpDMEbXrX/zzHzLTvxFvRJdKBxc bDUdBHAMYRzrjhMK68zVwaxMWkSpdY1qE/AwHlb7GOkI2TpMH0iGbtjFrvDrdXecC17y MNTMfqZcY8qRwsNM1RwEd7rVNLjUSGH9pIAbtrwORiVinzFVkxRcS8COkIffTNpnGVWV QznRdyJKr54EK2omvoUrHfiz+SD+UuUaYZouWiy1ZDW4JYmM80pDk1IqK+mDPHiKc/LE 714Q== 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:dkim-signature; bh=2vspMdCH1oMkJ33sgJQRujPN+jYdkxtwarIuAd1mp6A=; b=HGJiuIZ7Pdn4slYNof4WKF48OpfAFdDgS+ysEy1ntKB7nnFtz97rYCcpD8R5S9SsfM LRnouCz/uw50aItErZ2fSAUoB8xkLLdqO8Qx+Uw5Y+f5pcFqT8G65y6xybVCsyUrqRZX NZAgGp+G3dQsW3vqkxd5yKpDVO25ZMmxj4An7HLSk1z4sqAGkvqUG1/DRsS8XMTqNsuM fdUlCpu/o5taF6CzkedKYLRy1x2a+spz5bOHzCCy49vTYPUO4CW31CMn3gz5gaPMPC+M 22jqKY4+bJ4Q9nMprhfzTqmE+1+lNxrIcE7AxJXxs0wH25xIlaG+GkGShzCYDYE8gn7V WD2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TGDnaqce; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v15-v6si1448518pfd.125.2018.11.02.11.34.33; Fri, 02 Nov 2018 11:34:47 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TGDnaqce; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728243AbeKCDk5 (ORCPT + 99 others); Fri, 2 Nov 2018 23:40:57 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:46021 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726849AbeKCDk5 (ORCPT ); Fri, 2 Nov 2018 23:40:57 -0400 Received: by mail-qk1-f193.google.com with SMTP id d135so4513061qkc.12; Fri, 02 Nov 2018 11:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2vspMdCH1oMkJ33sgJQRujPN+jYdkxtwarIuAd1mp6A=; b=TGDnaqceiGjlQ0IzWToUNHV/sIaNSri/exT6eOSVsQgLn05yH5WUUhp9hOlmHf/rJO 9mOjZa1BzIX0Xf7M2V6P3z4EU5zMTKUznbP1XEg1pmbybThYZCPX52kUhZf9plLxTcdl CZtDaLSZrKcLF9une23uXI8/W+UdKLTYLZJ6Lhmo7ai7FVT4PtjIYXWc3fE3H7q6Ilco QNxNO7jgV6qNlCPTVETeDyQdFcyMSzfMkVaY2XkCkNBKEgiWZGHTt4xP/p/vdq0X8Kf3 0HGs5swctiuY+Cyf9O/dL0UdKtbhRh5G8sbr9a+kE9wZw73sQi3F3KluZo2+l3rn9w2S +W0w== 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=2vspMdCH1oMkJ33sgJQRujPN+jYdkxtwarIuAd1mp6A=; b=pWrf6LfKjE0tAP8gc56TwLwg9rOi/Wblwraf1MCi04WnEHpNNseqbACuKa1bulFEfg 0GgvUgBmV2LXuH/K8v+njBRW5rqTJtiCutjsVrdbp+v1hUI+1XtB6gcfyifXhnhQsFDB dmLSyux8dZ1ssus8uwCgwrXh8f1b7Syl0CBNpGVN+valc40fAyegxETsbFuFwqXTsN31 hucX9ASjRT8r5Ip0wg1mDJlz2vt5zoqdNS6rgpwWd7WTFXAo33EnWsizrrY1OssAEys+ wiTu5SFssF3l8Y2goS/qweQ8JgjZ01Bz5nerpvGlgfhRdyKzgufMuZIeHPQ742Kb+vFp rq1g== X-Gm-Message-State: AGRZ1gJzCG+oIhvcrclvNbID6T/y6nzRWXmeZ19BRZ4htJJYzE/jsdQK bGfHLkD2z+ZMLiLLGyYERYEplJL96pK5G8IF3DY= X-Received: by 2002:aed:3b76:: with SMTP id q51mr8792998qte.229.1541183567821; Fri, 02 Nov 2018 11:32:47 -0700 (PDT) MIME-Version: 1.0 References: <20181102103441.21943-1-rajneesh.bhardwaj@linux.intel.com> In-Reply-To: <20181102103441.21943-1-rajneesh.bhardwaj@linux.intel.com> From: Andy Shevchenko Date: Fri, 2 Nov 2018 20:32:36 +0200 Message-ID: Subject: Re: [PATCH v3 3/3] platform/x86: intel_pmc_core: Decode Snoop / Non Snoop LTR To: rajneesh.bhardwaj@linux.intel.com Cc: Platform Driver , Darren Hart , Andy Shevchenko , Linux Kernel Mailing List , Rajneesh Bhardwaj , Srinivas Pandruvada 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 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. > +#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. The rest is fine. -- With Best Regards, Andy Shevchenko