Re: [PATCH] perf script: Fix LBR skid dump problems in brstackinsn

2018-12-06 Thread Arnaldo Carvalho de Melo
Em Thu, Dec 06, 2018 at 12:51:48PM -0800, Andi Kleen escreveu: > On Thu, Dec 06, 2018 at 02:01:40PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Nov 19, 2018 at 09:06:17PM -0800, Andi Kleen escreveu: > > > From: Andi Kleen > > > > > > This is a fix for another instance of the skid problem M

[PATCH 40/75] perf bpf-loader: Fix debugging message typo

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Ingo Molnar Go over the tools/ files that are maintained in Arnaldo's tree and fix common typos: half of them were in comments, the other half in JSON files. No change in functionality intended. Committer notes: This was split from a larger patch as there are code that is, additionally,

[PATCH 37/75] perf vendor events intel: Fix diverse typos

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Ingo Molnar Go over the tools/ files that are maintained in Arnaldo's tree and fix common typos: half of them were in comments, the other half in JSON files. ( Care should be taken not to re-import these typos in the future, if the JSON files get updated by the vendor without fixing the

[PATCH 46/75] perf ordered_events: Rework show_progress for __ordered_events__flush

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Decide to use the progress bar one level higher, we will need this in following patch. Acked-by: David S. Miller Acked-by: Namhyung Kim Cc: Alexander Shishkin Cc: Peter Zijlstra Link: http://lkml.kernel.org/n/tip-ocjdukp2a8ujikkmafd0j...@git.kernel.org Signed-off-by: Jiri Ols

[PATCH 42/75] tools lib subcmd: Fix a few source code comment typos

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Ingo Molnar Go over the tools/ files that are maintained in Arnaldo's tree and fix common typos: half of them were in comments, the other half in JSON files. No change in functionality intended. Committer notes: This was split from a larger patch as there are code that is, additionally,

[PATCH 39/75] perf tools Documentation: Fix diverse typos

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Ingo Molnar Go over the tools/ files that are maintained in Arnaldo's tree and fix common typos: half of them were in comments, the other half in JSON files. No change in functionality intended. Committer notes: This was split from a larger patch as there are code that is, additionally,

[PATCH 44/75] perf trace: We need to consider "nr" if "__syscall_nr" is not there

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To cope with older kernels that don't have this patch backported: 026842d148b9 ("tracing/syscalls: Rename "/format" tracepoint field name "nr" to "__syscall_nr:") This makes 'perf trace' work again in RHEL7 kernels. Cc: Taeung Song Cc: Adrian Hunter Cc: Davi

[PATCH 47/75] perf ordered_events: Add private data member

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We will need it in following patch, where we can't use the container_of() trick to get the higher level object. Acked-by: David S. Miller Acked-by: Namhyung Kim Cc: Alexander Shishkin Cc: Peter Zijlstra Link: http://lkml.kernel.org/n/tip-vgs9aoek21v14o3obza58...@git.kernel.or

[PATCH 48/75] perf top: Save and display the lost count stats

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add a 'lost count' to 'perf top' headers: # perf top --stdio PerfTop:3850 irqs/sec kernel:49.0% exact: 100.0% lost: 0/0 [4000Hz cycles:ppp], (all, 8 CPUs) # perf top Samples: 0 of event 'cycles:ppp', 4000 Hz, Event count (approx.): 0 lost: 0/0 The format is: /

[PATCH 49/75] perf top: Move lost events warning to helpline

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We can't display the UI box saying that we are slow in the reader thread. That will make 'perf top' even slower and the user even more angry ;-) Move the UI box message from the reader thread to the UI thread and change it to a helpline, so there's no need to 'press any key'. A

[PATCH 51/75] perf top: Use cond variable instead of a lock

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Use conditional variable logic to synchronize between the reading and processing threads. Currently it's done by having mutex around rotation code. Using a POSIX cond variable to sync both threads after queues rotation: Process thread: - Detects data - Switches queues

[PATCH 55/75] perf top: Display slow reader warning when droping samples

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Currently we display the "Too slow to read ring buffer.." helpline only in the slow reader thread. This patch triggers it also when the processing thread drops samples, because it has the same reason, which is too many data on input. Acked-by: David S. Miller Acked-by: Namhyung

[PATCH 56/75] perf top: Move perf_top__reset_sample_counters() to after counts display

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Move the perf_top__reset_sample_counters() call to right after we display the counters so we can see the updated numbers for longer. Acked-by: David S. Miller Acked-by: Namhyung Kim Cc: Alexander Shishkin Cc: Peter Zijlstra Link: https://lkml.kernel.org/n/tip-o72pyiwt05f3p2ju

