, 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
, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
: 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
: 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
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
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
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
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
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
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
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
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 a
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
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
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
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
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
d-off-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 @@ s
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
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
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
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
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
---
arc
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
able_backlight [i915]] pipe A
[ 89.001926] [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
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
cores/,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
.
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 inser
cores/,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
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
.
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 inser
cores/,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
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
.
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 inser
Usage 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 --
tiple 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/
.
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 inser
.
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 inser
tiple 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 1
widget 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
widget 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
57 matches
Mail list logo