[PATCH 00/11] perf intel-pt: Add support for decoding FUP/TIP only

2020-07-09 Thread Adrian Hunter
Hi Here are some fixes and small improvements for Intel PT. Adrian Hunter (11): perf intel-pt: Fix FUP packet state perf intel-pt: Fix duplicate branch after CBR perf tools: Improve aux_output not supported error perf auxtrace: Add optional error flags to the itrace &#

Re: [PATCH V7 00/15] perf/x86: Add perf text poke events

2020-07-08 Thread Adrian Hunter
On 27/05/20 6:54 pm, Peter Zijlstra wrote: > On Wed, May 27, 2020 at 12:47:16PM -0300, Arnaldo Carvalho de Melo wrote: >> Em Wed, May 20, 2020 at 05:56:34PM +0200, Peter Zijlstra escreveu: >>> On Tue, May 19, 2020 at 10:40:01PM -0300, Arnaldo Carvalho de Melo wrote: PeterZ, from what we discus

Re: [PATCH 14/15] mmc: host: cqhci: Demote faux kerneldoc header down to basic comment block

2020-07-01 Thread Adrian Hunter
ibe the expected > function arguments either, we're going to assume that this is > not actually a bona fide kerneldoc use-case. > > Fixes the following W=1 kernel build warning: > > drivers/mmc/host/cqhci.c:163: warning: Function parameter or member > 'cq_host' not d

Re: [PATCH v6 3/4] mmc: mediatek: command queue support

2020-07-01 Thread Adrian Hunter
On 9/06/20 4:18 am, Chun-Hung Wu wrote: > Support command queue for mt6779 platform. > a. Add msdc_set_busy_timeout() to calculate emmc write timeout. > b. Connect mtk msdc driver to cqhci driver through >host->cq_host->ops = &msdc_cmdq_ops; > c. msdc_cmdq_irq() will link up with cqchi_irq(). B

Re: [PATCH] mmc: sdhci-acpi: For amd device set driver type as MMC_SET_DRIVER_TYPE_A

2020-07-01 Thread Adrian Hunter
ets updated with the required > strength value. > > Signed-off-by: Akshu Agrawal Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-acpi.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c >

Re: 0001-Fix-CQE-task-queue-timeout.patch

2020-07-01 Thread Adrian Hunter
On 22/06/20 8:44 am, chen jiangnan wrote: > From 547e5635c04f4f9d62cbc1e3a4b4527f87c4e83b Mon Sep 17 00:00:00 2001 > From: JiangnanChen  > Date: Mon, 22 Jun 2020 05:32:21 + > Subject: [PATCH] Fix CQE task queue timeout. CQE notifies the software that Please separate subject from commit message

Re: [PATCH 1/1] mmc: host: sdhci-msm: fix spelling mistake

2020-07-01 Thread Adrian Hunter
On 17/06/20 6:19 pm, Flavio Suligoi wrote: > Fix typo: "trigered" --> "triggered" > > Signed-off-by: Flavio Suligoi Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-msm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

[PATCH 1/3] perf intel-pt: Fix recording PEBS-via-PT with registers

2020-06-30 Thread Adrian Hunter
nterrupts. Try 'perf stat' Fix by suppressing register sampling on the intel_pt evsel. Signed-off-by: Adrian Hunter Fixes: 9e64cefe4335b ("perf intel-pt: Process options for PEBS event synthesis") --- tools/perf/arch/x86/util/intel-pt.c | 1 + tools/perf/util/evsel.c

[PATCH 2/3] perf intel-pt: Fix displaying PEBS-via-PT with registers

2020-06-30 Thread Adrian Hunter
a ] # ./perf script --itrace=eop -F+iregs Samples for 'dummy:u' event do not have IREGS attribute set. Cannot print 'iregs' field. Fix by using allow_user_set, which is true when recording AUX area data. Signed-off-by: Adrian Hunter Fixes: 9e64cefe4335b ("perf intel

[PATCH 3/3] perf intel-pt: Fix PEBS sample for XMM registers

2020-06-30 Thread Adrian Hunter
The condition to add XMM registers was missing, the regs array needed to be in the outer scope, and the size of the regs array was too small. Signed-off-by: Adrian Hunter Fixes: 143d34a6b387b ("perf intel-pt: Add XMM registers to synthesized PEBS sample") --- tools/perf/util/inte

[PATCH 0/3] perf intel-pt: Fix PEBS-via-PT with registers

2020-06-30 Thread Adrian Hunter
Hi Here are some more Intel PT fixes for v5.8. Adrian Hunter (3): perf intel-pt: Fix recording PEBS-via-PT with registers perf intel-pt: Fix displaying PEBS-via-PT with registers perf intel-pt: Fix PEBS sample for XMM registers tools/perf/arch/x86/util/intel-pt.c | 1

[PATCH 4/6] perf scripts python: exported-sql-viewer.py: Fix zero id in call graph 'Find' result

2020-06-29 Thread Adrian Hunter
es 2020-06-26 15:32:15.549716 Done $ python3 ~/libexec/perf-core/scripts/python/exported-sql-viewer.py perf.data.db Select: Reports -> Context-Sensitive Call Graph Press: Ctrl-F Enter: unknown Press: Enter Before: gets stuck After: tree is expanded to line showing 'unknown&#x

[PATCH 5/6] perf scripts python: exported-sql-viewer.py: Fix zero id in call tree 'Find' result

