[PATCH v2] perf/x86/intel: Update ICL Core and Package C-state event counters

2019-09-01 Thread Harry Pan
, PKG_C9, and PKG_C10 residency counters. This benefits users to profile them through the perf interface. Signed-off-by: Harry Pan --- arch/x86/events/intel/cstate.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/arch/x86/events/intel/cstate.c

[PATCH] perf/x86/intel: Update ICL Core and Package C-state event counters

2019-07-26 Thread Harry Pan
, PKG_C9, and PKG_C10 residency counters. This benefits users to profile them through the perf interface. Signed-off-by: Harry Pan --- arch/x86/events/intel/cstate.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/x86/events/intel/cstate.c b

[PATCH] USB: core: correct a spelling mistake in the comment

2019-06-19 Thread Harry Pan
Fix a spelling typo in the function comment. Signed-off-by: Harry Pan --- drivers/usb/core/hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 8d4631c81b9f..1988f8f88f75 100644 --- a/drivers/usb/core/hub.c +++ b

[PATCH v3] platform/x86: intel_pmc_core: transform Pkg C-state residency from TSC ticks into microseconds

2019-06-19 Thread Harry Pan
aligns to other sysfs debug entries of residency counter in the same metric in microseconds, benefits reading and scripting. v2: restore the accidentally deleted newline, no function change. v3: apply kernel do_div() macro to calculate division Signed-off-by: Harry Pan --- drivers/platform/x86

[PATCH v2] platform/x86: intel_pmc_core: transform Pkg C-state residency from TSC ticks into microseconds

2019-05-27 Thread Harry Pan
aligns to other sysfs debug entries of residency counter in the same metric in microseconds, benefits reading and scripting. v2: restore the accidentally deleted newline, no function change. Signed-off-by: Harry Pan --- drivers/platform/x86/intel_pmc_core.c | 5 +++-- 1 file changed, 3

[PATCH] platform/x86: intel_pmc_core: transform Pkg C-state residency from TSC ticks into microseconds

2019-05-27 Thread Harry Pan
aligns to other sysfs debug entries of residency counter in the same metric in microseconds, benefits reading and scripting. v2: restore the accidentally deleted newline, no function change. Signed-off-by: Harry Pan --- drivers/platform/x86/intel_pmc_core.c | 5 +++-- 1 file changed, 3

[PATCH] platform/x86: intel_pmc_core: transform Pkg C-state residency from TSC ticks into microseconds

2019-05-27 Thread Harry Pan
aligns to other sysfs debug entries of residency counter in the same metric in microseconds, benefits reading and scripting. Signed-off-by: Harry Pan --- drivers/platform/x86/intel_pmc_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86

[PATCH v3] clocksource: Untrust the watchdog if its interval is too small

2019-05-18 Thread Harry Pan
sensible wall clock delay. v2: fix resource leak: the locked watchdog_lock v3: revise the communication: focus on the timer self validation Link: https://bugzilla.kernel.org/show_bug.cgi?id=203183 Signed-off-by: Harry Pan --- kernel/time/clocksource.c | 7 +++ 1 file changed, 7 insertions

[PATCH v2] clocksource: Untrust the clocksource watchdog when its interval is too small

2019-05-18 Thread Harry Pan
Signed-off-by: Harry Pan --- kernel/time/clocksource.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 3bcc19ceb073..090d937d5ec4 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -96,6 +96,7

[PATCH] clocksource: Untrust the clocksource watchdog when its interval is too small

2019-05-16 Thread Harry Pan
to properly handle the timer offload between XTAL and RTC when it enters PC10, while this patch is a mitigation to reduce the false alarm of clocksource unstable regardless what clocksources are paired. Link: https://bugzilla.kernel.org/show_bug.cgi?id=203183 Signed-off-by: Harry Pan --- kernel/time

[tip:perf/urgent] perf/x86/intel: Update KBL Package C-state events to also include PC8/PC9/PC10 counters

