From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>, Lv <lv.zheng@intel.com>,
Len Brown <lenb@kernel.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ACPI / LPIT: Add Low Power Idle Table (LPIT) support
Date: Wed, 04 Oct 2017 18:27:14 -0700 [thread overview]
Message-ID: <1507166834.13183.2.camel@linux.intel.com> (raw)
In-Reply-To: <CAJZ5v0ihPoqS0EKDMwEohCdu7EXsb4B+8EgBpaFs+waV+A9RmA@mail.gmail.com>
On Thu, 2017-10-05 at 02:51 +0200, Rafael J. Wysocki wrote:
> On Thu, Oct 5, 2017 at 2:39 AM, Srinivas Pandruvada
> <srinivas.pandruvada@linux.intel.com> wrote:
> >
> > On Thu, 2017-10-05 at 02:10 +0200, Rafael J. Wysocki wrote:
> > >
> > > On Thu, Oct 5, 2017 at 1:43 AM, Srinivas Pandruvada
> > > <srinivas.pandruvada@linux.intel.com> wrote:
> > > >
> > > >
> > > > Added functionality to read LPIT table, which provides:
> > > >
> > > > - Sysfs interface to read residency counters via
> > > > /sys/devices/system/cpu/cpuidle/low_power_idle_cpu_residency_us
> > > > /sys/devices/system/cpu/cpuidle/low_power_idle_system_residency
> > > > _us
> > > >
> > > >
> > [...]
> >
> > >
> > > >
> > > > +int lpit_read_residency_count_address(u64 *address)
> > > > +{
> > > > + if (!residency_info_mem.gaddr.address)
> > > > + return -EINVAL;
> > > > +
> > > > + *address = residency_info_mem.gaddr.address;
> > > > +
> > > > + return 0;
> > > > +}
> > > I don't see users of this. Are there any?
> > The user will be pmc_core_driver which will go through platform x86
> > drivers tree.
> OK
>
> >
> > Also some mei drivers will also need.
> What for?
They also need to get the PMC base address.
[...]
> > > > +
> > > > +#endif
> > > > +#endif
> > > The above can go into internal.h or sleep.h in drivers/acpi/ IMO.
> > > There's not need to export it.
> > The pmc core driver is in drivers/platform/x86. Do you want to
> > include
> > a local file from there?
> So the _init() thing can go to internal.h and the one-line header of
> the other one can go to include/linux/acpi.h just fine.
OK.
>
> And it would be good to mention what is going to use it in the
> changelog.
It is already described in the change log for pmc core driver.
Thanks,
Srinivas
next prev parent reply other threads:[~2017-10-05 1:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-04 23:43 [PATCH] ACPI / LPIT: Add Low Power Idle Table (LPIT) support Srinivas Pandruvada
2017-10-05 0:10 ` Rafael J. Wysocki
2017-10-05 0:39 ` Srinivas Pandruvada
2017-10-05 0:51 ` Rafael J. Wysocki
2017-10-05 1:27 ` Srinivas Pandruvada [this message]
2017-10-05 12:53 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1507166834.13183.2.camel@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lv.zheng@intel.com \
--cc=rafael@kernel.org \
--cc=rjw@rjwysocki.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).