2020-06-29 Thread Adrian Hunter
es 2020-06-26 15:32:15.549716 Done $ python3 ~/libexec/perf-core/scripts/python/exported-sql-viewer.py perf.data.db Select: Reports -> Call Tree Press: Ctrl-F Enter: unknown Press: Enter Before: displays 'unknown' not found After: tree is expanded to line showing '

[PATCH 0/6] perf tools: Some Intel PT related fixes for v5.8

2020-06-29 Thread Adrian Hunter
Hi Here are some Intel PT related fixes for v5.8. Adrian Hunter (6): perf scripts python: export-to-postgresql.py: Fix struct.pack() int argument perf record: Fix duplicated sideband events with Intel PT system wide tracing perf scripts python: exported-sql-viewer.py: Fix

[PATCH 6/6] perf scripts python: exported-sql-viewer.py: Fix time chart call tree

2020-06-29 Thread Adrian Hunter
ime After: displays Call Tree expanded to selected time Signed-off-by: Adrian Hunter Fixes: e69d5df75d74d ("perf scripts python: exported-sql-viewer.py: Add ability for Call tree to open at a specified task and time") Cc: sta...@vger.kernel.org --- tools/perf/scripts/python/exported-

[PATCH 1/6] perf scripts python: export-to-postgresql.py: Fix struct.pack() int argument

2020-06-29 Thread Adrian Hunter
0-06-25 16:09:41.541894 Adding foreign keys 2020-06-25 16:09:41.677044 Dropping unused tables 2020-06-25 16:09:41.703761 Done Signed-off-by: Adrian Hunter Fixes: aba44287a224 ("perf scripts python: export-to-postgresql.py: Export Intel PT power and ptwrite events") Cc: sta...

[PATCH 2/6] perf record: Fix duplicated sideband events with Intel PT system wide tracing

2020-06-29 Thread Adrian Hunter
11 [005] 6450.579704: PERF_RECORD_SWITCH_CPU_WIDE IN prev pid/tid: 0/0 Signed-off-by: Adrian Hunter --- tools/perf/builtin-record.c | 18 +- tools/perf/util/evlist.c| 12 tools/perf/util/evlist.h| 1 + tools/perf/util/evsel.c | 8 +

[PATCH 3/6] perf scripts python: exported-sql-viewer.py: Fix unexpanded 'Find' result

2020-06-29 Thread Adrian Hunter
7; does not display After: tree is expanded to line showing 'main' Signed-off-by: Adrian Hunter Fixes:; ebd70c7dc2f5f ("perf scripts python: exported-sql-viewer.py: Add ability to find symbols in the call-graph") Cc: sta...@vger.kernel.org --- tools/perf/scripts/python/e

Re: [PATCH] [perf] intel_pt_recording_options: Remove redundant intel_pt_evsel null check

2020-06-24 Thread Adrian Hunter
On 24/06/20 2:48 am, Gaurav Singh wrote: > intel_pt_evsel cannot be NULL here since its already being > dereferenced above. Remove this redundant check. > > Signed-off-by: Gaurav Singh Acked-by: Adrian Hunter > --- > tools/perf/arch/x86/util/intel-pt.c | 24 +++-

Re: [PATCH] [perf] intel_pt_recording_options: Remove redundant intel_pt_evsel null check

2020-06-24 Thread Adrian Hunter
On 24/06/20 3:42 pm, Jiri Olsa wrote: > On Tue, Jun 23, 2020 at 07:48:50PM -0400, Gaurav Singh wrote: >> intel_pt_evsel cannot be NULL here since its already being >> dereferenced above. Remove this redundant check. >> >> Signed-off-by: Gaurav Singh >> --- >> tools/perf/arch/x86/util/intel-pt.c |

Re: [PATCH v4 2/3] sdhci: sparx5: Add Sparx5 SoC eMMC driver

2020-06-18 Thread Adrian Hunter
On 18/06/20 5:13 pm, Lars Povlsen wrote: > This adds the eMMC driver for the Sparx5 SoC. It is based upon the > designware IP, but requires some extra initialization and quirks. > > Signed-off-by: Lars Povlsen Acked-by: Adrian Hunter > --- > drivers/mmc/host/Kconf

Re: [PATCH v3 2/3] sdhci: sparx5: Add Sparx5 SoC eMMC driver

2020-06-16 Thread Adrian Hunter
On 16/06/20 5:00 pm, Lars Povlsen wrote: > This adds the eMMC driver for the Sparx5 SoC. It is based upon the > designware IP, but requires some extra initialization and quirks. > > Signed-off-by: Lars Povlsen > --- > drivers/mmc/host/Kconfig | 13 ++ > drivers/mmc/host/Makefile

Re: [PATCH v2 2/3] sdhci: sparx5: Add Sparx5 SoC eMMC driver

2020-06-16 Thread Adrian Hunter
On 9/06/20 1:20 pm, Lars Povlsen wrote: > This adds the eMMC driver for the Sparx5 SoC. It is based upon the > designware IP, but requires some extra initialization and quirks. > --- > drivers/mmc/host/Kconfig | 13 ++ > drivers/mmc/host/Makefile | 1 + > drivers/mmc/host/sdh

[tip: perf/core] ftrace: Add perf text poke events for ftrace trampolines

2020-06-16 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: 548e1f6c76e1eb80ba29edd4286b9b9f2c37f5bf Gitweb: https://git.kernel.org/tip/548e1f6c76e1eb80ba29edd4286b9b9f2c37f5bf Author:Adrian Hunter AuthorDate:Tue, 12 May 2020 15:19:15 +03:00