[PATCH 50/75] perf top: Add processing thread

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add a new thread that takes care of the hist creating to alleviate the main reader thread so it can keep perf mmaps served in time so that we reduce the possibility of losing events. The 'perf top' command now spawns 2 extra threads, the data processing is the following: 1) Th

[PATCH 59/75] perf cs-etm: Add support for PTMv1.1 decoding

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier This patch is re-using the mechanic set forth by ETMv3 to add support for PTM decoding. Configuration for both encoding protocol is similar but the generated stream itself is very different, hence requiring special handling. Signed-off-by: Mathieu Poirier Cc: Alexander Sh

[PATCH 58/75] perf cs-etm: Add support for ETMv3 trace decoding

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Add support for the creation of packet printer and decoder for the ETMv3 trace architecture. That way traces generated by tracers adhering to that trace protocol can be handled properly by the perf infrastructure. Signed-off-by: Mathieu Poirier Cc: Alexander Shishkin Cc:

[PATCH 60/75] perf dso: Fix unchecked usage of strncpy()

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. This fixes this warning on an Alpine Linux Edge system with gcc 8.2: In function 'decompress_k

[PATCH 67/75] perf parse-events: Fix unchecked usage of strncpy()

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. This fixes this warning on an Alpine Linux Edge system with gcc 8.2: util/parse-events.c: In f

[PATCH 64/75] perf svghelper: Fix unchecked usage of strncpy()

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. In this specific case this would only happen if fgets() was buggy, as its man page states that it

[PATCH 62/75] perf header: Fix unchecked usage of strncpy()

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. This fixes this warning on an Alpine Linux Edge system with gcc 8.2: util/header.c: In functio

[PATCH 63/75] perf help: Remove needless use of strncpy()

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since we make sure the destination buffer has at least strlen(orig) + 1, no need to do a strncpy(dest, orig, strlen(orig)), just use strcpy(dest, orig). This silences this gcc 8.2 warning on Alpine Linux: In function 'add_man_viewer', inlined from 'perf_he

[PATCH 66/75] perf probe: Fix unchecked usage of strncpy()

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. In this case the 'target' buffer is coming from a list of build-ids that are expected to have a l

[PATCH 53/75] perf top: Drop samples which are behind the refresh rate

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Drop samples from processing thread if they get behind the latest event read from the kernel maps. If it gets behind more than the refresh rate (-d option), drop the sample. Acked-by: David S. Miller Acked-by: Namhyung Kim Cc: Alexander Shishkin Cc: Peter Zijlstra Link: https

[PATCH 54/75] perf top: Save and display the drop count stats

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add drop count to 'perf top' headers: # perf top --stdio PerfTop:3549 irqs/sec kernel:51.8% exact: 100.0% lost: 0/0 drop: 0/0 [4000Hz cycles:ppp], (all, 8 CPUs) # perf top Samples: 0 of event 'cycles:ppp', 4000 Hz, Event count (approx.): 0 lost: 0/0 drop: 0/0

[PATCH 69/75] perf record: Fix memory leak on AIO objects deallocation

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Sending a part which was missed between v12 and v13 of the patch set introducing AIO trace streaming for perf record mode. The part is essential to avoid memory leakage during deallocation of AIO related trace data buffers. Signed-off-by: Alexey Budankov Cc: Alexander Shi

[PATCH 68/75] perf vendor events intel: Fix Load_Miss_Real_Latency on SKL/SKX

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Fix incorrect event names for the Load_Miss_Real_Latency metric for Skylake and Skylake Server. Fixes https://github.com/andikleen/pmu-tools/issues/158 Before: % perf stat -M Load_Miss_Real_Latency true event syntax error: '..ss.pending,mem_load_retired.l1_miss_ps,mem_loa

[PATCH 61/75] perf header: Fix unchecked usage of strncpy()

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. This fixes this warning on an Alpine Linux Edge system with gcc 8.2: util/header.c: In functio

[PATCH 57/75] perf cs-etm: Add configuration for ETMv3 trace protocol

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier This patch deals with the proper initialisation of configuration parameters for the ETMv3 trace protocol in order to properly handle packets generated by tracers following this specification. Signed-off-by: Mathieu Poirier Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyun

[PATCH 65/75] perf ui helpline: Use strlcpy() as a shorter form of strncpy() + explicit set nul

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. In this case we are actually setting the null byte at the right place, but since we pass the buff

[PATCH 73/75] perf trace: Move event delivery to a new deliver_event() function

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Mov event delivery code to a new trace__deliver_event() function, so it's easier to add ordered delivery coming in the following patches. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Dmitry Levin Cc: Eugene Syromiatnikov Cc: Frederic Weisbecker Cc: Luis Cláudio Gonçal

