Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp784990imm; Wed, 26 Sep 2018 06:48:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV60viskOL0jf/+b4sQKcLdJofeInGhl05OS1lSe2zhmFwUbPyRlqlXT/aIatC5R54Qla6aqs X-Received: by 2002:a62:cc0e:: with SMTP id a14-v6mr6396437pfg.131.1537969739407; Wed, 26 Sep 2018 06:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537969739; cv=none; d=google.com; s=arc-20160816; b=EpfAp6UvAQ06eA7rh2q/HCqujlpjiVUOcl7U8Z+iHoUA8z0fPepk7fSZ6DAEB5byEl +hmXb2yikTb3z7DCE87TefqMkRMUHeDx3yvjBlNISmGZlah+PqLtxcdSWlc10d4W1i2L Z1ZYlrFu7qkmlzSuZS5Xi45VCj+clyfecqNe6rTovJbIfbo9C0jSULZ//oriagaGVIVp aeJGATO0F6jODJqt7DsmtrcJu2QDbdmn78KOcSnQgkQhuLKrVBwu+WfZzYNK435XF/ay SeBoYHz0PuU/c5zWJlu4bdGslEmoSKUx3iRFaTlfYn7n/6D5RtqV7RBpSfJwqj14CW3b 5DLQ== 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=mTUT9zklqoW9nrK8SE8Gpn55j3DZMaEfU2fi/GJxgNw=; b=riRvpya9dBwgydUHJcGlDNVjOI8alzKBoJyQU3rdO9XKqAFxp93fDyFz/rndujvaxN fG0Y8o4kOEtVatR0nhmNqP7W8nSisZQ5FqxP0u86CciqCa2GKEgMInO4n5gdCU8HpR6Z CmZ8VoMNL2uurYxT5y5WxNVFq2O/2L7whMmyAzgjMx5QRwo7j9hnmpSxlCZBmxzSaNhU m8+a0NbpSQ58kPxLWnr7PKAjTrpTG0mC/rGlORVyoU4Bzv0E8t8FiWvPoaZlqWZ1b8/o WB3JxPN+oCUyQiB3zbJ9QTRdvq+cQQCOIPsEWpe0zMNXKp6aMv4Rebc7WC0QoMwu2GhZ xzgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dLFqTdqn; 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 o7-v6si5308092pls.344.2018.09.26.06.48.42; Wed, 26 Sep 2018 06:48:59 -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=dLFqTdqn; 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 S1727222AbeIZUBk (ORCPT + 99 others); Wed, 26 Sep 2018 16:01:40 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:42470 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbeIZUBj (ORCPT ); Wed, 26 Sep 2018 16:01:39 -0400 Received: by mail-qk1-f196.google.com with SMTP id w73-v6so9918604qkb.9; Wed, 26 Sep 2018 06:48:36 -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=mTUT9zklqoW9nrK8SE8Gpn55j3DZMaEfU2fi/GJxgNw=; b=dLFqTdqnTAkVdJpLu3VrSh5ukAbFiGiMsTOUvJgEGGJRHBx3/tGK673MD/FnfjLRDk mFGW6Kbp2hpBlmE0Ic9O4f+uvtFPqRvKD4UTtynzk9K++KVBwA4mPYJ0xCisAcWbjo/8 i76FLG3qCANmADCmBKiDnGJKj48NcvKayY3wbQPkDmZTAEdYmXChKkvFE0n0dIhfTraj r2d3BFbsKilac7kAj4vsZerNxbhdk4Kh13/4GkFZZYtdkoTyOyf6DV/kAjceg0o7MzyN OaKVHd/Wu/9AlpSDl85T82DEmw9q3jDVxj2HuCOsNVb/A2nnRb0BG5Bi//WDjDbaYACN fF+Q== 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=mTUT9zklqoW9nrK8SE8Gpn55j3DZMaEfU2fi/GJxgNw=; b=tkd9/wHd82yKeN23SVBSU8IindzoT5afi8TdrnBtD3brA2Zaos6pkf3k7+A6qyeqH7 n2osZBLc96WUv2+Ahjd9T4673zb9s1QBlgymeK6VoRszmxWCLvN3AIZqWnYvrd4cKhPm xQNolu2SUUI9CuXoCP+kRg4e/XqTT8CxPYEL7MWZ+c5iTuib9UrB5/X5irZCp/7bCq0J pycDIaB5SqNX4c9s1csxd1WAql8l8mesIcPivsDrBgmhVfxdDNoH0XpbxHfZI649eoQX M9to2qBoHSnu5jSr2xLFknlwX1SS0vdalh4q5+U+TTNrMpWfnBg/awtN4ZVTwvCu58Hb c/YA== X-Gm-Message-State: ABuFfoiv3MiFQKUkWuqThGAhhrrApCi1ovwRWpj7o0zZE9EGCP3r+nKe SpKLO06K74WfNEeQkDiBF7sU2mQyb8Km8fk4GhQ= X-Received: by 2002:a37:4712:: with SMTP id u18-v6mr4281242qka.301.1537969716235; Wed, 26 Sep 2018 06:48:36 -0700 (PDT) MIME-Version: 1.0 References: <20180903180415.31575-1-rajneesh.bhardwaj@linux.intel.com> In-Reply-To: <20180903180415.31575-1-rajneesh.bhardwaj@linux.intel.com> From: Andy Shevchenko Date: Wed, 26 Sep 2018 16:48:18 +0300 Message-ID: Subject: Re: [PATCH 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 , Rajneesh Bhardwaj , Souvik Kumar Chakravarty 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 Mon, Sep 3, 2018 at 9:06 PM 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. Thanks for the patch, my comments below. > +static const struct pmc_bit_map spt_ltr_show_map[] = { > + {"IP 0 : LTR_SOUTHPORT_A", SPT_PMC_LTR_SPA}, > + {"IP 1 : LTR_SOUTHPORT_B", SPT_PMC_LTR_SPB}, > + {"IP 2 : LTR_SATA", SPT_PMC_LTR_SATA}, > + {"IP 3 : LTR_GIGABIT_ETHERNET", SPT_PMC_LTR_GBE}, > + {"IP 4 : LTR_XHCI", SPT_PMC_LTR_XHCI}, > + /* IP 5 is reserved */ > + {"IP 6 : LTR_ME", SPT_PMC_LTR_ME}, > + /* EVA is Enterprise Value Add, doesn't really exist on PCH */ > + {"IP 7 : LTR_EVA", SPT_PMC_LTR_EVA}, > + {"IP 8 : LTR_SOUTHPORT_C", SPT_PMC_LTR_SPC}, > + {"IP 9 : LTR_HD_AUDIO", SPT_PMC_LTR_AZ}, > + /* IP 10 is reserved */ > + {"IP 11 : LTR_LPSS", SPT_PMC_LTR_LPSS}, > + {"IP 12 : LTR_SOUTHPORT_D", SPT_PMC_LTR_SPD}, > + {"IP 13 : LTR_SOUTHPORT_E", SPT_PMC_LTR_SPE}, > + {"IP 14 : LTR_CAMERA", SPT_PMC_LTR_CAM}, > + {"IP 15 : LTR_ESPI", SPT_PMC_LTR_ESPI}, > + {"IP 16 : LTR_SCC", SPT_PMC_LTR_SCC}, > + {"IP 17 : LTR_ISH", SPT_PMC_LTR_ISH}, > + /* Below two cannot be for LTR_IGNORE */ > + {"LTR_CURRENT_PLATFORM", SPT_PMC_LTR_CUR_PLT}, > + {"LTR_AGGREGATED_SYSTEM", SPT_PMC_LTR_CUR_ASLT}, Before no map has this fancy "IP xx :" prefixes. Please, remove. > + {}, No need for comma > + Redundant. > +}; > +static const struct pmc_bit_map cnp_ltr_show_map[] = { Same comments as above. > +}; > + debugfs_create_file("ltr_show", 0644, dir, pmcdev, > + &pmc_core_ltr_fops); One line? > #define NUM_RETRIES 100 > #define NUM_IP_IGN_ALLOWED 17 + blank line here. > +#define SPT_PMC_LTR_CUR_PLT 0x350 -- With Best Regards, Andy Shevchenko