[tip: perf/core] perf: Add perf text poke event

2020-06-16 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: e17d43b93e544f5016c0251d2074c15568d5d963 Gitweb: https://git.kernel.org/tip/e17d43b93e544f5016c0251d2074c15568d5d963 Author:Adrian Hunter AuthorDate:Tue, 12 May 2020 15:19:08 +03:00

[tip: perf/core] kprobes: Add symbols for kprobe insn pages

2020-06-16 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: d002b8bc6dbc20e9043e279196cff8795dba05fe Gitweb: https://git.kernel.org/tip/d002b8bc6dbc20e9043e279196cff8795dba05fe Author:Adrian Hunter AuthorDate:Thu, 28 May 2020 11:00:58 +03:00

[tip: perf/core] ftrace: Add perf ksymbol events for ftrace trampolines

2020-06-16 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: dd9ddf466ad7a5d2e247925d81ebb0b878bf3b76 Gitweb: https://git.kernel.org/tip/dd9ddf466ad7a5d2e247925d81ebb0b878bf3b76 Author:Adrian Hunter AuthorDate:Tue, 12 May 2020 15:19:14 +03:00

[tip: perf/core] ftrace: Add symbols for ftrace trampolines

2020-06-16 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: fc0ea795f53c8d7040fa42471f74fe51d78d0834 Gitweb: https://git.kernel.org/tip/fc0ea795f53c8d7040fa42471f74fe51d78d0834 Author:Adrian Hunter AuthorDate:Tue, 12 May 2020 15:19:13 +03:00

[tip: perf/core] perf/x86: Add perf text poke events for kprobes

2020-06-16 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: 3e46bb40af8c12947c093efb8af56e0e921cd39b Gitweb: https://git.kernel.org/tip/3e46bb40af8c12947c093efb8af56e0e921cd39b Author:Adrian Hunter AuthorDate:Tue, 12 May 2020 15:19:12 +03:00

[tip: perf/core] perf/x86: Add support for perf text poke event for text_poke_bp_batch() callers

2020-06-16 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: d769811ca93303deb1d8729d20cceaca7051a6f1 Gitweb: https://git.kernel.org/tip/d769811ca93303deb1d8729d20cceaca7051a6f1 Author:Adrian Hunter AuthorDate:Tue, 12 May 2020 15:19:09 +03:00

[tip: perf/core] kprobes: Add perf ksymbol events for kprobe insn pages

2020-06-16 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: 69e49088692899d25dedfa22f00dfb9761e86ed7 Gitweb: https://git.kernel.org/tip/69e49088692899d25dedfa22f00dfb9761e86ed7 Author:Adrian Hunter AuthorDate:Tue, 12 May 2020 15:19:11 +03:00

Re: [PATCH v6 01/13] tools/libperf: introduce notion of static polled file descriptors

2020-06-03 Thread Adrian Hunter
ldo Carvalho de Melo ; Jiri Olsa >>> ; Namhyung Kim ; Alexander >>> Shishkin ; Peter Zijlstra >>> ; Ingo Molnar ; Andi Kleen >>> ; linux-kernel >>> Subject: Re: [PATCH v6 01/13] tools/libperf: introduce notion of static >>> polled >>> f

Re: [PATCH v4 10/10] perf record: introduce --ctl-fd[-ack] options

2020-06-03 Thread Adrian Hunter
On 3/06/20 3:52 pm, Alexey Budankov wrote: > > On 03.06.2020 15:05, Adrian Hunter wrote: >> On 25/05/20 5:23 pm, Alexey Budankov wrote: >>> >>> Introduce --ctl-fd[-ack] options to pass open file descriptors numbers >>> from command line. Extend perf-record.t

Re: [PATCH v6 13/13] perf record: introduce --ctl-fd[-ack] options

2020-06-03 Thread Adrian Hunter
On 1/06/20 11:20 pm, Alexey Budankov wrote: > > Introduce --ctl-fd[-ack] options to pass open file descriptors numbers > from command line. Extend perf-record.txt file with --ctl-fd[-ack] perf-record.txt change seems to be missing. > options description. Document possible usage model introduced

Re: [PATCH v6 01/13] tools/libperf: introduce notion of static polled file descriptors

2020-06-03 Thread Adrian Hunter
On 3/06/20 3:01 pm, Alexey Budankov wrote: > Hi, > > On 03.06.2020 14:38, Adrian Hunter wrote: >> On 1/06/20 11:05 pm, Alexey Budankov wrote: >>> >>> Implement adding of file descriptors by fdarray__add_stat() to >>> fix-sized (currently 1) stat_entries a

Re: [PATCH v4 10/10] perf record: introduce --ctl-fd[-ack] options

2020-06-03 Thread Adrian Hunter
On 25/05/20 5:23 pm, Alexey Budankov wrote: > > Introduce --ctl-fd[-ack] options to pass open file descriptors numbers > from command line. Extend perf-record.txt file with --ctl-fd[-ack] > options description. Document possible usage model introduced by > --ctl-fd[-ack] options by providing examp

Re: [PATCH v6 01/13] tools/libperf: introduce notion of static polled file descriptors

2020-06-03 Thread Adrian Hunter
On 1/06/20 11:05 pm, Alexey Budankov wrote: > > Implement adding of file descriptors by fdarray__add_stat() to > fix-sized (currently 1) stat_entries array located at struct fdarray. > Append added file descriptors to the array used by poll() syscall > during fdarray__poll() call. Copy poll() resu