[PATCH 72/75] perf ordered_events: Add ordered_events__flush_time interface

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add OE_FLUSH__TIME flush type, to be able to flush only certain amount of the queue based on the provided timestamp. It will be used in the following patches. Link: http://lkml.kernel.org/n/tip-a3na77vemwr1g92lfhlrz...@git.kernel.org Signed-off-by: Jiri Olsa Cc: Alexander Shishk

[PATCH 70/75] perf config: Modify size factor of snprintf

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Sihyeon Jang According to definition of snprintf, it gets size factor including null('\0') byte. So '-1' is not neccessary. Also it will be helpful unfied style with other cases. (eg. builtin-script.c) Signed-off-by: Sihyeon Jang Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.

[PATCH 75/75] perf trace: Add ordered processing

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Sort events to provide the precise outcome of ordered events, just like is done with 'perf report' and 'perf top'. Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Dmitry Levin Cc: Eugene Syromiatnikov Cc: Frederic Weisbecker Cc: Luis

[PATCH 71/75] perf annotate: Introduce basic support for ARC

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Eugeniy Paltsev Introduce basic 'perf annotate' support for ARC to be able to use anotation via stdio interface. Signed-off-by: Eugeniy Paltsev Cc: Alexander Shishkin Cc: Alexey Brodkin Cc: Jiri Olsa Cc: linux-snps-...@lists.infradead.org Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Vinee

[PATCH 74/75] perf ordered_events: Add first_time() method

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa To get the timestamp in the first event in the queue. Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Dmitry Levin Cc: Eugene Syromiatnikov Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Steven Rostedt (VMware) Cc:

[PATCH 41/75] perf tools: Fix diverse comment typos

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Ingo Molnar Go over the tools/ files that are maintained in Arnaldo's tree and fix common typos: half of them were in comments, the other half in JSON files. No change in functionality intended. Committer notes: This was split from a larger patch as there are code that is, additionally,

[PATCH 43/75] perf tools: Allow specifying proc-map-timeout in config file

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Mark Drayton The default timeout of 500ms for parsing /proc//maps files is too short for profiling many of our services. This can be overridden by passing --proc-map-timeout to the relevant command but it'd be nice to globally increase our default value. This patch permits setting a diffe

[PATCH 45/75] perf tools: Support 'srccode' output

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Andi Kleen When looking at PT or brstackinsn traces with 'perf script' it can be very useful to see the source code. This adds a simple facility to print them with 'perf script', if the information is available through dwarf % perf record ... % perf script -F insn,ip,sym,srccode ...

Re: [PATCH 1/1] userfaultfd: check VM_MAYWRITE was set after verifying the uffd is registered

2018-12-06 Thread Mike Rapoport
On Thu, Dec 06, 2018 at 04:20:28PM -0500, Andrea Arcangeli wrote: > Calling UFFDIO_UNREGISTER on virtual ranges not yet registered in uffd > could trigger an harmless false positive WARN_ON. Check the vma is > already registered before checking VM_MAYWRITE to shut off the > false positive warning.

[PATCH 38/75] tools lib traceevent: Fix diverse typos in comments

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Ingo Molnar Go over the tools/ files that are maintained in Arnaldo's tree and fix common typos: half of them were in comments, the other half in JSON files. No change in functionality intended. Committer notes: This was split from a larger patch as there are code that is, additionally,

[PATCH 52/75] perf top: Set the 'session_done' volatile variable when exiting

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa So we can get out of hist processing ASAP on user request. Acked-by: David S. Miller Acked-by: Namhyung Kim Tested-by: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Peter Zijlstra Link: https://lkml.kernel.org/n/tip-r8aufbgbixr2f85s3wcoa...@git.kernel.org Signed-off-by

Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-06 Thread Christian Brauner
On Thu, Dec 06, 2018 at 02:29:13PM -0600, Eric W. Biederman wrote: > Christian Brauner writes: > > > On Thu, Dec 06, 2018 at 01:17:24PM -0600, Eric W. Biederman wrote: > >> Christian Brauner writes: > >> > >> > On December 7, 2018 4:01:19 AM GMT+13:00, ebied...@xmission.com wrote: > >> >>Christ

[PATCH 24/75] perf annotate: Create a annotate2 flag in struct symbol

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Jin Yao We often use the symbol__annotate2() to annotate a specified symbol. While annotating may take some time, so in order to avoid annotating the same symbol repeatedly, the patch creates a new flag to indicate the symbol has been annotated. Signed-off-by: Jin Yao Reviewed-by: Ingo Mo

[PATCH 30/75] tools lib traceevent, perf tools: Rename 'struct tep_event_format' to 'struct tep_event'

2018-12-06 Thread Arnaldo Carvalho de Melo
From: Tzvetomir Stoyanov In order to make libtraceevent into a proper library, variables, data structures and functions require a unique prefix to prevent name space conflicts. This renames 'struct tep_event_format' to 'struct tep_event', which describes more closely the purpose of the struct.

