Re: [PATCH v6 1/2] PCI: Add a helper to check Power Resource Requirements _PR3 existence

2019-10-21 Thread Takashi Iwai
On Fri, 18 Oct 2019 10:45:43 +0200, Takashi Iwai wrote: > > On Fri, 18 Oct 2019 10:30:11 +0200, > Kai-Heng Feng wrote: > > > > > > > > > On Oct 18, 2019, at 16:18, Takashi Iwai wrote: > > > > > > On Fri, 18 Oct 2019 09:38:47 +0200, > > > Kai-Heng Feng wrote: > > >> > > >> A driver may want t

YOU WON!!!

2019-10-21 Thread fb
Facebook Plaza Sentral Suite Jalan Stesen Sentral 3 Kuala Lumpur 50470 Malaysia REF: FACEBOOKMY/69-CAW692019 CONGRATULATIONS We are pleased to inform you of the announcement today, the winners of the Facebook’s 2019 Users Appreciation Promotions Programme. You consequently won in category A beca

Re: [PATCH v2 02/11] mfd: wcd934x: add support to wcd9340/wcd9341 codec

2019-10-21 Thread Lee Jones
On Mon, 21 Oct 2019, Srinivas Kandagatla wrote: > > > On 21/10/2019 12:45, Lee Jones wrote: > > On Mon, 21 Oct 2019, Srinivas Kandagatla wrote: > > > > > Thanks Lee for taking time to review. > > > > > > I agree with most of the style related comments, will fix them in next > > > version. For

Re: [PATCH 5/5] rtc: rtc-rc5t583: add ricoh rc5t619 RTC driver

2019-10-21 Thread Stefan Agner
On 2019-10-21 07:41, Andreas Kemnade wrote: > Add an RTC driver for the RTC device on Ricoh MFD rc5t619, > which is implemented as a variant of rn5t618 > > Signed-off-by: Andreas Kemnade > --- > drivers/rtc/Kconfig | 10 + > drivers/rtc/Makefile | 1 + > drivers/rtc/rtc-rc5t619.c |

Re: [PATCH] drm/panfrost: fix -Wmissing-prototypes warnings

2019-10-21 Thread Steven Price
On 19/10/2019 08:28, Yi Wang wrote: > We get these warnings when build kernel W=1: > drivers/gpu/drm/panfrost/panfrost_perfcnt.c:35:6: warning: no previous > prototype for ‘panfrost_perfcnt_clean_cache_done’ [-Wmissing-prototypes] > drivers/gpu/drm/panfrost/panfrost_perfcnt.c:40:6: warning: no pre

RE:PERSONAL LETTER FROM MRS RASHIA AMIRA

2019-10-21 Thread Mr Barrister Hans Erich
Greetings My name is Barrister Hans Erich. I have a client who is interested to invest in your country, she is a well known politician in her country and deserve a lucrative investment partnership with you outside her country without any delay Please can you manage such investment please Kin

Re: linux-next: Tree for Oct 18 (objtool)

2019-10-21 Thread Christian Brauner
On Mon, Oct 21, 2019 at 03:11:49PM +0200, Peter Zijlstra wrote: > On Mon, Oct 21, 2019 at 02:35:49PM +0200, Peter Zijlstra wrote: > > On Fri, Oct 18, 2019 at 08:33:11AM -0700, Randy Dunlap wrote: > > > On 10/18/19 12:03 AM, Stephen Rothwell wrote: > > > > Hi all, > > > > > > > > Changes since 2019

Re: [PATCH v2 4/9] mfd: cs5535-mfd: Register clients using their own dedicated MFD cell entries

2019-10-21 Thread Lee Jones
On Mon, 21 Oct 2019, Daniel Thompson wrote: > On Mon, Oct 21, 2019 at 11:58:17AM +0100, Lee Jones wrote: > > CS5535 is the only user of mfd_clone_cell(). It makes more sense to > > register child devices in the traditional way and remove the quite > > bespoke mfd_clone_cell() call from the MFD AP

Re: [PATCH v8 0/5] arm64: ftrace with regs

2019-10-21 Thread Josh Poimboeuf
On Sat, Oct 19, 2019 at 01:01:35PM +0200, Torsten Duwe wrote: > All calls going _out_ from the KLP module are newly generated, as part > of the KLP module building process, and are thus aware of them being > "extern" -- a PLT entry should be generated and accounted for in the > KLP module. Hm... f

Re: [v4,2/2] i2c: mux: pca954x: support property idle-state

2019-10-21 Thread Peter Rosin
On 2019-10-21 10:00, Biwen Li wrote: > This supports property idle-state > You should expand this a little bit to explain that idle-state, if present, overrides i2c-mux-idle-disconnect. You could also mention your use case where you need to avoid disconnects on probe/resume. > Signed-off-by: Biw

[PATCH] dt-bindings: usb: dwc3: Move Amlogic G12A DWC3 Glue Bindings to YAML schemas