Re: [PATCH v5 13/13] perf record: introduce --ctl-fd[-ack] options

2020-06-02 Thread Adrian Hunter
On 2/06/20 12:12 pm, Alexey Budankov wrote: > > On 02.06.2020 11:32, Alexey Budankov wrote: >> >> On 02.06.2020 2:37, Andi Kleen wrote: > or a pathname, or including also the event default of "disabled". For my cases conversion of pathnames into open fds belongs to external cont

Re: [PATCH 11/15] mmc: sdhci: use PCI_IRQ_MSI_TYPES where appropriate

2020-06-02 Thread Adrian Hunter
On 2/06/20 12:20 pm, Piotr Stankiewicz wrote: > Seeing as there is shorthand available to use when asking for any type > of interrupt, or any type of message signalled interrupt, leverage it. > > Signed-off-by: Piotr Stankiewicz > Reviewed-by: Andy Shevchenko Acked-by

[PATCH] perf tools: Fix kernel maps for kcore and eBPF

2020-06-02 Thread Adrian Hunter
tools/perf/perf script --itrace=e >/dev/null Warning: 961 instruction trace errors After: $ sudo tools/perf/perf script --itrace=e >/dev/null $ Signed-off-by: Adrian Hunter Fixes: fb5a88d4131a ("perf tools: Preserve eBPF maps when loading kcore") Cc: sta...@vger.

Re: [PATCH v5 13/13] perf record: introduce --ctl-fd[-ack] options

2020-06-01 Thread Adrian Hunter
On 1/06/20 7:05 pm, Alexey Budankov wrote: > > Introduce --ctl-fd[-ack] options to pass open file descriptors numbers > from command line. Extend perf-record.txt file with --ctl-fd[-ack] > options description. Document possible usage model introduced by > --ctl-fd[-ack] options by providing exampl

Re: [PATCH v8 2/3] perf auxtrace: Add four itrace options

2020-06-01 Thread Adrian Hunter
#x27;: synthesize TLB events > 'a': synthesize remote access events > > This four options will be used by ARM SPE as their first consumer. > > Signed-off-by: Tan Xiaojun > Signed-off-by: James Clark > Signed-off-by: Leo Yan > Tested-by: James Clark Acked-by: Adr

[PATCH 2/2] perf intel-pt: Refine kernel decoding only warning message

2020-05-28 Thread Adrian Hunter
ntel_pt//k -- sleep 0.001 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 1.068 MB perf.data ] $ sudo chmod go-r /proc/kcore $ sudo setcap -r ~/bin/perf Signed-off-by: Adrian Hunter --- tools/perf/arch/x86/util/intel-pt.c | 3 ++- 1 file

[PATCH 1/2] perf record: Respect --no-switch-events

2020-05-28 Thread Adrian Hunter
up 1 times to write data ] [ perf record: Captured and wrote 0.838 MB perf.data ] $ perf script -D | grep PERF_RECORD_SWITCH | wc -l 0 $ sudo chmod go-r /proc/kcore $ sudo setcap -r ~/bin/perf Signed-off-by: Adrian Hunter --- tools/perf/Documentation/perf-record.txt | 4 +++-

[PATCH V8 03/15] kprobes: Add symbols for kprobe insn pages

2020-05-28 Thread Adrian Hunter
ges allocated for kprobes' purposes, even though "__builtin__kprobes" is not a module. Signed-off-by: Adrian Hunter --- Changes in V8: Move kprobe_cache_get_kallsym() under __ARCH_WANT_KPROBES_INSN_SLOT include/linux/kprobes.h | 15

Re: [PATCH V7 03/15] kprobes: Add symbols for kprobe insn pages

2020-05-28 Thread Adrian Hunter
On 27/05/20 8:43 pm, Peter Zijlstra wrote: > On Tue, May 12, 2020 at 03:19:10PM +0300, Adrian Hunter wrote: >> @@ -2179,6 +2181,49 @@ int kprobe_add_area_blacklist(unsigned long start, >> unsigned long end) >> return 0; >> } >> >> +int kprobe_cache_

Re: [PATCH V7 04/15] kprobes: Add perf ksymbol events for kprobe insn pages

2020-05-28 Thread Adrian Hunter
On 27/05/20 8:20 pm, Peter Zijlstra wrote: > On Wed, May 27, 2020 at 06:17:32PM +0200, Peter Zijlstra wrote: >> On Tue, May 12, 2020 at 03:19:11PM +0300, Adrian Hunter wrote: >>> @@ -202,6 +207,13 @@ static int collect_one_slot(struct kprobe_insn_page >>> *kip, int i

[PATCH] perf script: Fix --call-trace for Intel PT

2020-05-27 Thread Adrian Hunter
) _dl_start Signed-off-by: Adrian Hunter Fixes: f288e8e1aa4f ("perf script: Enable IP fields for callchains") --- tools/perf/builtin-script.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builti

[PATCH V2] perf tools: Fix debuginfo search for Ubuntu

2020-05-26 Thread Adrian Hunter
) _dl_start uname 14003 [005] 15321.764963233: (/usr/lib/x86_64-linux-gnu/ld-2.31.so ) _dl_start Reported-by: Travis Downs Signed-off-by: Adrian Hunter Cc: sta...@vger.kernel.org --- Changes in V2: Added 'break' after 'ret = -1'