Re: siginfo pid not populated from ptrace?

2018-12-06 Thread Kees Cook
On Thu, Dec 6, 2018 at 1:11 PM Eric W. Biederman wrote: > > Tycho Andersen writes: > > > On Thu, Dec 06, 2018 at 10:48:39AM -0800, Linus Torvalds wrote: > >> On Thu, Dec 6, 2018 at 6:40 AM Eric W. Biederman > >> wrote: > >> > > >> > We have in the past had ptrace users that weren't just about d

[PATCH v4 08/10] sched/fair: Steal work from an overloaded CPU when CPU goes idle

2018-12-06 Thread Steve Sistare
When a CPU has no more CFS tasks to run, and idle_balance() fails to find a task, then attempt to steal a task from an overloaded CPU in the same LLC, using the cfs_overload_cpus bitmap to efficiently identify candidates. To minimize search time, steal the first migratable task that is found when

[PATCH v4 10/10] sched/fair: Provide idle search schedstats

2018-12-06 Thread Steve Sistare
Add schedstats to measure the effectiveness of searching for idle CPUs and stealing tasks. This is a temporary patch intended for use during development only. SCHEDSTAT_VERSION is bumped to 16, and the following fields are added to the per-CPU statistics of /proc/schedstat: field 10: # of times

[PATCH v4 01/10] sched: Provide sparsemask, a reduced contention bitmap

2018-12-06 Thread Steve Sistare
Provide struct sparsemask and functions to manipulate it. A sparsemask is a sparse bitmap. It reduces cache contention vs the usual bitmap when many threads concurrently set, clear, and visit elements, by reducing the number of significant bits per cacheline. For each cacheline chunk of the mask

[PATCH v4 03/10] sched/topology: Provide cfs_overload_cpus bitmap

2018-12-06 Thread Steve Sistare
From: Steve Sistare Define and initialize a sparse bitmap of overloaded CPUs, per last-level-cache scheduling domain, for use by the CFS scheduling class. Save a pointer to cfs_overload_cpus in the rq for efficient access. Signed-off-by: Steve Sistare --- include/linux/sched/topology.h | 1 +

[PATCH v4 06/10] sched/fair: Generalize the detach_task interface

2018-12-06 Thread Steve Sistare
The detach_task function takes a struct lb_env argument, but only needs a few of its members. Pass the rq and cpu arguments explicitly so the function may be called from code that is not based on lb_env. No functional change. Signed-off-by: Steve Sistare --- kernel/sched/fair.c | 14 +++---

[PATCH v4 00/10] steal tasks to improve CPU utilization

2018-12-06 Thread Steve Sistare
When a CPU has no more CFS tasks to run, and idle_balance() fails to find a task, then attempt to steal a task from an overloaded CPU in the same LLC. Maintain and use a bitmap of overloaded CPUs to efficiently identify candidates. To minimize search time, steal the first migratable task that is f

[PATCH v4 07/10] sched/fair: Provide can_migrate_task_llc

2018-12-06 Thread Steve Sistare
Define a simpler version of can_migrate_task called can_migrate_task_llc which does not require a struct lb_env argument, and judges whether a migration from one CPU to another within the same LLC should be allowed. Signed-off-by: Steve Sistare --- kernel/sched/fair.c | 28 ++

[PATCH v4 02/10] sched/topology: Provide hooks to allocate data shared per LLC

2018-12-06 Thread Steve Sistare
Add functions sd_llc_alloc_all() and sd_llc_free_all() to allocate and free data pointed to by struct sched_domain_shared at the last-level-cache domain. sd_llc_alloc_all() is called after the SD hierarchy is known, to eliminate the unnecessary allocations that would occur if we instead allocated

[PATCH v4 09/10] sched/fair: disable stealing if too many NUMA nodes

2018-12-06 Thread Steve Sistare
The STEAL feature causes regressions on hackbench on larger NUMA systems, so disable it on systems with more than sched_steal_node_limit nodes (default 2). Note that the feature remains enabled as seen in features.h and /sys/kernel/debug/sched_features, but stealing is only performed if nodes <= s

[PATCH v4 05/10] sched/fair: Hoist idle_stamp up from idle_balance

2018-12-06 Thread Steve Sistare
Move the update of idle_stamp from idle_balance to the call site in pick_next_task_fair, to prepare for a future patch that adds work to pick_next_task_fair which must be included in the idle_stamp interval. No functional change. Signed-off-by: Steve Sistare --- kernel/sched/fair.c | 31

[PATCH v2] iommu: fix amd_iommu=force_isolation

2018-12-06 Thread Yu Zhao
The parameter is still there but it's ignored. We need to check its value before deciding to go into passthrough mode for AMD IOMMU v2 capable device. We occasionally use this parameter to force v2 capable device into translation mode to debug memory corruption that we suspect is caused by DMA wri