2019-04-25 Thread tip-bot for Harry Pan
Commit-ID: 82c99f7a81f28f8c1be5f701c8377d14c4075b10 Gitweb: https://git.kernel.org/tip/82c99f7a81f28f8c1be5f701c8377d14c4075b10 Author: Harry Pan AuthorDate: Wed, 24 Apr 2019 22:50:33 +0800 Committer: Ingo Molnar CommitDate: Thu, 25 Apr 2019 08:59:31 +0200 perf/x86/intel: Update KBL

[PATCH] perf/x86/intel: Update KBL Package C-state events

2019-04-24 Thread Harry Pan
Kaby Lake (and Coffee Lake) has PC8/PC9/PC10 residency counters. This patch updates the list of PMU event counters that allows user space tool to profile them through perf interface. Signed-off-by: Harry Pan --- arch/x86/events/intel/cstate.c | 10 +- 1 file changed, 5 insertions

[PATCH v7 1/2] PM / sleep: refactor the filesystems sync to reduce duplication

2019-02-25 Thread Harry Pan
This patch creates a common helper to sync filesystems and shares to the suspend, hibernate, and snapshot. Signed-off-by: Harry Pan --- include/linux/suspend.h | 3 +++ kernel/power/hibernate.c | 5 + kernel/power/main.c | 9 + kernel/power/suspend.c | 13

[PATCH v7 2/2] PM / sleep: measure the time of filesystems syncing

2019-02-25 Thread Harry Pan
script. v1 to v5: context discussion v6: split patches logically in code refactor and sync profile v7: improve 32/64 bit machine compatibility Signed-off-by: Harry Pan --- kernel/power/main.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kernel/power/main.c b

[PATCH v7 2/2] PM / sleep: measure the time of filesystems syncing

2019-02-25 Thread Harry Pan
script. v1 to v5: context discussion v6: split patches logically in code refactor and sync profile v7: improve 32/64 bit machine compatibility Signed-off-by: Harry Pan --- kernel/power/main.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kernel/power/main.c b

[PATCH v7 1/2] PM / sleep: refactor the filesystems sync to reduce duplication

2019-02-25 Thread Harry Pan
This patch creates a common helper to sync filesystems and shares to the suspend, hibernate, and snapshot. Signed-off-by: Harry Pan --- include/linux/suspend.h | 3 +++ kernel/power/hibernate.c | 5 + kernel/power/main.c | 9 + kernel/power/suspend.c | 13

[PATCH v6 2/2] PM / sleep: measure the time of filesystems syncing

2019-02-23 Thread Harry Pan
script. Signed-off-by: Harry Pan --- kernel/power/main.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kernel/power/main.c b/kernel/power/main.c index a8a8e6ec57e6..a08dcc743f31 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c @@ -54,9 +54,15

[PATCH v6 1/2] PM / sleep: refactor the filesystems sync to reduce duplication

2019-02-23 Thread Harry Pan
This patch creates a common helper to sync filesystems and shares to the suspend, hibernate, and snapshot. Signed-off-by: Harry Pan --- include/linux/suspend.h | 3 +++ kernel/power/hibernate.c | 5 + kernel/power/main.c | 9 + kernel/power/suspend.c | 13

[PATCH v5] PM / sleep: measure the time of filesystem syncing

2019-02-22 Thread Harry Pan
-by: Harry Pan --- include/linux/suspend.h | 3 +++ kernel/power/hibernate.c | 5 + kernel/power/main.c | 15 +++ kernel/power/suspend.c | 13 + kernel/power/user.c | 5 + 5 files changed, 25 insertions(+), 16 deletions(-) diff --git a/include/linux

[PATCH v5] PM / sleep: measure the time of filesystem syncing

2019-02-22 Thread Harry Pan
-by: Harry Pan --- include/linux/suspend.h | 3 +++ kernel/power/hibernate.c | 4 +--- kernel/power/main.c | 15 +++ kernel/power/suspend.c | 13 + kernel/power/user.c | 4 +--- 5 files changed, 25 insertions(+), 14 deletions(-) diff --git a/include/linux

[PATCH v4] PM / suspend: measure the time of filesystem syncing