Re: [PATCH] perf tools: Fix debuginfo search for Ubuntu

2020-05-26 Thread Adrian Hunter
On 26/05/20 6:29 pm, Adrian Hunter wrote: > Reportedly, from 19.10 Ubuntu has begun mixing up the location of some > debug symbol files, putting files expected to be in > /usr/lib/debug/usr/lib into /usr/lib/debug/lib instead. Fix by adding > another dso_binary_type. > > Examp

[PATCH] perf tools: Fix debuginfo search for Ubuntu

2020-05-26 Thread Adrian Hunter
) _dl_start uname 14003 [005] 15321.764963233: (/usr/lib/x86_64-linux-gnu/ld-2.31.so ) _dl_start Reported-by: Travis Downs Signed-off-by: Adrian Hunter Cc: sta...@vger.kernel.org --- tools/perf/util/dso.c | 14 ++ tools/perf/util/dso.h

Re: [PATCH V2 3/3] mmc: sdhci: Allow platform controlled voltage switching

2020-05-24 Thread Adrian Hunter
Signed-off-by: Vijay Viswanath > Signed-off-by: Veerabhadrarao Badiganti Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci.c | 32 +++- > drivers/mmc/host/sdhci.h | 1 + > 2 files changed, 20 insertions(+), 13 deletions(-) > > diff --git a/d

Re: [PATCH 2/3] sdhci: sparx5: Add Sparx5 SoC eMMC driver

2020-05-24 Thread Adrian Hunter
On 20/05/20 2:14 pm, Lars Povlsen wrote: > > Lars Povlsen writes: > >> Adrian Hunter writes: >> >>> On 13/05/20 4:31 pm, Lars Povlsen wrote: >>>> This adds the eMMC driver for the Sparx5 SoC. It is based upon the >>>> designware

Re: [PATCH V1 1/2] mmc: sdhci: Introduce new quirk to use reserved timeout

2020-05-24 Thread Adrian Hunter
On 19/05/20 5:08 pm, sartg...@codeaurora.org wrote: > On 2020-05-18 18:20, Ulf Hansson wrote: >> On Mon, 18 May 2020 at 13:45, Adrian Hunter wrote: >>> >>> On 18/05/20 12:39 pm, Ulf Hansson wrote: >>> > On Wed, 6 May 2020 at 15:53, Sarthak Garg wrote:

Re: [PATCH] sdhci: tegra: Avoid reading autocal timeout values when not applicable

2020-05-24 Thread Adrian Hunter
supporting 3V3 and 1V8 pad controls. > > So, this patch avoids reading these properties from the device tree > for SoCs not using pad controls and the warning of missing properties > will not show up on these SoC platforms. > > Signed-off-by: Sowjanya Komatineni Acked-by: Adr

Re: [PATCH V1 3/3] mmc: sdhci: Allow platform controlled voltage switching

2020-05-18 Thread Adrian Hunter
On 15/05/20 2:18 pm, Veerabhadrarao Badiganti wrote: > From: Vijay Viswanath > > If vendor platform drivers are controlling whole logic of voltage > switching, then sdhci driver no need control vqmmc regulator. > So skip enabling/disable vqmmc from SDHC driver. > > Signed-off-by: Vijay Viswanath

Re: [PATCH V1 1/2] mmc: sdhci: Introduce new quirk to use reserved timeout

2020-05-18 Thread Adrian Hunter
On 18/05/20 12:39 pm, Ulf Hansson wrote: > On Wed, 6 May 2020 at 15:53, Sarthak Garg wrote: >> >> Introduce a new quirk for letting vendor drivers to use reserved >> timeout value (0xF) in timeout control register. >> >> Signed-off-by: Sahitya Tummala >> Signed-off-by: Sarthak Garg >> --- >> dr

Re: [PATCH V7 00/15] perf/x86: Add perf text poke events

2020-05-17 Thread Adrian Hunter
On 12/05/20 3:19 pm, Adrian Hunter wrote: > Hi > > Here are patches to add a text poke event to record changes to kernel text > (i.e. self-modifying code) in order to support tracers like Intel PT > decoding through jump labels, kprobes and ftrace trampolines. > > The fir

Re: [PATCH 2/3] sdhci: sparx5: Add Sparx5 SoC eMMC driver

2020-05-17 Thread Adrian Hunter
On 13/05/20 4:31 pm, Lars Povlsen wrote: > This adds the eMMC driver for the Sparx5 SoC. It is based upon the > designware IP, but requires some extra initialization and quirks. > > Reviewed-by: Alexandre Belloni > Signed-off-by: Lars Povlsen > --- > drivers/mmc/host/Kconfig | 13 ++

Re: [PATCH perf/core] perf intel-pt: Fix clang build failure in intel_pt_synth_pebs_sample

2020-05-16 Thread Adrian Hunter
On 15/05/20 7:41 pm, Arnaldo Carvalho de Melo wrote: > Sorry for the top post: Adrian, can you take a look at this? > > Adrian Hunter was not CCed, Adrian? From: Adrian Hunter Date: Sat, 16 May 2020 15:12:28 +0300 Subject: [PATCH] perf intel-pt: Use allocated branch stack for PEBS s

Re: [PATCH V1 0/7] Target specific DLL configuration for qcom SDHC

2020-05-15 Thread Adrian Hunter
g property from device tree file > mmc: sdhci-msm: Introduce new ops to dump vendor specific registers > mmc: sdhci-msm: dump vendor specific registers during error > > Veerabhadrarao Badiganti (1): > mmc: host: sdhci-msm: Configure dll-user-control in dll init sequence For pa