[PATCH v4 04/10] sched/fair: Dynamically update cfs_overload_cpus

2018-12-06 Thread Steve Sistare
An overloaded CPU has more than 1 runnable task. When a CFS task wakes on a CPU, if h_nr_running transitions from 1 to more, then set the CPU in the cfs_overload_cpus bitmap. When a CFS task sleeps, if h_nr_running transitions from 2 to less, then clear the CPU in cfs_overload_cpus. Signed-off-b

Re: [PATCH] PCI: controller: dwc: Make PCI_IMX6 depend on PCIEPORTBUS

2018-12-06 Thread Robert Hancock
On 2018-12-06 10:10 a.m., Robert Hancock wrote: > On 2018-12-06 9:50 a.m., Lucas Stach wrote: >> Am Donnerstag, den 06.12.2018, 09:45 -0600 schrieb Robert Hancock: >>> On 2018-12-06 2:10 a.m., Baruch Siach wrote: Hi Andrey, Adding Robert Hancock who reported[1] on a PCIe MSI issue wi

Re: [patch v2 for-4.20] mm, thp: restore node-local hugepage allocations

2018-12-06 Thread David Rientjes
On Wed, 5 Dec 2018, David Rientjes wrote: > This is a full revert of ac5b2c18911f ("mm: thp: relax __GFP_THISNODE for > MADV_HUGEPAGE mappings") and a partial revert of 89c83fb539f9 ("mm, thp: > consolidate THP gfp handling into alloc_hugepage_direct_gfpmask"). > > By not setting __GFP_THISNODE,

Re: [RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()

2018-12-06 Thread Jerome Glisse
On Thu, Dec 06, 2018 at 03:27:06PM -0500, Jerome Glisse wrote: > On Thu, Dec 06, 2018 at 11:31:21AM -0800, Dave Hansen wrote: > > On 12/6/18 11:20 AM, Jerome Glisse wrote: > > >>> For case 1 you can pre-parse stuff but this can be done by helper > > >>> library > > >> How would that work? Would e

Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-06 Thread Eric W. Biederman
Christian Brauner writes: >> Your intention is to add the thread case to support pthreads once the >> process case is sorted out. So this is something that needs to be made >> clear. Did I miss how you plan to handle threads? > > Yeah, maybe you missed it in the commit message [2] which is base

Re: [PATCH v2] staging: mt7621-mmc: Fix incompletely removed #if 0 block in sd.c

2018-12-06 Thread NeilBrown
On Thu, Dec 06 2018, Nishad Kamdar wrote: > Commit 2a54e3259e2a ("staging: mt7621-mmc: Remove #if 0 blocks in sd.c") > does not completely remove an #if 0 block in sd.c. This causes the function > msdc_select_clksrc() which was eariler not compiled, to be compiled. > That causes an error - MSDC_CL

Re: [PATCH v10 5/7] interconnect: qcom: Add sdm845 interconnect provider driver

2018-12-06 Thread David Dai
On 12/5/2018 8:00 AM, Georgi Djakov wrote: Hi Evan, On 12/1/18 02:39, Evan Green wrote: On Tue, Nov 27, 2018 at 10:04 AM Georgi Djakov wrote: From: David Dai Introduce Qualcomm SDM845 specific provider driver using the interconnect framework. Signed-off-by: David Dai Signed-off-by: Geo

Re: [PATCH] clk: qcom: smd: Add support for MSM8998 rpm clocks

2018-12-06 Thread Stephen Boyd
Quoting Jeffrey Hugo (2018-12-06 13:11:06) > Add rpm smd clocks, PMIC and bus clocks which are required on MSM8998 > for clients to vote on. > > Signed-off-by: Jeffrey Hugo > --- > .../devicetree/bindings/clock/qcom,rpmcc.txt | 1 + > drivers/clk/qcom/clk-smd-rpm.c | 6

Re: [GIT PULL] Uprobes: Fix kernel oops with delayed_uprobe_remove()

2018-12-06 Thread Andrew Morton
On Thu, 6 Dec 2018 12:47:19 -0500 Steven Rostedt wrote: > > Uprobes: Fix kernel oops with delayed_uprobe_remove() > > There could be a race between task exit and probe unregister: > > exit_mm() > mmput() > __mmput() uprobe_unregister() >

[GIT PULL] Please pull NFS client changes

2018-12-06 Thread Trond Myklebust
Hi Linus, Apologies for the relatively high volume this late in -rc. This is mainly fallout from the updates to the SUNRPC code that is being triggered from less common combinations of NFS mount options. Cheers Trond The following changes since commit 4b78317679c4f3782a3cff0ddb269c1fcfde7621:

Re: [PATCH] Linux: Implement membarrier function

2018-12-06 Thread Paul E. McKenney
Hello, David, I took a crack at extending LKMM to accommodate what I think would support what you have in your paper. Please see the very end of this email for a patch against the "dev" branch of my -rcu tree. This gives the expected result for the following three litmus tests, but is probably d

Re: [PATCH v2] power: supply: sc27xx: Save last battery capacity

2018-12-06 Thread Sebastian Reichel
Hi, On Thu, Dec 06, 2018 at 11:20:39AM +0800, Baolin Wang wrote: > From: Yuanjiang Yu > > Our charger manager can optimize the battery capacity periodically, so > we can save last battery capacity into registers. Then next system > power-on, we can read the last saved battery capacity as the ini

[PATCH 6/8] clk: versatile: sp810: Remove usage of CLK_IS_BASIC

2018-12-06 Thread Stephen Boyd
This flag doesn't look to be used by any code, just set in the clk init structure and then never tested again. Remove it from this driver as it doesn't provide any benefit. Cc: Linus Walleij Signed-off-by: Stephen Boyd --- drivers/clk/versatile/clk-sp810.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH 8/8] clk: Loongson1: Remove usage of CLK_IS_BASIC