2019-10-21 Thread Neil Armstrong
Now that we have the DT validation in place, let's convert the device tree bindings for the Amlogic G12A DWC3 Glue Bindings over to a YAML schemas, the AXG and GXL glue bindings will be converted later. Signed-off-by: Neil Armstrong --- .../devicetree/bindings/usb/amlogic,dwc3.txt | 88 ---

Re: [PATCH v3 01/10] dt-bindings: sram: Convert SRAM bindings to json-schema

2019-10-21 Thread Krzysztof Kozlowski
On Thu, Oct 10, 2019 at 02:12:40PM -0500, Rob Herring wrote: > On Wed, Oct 02, 2019 at 06:43:07PM +0200, Krzysztof Kozlowski wrote: > > Convert generic mmio-sram bindings to DT schema format using > > json-schema. Require the address/size cells to be 1, not equal to root > > node. > > > > Signed-

[PATCH v3 1/3] iio: light: add driver for veml6030 ambient light sensor

2019-10-21 Thread Rishi Gupta
veml6030 is an ambient light sensor from Vishay semiconductors. It has 16-bit resolution, supports both ambient light measurement and white channel which is more responsive to wider wavelength spectrum. It has flexible power saving, integration time and gain options. Communication with host is over

[PATCH] cpufreq: Move cancelling of policy update work just after removing notifiers

2019-10-21 Thread Sudeep Holla
Commit 099967699ad9 ("cpufreq: Cancel policy update work scheduled before freeing") added cancel_work_sync(policy->update) after the frequency QoS were removed. We can cancel the work just after taking the last CPU in the policy offline and unregistering the notifiers as policy->update cannot be s

[PATCH v3 2/3] dt-bindings: iio: light: add veml6030 ALS bindings

2019-10-21 Thread Rishi Gupta
This commit adds device tree bindings for veml6030 ambient light sensor. Signed-off-by: Rishi Gupta --- Changes in v3: * None Changes in v2: * Corrected grammatical mistake from 'is' to 'are' in description of bindings .../devicetree/bindings/iio/light/veml6030.yaml| 62 +++

[PATCH v3 3/3] iio: documentation: light: Add veml6030 sysfs documentation

2019-10-21 Thread Rishi Gupta
The driver for veml6030 light sensor provides custom sysfs entries used to know parameters supported by the driver and to configure sensor like setting power saving mode and persistence etc. This commit document them. Signed-off-by: Rishi Gupta --- Changes in v3: * Updated Date from September to

Re: [PATCH v2 0/4] export/modpost: avoid renaming __ksymtab entries for symbol namespaces

