> -----Original Message-----
> From: Bhardwaj, Rajneesh
> Sent: Friday, July 14, 2017 5:24 PM
> To: platform-driver-...@vger.kernel.org
> Cc: dvh...@infradead.org; a...@infradead.org; linux-
> ker...@vger.kernel.org; Murthy, Shanth <shanth.mur...@intel.com>;
> Chakravarty, Souvik K <souvik.k.chakrava...@intel.com>; Bhardwaj,
> Rajneesh <rajneesh.bhard...@intel.com>
> Subject: [PATCH 3/3] platform/x86: Add Audio domain PG status events
> 
> From: "Murthy, Shanth" <shanth.mur...@intel.com>
> 
> This patch adds events to ioss telemetry to read the power gating status for
> the audio domain.
> 
> Signed-off-by: Shanth Murthy <shanth.mur...@intel.com>
> Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhard...@intel.com>
> ---
>  arch/x86/include/asm/intel_telemetry.h        | 2 +-
>  drivers/platform/x86/intel_telemetry_pltdrv.c | 6 ++++++
>  2 files changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/x86/include/asm/intel_telemetry.h
> b/arch/x86/include/asm/intel_telemetry.h
> index 85029b58d0cd..4eeae0a4f9a2 100644
> --- a/arch/x86/include/asm/intel_telemetry.h
> +++ b/arch/x86/include/asm/intel_telemetry.h
> @@ -17,7 +17,7 @@
>  #define INTEL_TELEMETRY_H
> 
>  #define TELEM_MAX_EVENTS_SRAM                28
> -#define TELEM_MAX_OS_ALLOCATED_EVENTS        20
> +#define TELEM_MAX_OS_ALLOCATED_EVENTS        25

This is something that should not be done without testing. There was an 
understanding to not use more than 20 counters in OS, so that tools like 
SoCWatch could use the rest 8 without total reconfiguration of the events. With 
this change we are not leaving much for tools and it may break SoCwatch/IMON or 
other tools dependent on using just 8. 
The better way for this would be for the userspace tool to configure the extra 
5 events via add_config() call and not increase the OS usage ceiling.

Or you could add some more sysfs apis for get/set events and do it via a 
daemon/script.

<snip>....

Reply via email to