2018-12-06 Thread Stephen Boyd
This flag doesn't look to be used by any code, just set in the clk init structure and then never tested again. Remove it from this driver as it doesn't provide any benefit. Also remove parenthesis nearby that are not needed and include clk.h to fix a sparse warning about static function definition.

[PATCH 7/8] clk: samsung: s3c2410: Remove usage of CLK_IS_BASIC

2018-12-06 Thread Stephen Boyd
This flag doesn't look to be used by any code, just set in the clk init structure and then never tested again. Remove it from this drivers as it doesn't provide any benefit. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Cc: Sylwester Nawrocki Signed-off-by: Stephen Boyd --- drivers/clk/samsung/clk-s

[PATCH 5/8] clk: hisilicon: Remove usage of CLK_IS_BASIC

2018-12-06 Thread Stephen Boyd
This flag doesn't look to be used by any code, just set in various clk init structures and then never tested again. Remove it from these drivers as it doesn't provide any benefit. Cc: Jiancheng Xue Cc: Leo Yan Cc: Jianguo Sun Cc: Wei Yongjun Signed-off-by: Stephen Boyd --- drivers/clk/hisili

[PATCH 3/8] clk: axm5516: Remove usage of CLK_IS_BASIC

2018-12-06 Thread Stephen Boyd
This flag doesn't look to be used by any code, just set in various clk init structures and then never tested again. Remove it from these drivers as it doesn't provide any benefit. Cc: Anders Berg Signed-off-by: Stephen Boyd --- drivers/clk/clk-axm5516.c | 2 -- 1 file changed, 2 deletions(-) d

Re: [PATCH v8 0/7] KVM: x86: Allow Qemu/KVM to use PVH entry point

2018-12-06 Thread Boris Ostrovsky
On 12/6/18 4:37 PM, Borislav Petkov wrote: > On Thu, Dec 06, 2018 at 10:21:12PM +0100, Paolo Bonzini wrote: >> Thanks! I should be able to post a Tested-by next Monday. Boris, are >> you going to pick it up for 4.21? > Boris me or Boris O.? > > :-) > O. ;-) There are some minor changes in non-x

[PATCH 2/8] clk: st: Remove usage of CLK_IS_BASIC

2018-12-06 Thread Stephen Boyd
This flag doesn't look to be used by any code, just set in various clk init structures and then never tested again. Remove it from these drivers as it doesn't provide any benefit. Signed-off-by: Stephen Boyd --- drivers/clk/st/clk-flexgen.c | 2 +- drivers/clk/st/clkgen-fsyn.c | 4 ++-- drivers/

[PATCH 1/8] clk: renesas: Remove usage of CLK_IS_BASIC

2018-12-06 Thread Stephen Boyd
This flag doesn't look to be used by any code, just set in various clk init structures and then never tested again. Remove it from these drivers as it doesn't provide any benefit. Cc: Geert Uytterhoeven Cc: Signed-off-by: Stephen Boyd --- drivers/clk/renesas/clk-div6.c | 2 +- drivers/

[PATCH 4/8] clk: h8300: Remove usage of CLK_IS_BASIC

2018-12-06 Thread Stephen Boyd
This flag doesn't look to be used by any code, just set in various clk init structures and then never tested again. Remove it from these drivers as it doesn't provide any benefit. Cc: Yoshinori Sato Cc: Signed-off-by: Stephen Boyd --- drivers/clk/h8300/clk-h8s2678.c | 2 +- 1 file changed, 1 i