2019-02-20 Thread Harry Pan
script. v2: simplify the variables, apply the simplest form of ktime API. v3: reduce conditional compilation, rectify profiling in better syntax v4: avoid interposition, profile on hibernation, rectify printk format Signed-off-by: Harry Pan --- kernel/power/hibernate.c | 9 +++-- kernel/power

[PATCH v4] PM / suspend: measure the time of filesystem syncing

2019-02-20 Thread Harry Pan
script. v2: simplify the variables, apply the simplest form of ktime API. v3: reduce conditional compilation, rectify profiling in better syntax v4: avoid interposition, profile on hibernation, rectify printk format Signed-off-by: Harry Pan --- kernel/power/hibernate.c | 9 +++-- kernel/power

[PATCH v3] PM / suspend: measure the time of filesystem syncing

2019-02-14 Thread Harry Pan
script. v2: simplify the variables, apply the simplest form of ktime API. v3: reduce conditional compilation, rectify profiling in better syntax Signed-off-by: Harry Pan --- kernel/power/suspend.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/kernel/power

[PATCH v3] PM / suspend: measure the time of filesystem syncing

2019-02-14 Thread Harry Pan
script. v2: simplify the variables, apply the simplest form of ktime API. v3: reduce conditional compilation, rectify profiling in better syntax Signed-off-by: Harry Pan --- kernel/power/suspend.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/kernel/power

[PATCH] PM / suspend: measure the time of filesystem syncing

2019-02-06 Thread Harry Pan
script. v2: simplify the variables, apply the simplest form of ktime API. Signed-off-by: Harry Pan --- kernel/power/suspend.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index 0bd595a0b610..87c0073f0c9d 100644 --- a/kernel

[PATCH v2] PM / suspend: measure the time of filesystem syncing

2019-02-06 Thread Harry Pan
script. v2: simplify the variables, apply the simplest form of ktime API. Signed-off-by: Harry Pan --- kernel/power/suspend.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index 0bd595a0b610..87c0073f0c9d 100644 --- a/kernel

[PATCH] PM / suspend: measure the time of filesystem syncing

2019-02-02 Thread Harry Pan
script. Signed-off-by: Harry Pan --- kernel/power/suspend.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index 0bd595a0b610..f3b7c64f2242 100644 --- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c @@ -550,6 +550,8

[PATCH] usb: xhci: pci: Enable Intel USB role mux on GLK platforms

2019-01-31 Thread Harry Pan
Like Apollo Lake, Gemini Lake support DRD in port 0, this patch enables the DRD support for GLK based on the EDS rev 2.2 vol #1 of section 3.8 of USB Controller. Signed-off-by: Harry Pan --- drivers/usb/host/xhci-pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH] mmc: sdhci-pci: mitigate Intel BXT/APL card detection race in early boot

2018-04-12 Thread Harry Pan
s not happen. To tackle this odd, did experiment to observe the race window period, enqueue a mmc detection in 200 ms later when it successfully routes the card detection to GPIO, this allows margin to make consensus in between the GPIO and the host controller. Signed-off-by: Harry Pan <harr

[PATCH] mmc: sdhci-pci: mitigate Intel BXT/APL card detection race in early boot

2018-04-12 Thread Harry Pan
s not happen. To tackle this odd, did experiment to observe the race window period, enqueue a mmc detection in 200 ms later when it successfully routes the card detection to GPIO, this allows margin to make consensus in between the GPIO and the host controller. Signed-off-by: Harry Pan --- drivers/mm

[tip:perf/core] perf/x86/intel: Add Cannon Lake support for RAPL profiling

2018-03-31 Thread tip-bot for Harry Pan
Commit-ID: 490d03e83da2a5e9d7db84b1ec30a9c95415787e Gitweb: https://git.kernel.org/tip/490d03e83da2a5e9d7db84b1ec30a9c95415787e Author: Harry Pan <harry@intel.com> AuthorDate: Fri, 9 Mar 2018 20:15:47 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Sat, 31 Ma

[tip:perf/core] perf/x86/intel: Add Cannon Lake support for RAPL profiling