Re: perf seg fault

2020-05-12 Thread Adrian Hunter
On 12/05/20 6:55 pm, Jiri Olsa wrote: > On Tue, May 12, 2020 at 06:45:24PM +0300, Adrian Hunter wrote: >> On 12/05/20 6:10 pm, Jiri Olsa wrote: >>> On Tue, May 12, 2020 at 05:58:29PM +0300, Adrian Hunter wrote: >>>> Forgot to cc mailing list >>>> >

Re: perf seg fault

2020-05-12 Thread Adrian Hunter
On 12/05/20 6:10 pm, Jiri Olsa wrote: > On Tue, May 12, 2020 at 05:58:29PM +0300, Adrian Hunter wrote: >> Forgot to cc mailing list >> >> On 12/05/20 5:50 pm, Adrian Hunter wrote: >>> Hi >>> >>> I am getting a seg fault from your perf/core branch, a

Re: perf seg fault

2020-05-12 Thread Adrian Hunter
Forgot to cc mailing list On 12/05/20 5:50 pm, Adrian Hunter wrote: > Hi > > I am getting a seg fault from your perf/core branch, as follows: > > # perf record uname > Linux > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.005

[PATCH V7 08/15] ftrace: Add perf text poke events for ftrace trampolines

2020-05-12 Thread Adrian Hunter
en ops->trampoline and ops->flags & FTRACE_OPS_FL_ALLOC_TRAMP Trampoline freed Signed-off-by: Adrian Hunter Acked-by: Peter Zijlstra (Intel) --- kernel/trace/ftrace.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/kernel/trace/ftrace.c b/kernel/t

[PATCH V7 13/15] perf intel-pt: Add support for text poke events

2020-05-12 Thread Adrian Hunter
addr 0xac601803 old len 5 new len 5 7 313287818979 0x28174b0 [0x40]: PERF_RECORD_TEXT_POKE addr 0xabbea190 old len 5 new len 5 7 313287829357 0x28174f0 [0x40]: PERF_RECORD_TEXT_POKE addr 0xac6016f5 old len 5 new len 5 7 313287841246 0x2817530 [0x40]: PERF_RECOR

[PATCH V7 04/15] kprobes: Add perf ksymbol events for kprobe insn pages

2020-05-12 Thread Adrian Hunter
Symbols are needed for tools to describe instruction addresses. Pages allocated for kprobe's purposes need symbols to be created for them. Add such symbols to be visible via perf ksymbol events. Signed-off-by: Adrian Hunter Acked-by: Masami Hiramatsu Acked-by: Peter Zijlstra (

[PATCH V7 05/15] perf/x86: Add perf text poke events for kprobes

2020-05-12 Thread Adrian Hunter
active 6: INT3 -> old0 arch_disarm_kprobe() 7: probe.ainsn.insn -> NULL (if ainsn.boostable && !kp.post_handler) arch_remove_kprobe() Signed-off-by: Adrian Hunter Acked-by: Masami Hiramatsu Acked-by: Peter Zijlstra (Intel) --- arch/x86/includ

[PATCH V7 15/15] perf script: Show text poke address symbol

2020-05-12 Thread Adrian Hunter
It is generally more useful to show the symbol with an address. In this case, the print function requires the 'machine' which means changing callers to provide it as a parameter. It is optional because most events do not need it and the callers that matter can provide it. Signed-off-

[PATCH V7 01/15] perf: Add perf text poke event

2020-05-12 Thread Adrian Hunter
the breakpoint (and hit the exception) or the new instruction. So by guarding the TEXT_POKE event with an exception on either side; we can now tell, without doubt, which instruction another CPU will have observed. Signed-off-by: Adrian Hunter Acked-by: Peter Zijlstra (Intel) --- include/linux

[PATCH V7 09/15] perf kcore_copy: Fix module map when there are no modules loaded

2020-05-12 Thread Adrian Hunter
In the absence of any modules, no "modules" map is created, but there are other executable pages to map, due to eBPF JIT, kprobe or ftrace. Map them by recognizing that the first "module" symbol is not necessarily from a module, and adjust the map accordingly. Signed-o

[PATCH V7 00/15] perf/x86: Add perf text poke events

2020-05-12 Thread Adrian Hunter
_schedstats' $ cat /proc/sys/kernel/sched_schedstats 0 $ sudo kill 1882 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 10.893 MB perf.data.after ] $ perf script -i perf.data.after --itrace=e $ Adrian Hunter (15): perf: Add perf text poke event p

[PATCH V7 03/15] kprobes: Add symbols for kprobe insn pages

2020-05-12 Thread Adrian Hunter
ges allocated for kprobes' purposes, even though "__builtin__kprobes" is not a module. Signed-off-by: Adrian Hunter Acked-by: Peter Zijlstra (Intel) --- include/linux/kprobes.h | 15 ++ kernel/kallsyms.c | 37 +++

[PATCH V7 12/15] perf tools: Add support for PERF_RECORD_KSYMBOL_TYPE_OOL

2020-05-12 Thread Adrian Hunter
PERF_RECORD_KSYMBOL_TYPE_OOL marks an executable page. Create a map backed only by memory, which will be populated as necessary by text poke events. Signed-off-by: Adrian Hunter --- tools/include/uapi/linux/perf_event.h | 5 + tools/perf/util/dso.c | 3 +++ tools/perf/util