[patch for-4.20] Revert "mm, thp: consolidate THP gfp handling into alloc_hugepage_direct_gfpmask"

2018-12-06 Thread David Rientjes
This reverts commit 89c83fb539f95491be80cdd5158e6f0ce329e317. There are a couple of issues with 89c83fb539f9 independent of its partial revert in 2f0799a0ffc0 ("mm, thp: restore node-local hugepage allocations"): Firstly, the interaction between alloc_hugepage_direct_gfpmask() and alloc_pages_

Re: [PATCH v4] signal: add taskfd_send_signal() syscall

2018-12-06 Thread Daniel Colascione
On Thu, Dec 6, 2018 at 1:47 PM Eric W. Biederman wrote: > > Christian Brauner writes: > > >> Your intention is to add the thread case to support pthreads once the > >> process case is sorted out. So this is something that needs to be made > >> clear. Did I miss how you plan to handle threads? >

Re: [PATCH 6/8] clk: versatile: sp810: Remove usage of CLK_IS_BASIC

2018-12-06 Thread Linus Walleij
On Thu, Dec 6, 2018 at 10:59 PM Stephen Boyd wrote: > This flag doesn't look to be used by any code, just set in the clk init > structure and then never tested again. Remove it from this driver as it > doesn't provide any benefit. > > Cc: Linus Walleij > Signed-off-by: Stephen Boyd Acked-by: L

Re: [RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()

2018-12-06 Thread Dave Hansen
On 12/6/18 12:11 PM, Logan Gunthorpe wrote: >> My concern with having folks do per-program parsing, *and* having a huge >> amount of data to parse makes it unusable. The largest systems will >> literally have hundreds of thousands of objects in /sysfs, even in a >> single directory. That makes re

Re: [PATCH v8 7/7] KVM: x86: Allow Qemu/KVM to use PVH entry point

2018-12-06 Thread Paolo Bonzini
On 06/12/18 07:06, Maran Wilson wrote: > +config KVM_GUEST_PVH > + bool "Support for running as a KVM PVH guest" > + depends on KVM_GUEST > + select PVH > + ---help--- > + This option enables starting KVM guests via the PVH entry point as > + specified in the x86/HVM dir

Re: [PATCH 0/4] UniPhier I2C fixes

2018-12-06 Thread Wolfram Sang
On Thu, Dec 06, 2018 at 12:55:24PM +0900, Masahiro Yamada wrote: > > Masahiro Yamada (4): > i2c: uniphier-f: fix timeout error after reading 8 bytes > i2c: uniphier-f: fill TX-FIFO only in IRQ handler for repeated START > i2c: uniphier: fix violation of tLOW requirement for Fast-mode > i2c

Re: [PATCH 1/1] userfaultfd: check VM_MAYWRITE was set after verifying the uffd is registered

2018-12-06 Thread Hugh Dickins
On Thu, 6 Dec 2018, Andrea Arcangeli wrote: > Calling UFFDIO_UNREGISTER on virtual ranges not yet registered in uffd > could trigger an harmless false positive WARN_ON. Check the vma is > already registered before checking VM_MAYWRITE to shut off the > false positive warning. > > Cc: > Fixes: 29

Re: [PATCH] clk: qcom: smd: Add support for MSM8998 rpm clocks

2018-12-06 Thread Jeffrey Hugo
On 12/6/2018 2:55 PM, Stephen Boyd wrote: Quoting Jeffrey Hugo (2018-12-06 13:11:06) Add rpm smd clocks, PMIC and bus clocks which are required on MSM8998 for clients to vote on. Signed-off-by: Jeffrey Hugo --- .../devicetree/bindings/clock/qcom,rpmcc.txt | 1 + drivers/clk/qcom/clk-

Re: [PATCH] Revert "clk: fix __clk_init_parent() for single parent clocks"

2018-12-06 Thread Stephen Boyd
Sorry this email is long. TL;DR is that I don't think we need to revert the patch as you suggest. Instead, we should fix the driver to indicate NULL as the parent name of the index it tells the framework about. Quoting Jerome Brunet (2018-12-05 09:20:09) > On Tue, 2018-12-04 at 23:54 -0800, Steph

Re: [PATCH 4.9 000/101] 4.9.144-stable review

2018-12-06 Thread shuah
On 12/6/18 7:37 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.144 release. There are 101 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH 4.14 00/55] 4.14.87-stable review

2018-12-06 Thread shuah
On 12/6/18 7:38 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.14.87 release. There are 55 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: linux-next: bad merge in the y2038 tree

2018-12-06 Thread Arnd Bergmann
On Thu, Dec 6, 2018 at 9:12 PM Stephen Rothwell wrote: > > Hi Arnd, > > The y2038 tree contains a merge of next-20181206. I cannot use a tree > that includes a version of linux-next. I assume that this was just a > test merge, so please remove it. Fixed now, I had pushed the