2018-03-31 Thread tip-bot for Harry Pan
Commit-ID: 490d03e83da2a5e9d7db84b1ec30a9c95415787e Gitweb: https://git.kernel.org/tip/490d03e83da2a5e9d7db84b1ec30a9c95415787e Author: Harry Pan AuthorDate: Fri, 9 Mar 2018 20:15:47 +0800 Committer: Ingo Molnar CommitDate: Sat, 31 Mar 2018 11:28:36 +0200 perf/x86/intel: Add Cannon

[tip:perf/core] perf/x86/intel: Enable C-state residency events for Cannon Lake

2018-03-31 Thread tip-bot for Harry Pan
Commit-ID: 1159e09476536250c2a0173d4298d15114df7a89 Gitweb: https://git.kernel.org/tip/1159e09476536250c2a0173d4298d15114df7a89 Author: Harry Pan <harry@intel.com> AuthorDate: Fri, 9 Mar 2018 20:15:48 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Sat, 31 Ma

[tip:perf/core] perf/x86/intel: Enable C-state residency events for Cannon Lake

2018-03-31 Thread tip-bot for Harry Pan
Commit-ID: 1159e09476536250c2a0173d4298d15114df7a89 Gitweb: https://git.kernel.org/tip/1159e09476536250c2a0173d4298d15114df7a89 Author: Harry Pan AuthorDate: Fri, 9 Mar 2018 20:15:48 +0800 Committer: Ingo Molnar CommitDate: Sat, 31 Mar 2018 11:28:36 +0200 perf/x86/intel: Enable C

[PATCH 1/3] powercap: intel_rapl: Add support for Cannon Lake

2018-03-09 Thread Harry Pan
Cannon Lake microarchitecture is similar to Kaby Lake in terms of RAPL, this patch enables CNL RAPL support. Signed-off-by: Harry Pan <harry@intel.com> --- drivers/powercap/intel_rapl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/powercap/intel_rapl.c b/drivers/po

[PATCH 1/3] powercap: intel_rapl: Add support for Cannon Lake

2018-03-09 Thread Harry Pan
Cannon Lake microarchitecture is similar to Kaby Lake in terms of RAPL, this patch enables CNL RAPL support. Signed-off-by: Harry Pan --- drivers/powercap/intel_rapl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/powercap/intel_rapl.c b/drivers/powercap/intel_rapl.c index

[PATCH 3/3] perf/x86/intel: Enable C-state residency events for Cannon Lake

2018-03-09 Thread Harry Pan
Cannon Lake supports C1/C3/C6/C7, PC2/PC3/PC6/PC7/PC8/PC9/PC10 state residency counters, this patch enables those counters. The MSR information is based on Intel Software Developers' Manual, Vol. 4, Order No. 335592. Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events

[PATCH 3/3] perf/x86/intel: Enable C-state residency events for Cannon Lake

2018-03-09 Thread Harry Pan
Cannon Lake supports C1/C3/C6/C7, PC2/PC3/PC6/PC7/PC8/PC9/PC10 state residency counters, this patch enables those counters. The MSR information is based on Intel Software Developers' Manual, Vol. 4, Order No. 335592. Signed-off-by: Harry Pan --- arch/x86/events/intel/cstate.c | 44

[PATCH 2/3] perf/x86/intel: Add Cannon Lake support of RAPL profiling

2018-03-09 Thread Harry Pan
-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/rapl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index a2efb490f743..32f3e9423e99 100644 --- a/arch/x86/events/intel/rapl.c +++ b/arch/x86/events/intel/

[PATCH 2/3] perf/x86/intel: Add Cannon Lake support of RAPL profiling

2018-03-09 Thread Harry Pan
-by: Harry Pan --- arch/x86/events/intel/rapl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index a2efb490f743..32f3e9423e99 100644 --- a/arch/x86/events/intel/rapl.c +++ b/arch/x86/events/intel/rapl.c @@ -774,6 +774,8 @@ static

[PATCH] ASoC: Intel: bxt: Refine the HW contraint of Ref capture.

