From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751396AbdJEB1U (ORCPT ); Wed, 4 Oct 2017 21:27:20 -0400 Received: from mga01.intel.com ([192.55.52.88]:58824 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbdJEB1P (ORCPT ); Wed, 4 Oct 2017 21:27:15 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,479,1500966000"; d="scan'208";a="159005296" Message-ID: <1507166834.13183.2.camel@linux.intel.com> Subject: Re: [PATCH] ACPI / LPIT: Add Low Power Idle Table (LPIT) support From: Srinivas Pandruvada To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Lv , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List Date: Wed, 04 Oct 2017 18:27:14 -0700 In-Reply-To: References: <1507160613-56852-1-git-send-email-srinivas.pandruvada@linux.intel.com> <1507163979.53049.122.camel@linux.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2 (3.18.5.2-1.fc23) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2017-10-05 at 02:51 +0200, Rafael J. Wysocki wrote: > On Thu, Oct 5, 2017 at 2:39 AM, Srinivas Pandruvada > 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 > > > 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