Re: [PATCH] leds: tlc591xx: fix device_node_continue.cocci warnings (fwd)

2018-12-06 Thread Pavel Machek
On Thu 2018-12-06 21:28:16, Julia Lawall wrote: > Hello, > > The code seems to be wrong in several ways. If the continue is wanted, > the of_node_put is not needed; it will happen on the next iteration. If > the continue is not wanted, the of_node_put is needed, and the continue > should be drop

Re: [PATCH 4.19 00/41] 4.19.8-stable review

2018-12-06 Thread shuah
On 12/6/18 7:38 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.8 release. There are 41 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made b

Re: dmapool regression in next

2018-12-06 Thread Stephen Rothwell
Hi all, On Thu, 6 Dec 2018 08:33:15 -0800 Tony Lindgren wrote: > > * Tony Battersby [181206 16:13]: > > On 12/6/18 10:51 AM, Robin Murphy wrote: > > >> Here is the prototype: > > >> > > >> void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t dma); > > >> > > >> With the old code,

[PATCH v2] clk: qcom: smd: Add support for MSM8998 rpm clocks

2018-12-06 Thread Jeffrey Hugo
Add rpm smd clocks, PMIC and bus clocks which are required on MSM8998 for clients to vote on. Signed-off-by: Jeffrey Hugo --- v2 -fix compatible ordering nits per Stephen .../devicetree/bindings/clock/qcom,rpmcc.txt | 1 + drivers/clk/qcom/clk-smd-rpm.c | 62 +

Re: [GIT PULL] Uprobes: Fix kernel oops with delayed_uprobe_remove()

2018-12-06 Thread Steven Rostedt
On Thu, 6 Dec 2018 13:54:57 -0800 Andrew Morton wrote: > > Acked-by: Oleg Nesterov > > Reviewed-by: Srikar Dronamraju > > Reported-by: syzbot+cb1fb754b771caca0...@syzkaller.appspotmail.com > > Fixes: 1cc33161a83d ("uprobes: Support SDT markers having reference > > co

Re: [PATCH] PCI/P2PDMA: Match interface changes to devm_memremap_pages()

2018-12-06 Thread Logan Gunthorpe
On 2018-12-06 1:46 p.m., Bjorn Helgaas wrote: > On Fri, Nov 30, 2018 at 03:59:11PM -0700, Logan Gunthorpe wrote: >> "mm-hmm-mark-hmm_devmem_add-add_resource-export_symbol_gpl.patch" in the >> mm tree breaks p2pdma. The patch was written and reviewed before p2pdma >> was merged so the necessary c

linux-next: manual merge of the arm64 tree with Linus' tree

2018-12-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm64 tree got a conflict in: arch/arm64/kernel/cpu_errata.c between commit: ce8c80c536da ("arm64: Add workaround for Cortex-A76 erratum 1286807") from Linus' tree and commit: c9460dcb06ee ("arm64: capabilities: Merge entries for ARM64_WORKAROUND

[RFC PATCH v2 1/4] x86/vdso: Add support for exception fixup in vDSO functions

2018-12-06 Thread Sean Christopherson
The basic concept and implementation is very similar to the kernel's exception fixup mechanism. The key differences are that the kernel handler is hardcoded and the fixup entry addresses are relative to the overall table as opposed to individual entries. Hardcoding the kernel handler avoids the n

[RFC PATCH v2 3/4] x86/traps: Attempt to fixup exceptions in vDSO before signaling

2018-12-06 Thread Sean Christopherson
Call fixup_vdso_exception() in all trap flows that generate signals to userspace immediately prior to generating any such signal. If the exception is fixed, return cleanly and do not generate a signal. The goal of vDSO fixup is not to fixup all faults, nor is it to avoid all signals, but rather t

[RFC PATCH v2 4/4] x86/vdso: Add __vdso_sgx_enter_enclave() to wrap SGX enclave transitions

2018-12-06 Thread Sean Christopherson
Intel Software Guard Extensions (SGX) SGX introduces a new CPL3-only enclave mode that runs as a sort of black box shared object that is hosted by an untrusted normal CPL3 process. Enclave transitions have semantics that are a lovely blend of SYCALL, SYSRET and VM-Exit. In a non-faulting scenario

[RFC PATCH v2 0/4] x86: Add vDSO exception fixup for SGX

2018-12-06 Thread Sean Christopherson
This version is almost entirely about the vDSO function itself, i.e. patch 4/4. Feel free to ignore patches 2/4 and 3/4, I need to do (a lot) more legwork to address feedback and improve their changelogs. I'm expecting that to take a fair amount of time and wanted to get the alternative exit hand

<    4   5   6   7   8   9   10   11   12   13   >