2017-12-05 Thread Harry Pan
The patch restricts the HW contraint of the refcap of WoV stream in single channel (mono) and 16k Hz based on platform implementation. Such that, the userspace program can rely on correct HW parameters through the ALSA library call to manipulate the device. Signed-off-by: Harry Pan <ha

[PATCH] ASoC: Intel: bxt: Refine the HW contraint of Ref capture.

2017-12-05 Thread Harry Pan
The patch restricts the HW contraint of the refcap of WoV stream in single channel (mono) and 16k Hz based on platform implementation. Such that, the userspace program can rely on correct HW parameters through the ALSA library call to manipulate the device. Signed-off-by: Harry Pan --- sound

[PATCH] perf/x86/intel/cstate: revise package C-state residency of SKL/KBL

2017-09-01 Thread Harry Pan
also align the events w/ Len Brown's turbostat metrics on SKL/KBL platforms. Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/cstate.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/x86/events/intel/cstate.c b/arch/x86/events

[PATCH] perf/x86/intel/cstate: revise package C-state residency of SKL/KBL

2017-09-01 Thread Harry Pan
also align the events w/ Len Brown's turbostat metrics on SKL/KBL platforms. Signed-off-by: Harry Pan --- arch/x86/events/intel/cstate.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/x86/events/intel/cstate.c b/arch/x86/events/intel/cstate.c index

[tip:perf/urgent] perf/x86/intel: Enable C-state residency events for Apollo Lake

2017-07-18 Thread tip-bot for Harry Pan
Commit-ID: 5c10b048c37cc08a21fa97a0575eccf4948948ca Gitweb: http://git.kernel.org/tip/5c10b048c37cc08a21fa97a0575eccf4948948ca Author: Harry Pan <harry@intel.com> AuthorDate: Mon, 17 Jul 2017 18:37:49 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Tue, 18 Ju

[tip:perf/urgent] perf/x86/intel: Enable C-state residency events for Apollo Lake

2017-07-18 Thread tip-bot for Harry Pan
Commit-ID: 5c10b048c37cc08a21fa97a0575eccf4948948ca Gitweb: http://git.kernel.org/tip/5c10b048c37cc08a21fa97a0575eccf4948948ca Author: Harry Pan AuthorDate: Mon, 17 Jul 2017 18:37:49 +0800 Committer: Ingo Molnar CommitDate: Tue, 18 Jul 2017 14:13:40 +0200 perf/x86/intel: Enable C

[tip:perf/urgent] perf/x86/intel: Enable C-state residency events for Apollo Lake

2017-07-18 Thread tip-bot for Harry Pan
Commit-ID: 80ef64ad3c2babe8dcde05ec518795cfd86bb6e1 Gitweb: http://git.kernel.org/tip/80ef64ad3c2babe8dcde05ec518795cfd86bb6e1 Author: Harry Pan <harry@intel.com> AuthorDate: Mon, 17 Jul 2017 18:37:49 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Tue, 18 Ju

[tip:perf/urgent] perf/x86/intel: Enable C-state residency events for Apollo Lake

2017-07-18 Thread tip-bot for Harry Pan
Commit-ID: 80ef64ad3c2babe8dcde05ec518795cfd86bb6e1 Gitweb: http://git.kernel.org/tip/80ef64ad3c2babe8dcde05ec518795cfd86bb6e1 Author: Harry Pan AuthorDate: Mon, 17 Jul 2017 18:37:49 +0800 Committer: Ingo Molnar CommitDate: Tue, 18 Jul 2017 10:50:23 +0200 perf/x86/intel: Enable C

[PATCH] perf/x86/intel/cstate: Enable C-state residency events for Apollo Lake

2017-07-17 Thread Harry Pan
Goldmont microarchitecture supports C1/C3/C6, PC2/PC3/PC6/PC10 state residency counters, the patch enables them for Apollo Lake platform. The MSR information is based on Intel Software Developers' Manual, Vol. 4, Order No. 335592, Table 2-6 and 2-12. Signed-off-by: Harry Pan <harry@intel.

[PATCH] perf/x86/intel/cstate: Enable C-state residency events for Apollo Lake

