Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4475074imd; Tue, 30 Oct 2018 02:33:12 -0700 (PDT) X-Google-Smtp-Source: AJdET5e1+viOubgP3cEPCb2CfGSKB+Tf2sWC2xJusGa4JnKdhSE1ty0sL5eE/aMsXSBT/mK93I1d X-Received: by 2002:a17:902:e81:: with SMTP id 1-v6mr17921750plx.48.1540891992563; Tue, 30 Oct 2018 02:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540891992; cv=none; d=google.com; s=arc-20160816; b=ecMTqQX5/PAM4C9R8KZUO1YPi+2tTUMcZL/lfY/cmxLZl+vbhrn5aK0PpZV4x7uWv5 rm/4QzJnNNiyWRmtICVR7N7C5EQMt6ckUgw6nBcN64TU6W7NYVafxIQEcKYaqBY1rjCx EWqz+2wHHgRZU5uLGod3vKT0+zbiQUHIqxKcdtDH8PgVifhU6pYzKJaC38b8c1SPUAYA h9wH/suzLCMvSPZDzSOJFrR1UMsY8741XRV/1WHNWdNHXuZPqmk8wGYK2SHClhOG8UEJ xZaU0OzJ271VeBvvYdVvU3Qyl6/xNKd3twu1P/4y653EXcMQO0boBUbvcVjKYjndbt68 YxOQ== 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=TCj5bvoK1ZhgrUUVnfu3FBI1letkywx3bH4arwV+UJo=; b=QkUfQYRIIltVP3K1aOaQnf9XRtRcJ64ELXKHwsrs3awVvi7coTM4h1Z9cMrwSk+QX4 gs/g0LHzuBGKTJ8IzCfFEZiR/YAd2b5WGhU7yYgE/cKuycJmkM4lV8DhIv5nztOlEmLD SjgjyNARSDbZw4dsSR0nLQeqCcmiUQ+JfSjmi7U8cUSJm9NygO6H7sXPh9eCMhSRrmC4 kNkbjHoATktJUJh3ueS306Ef1zrlwJM/yzS4at8vzXRdA67zD3fWUFNO1rRq3eiKsosd n6cwFax/u70cDt22RYLVSznMboPuHOoJPmwHlt+zQdGKtMK93fvY3WJBR1uBK1GdPM0S +XAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hvJTxctE; 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 f17-v6si10999329pfa.123.2018.10.30.02.32.56; Tue, 30 Oct 2018 02:33:12 -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=hvJTxctE; 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 S1726757AbeJ3SXv (ORCPT + 99 others); Tue, 30 Oct 2018 14:23:51 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:35775 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726212AbeJ3SXu (ORCPT ); Tue, 30 Oct 2018 14:23:50 -0400 Received: by mail-qt1-f195.google.com with SMTP id a10-v6so12625216qtp.2; Tue, 30 Oct 2018 02:31:10 -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=TCj5bvoK1ZhgrUUVnfu3FBI1letkywx3bH4arwV+UJo=; b=hvJTxctEZeaaVYJ/NvFF5wAsigqhcQTVCBjybmD/KKvUkAHW+Sq7I3MDUJilHYo+ja 7+Pf6BSN75rMzV2rNAdc/IIAMLTrRkJlD6SgDcYbHJRg8xBUxdppZ9JsYD6ptYFirgFe b8W6m5eLXbeQgHrl8f4SfyRq/uOM0OSC5HpEc7Lhc1XI5ip9LQ6YuxJRL7qJ9q1dWKIb +g1z6JoJLMw7GMMMPkDvkTZsvUr3ippFzYq60sdmdN5JK3hi3+5HeqSW0K6WHHm9ikS0 o68P0a1gDVsgI9Niprt1OdvWkIO0sMQe6Wm6o6HIP1tuI8kHXOkCVYs5l9GFPUMCaH9T bhTQ== 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=TCj5bvoK1ZhgrUUVnfu3FBI1letkywx3bH4arwV+UJo=; b=bU1KvQfPzFpEbef3Yh048e0dAa63M0Q341rWUJeeFs8sU9BaVoy4NPRDkGxtOG/yML Dfsskczmo/aDlrUzX8m4BSQGLh1CbduzBEPU7rJw4IaBIba4pd682IDcEEo7rsCTN5wt UzQ6VLssc0lYK8IFociFtWnKXJK073gzuwNjRvzB6L4c5Silsulhv0h8P/Wm4/15QyqX Wbg/Nubcyz4kMdTyTfHSL+97PXHzqSCGACrkydkqXz8LLA9Cr0Lb1S7Ddm1bbYGdgSMr qjD3idAYKGynoVTSNjYvsHilvFOQIYGBUMLjAUYfITo5DYwOGQSDdPSn4EUdUq/ZYbSS lKhQ== X-Gm-Message-State: AGRZ1gLLY9ThFs3ohK1n7Kpbe3OUo6m61u4vtVSjrM/ctJidSAvuklbO bJ+izXMnrhS2HlE1+aJZ0oOknh1KxTOC4zdp7q+K1xqqrw0= X-Received: by 2002:ac8:1909:: with SMTP id t9mr382956qtj.327.1540891869550; Tue, 30 Oct 2018 02:31:09 -0700 (PDT) MIME-Version: 1.0 References: <20181006065113.669-1-rajneesh.bhardwaj@linux.intel.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 30 Oct 2018 11:30:50 +0200 Message-ID: Subject: Re: [PATCH v2 1/4] platform/x86: intel_pmc_core: Show Latency Tolerance info To: rajneesh.bhardwaj@linux.intel.com Cc: Platform Driver , Darren Hart , Andy Shevchenko , Linux Kernel Mailing List , Srinivas Pandruvada , Rajneesh Bhardwaj 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 Tue, Oct 30, 2018 at 9:25 AM Bhardwaj, Rajneesh wrote: > > + Srinivas > > > On 19-Oct-18 5:42 PM, Andy Shevchenko wrote: > > On Sat, Oct 6, 2018 at 9:54 AM Rajneesh Bhardwaj > > wrote: > >> This adds support to show the Latency Tolerance Reporting for the IPs on > >> the PCH as reported by the PMC. The format shown here is raw LTR data > >> payload that can further be decoded as per the PCI specification. > >> > >> This also fixes some minor alignment issues in the header file by > >> removing spaces and converting to tabs at some places. > >> > > I have pushed slightly modified variant of this patch to my review and > > testing queue. > > Though this series needs a bit more work. > > Thanks again for your review Andy. I see that the infradead server is > down at the moment so i haven't seen your modifications yet. > http://git.infradead.org/linux-platform-drivers-x86.git/shortlog/refs/heads/review-andy > says gateway timeout. Oops, yesterday it worked perfectly. > > I see inconsistency now with the output with the rest of nodes there. > > index printing is not needed for those nodes hence i never added. > > > I don't care much, though some can be addressed for no regression. > > > > For example, index printing. Please, remove it. I completely forgot > > about userspace powerful tools. At least two very old and nice can > > enumerate lines for you. > > Obviously the index printing is redundant. > > Index printing is required here (for LTR Show and LTR Ignore) because it > paves an obvious and easy way for the users of this driver to know the > IP number to be used for LTR ignore. This was specifically requested by > some customer and Srinivas asked me to implement this so adding him for > his inputs. So, why it should be in kernel? When user prints this, they usually call `cat /.../file`, right? Is it too hard to call `cat -n /.../file` instead? The benefit of such approach is that it's independent on the file we are printing. (Note, `grep -n /.../file` does the same`) For more variants https://stackoverflow.com/questions/8206370/add-numbers-to-the-beginning-of-every-line-in-a-file > I am also planning to add some documentation for this driver later so > please consider this in current form. Good. -- With Best Regards, Andy Shevchenko