[PATCH V7 06/15] ftrace: Add symbols for ftrace trampolines

2020-05-12 Thread Adrian Hunter
, even though "__builtin__ftrace" is not a module. Signed-off-by: Adrian Hunter Acked-by: Peter Zijlstra (Intel) --- include/linux/ftrace.h | 12 --- kernel/kallsyms.c | 5 +++ kernel/trace/ftrace.c | 77 -- 3 files changed, 88 insertio

[PATCH V7 14/15] perf script: Add option --show-text-poke-events

2020-05-12 Thread Adrian Hunter
Consistent with other new events, add an option to perf script to display text poke events and ksymbol events. Both text poke events and ksymbol events are displayed because some text pokes (e.g. ftrace trampolines) have corresponding ksymbol events. Signed-off-by: Adrian Hunter --- tools/perf

[PATCH V7 10/15] perf evlist: Disable 'immediate' events last

2020-05-12 Thread Adrian Hunter
Events marked as 'immediate' are started before other events to ensure that there is context at the start of the main tracing events. The same is true at the end of tracing, so disable 'immediate' events after other events. Signed-off-by: Adrian Hunter --- tools/per

[PATCH V7 02/15] perf/x86: Add support for perf text poke event for text_poke_bp_batch() callers

2020-05-12 Thread Adrian Hunter
Add support for perf text poke event for text_poke_bp_batch() callers. That includes jump labels. See comments for more details. Signed-off-by: Adrian Hunter Acked-by: Peter Zijlstra (Intel) --- arch/x86/kernel/alternative.c | 37 ++- 1 file changed, 36

[PATCH V7 07/15] ftrace: Add perf ksymbol events for ftrace trampolines

2020-05-12 Thread Adrian Hunter
Symbols are needed for tools to describe instruction addresses. Pages allocated for ftrace's purposes need symbols to be created for them. Add such symbols to be visible via perf ksymbol events. Signed-off-by: Adrian Hunter Acked-by: Peter Zijlstra (Intel) --- include/uapi/linux/perf_ev

[PATCH V7 11/15] perf tools: Add support for PERF_RECORD_TEXT_POKE

2020-05-12 Thread Adrian Hunter
Add processing for PERF_RECORD_TEXT_POKE events. When a text poke event is processed, then the kernel dso data cache is updated with the poked bytes. Signed-off-by: Adrian Hunter --- tools/include/uapi/linux/perf_event.h | 21 +- tools/lib/perf/include/perf/event.h | 9

Re: [PATCH] mmc: sdhci-acpi: Add SDHCI_QUIRK2_BROKEN_64_BIT_DMA for AMDI0040

2020-05-10 Thread Adrian Hunter
oller with HS400") > Signed-off-by: Raul E Rangel Acked-by: Adrian Hunter > --- > > drivers/mmc/host/sdhci-acpi.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c >

[tip: perf/core] perf intel-pt: Add support for synthesizing branch stacks for regular events

2020-05-08 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: f0a0251cee800bf90cff92ecfaf4a4d4c9c493b2 Gitweb: https://git.kernel.org/tip/f0a0251cee800bf90cff92ecfaf4a4d4c9c493b2 Author:Adrian Hunter AuthorDate:Wed, 29 Apr 2020 18:07:49 +03:00

[tip: perf/core] perf thread-stack: Add thread_stack__br_sample_late()

2020-05-08 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: 3749e0bbdef24efbf1698bf0dbd9575fddb9ed22 Gitweb: https://git.kernel.org/tip/3749e0bbdef24efbf1698bf0dbd9575fddb9ed22 Author:Adrian Hunter AuthorDate:Wed, 29 Apr 2020 18:07:48 +03:00

[tip: perf/core] perf evsel: Add support for synthesized branch stack sample type

2020-05-08 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: 6cd2cbfc6865589c64ac37ec48937e93725622f1 Gitweb: https://git.kernel.org/tip/6cd2cbfc6865589c64ac37ec48937e93725622f1 Author:Adrian Hunter AuthorDate:Wed, 29 Apr 2020 18:07:47 +03:00

[tip: perf/core] perf intel-pt: Change branch stack support to use thread-stacks

2020-05-08 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: cf888e08a030b7430889d0c5c804508c09dad843 Gitweb: https://git.kernel.org/tip/cf888e08a030b7430889d0c5c804508c09dad843 Author:Adrian Hunter AuthorDate:Wed, 29 Apr 2020 18:07:45 +03:00

[tip: perf/core] perf intel-pt: Update documentation about itrace G and L options

2020-05-08 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: 43358d9dfb250842383cddad816a7538548a5070 Gitweb: https://git.kernel.org/tip/43358d9dfb250842383cddad816a7538548a5070 Author:Adrian Hunter AuthorDate:Wed, 29 Apr 2020 18:07:50 +03:00

[tip: perf/core] perf intel-pt: Update documentation about using /proc/kcore

2020-05-08 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: 6dd912cbadb9f9746a525c74f09c0e36cee13ee2 Gitweb: https://git.kernel.org/tip/6dd912cbadb9f9746a525c74f09c0e36cee13ee2 Author:Adrian Hunter AuthorDate:Wed, 29 Apr 2020 18:07:51 +03:00

[tip: perf/core] perf thread-stack: Add branch stack support