2017-07-17 Thread Harry Pan
Goldmont microarchitecture supports C1/C3/C6, PC2/PC3/PC6/PC10 state residency counters, the patch enables them for Apollo Lake platform. The MSR information is based on Intel Software Developers' Manual, Vol. 4, Order No. 335592, Table 2-6 and 2-12. Signed-off-by: Harry Pan --- arch/x86

[PATCH] tools/power turbostat: enable BXT DRAM RAPL domain

2017-03-12 Thread Harry Pan
Goldmont microarchitecture supports DRAM RAPL domain. This patch adds relevant flags in probing, such that it enables DRAM energy profile. Signed-off-by: Harry Pan <harry@intel.com> Signed-off-by: Harry Pan <harry@intel.com> --- tools/power/x86/turbostat/turbostat.c | 9

[PATCH] tools/power turbostat: enable BXT DRAM RAPL domain

2017-03-12 Thread Harry Pan
Goldmont microarchitecture supports DRAM RAPL domain. This patch adds relevant flags in probing, such that it enables DRAM energy profile. Signed-off-by: Harry Pan Signed-off-by: Harry Pan --- tools/power/x86/turbostat/turbostat.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions

[PATCH] drm/i915: minor corner case fix to respect user's backlight setting

2017-01-28 Thread Harry Pan
926] [drm:intel_panel_actually_set_backlight [i915]] set backlight PWM = 207 Fixes: 13f3fbe827d0 ("fix inconsistent brightness after resume") Signed-off-by: Harry Pan <harry@intel.com> --- drivers/gpu/drm/i915/intel_panel.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH] drm/i915: minor corner case fix to respect user's backlight setting

2017-01-28 Thread Harry Pan
926] [drm:intel_panel_actually_set_backlight [i915]] set backlight PWM = 207 Fixes: 13f3fbe827d0 ("fix inconsistent brightness after resume") Signed-off-by: Harry Pan --- drivers/gpu/drm/i915/intel_panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 2/3] x86/perf/rapl: Make quirk a function pointer

2016-09-10 Thread Harry Pan
e init struct initializers readable and rename the misnomed intel_rapl_hw_init_fun struct to intel_rapl_model_desc because that's what it is a cpu model descriptor for the rapl features specific to a particular model. Signed-off-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Harr

[PATCH 2/3] x86/perf/rapl: Make quirk a function pointer

2016-09-10 Thread Harry Pan
readable and rename the misnomed intel_rapl_hw_init_fun struct to intel_rapl_model_desc because that's what it is a cpu model descriptor for the rapl features specific to a particular model. Signed-off-by: Thomas Gleixner Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 92

[PATCH 3/3] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

2016-09-10 Thread Harry Pan
/,power/energy-pkg/ sleep 10 This patch also enables multiple quirks. Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/rapl.c | 49 1 file changed, 49 insertions(+) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/

[PATCH 1/3] perf/x86/rapl: Enable Apollo Lake RAPL support

2016-09-10 Thread Harry Pan
. ESU and power domains refer to Intel Software Developers' Manual, Vol. 3C, Order No. 325384, Table 35-12. Usage example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/rapl.c | 2 ++

[PATCH 3/3] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

2016-09-10 Thread Harry Pan
/,power/energy-pkg/ sleep 10 This patch also enables multiple quirks. Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 49 1 file changed, 49 insertions(+) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index

[PATCH 1/3] perf/x86/rapl: Enable Apollo Lake RAPL support

2016-09-10 Thread Harry Pan
. ESU and power domains refer to Intel Software Developers' Manual, Vol. 3C, Order No. 325384, Table 35-12. Usage example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 2 ++ 1 file changed, 2 insertions

[PATCH] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

2016-09-10 Thread Harry Pan
/,power/energy-pkg/ sleep 10 This patch also enables multiple quirks. Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/rapl.c | 49 1 file changed, 49 insertions(+) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/

[PATCH] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

2016-09-10 Thread Harry Pan
/,power/energy-pkg/ sleep 10 This patch also enables multiple quirks. Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 49 1 file changed, 49 insertions(+) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index