2019-10-21 Thread Jessica Yu
+++ Matthias Maennich [18/10/19 10:31 +0100]: The introduction of the symbol namespace patches changed the way symbols are named in the ksymtab entries. That caused userland tools to fail (such as kmod's depmod). As depmod is used as part of the kernel build it was worth having another look wheth

RE:PERSONAL LETTER FROM MRS RASHIA AMIRA

2019-10-21 Thread Mr Barrister Hans Erich
Greetings My name is Barrister Hans Erich. I have a client who is interested to invest in your country, she is a well known politician in her country and deserve a lucrative investment partnership with you outside her country without any delay Please can you manage such investment please Kin

Re: [PATCH 1/2] mmc: add unstuck function if host is in deadlock state

2019-10-21 Thread Ulf Hansson
On Fri, 11 Oct 2019 at 15:15, Ludovic Barre wrote: > > From: Ludovic Barre > > After a request a host may be in deadlock state, and wait > a specific action to unstuck the hardware block before > re-sending a new command. Rather than talking about "unstuck" and "deadlock", how about instead desc

Re: [RESEND PATCH v2 0/3] Add driver for veml6030 ambient light sensor

2019-10-21 Thread rishi gupta
My email server returned error so I was confused whether all patches reached to mailing list intact or not, that is why I resent. Regards, Rishi On Sat, Oct 5, 2019 at 7:38 PM Jonathan Cameron wrote: > > On Tue, 24 Sep 2019 16:21:55 +0530 > Rishi Gupta wrote: > > When doing a RESEND as opposed t

Re: [PATCH v4 00/16] Rewrite x86/ftrace to use text_poke (and more)

2019-10-21 Thread Steven Rostedt
On Mon, 21 Oct 2019 11:09:22 +0200 Ingo Molnar wrote: > Steve, any objections to this series? If not I'll stick it into > tip:core/kprobes with a tentative v5.5 upstream merge target. I'm going to be doing work this merge window that is going to be directly conflicting with a lot of changes in

Re: [PATCH v3 1/3] PCI: pciehp: Add support for disabling in-band presence

2019-10-21 Thread Mika Westerberg
On Thu, Oct 17, 2019 at 03:32:54PM -0400, Stuart Hayes wrote: > From: Alexandru Gagniuc > > The presence detect state (PDS) is normally a logical or of in-band and > out-of-band presence. As of PCIe 4.0, there is the option to disable > in-band presence so that the PDS bit always reflects the sta

[PATCH 05/57] perf test: Avoid infinite loop for task exit case

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Leo Yan When executing the task exit testing case, perf gets stuck in an endless loop this case and doesn't return back on Arm64 Juno board. After digging into this issue, since Juno board has Arm's big.LITTLE CPUs, thus the PMUs are not compatible between the big CPUs and little CPUs. Th

Re: [PATCH v2 3/4] watchdog: add meson secure watchdog driver

2019-10-21 Thread Guenter Roeck
On 10/21/19 1:03 AM, Xingyu Chen wrote: Hi, Guenter On 2019/10/21 0:56, Guenter Roeck wrote: On 10/18/19 1:33 AM, Xingyu Chen wrote: The watchdog controller on the Meson-A/C series SoCs is moved to secure world, watchdog operation needs to be done in secure EL3 mode via ATF, Non-secure world c

[PATCH 04/57] perf test: Report failure for mmap events

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Leo Yan When fail to mmap events in task exit case, it misses to set 'err' to -1; thus the testing will not report failure for it. This patch sets 'err' to -1 when fails to mmap events, thus Perf tool can report correct result. Fixes: d723a55096b8 ("perf test: Add test case for checking n

[PATCH 03/57] perf evlist: Fix fix for freed id arrays

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Andi Kleen In the earlier fix for the memory overrun of id arrays I managed to typo the wrong event in the fix. Of course we need to close the current event in the loop, not the original failing event. The same test case as in the original patch still passes. Fixes: 7834fa948beb ("perf e

[PATCH 06/57] perf report: Add warning when libunwind not compiled in

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jin Yao We received a user report that call-graph DWARF mode was enabled in 'perf record' but 'perf report' didn't unwind the callstack correctly. The reason was, libunwind was not compiled in. We can use 'perf -vv' to check the compiled libraries but it would be valuable to report a warni

[PATCH 07/57] perf annotate: Avoid reallocation in objdump parsing

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Ian Rogers Objdump output is parsed using getline which allocates memory for the read. Getline will realloc if the memory is too small, but currently the line is always freed after the call. Simplify parse_objdump_line by performing the reading in symbol__disassemble. Signed-off-by: Ian R

[PATCH 11/57] perf annotate: Fix objdump --no-show-raw-insn flag

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Ian Rogers Remove redirection of objdump's stderr to /dev/null to help diagnose failures. Fix the '--no-show-raw' flag to be '--no-show-raw-insn' which binutils is permissive and allows, but fails with LLVM objdump. Signed-off-by: Ian Rogers Cc: Alexander Shishkin Cc: Jin Yao Cc: Jiri

[PATCH 09/57] perf annotate: Don't pipe objdump output through 'grep' command

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Ian Rogers Simplify the objdump command by not piping the output of objdump through grep. Instead, drop lines that match the grep pattern during the reading loop. Signed-off-by: Ian Rogers Tested-by: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jin Yao Cc: Jiri Olsa Cc: Mark Ru

[PATCH 10/57] perf annotate: Don't pipe objdump output through 'expand' command

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Ian Rogers Avoiding a pipe allows objdump command failures to surface. Move to the caller of symbol__parse_objdump_line the call to strim that removes leading and trailing tabs. Add a new expand_tabs function that if a tab is present allocate a new line in which tabs are expanded. In sym

[PATCH 08/57] perf annotate: Use libsubcmd's run-command.h to fork objdump

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Ian Rogers Reduce duplicated logic by using the subcmd library. Ensure when errors occur they are reported to the caller. Before this patch, if no lines are read the error status is 0. Signed-off-by: Ian Rogers Tested-by: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jin Yao Cc:

Re: [PATCH v4 3/3] pci: intel: Add sysfs attributes to configure pcie link

2019-10-21 Thread Andrew Murray
On Mon, Oct 21, 2019 at 02:39:20PM +0800, Dilip Kota wrote: > PCIe RC driver on Intel Gateway SoCs have a requirement > of changing link width and speed on the fly. > So add the sysfs attributes to show and store the link > properties. > Add the respective link resize function in pcie DesignWare >

[GIT PULL] perf/core improvements and fixes

2019-10-21 Thread Arnaldo Carvalho de Melo
/scm/linux/kernel/git/acme/linux into perf/core (2019-10-15 07:19:55 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-5.5-20191021 for you to fetch changes up to 27198a893ba074407e7a87e346252b3e6fab454f: perf

[PATCH 01/57] perf tools: Allow to build with -ltcmalloc

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa By using "make TCMALLOC=1" you can enable perf to be build for usage with libtcmalloc.so (gperftools). Get heap profile (tools/perf directory): $ $ make TCMALLOC=1 DEBUG=1 $ HEAPPROFILE=/tmp/heapprof ./perf ... $ pprof ./perf /tmp/heapprof.000* (pprof) top Total: 23

[PATCH 02/57] perf script: Fix --reltime with --time

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Andi Kleen My earlier patch to just enable --reltime with --time was a little too optimistic. The --time parsing would accept absolute time, which is very confusing to the user. Support relative time in --time parsing too. This only works with recent perf record that records the first sam

[PATCH 13/57] perf stat: Support --all-kernel/--all-user

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jin Yao 'perf record' has supported --all-kernel / --all-user to configure all used events to run in kernel space or run in user space. But 'perf stat' doesn't support these options. It would be useful to support these options in 'perf stat' too to keep the same semantics available in both

[PATCH 18/57] perf trace: Support tracepoint dynamic char arrays

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Things like: # grep __data_loc /sys/kernel/debug/tracing/events/sched/sched_process_exec/format field:__data_loc char[] filename; offset:8; size:4; signed:1; # That, at that offset (8) and with that size(8) have an integer that contains t

[PATCH 24/57] libbeauty: Add a generator for x86's IRQ vectors -> strings

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We'll wire this up with the 'vector' arg in irq_vectors:*, etc: Just run it straight away and check what it produces: $ tools/perf/trace/beauty/tracepoints/x86_irq_vectors.sh static const char *x86_irq_vectors[] = { [0x02] = "NMI", [0x12] = "MC

[PATCH 20/57] perf vendor events arm64: Add some missing events for Hisi hip08 DDRC PMU

2019-10-21 Thread Arnaldo Carvalho de Melo
From: John Garry Add some more missing events. Signed-off-by: John Garry Reviewed-by: Shaokun Zhang Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Will Deacon Cc: linux...@huawei.com Link: http://lore.kernel.org/lkml/1567612484-195727-3-git

[PATCH 32/57] perf trace: Introduce 'struct evsel__trace' for evsel->priv needs

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo For syscalls we need to cache the 'syscall_id' and 'ret' field offsets but as well have a pointer to the syscall_fmt_arg array for the fields, so that we can expand strings in filter expressions, so introduce a 'struct evsel_trace' to have in evsel->priv that allows

[PATCH 30/57] perf trace: Introduce accessors to trace specific evsel->priv

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We're using evsel->priv in syscalls:sys_{enter,exit}_SYSCALL and in raw_syscalls:sys_{enter,exit} to cache the offset of the common fields, the multiplexor id/syscall_id in the sys_enter case and syscall_id + ret for sys_exit. And for the rest of the tracepoints we

[PATCH 29/57] perf trace: Show error message when not finding a field used in a filter expression

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It was there, but as pr_debug(), make it pr_err() so that we can see it without -v: # trace -e syscalls:*lseek --filter="whenc==SET" sleep 1 "whenc" not found in "syscalls:sys_enter_lseek", can't set filter "whenc==SET" # Cc: Adrian Hunter Cc: David Ahern

[PATCH 16/57] perf string: Export asprintf__tp_filter_pids()

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Will be used directly in 'perf trace' for setting up the command line argv array to pass to cmd_record, as this was how 'perf trace record' was implemented, following the model used in 'perf kvm record', 'perf sched record', etc. Cc: Adrian Hunter Cc: David Ahern

[PATCH 27/57] perf trace beauty: Add the glue for the autogenerated x86 IRQ vector array

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We need to wrap this autogenerated string array with the strarray__scnprintf() formatter and the strarray__strotul() lookup method, do it. Cc: Adrian Hunter Cc: Andi Kleen Cc: David Ahern Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link: https:/

[PATCH 31/57] perf trace: Hide evsel->access further, simplify code

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Next step will be to have a 'struct evsel_trace' to allow for handling the syscalls tracepoints via the strace-like code while reusing parts of that code with the other tracepoints, where we don't have things like the 'syscall_nr' or 'ret' ((raw_)?syscalls:sys_{ente

[PATCH 28/57] perf trace: Hook the 'vec' tracepoint argument with the x86 IRQ vectors scnprintf/strtoul

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Ended up only being useful when filtering multiple irq_vectors tracepoints, as we end up having a tracepoint for each of the entries, i.e.: This will always come with the "RESCHEDULE_VECTOR" in the 'vector' arg: # perf trace --max-events 8 -e irq_vectors:resched

[PATCH 17/57] perf trace: Filter own pid to avoid a feedback look in 'perf trace record -a'

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When doing a system wide 'perf trace record' we need, just like in 'perf trace' live mode, to filter out perf trace's own pid, so set up a tracepoint filter for the raw_syscalls tracepoints right after adding them to the argv array that is set up to then call cmd_re

[PATCH 15/57] perf trace: Introduce --errno-summary

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To be used with -S or -s, using just this new option implies -s, examples: # perf trace --errno-summary sleep 1 Summary of events: sleep (10793), 80 events, 93.0% syscallcalls errors total min avg max stddev

[PATCH 25/57] libbeauty: Hook up the x86 irq_vectors table generator

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo I.e. after running: $ make -C tools/perf O=/tmp/build/perf We end up with: $ cat /tmp/build/perf/trace/beauty/generated/x86_arch_irq_vectors_array.c static const char *x86_irq_vectors[] = { [0x02] = "NMI", [0x12] = "MCE", [0x20] = "I

[PATCH 19/57] perf vendor events arm64: Fix Hisi hip08 DDRC PMU eventname

2019-10-21 Thread Arnaldo Carvalho de Melo
From: John Garry The "EventName" for the DDRC precharge command event is incorrect, so fix it. Fixes: 57cc732479ba ("perf jevents: Add support for Hisi hip08 DDRC PMU aliasing") Signed-off-by: John Garry Reviewed-by: Shaokun Zhang Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Mark Rutland Cc: N

[PATCH] dt-bindings: soc: amlogic: canvas: convert to yaml

2019-10-21 Thread Neil Armstrong
Now that we have the DT validation in place, let's convert the device tree bindings for the Amlogic Canvas over to a YAML schemas. Cc: Maxime Jourdan Signed-off-by: Neil Armstrong --- .../bindings/soc/amlogic/amlogic,canvas.txt | 33 - .../bindings/soc/amlogic/amlogic,canvas.yaml

[PATCH 23/57] tools arch x86: Grab a copy of the file containing the IRQ vector defines

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We'll use it to generate a table and then convert the irq_vectors:* tracepoint 'vector' arg in things like perf trace, script, etc. Cc: Adrian Hunter Cc: Andi Kleen Cc: David Ahern Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link: https://lkml.k

[PATCH 33/57] perf trace: Initialize evsel_trace->fmt for syscalls:sys_enter_* tracepoints

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo >From the syscall_fmts->arg entries for formatting strace-like syscalls. This is when resolving the string "whence" on a filter expression for the syscalls:sys_enter_lseek: Breakpoint 3, perf_evsel__syscall_arg_fmt (evsel=0xc91ed0, arg=0x7fff7cd0 "whence")

[PATCH 34/57] perf scripting engines: Iterate on tep event arrays directly

2019-10-21 Thread Arnaldo Carvalho de Melo
From: "Steven Rostedt (VMware)" Instead of calling a useless (and broken) helper function to get the next event of a tep event array, just get the array directly and iterate over it. Note, the broken part was from trace_find_next_event() which after this will no longer be used, and can be remove

[PATCH 26/57] libbeauty: Add a strarray__scnprintf_suffix() method

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In some cases, like with x86 IRQ vectors, the common part in names is at the end, so a suffix, add a scnprintf function for that. Cc: Adrian Hunter Cc: Andi Kleen Cc: David Ahern Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link: https://lkml.ker

[PATCH 35/57] perf tools: Remove unused trace_find_next_event()

2019-10-21 Thread Arnaldo Carvalho de Melo
From: "Steven Rostedt (VMware)" trace_find_next_event() was buggy and pretty much a useless helper. As there are no more users, just remove it. Signed-off-by: Steven Rostedt (VMware) Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: Tzvetomir Stoyanov Cc: linux-trace-de...@vger.kernel.or

[PATCH 42/57] perf tests: Disable bp_signal testing for arm64

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Leo Yan As there are several discussions for enabling perf breakpoint signal testing on arm64 platform: arm64 needs to rely on single-step to execute the breakpointed instruction and then reinstall the breakpoint exception handler. But if we hook the breakpoint with a signal, the signal ha

[PATCH 50/57] libperf: Do not export perf_evsel__init()/perf_evlist__init()

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no point in exporting perf_evsel__init()/perf_evlist__init(), it's called from perf_evsel__new()/perf_evlist__new() respectively. It's used only from perf where perf_evsel()/perf_evlist() is embedded perf's evsel/evlist. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin

Re: [PATCH v3 2/3] PCI: pciehp: Wait for PDS if in-band presence is disabled

2019-10-21 Thread Mika Westerberg
On Thu, Oct 17, 2019 at 03:32:55PM -0400, Stuart Hayes wrote: > From: Alexandru Gagniuc > > When inband presence is disabled, PDS may come up at any time, or not > at all. PDS being low may indicate that the card is still mating, and > we could expect contact bounce to bring down the link as well

[PATCH 45/57] libperf: Move mask setup to perf_evlist__mmap_ops()

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Move the mask setup to perf_evlist__mmap_ops(), because it's the same on both perf and libperf path. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Jin Yao Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian

[PATCH 49/57] libperf: Keep count of failed tests

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Keep the count of failed tests, so we get better output with failures, like: # make tests ... running static: - running test-cpumap.c...OK - running test-threadmap.c...OK - running test-evlist.c...FAILED test-evlist.c:53 failed to create evsel2 FAILED test-evlist.c:

[PATCH 52/57] libbeauty: Introduce syscall_arg__strtoul_strarrays()

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To allow going from string to integer for 'struct strarrays'. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-b1ia3xzcy72hv0u4m168f...@git.kernel.org Signed-off-by: Arnaldo Carvalh

[PATCH 55/57] libbeauty: Introduce strarray__strtoul_flags()

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Counterpart of strarray__scnprintf_flags(), i.e. from a expression like: # perf trace -e syscalls:sys_enter_mmap --filter="flags==PRIVATE|FIXED|DENYWRITE" I.e. that "flags==PRIVATE|FIXED|DENYWRITE", turn that into # perf trace -e syscalls:sys_enter_mmap --

Re: [PATCH v4] perf record: Add support for limit perf output file size

2019-10-21 Thread Jiri Olsa
On Wed, Sep 25, 2019 at 03:06:37PM +0800, Jiwei Sun wrote: SNIP > SEE ALSO > > linkperf:perf-stat[1], linkperf:perf-list[1] > diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c > index 48600c90cc7e..30904d2a3407 100644 > --- a/tools/perf/builtin-record.c > +++ b/to

[PATCH 47/57] libperf: Add tests_mmap_thread test

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add mmaping tests that generates 100 prctl calls in monitored child process and validates it gets 100 events in ring buffer. Committer tests: # make -C tools/perf/lib tests make: Entering directory '/home/acme/git/perf/tools/perf/lib' LINK test-cpumap-a LINK

[PATCH 56/57] perf trace: Wire up strarray__strtoul_flags()

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Now anything that uses STRARRAY_FLAGS, like the 'fsmount' syscall will support mapping or-ed strings back to a value that can be used in a filter. In some cases, where STRARRAY_FLAGS isn't used but instead the scnprintf is a special one because of specific needs, l

[PATCH 39/57] perf list: Hide deprecated events by default

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jin Yao There are some deprecated events listed by perf list. But we can't remove them from perf list with ease because some old scripts may use them. Deprecated events are old names of renamed events. When an event gets renamed the old name is kept around for some time and marked with De

[PATCH 38/57] perf trace: Pass a syscall_arg to syscall_arg_fmt->strtoul()

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo With just what we need for the STUL_STRARRAY, i.e. the 'struct strarray' pointer to be used, just like with syscall_arg_fmt->scnprintf() for the other direction (number -> string). With this all the strarrays that are associated with syscalls can be used with '-e s

[PATCH 53/57] perf trace: Use strtoul for the fcntl 'cmd' argument

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since its values are in two ranges of values we ended up codifying it using a 'struct strarrays', so now hook it up with STUL_STRARRAYS so that we can do: # perf trace -e syscalls:*enter_fcntl --filter=cmd==SETLK||cmd==SETLKW 0.000 sssd_kcm/19021 syscalls:sy

Re: [PATCH 2/3] watchdog/softlockup: Report the same softlockup regularly

2019-10-21 Thread Petr Mladek
On Mon 2019-10-21 14:43:39, Peter Zijlstra wrote: > On Mon, Aug 19, 2019 at 12:47:31PM +0200, Petr Mladek wrote: > > Softlockup report means that there is no progress on the given CPU. It > > might be a "short" affair where the system gets recovered. But often > > the system stops being responsive

[PATCH 57/57] perf trace: Use STUL_STRARRAY_FLAGS with mmap

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The 'mmap' syscall has special needs so it doesn't use SCA_STRARRAY_FLAGS, see its implementation in syscall_arg__scnprintf_mmap_flags(), related to special handling of MAP_ANONYMOUS, so set ->parm to the strarray__mmap_flags and hook up with strarray__strtoul_flags

[PATCH 54/57] libbeauty: Make the mmap_flags strarray visible outside of its beautifier

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So that we can later use it with the strarray__strtoul_flags() routine that will be soon introduced. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-vldj3ch8su6i20to5eq31...@git.kernel.org Signed-o

[PATCH 40/57] perf tests: Remove needless headers for bp_account

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Leo Yan A few headers are not needed and were introduced by copying from other test file. This patch removes the needless headers for the breakpoint accounting testing. Signed-off-by: Leo Yan Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Brajeswar Ghosh Cc: Florian Fainelli Cc: Jiri O

[PATCH 41/57] perf tests bp_account: Add dedicated checking helper is_supported()

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Leo Yan The arm architecture supports breakpoint accounting but it doesn't support breakpoint overflow signal handling. The current code uses the same checking helper, thus it disables both testings (bp_account and bp_signal) for arm platform. For handling two testings separately, this pa

[PATCH 46/57] libperf: Link static tests with libapi.a

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Both static and dynamic tests needs to link with libapi.a, because it's using its functions. Also include path for libapi includes. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Jin Yao Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter

[PATCH 51/57] libperf: Add pr_err() macro

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa And missing include for "perf/core.h" header, which provides LIBPERF_* debug levels and add missing pr_err() support. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Jin Yao Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Cc:

[PATCH 44/57] libperf: Move mmap allocation to perf_evlist__mmap_ops::get

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Move allocation of the mmap array into perf_evlist__mmap_ops::get, to centralize the mmap allocation. Also move nr_mmap setup to perf_evlist__mmap_ops so it's centralized and shared by both perf and libperf mmap code. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey

[PATCH 36/57] libbeauty: Introduce syscall_arg__strtoul_strarray()

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To go from strarrays strings to its indexes. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-wta0qvo207z27huib2c4i...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- t

[PATCH 43/57] libperf: Introduce perf_evlist__for_each_mmap()

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add the perf_evlist__for_each_mmap() function and export it in the perf/evlist.h header, so that the user can iterate through 'struct perf_mmap' objects. Add a internal perf_mmap__link() function to do the actual linking. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Ale

Re: [PATCH v6 01/10] KVM: arm64: Document PV-time interface

2019-10-21 Thread Steven Price
On 18/10/2019 18:10, Mark Rutland wrote: > On Tue, Oct 15, 2019 at 06:56:51PM +0100, Mark Rutland wrote: [...] >>> +PV_TIME_ST >>> += == >>> +Function ID: (uint32)0xC521 >>> +Return value: (int64) IPA of the stolen time data structure for >>

[PATCH 48/57] libperf: Add tests_mmap_cpus test

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add mmaping tests that generates prctl call on every cpu validates it gets all the related events in ring buffer. Committer testing: # make -C tools/perf/lib tests make: Entering directory '/home/acme/git/perf/tools/perf/lib' LINK test-cpumap-a LINK test-thre

[PATCH 37/57] perf trace: Honour --max-events in processing syscalls:sys_enter_*

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We were doing this only at the sys_exit syscall tracepoint, as for strace-like we count the pair of sys_enter and sys_exit as one event, but when asking specifically for a the syscalls:sys_enter_NAME tracepoint we need to count each of those as an event. I.e. thing

[PATCH 12/57] perf jvmti: Link against tools/lib/ctype.h to have weak strlcpy()

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Thomas Richter The build of file libperf-jvmti.so succeeds but the resulting object fails to load: # ~/linux/tools/perf/perf record -k mono -- java \ -XX:+PreserveFramePointer \ -agentpath:/root/linux/tools/perf/libperf-jvmti.so \ hog 10 123450 Error occurred dur

[PATCH 14/57] perf trace: Add syscall failure stats to -s/--summary and -S/--with-summary

2019-10-21 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Just like strace has: # trace -s sleep 1 Summary of events: sleep (32370), 80 events, 93.0% syscallcalls errors total min avg max stddev (msec)(msec)(msec)(msec)

[PATCH 22/57] perf vendor events arm64: Add some missing events for Hisi hip08 HHA PMU

2019-10-21 Thread Arnaldo Carvalho de Melo
From: John Garry Add some more missing events. A trivial typo is also fixed. Signed-off-by: John Garry Reviewed-by: Shaokun Zhang Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Will Deacon Cc: linux...@huawei.com Link: http://lore.kernel.o

Re: drm/komeda: Dump SC_ENH_* registers from scaler block

2019-10-21 Thread Mihail Atanassov
On Wednesday, 16 October 2019 09:17:39 BST james qian wang (Arm Technology China) wrote: > On Tue, Oct 15, 2019 at 11:00:01AM +, Mihail Atanassov wrote: > > Signed-off-by: Mihail Atanassov > > --- > > .../gpu/drm/arm/display/komeda/d71/d71_component.c | 14 +- > > 1 file changed,

[PATCH 21/57] perf vendor events arm64: Add some missing events for Hisi hip08 L3C PMU

2019-10-21 Thread Arnaldo Carvalho de Melo
From: John Garry Add some more missing events. Signed-off-by: John Garry Reviewed-by: Shaokun Zhang Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Will Deacon Cc: linux...@huawei.com Link: http://lore.kernel.org/lkml/1567612484-195727-4-git

Re: [PATCH 4/5] perf tools: Support single perf.data file directory

2019-10-21 Thread Arnaldo Carvalho de Melo
Em Mon, Oct 21, 2019 at 03:42:39PM +0300, Adrian Hunter escreveu: > On 7/10/19 3:06 PM, Adrian Hunter wrote: > > On 7/10/19 2:20 PM, Jiri Olsa wrote: > >> On Fri, Oct 04, 2019 at 11:31:20AM +0300, Adrian Hunter wrote: > >> > >> SNIP > >> > >>> u8 pad[8] = {0}; > >>> > >>> - if (!perf_data__is_p

Re: [PATCH v3 3/3] PCI: pciehp: Add dmi table for in-band presence disabled

2019-10-21 Thread Mika Westerberg
On Thu, Oct 17, 2019 at 03:32:56PM -0400, Stuart Hayes wrote: > Some systems have in-band presence detection disabled for hot-plug PCI > slots, but do not report this in the slot capabilities 2 (SLTCAP2) register. > On these systems, presence detect can become active well after the link is > report

[PATCH v2 ] iommu/vt-d: Fix panic after kexec -p for kdump

2019-10-21 Thread John Donnelly
This cures a panic on restart after a kexec -p operation on 5.3 and 5.4 kernels. Fixes: 8af46c784ecfe ("iommu/vt-d: Implement is_attach_deferred iommu ops entry") The underlying state of the iommu registers (iommu->flags & VTD_FLAG_TRANS_PRE_ENABLED) on a restart results in a domain being marked

Re: KCSAN: data-race in exit_signals / prepare_signal

2019-10-21 Thread Oleg Nesterov
On 10/21, Marco Elver wrote: > > On Mon, 21 Oct 2019 at 14:00, Oleg Nesterov wrote: > > > > I think this is WONTFIX. > > If taking the spinlock is unnecessary (which AFAIK it probably is) and > there are no other writers to this flag, you will still need a > WRITE_ONCE(tsk->flags, tsk->flags | PF_

Re: linux-next: Tree for Oct 18 (objtool)

2019-10-21 Thread Peter Zijlstra
On Mon, Oct 21, 2019 at 03:19:48PM +0200, Christian Brauner wrote: > On Mon, Oct 21, 2019 at 03:11:49PM +0200, Peter Zijlstra wrote: > > By popular request; here's that alternative. Completely untested :-) > > Am I not getting some mails? :) You're not on the 'right' IRC channels :-) > I prefer

Re: [PATCH RFC v2 2/2] USB: ldusb: fix ring-buffer locking

2019-10-21 Thread Greg Kroah-Hartman
On Mon, Oct 21, 2019 at 10:56:27AM +0200, Johan Hovold wrote: > On Fri, Oct 18, 2019 at 11:54:58AM -0700, Greg Kroah-Hartman wrote: > > On Fri, Oct 18, 2019 at 05:19:55PM +0200, Johan Hovold wrote: > > > The custom ring-buffer implementation was merged without any locking > > > whatsoever, but a sp

Re: [RFC PATCH v2 11/16] mm,hwpoison: Rework soft offline for in-use pages

2019-10-21 Thread Oscar Salvador
On Fri, Oct 18, 2019 at 02:39:01PM +0200, Michal Hocko wrote: > > I am sorry but I got lost in the above description and I cannot really > make much sense from the code either. Let me try to outline the way how > I think about this. > > Say we have a pfn to hwpoison. We have effectivelly three po

RE:PERSONAL LETTER FROM MRS RASHIA AMIRA

2019-10-21 Thread Mr Barrister Hans Erich
Greetings My name is Barrister Hans Erich. I have a client who is interested to invest in your country, she is a well known politician in her country and deserve a lucrative investment partnership with you outside her country without any delay Please can you manage such investment please Kin

Re: [PATCH 5/5] rtc: rtc-rc5t583: add ricoh rc5t619 RTC driver

2019-10-21 Thread Alexandre Belloni
On 21/10/2019 15:19:09+0200, Stefan Agner wrote: > On 2019-10-21 07:41, Andreas Kemnade wrote: > > Add an RTC driver for the RTC device on Ricoh MFD rc5t619, > > which is implemented as a variant of rn5t618 > > > > Signed-off-by: Andreas Kemnade > > --- > > drivers/rtc/Kconfig | 10 + > >

Re: [PATCH] seccomp: fix SECCOMP_USER_NOTIF_FLAG_CONTINUE test

2019-10-21 Thread Tycho Andersen
On Mon, Oct 21, 2019 at 11:10:55AM +0200, Christian Brauner wrote: > The ifndef for SECCOMP_USER_NOTIF_FLAG_CONTINUE was placed under the > ifndef for the SECCOMP_FILTER_FLAG_NEW_LISTENER feature. This will not > work on systems that do support SECCOMP_FILTER_FLAG_NEW_LISTENER but do not > support

Re: [PATCH 4/5] perf tools: Support single perf.data file directory

2019-10-21 Thread Jiri Olsa
On Mon, Oct 21, 2019 at 10:46:11AM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Oct 21, 2019 at 03:42:39PM +0300, Adrian Hunter escreveu: > > On 7/10/19 3:06 PM, Adrian Hunter wrote: > > > On 7/10/19 2:20 PM, Jiri Olsa wrote: > > >> On Fri, Oct 04, 2019 at 11:31:20AM +0300, Adrian Hunter wrote:

Re: [PATCH RFC 1/3] kcov: remote coverage support

2019-10-21 Thread Dmitry Vyukov
On Thu, Oct 17, 2019 at 7:44 PM Andrey Konovalov wrote: > > Currently kcov can only collect coverage for syscalls that are issued > from the current process. This patch adds support for KCOV_REMOTE_ENABLE, > that makes it possible to collect coverage for arbitrary parts of the > kernel code, provi

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