2020-05-08 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: 86d67180b920d178ae1c2923f50a0759d6ce1a10 Gitweb: https://git.kernel.org/tip/86d67180b920d178ae1c2923f50a0759d6ce1a10 Author:Adrian Hunter AuthorDate:Wed, 29 Apr 2020 18:07:43 +03:00

[tip: perf/core] perf auxtrace: Add option to synthesize branch stack for regular events

2020-05-08 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: ec90e42ce5142c4ed2a0061fe23bd4495428c52b Gitweb: https://git.kernel.org/tip/ec90e42ce5142c4ed2a0061fe23bd4495428c52b Author:Adrian Hunter AuthorDate:Wed, 29 Apr 2020 18:07:46 +03:00

[tip: perf/core] perf intel-pt: Consolidate thread-stack use condition

2020-05-08 Thread tip-bot2 for Adrian Hunter
The following commit has been merged into the perf/core branch of tip: Commit-ID: 1ef998ff1823c8b5b3f7d103ec3971d7baaf677b Gitweb: https://git.kernel.org/tip/1ef998ff1823c8b5b3f7d103ec3971d7baaf677b Author:Adrian Hunter AuthorDate:Wed, 29 Apr 2020 18:07:44 +03:00

[PATCH RESEND] mmc: block: Fix request completion in the CQE timeout path

2020-05-07 Thread Adrian Hunter
ch "mmc: core: Fix recursive locking issue in CQE recovery path" Signed-off-by: Adrian Hunter Fixes: ad73d6feadbd7b ("mmc: complete requests from ->timeout") Cc: sta...@vger.kernel.org --- drivers/mmc/core/queue.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) dif

Re: [PATCH V2] mmc: core: Fix recursive locking issue in CQE recovery path

2020-05-07 Thread Adrian Hunter
s already acquired leading > to watchdog bark. > > Fix this issue with the lock only for the required critical section. > > Cc: > Fixes: 1e8e55b67030 ("mmc: block: Add CQE support") > Suggested-by: Sahitya Tummala > Signed-off-by: Sarthak Garg Acked-by: Adrian Hun

[PATCH] mmc: block: Fix request completion in the CQE timeout path

2020-05-07 Thread Adrian Hunter
apply cleanly without patch "mmc: core: Fix recursive locking issue in CQE recovery path" Signed-off-by: Adrian Hunter Fixes: ad73d6feadbd7b ("mmc: complete requests from ->timeout") Cc: sta...@vger.kernel.org --- This is the patch I alluded to when replying to "mmc:

Re: [PATCH V1 2/2] mmc: core: Fix recursive locking issue in CQE recovery path

2020-05-07 Thread Adrian Hunter
On 6/05/20 5:34 pm, Veerabhadrarao Badiganti wrote: > From: Sarthak Garg > > Consider the following stack trace > > -001|raw_spin_lock_irqsave > -002|mmc_blk_cqe_complete_rq > -003|__blk_mq_complete_request(inline) > -003|blk_mq_complete_request(rq) > -004|mmc_cqe_timed_out(inline) > -004|mmc_mq

Re: [PATCH V1 1/2] mmc: core: Check request type before completing the request

2020-05-06 Thread Adrian Hunter
ang issues. > So, get the request type before completing the request. > > Cc: # v4.19+ The fixed commit was in 4.16 > Signed-off-by: Veerabhadrarao Badiganti Fixes: 1e8e55b67030 ("mmc: block: Add CQE support") Acked-by: Adrian Hunter Thank you for finding this! > --

Re: [PATCH] mmc: sdhci-esdhc: update contact email

2020-05-04 Thread Adrian Hunter
On 2/05/20 5:28 pm, Wolfram Sang wrote: > The 'pengutronix' address is defunct for years. Use the proper contact > address. > > Signed-off-by: Wolfram Sang Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-esdhc.h | 2 +- > include/linux/pl

Re: [PATCH] mmc: sdhci-pci-gli: Fix can not access GL9750 after reboot from Windows 10

2020-05-04 Thread Adrian Hunter
Signed-off-by: Ben Chuang Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-pci-gli.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/drivers/mmc/host/sdhci-pci-gli.c > b/drivers/mmc/host/sdhci-pci-gli.c > index ce15a05f23d4..8170b659f2af 100644 >

Re: [PATCH 8/9] perf intel-pt: Update documentation about itrace G and L options

2020-04-29 Thread Adrian Hunter
On 30/04/20 2:03 am, Andi Kleen wrote: >> +One caveat with the G and L options is that they work poorly with "Large >> PEBS". >> +Large PEBS means PEBS records will be accumulated by hardware and the >> written >> +into the event buffer in one go. That reduces interrupts, but can give very >> +l

[PATCH 8/9] perf intel-pt: Update documentation about itrace G and L options

2020-04-29 Thread Adrian Hunter
Provide a little more information about the new G and L options, particularly the issue with large PEBs. Signed-off-by: Adrian Hunter --- tools/perf/Documentation/itrace.txt| 4 +++ tools/perf/Documentation/perf-intel-pt.txt | 35 ++ 2 files changed, 39 insertions

[PATCH 0/9] perf intel-pt: Add support for synthesizing branch stacks for regular events

2020-04-29 Thread Adrian Hunter
separately for each thread. The next 3 patches add support for synthesizing branch stacks for regular events. The final 2 patches update some documentation. Adrian Hunter (9): perf thread-stack: Add branch stack support perf intel-pt: Consolidate thread-stack use condition perf

<    1   2   3   4   5   6   7   8   9   10   >