[PATCH 2/3] x86/perf/rapl: Make quirk a function pointer

2016-09-10 Thread Harry Pan
e init struct initializers readable and rename the misnomed intel_rapl_hw_init_fun struct to intel_rapl_model_desc because that's what it is a cpu model descriptor for the rapl features specific to a particular model. Signed-off-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Harr

[PATCH 2/3] x86/perf/rapl: Make quirk a function pointer

2016-09-10 Thread Harry Pan
readable and rename the misnomed intel_rapl_hw_init_fun struct to intel_rapl_model_desc because that's what it is a cpu model descriptor for the rapl features specific to a particular model. Signed-off-by: Thomas Gleixner Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 92

[PATCH 1/3] perf/x86/rapl: Enable Apollo Lake RAPL support

2016-09-10 Thread Harry Pan
. ESU and power domains refer to Intel Software Developers' Manual, Vol. 3C, Order No. 325384, Table 35-12. Usage example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/rapl.c | 2 ++

[PATCH 3/3] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

2016-09-10 Thread Harry Pan
/,power/energy-pkg/ sleep 10 This patch also enables multiple quirks. Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/rapl.c | 55 1 file changed, 55 insertions(+) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/

[PATCH 1/3] perf/x86/rapl: Enable Apollo Lake RAPL support

2016-09-10 Thread Harry Pan
. ESU and power domains refer to Intel Software Developers' Manual, Vol. 3C, Order No. 325384, Table 35-12. Usage example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 2 ++ 1 file changed, 2 insertions

[PATCH 3/3] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

2016-09-10 Thread Harry Pan
/,power/energy-pkg/ sleep 10 This patch also enables multiple quirks. Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 55 1 file changed, 55 insertions(+) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index

[tip:perf/core] perf/x86/rapl: Enable Apollo Lake RAPL support

2016-09-10 Thread tip-bot for Harry Pan
Commit-ID: 2668c6195685f4b6f281767d10b4f4f2e32c2305 Gitweb: http://git.kernel.org/tip/2668c6195685f4b6f281767d10b4f4f2e32c2305 Author: Harry Pan <harry@intel.com> AuthorDate: Thu, 8 Sep 2016 17:08:57 +0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Sat, 10 Se

[tip:perf/core] perf/x86/rapl: Enable Apollo Lake RAPL support

2016-09-10 Thread tip-bot for Harry Pan
Commit-ID: 2668c6195685f4b6f281767d10b4f4f2e32c2305 Gitweb: http://git.kernel.org/tip/2668c6195685f4b6f281767d10b4f4f2e32c2305 Author: Harry Pan AuthorDate: Thu, 8 Sep 2016 17:08:57 +0800 Committer: Ingo Molnar CommitDate: Sat, 10 Sep 2016 11:18:52 +0200 perf/x86/rapl: Enable Apollo

[PATCH 1/2] perf/x86/rapl: Enable Apollo Lake RAPL support

2016-09-09 Thread Harry Pan
. ESU and power domains refer to Intel Software Developers' Manual, Vol. 3C, Order No. 325384, Table 35-12. Usage example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/rapl.c | 2 ++

[PATCH 1/2] perf/x86/rapl: Enable Apollo Lake RAPL support

2016-09-09 Thread Harry Pan
. ESU and power domains refer to Intel Software Developers' Manual, Vol. 3C, Order No. 325384, Table 35-12. Usage example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 2 ++ 1 file changed, 2 insertions

[PATCH 2/2] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

2016-09-09 Thread Harry Pan
example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 This patch also enables multiple quirks. Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/rapl.c | 83 +++- 1 file changed, 67 insertions(

[PATCH 2/2] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

2016-09-09 Thread Harry Pan
example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 This patch also enables multiple quirks. Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 83 +++- 1 file changed, 67 insertions(+), 16 deletions(-) diff --git

[PATCH 2/2] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

2016-09-09 Thread Harry Pan
quirks. Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/rapl.c | 68 +--- 1 file changed, 58 insertions(+), 10 deletions(-) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index f7924640..328fea4

[PATCH 2/2] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

2016-09-09 Thread Harry Pan
quirks. Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 68 +--- 1 file changed, 58 insertions(+), 10 deletions(-) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index f7924640..328fea4 100644 --- a/arch/x86/events/intel

[PATCH 1/2] perf/x86/rapl: Enable Apollo Lake RAPL support

2016-09-09 Thread Harry Pan
. ESU and power domains refer to Intel Software Developers' Manual, Vol. 3C, Order No. 325384, Table 35-12. Usage example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/rapl.c | 2 ++

[PATCH 1/2] perf/x86/rapl: Enable Apollo Lake RAPL support

2016-09-09 Thread Harry Pan
. ESU and power domains refer to Intel Software Developers' Manual, Vol. 3C, Order No. 325384, Table 35-12. Usage example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 2 ++ 1 file changed, 2 insertions

[PATCH 1/2] perf/x86/rapl: Enable Apollo Lake RAPL support

2016-09-08 Thread Harry Pan
. ESU and power domains refer to Intel Software Developers' Manual, Vol. 3C, Order No. 325384, Table 35-12. Usage example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/rapl.c | 2 ++

[PATCH 1/2] perf/x86/rapl: Enable Apollo Lake RAPL support

2016-09-08 Thread Harry Pan
. ESU and power domains refer to Intel Software Developers' Manual, Vol. 3C, Order No. 325384, Table 35-12. Usage example: $ perf list $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10 Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 2 ++ 1 file changed, 2 insertions

[PATCH 2/2] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

2016-09-08 Thread Harry Pan
quirks. Signed-off-by: Harry Pan <harry@intel.com> Signed-off-by: Harry Pan <harry@intel.com> --- arch/x86/events/intel/rapl.c | 78 ++-- 1 file changed, 68 insertions(+), 10 deletions(-) diff --git a/arch/x86/events/intel/rapl.c b/arc

[PATCH 2/2] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

2016-09-08 Thread Harry Pan
quirks. Signed-off-by: Harry Pan Signed-off-by: Harry Pan --- arch/x86/events/intel/rapl.c | 78 ++-- 1 file changed, 68 insertions(+), 10 deletions(-) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c index f7924640..fdd4d86 100644

[PATCH] ASoC: dapm: Do not traverse widget hooks to snd-soc-dummy

2016-03-19 Thread Harry Pan
dget hooks to the 'snd-soc-dummy' component, else it will trigger memory fault because of invalid dereference address of card->widgets. Test by grep -rsI "hello" /sys/devices/platform/skl_nau88l25_ssm4567_i2s/ Conflicts: sound/soc/soc-dapm.c Signed-off-by: Harry Pan <harry@int

[PATCH] ASoC: dapm: Do not traverse widget hooks to snd-soc-dummy

2016-03-19 Thread Harry Pan
dget hooks to the 'snd-soc-dummy' component, else it will trigger memory fault because of invalid dereference address of card->widgets. Test by grep -rsI "hello" /sys/devices/platform/skl_nau88l25_ssm4567_i2s/ Conflicts: sound/soc/soc-dapm.c Signed-off-by: Harry Pan --- sound/soc/soc

[PATCH] ASoC: dapm: Do not traverse widget hooks to snd-soc-dummy

2016-03-19 Thread Harry Pan
dget hooks to the 'snd-soc-dummy' component, else it will trigger memory fault because of invalid dereference address of card->widgets. Test by grep -rsI "hello" /sys/devices/platform/skl_nau88l25_ssm4567_i2s/ Conflicts: sound/soc/soc-dapm.c Signed-off-by: Harry Pan <harry@int

[PATCH] ASoC: dapm: Do not traverse widget hooks to snd-soc-dummy

2016-03-19 Thread Harry Pan
dget hooks to the 'snd-soc-dummy' component, else it will trigger memory fault because of invalid dereference address of card->widgets. Test by grep -rsI "hello" /sys/devices/platform/skl_nau88l25_ssm4567_i2s/ Conflicts: sound/soc/soc-dapm.c Signed-off-by: Harry Pan --- sound/soc/soc