Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA

2019-02-14 Thread Dave Chinner
On Thu, Feb 14, 2019 at 04:39:22PM -0500, Jerome Glisse wrote: > On Thu, Feb 14, 2019 at 12:50:49PM -0800, Matthew Wilcox wrote: > > On Thu, Feb 14, 2019 at 03:26:22PM -0500, Jerome Glisse wrote: > > > On Mon, Feb 11, 2019 at 11:06:54AM -0700, Jason Gunthorpe wrote: > > > > But it also doesnt'

Re: [PATCH v2 01/14] dt-bindings: remoteproc: Add TI PRUSS bindings

2019-02-14 Thread Suman Anna
Hi Roger, On 2/14/19 5:08 AM, Roger Quadros wrote: > +Robert, Dan, Matthijs > > Hi Suman, > > On 14/02/19 04:52, Suman Anna wrote: >> Hi Roger, >> >> On 2/4/19 8:22 AM, Roger Quadros wrote: >>> From: Suman Anna >>> >>> This patch adds the bindings for the Programmable Real-Time Unit >>> and

Re: [PATCH net] net: stmmac: Fix NAPI poll in TX path when in multi-queue

2019-02-14 Thread Florian Fainelli
On 2/14/19 9:01 AM, David Miller wrote: > From: Jose Abreu > Date: Wed, 13 Feb 2019 18:00:43 +0100 > >> Commit 8fce33317023 introduced the concept of NAPI per-channel and >> independent cleaning of TX path. >> >> This is currently breaking performance in some cases. The scenario >> happens when

Re: [RFC v7 2/5] dt-bindings: pstore-block: new support for blkoops

2019-02-14 Thread liaoweixiong
On 2019-02-14 04:30, Rob Herring wrote: > On Wed, Feb 13, 2019 at 7:51 AM liaoweixiong > wrote: >> >> >> On 2019-01-31 00:07, Rob Herring wrote:> On Wed, Jan 23, 2019 at >> 08:05:13PM +0800, liaoweixiong wrote: Create DT binding document for blkoops. Signed-off-by: liaoweixiong

Re: [PATCH v2 01/14] dt-bindings: remoteproc: Add TI PRUSS bindings

2019-02-14 Thread Suman Anna
On 2/14/19 9:48 AM, Roger Quadros wrote: > fixed DTML id. > > On 14/02/19 17:44, Roger Quadros wrote: >> On 14/02/19 14:52, Marc Zyngier wrote: >>> On Thu, 14 Feb 2019 10:55:10 +, >>> Roger Quadros wrote: On 14/02/19 10:37, Linus Walleij wrote: > On Thu, Feb 14, 2019 at

Re: [PATCH v2] kcm: remove any offset before parsing messages

2019-02-14 Thread Dominique Martinet
Dominique Martinet wrote on Wed, Oct 31, 2018: > Anyway, that probably explains I have no problem with bigger VM > (uselessly more memory available) or without KASAN (I guess there's > overhead?), but I'm sending at most 300k of data and the VM has a 1.5GB > of ram, so if there's an allocation

Re: [PATCH v2 00/20] i.MX6, DesignWare PCI improvements

2019-02-14 Thread Andrey Smirnov
On Fri, Feb 1, 2019 at 8:27 AM Lorenzo Pieralisi wrote: > > On Fri, Jan 04, 2019 at 09:49:05AM -0800, Andrey Smirnov wrote: > > Everyone: > > > > This is the series containing various small improvements that I made > > while reading the code and researching commit history of pci-imx6.c > > and

Re: [RFC v3 18/19] of: unittest: split out a couple of test cases from unittest

2019-02-14 Thread Brendan Higgins
On Thu, Feb 14, 2019 at 3:57 PM Frank Rowand wrote: > > On 12/5/18 3:54 PM, Brendan Higgins wrote: > > On Tue, Dec 4, 2018 at 2:58 AM Frank Rowand wrote: > >> > >> Hi Brendan, > >> > >> On 11/28/18 11:36 AM, Brendan Higgins wrote: > >>> Split out a couple of test cases that these features in

Re: [PATCH] proc, oom: do not report alien mms when setting oom_score_adj

2019-02-14 Thread Tetsuo Handa
Sigh, you are again misunderstanding... I'm not opposing to forbid CLONE_VM without CLONE_SIGHAND threading model. I'm asserting that we had better revert the iteration for now, even if we will strive towards forbidding CLONE_VM without CLONE_SIGHAND threading model. You say "And that is a

Re: [RFC 5/5] arm64: dts: imx8mq: Add the opp table and the cpu-supply nodes

2019-02-14 Thread Angus Ainslie
On 2019-02-13 11:05, Abel Vesa wrote: Add the opp table containing only non over drive opps. Also add the cpu-supply nodes for the A53 cores in the EVK board. Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 17 +

Re: [PATCH 0/2] mm: put_user_page() call site conversion first

2019-02-14 Thread John Hubbard
On 2/14/19 4:23 PM, Ira Weiny wrote: > On Thu, Feb 07, 2019 at 11:56:47PM -0800, john.hubb...@gmail.com wrote: >> From: John Hubbard [...] >> mm: introduce put_user_page*(), placeholder versions >> infiniband/mm: convert put_page() to put_user_page*() > > A bit late but, FWIW: > >

[PATCH 02/43] perf cs-etm: Add proper header file for symbols

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier After 'commit e22c1c751140 ("perf thread: Don't include symbol.h, symbol_conf.h is enough")' Compilation of the perf tools is broken when using the functionality provided by the openCSD library: [...] ... timerfd: [ on ] ...

[PATCH 11/43] perf vendor events power9: General metrics

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Paul Clarke Descriptions of metrics for POWER9 processors can be found in the "POWER9 Performance Monitor Unit User’s Guide", which is currently available on the "IBM Portal for OpenPOWER" (https://www-355.ibm.com/systems/power/openpower/welcome.xhtml) at

[PATCH 41/43] perf header: Get rid of write_it label

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Simplifying the code a bit. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190213123246.4015-8-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/header.c | 6 ++ 1 file

[PATCH 12/43] perf utils: Silence "Couldn't synthesize bpf events" warning for EPERM

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Song Liu Synthesizing BPF events is only supported for root. Silent warning msg when non-root user runs perf-record. Reported-by: David Carrillo-Cisneros Signed-off-by: Song Liu Tested-by: David Carrillo-Cisneros Acked-by: Jiri Olsa Cc: kernel-t...@fb.com Link:

[PATCH 40/43] perf list: Display metric expressions for --details option

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Display metric expression itself when --details is specified. Current list with no details: # perf list metrics ... TopDownL1: IPC [Instructions Per Cycle (per logical thread)] SLOTS [Total issue-pipeline slots] ... Detailed output with metric

[PATCH 42/43] perf header: Remove unused 'cpu_nr' field from 'struct cpu_topo'

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Not used at all. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190213123246.4015-9-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/header.c | 2 -- 1 file changed, 2

[PATCH 43/43] tools build feature sched_getcpu: Undef _GNU_SOURCE at the end

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since this feature test is included in test-all.c, the feature detection fast path compile/link phase, it can't leave any defines behind, as it can affect the tests included after it, so remove it. Reported-by: Jiri Olsa Cc: Adrian Hunter Cc: Alexei Starovoitov

[PATCH 14/43] perf beauty ioctl cmd: The 'fd' arg is signed

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It is possible to pass a negative number as the fd and that has to be handled, so stop using 'unsigned int fd' in the ioctl syscall 'cmd' beautifier. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 37/43] perf tools: Rename LIB_FILE to LIBPERF_A

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Simple rename, no functional change. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190213123246.4015-3-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile.perf | 6 +++--- 1

[PATCH 28/43] perf cs-etm: Introducing function cs_etm__init_trace_params()

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier The trace parameter initialisation code is repeated in two different places, something that bloats the file and can lead to errors. This is fixed by introducing a helper function and calling the right protocol initialisation code when required. Signed-off-by: Mathieu

[PATCH 39/43] perf tools: Fix legacy events symbol separator parsing

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Fixing legacy symbol events parsing. We can't support single slash separator, like 'cycles/u', because it conflicts with non empty terms, like 'cycles/period/u'. Keeping only '//' and ':' separator for these events: cycles//u cycles:k And removing '/' separator support,

[PATCH 38/43] perf tools: Rename build libperf to perf

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Rename build libperf to perf, because it's used to build perf. The libperf build object name will be used for libperf library. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 32/43] perf cs-etm: Make cs_etm__run_decoder() queue independent

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier This patch makes decoding of auxtrace buffer centered around a struct cs_etm_queue. This eliminates surperflous variables and is a precursor for work that simplifies the main decoder loop. Signed-off-by: Mathieu Poirier Cc: Jiri Olsa Cc: Leo Yan Cc: Peter Zijlstra Cc:

[PATCH 34/43] perf cs-etm: Modularize main packet processing loop

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Making the main packet processing loop modular so that it can be called from different decoding context (timeless vs. non-timless), avoiding to repeat code. Signed-off-by: Mathieu Poirier Cc: Jiri Olsa Cc: Leo Yan Cc: Peter Zijlstra Cc: Suzuki K Poulouse Cc:

[PATCH 36/43] perf tools: Compile perf with libperf-in.o instead of libperf.a

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no need for perf build to use libperf.a, we can use directly libperf-in.o. The libperf.a stays as a target if needed: $ make libperf.a ... CC util/pmu.o CC util/pmu-flex.o LD util/libperf-in.o LD libperf-in.o AR

[PATCH 35/43] perf cs-etm: Modularize auxtrace_buffer fetch function

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Making the auxtrace_buffer fetch function modular so that it can be called from different decoding context (timeless vs. non-timeless), avoiding to repeat code. No change in functionality is introduced by this patch. Signed-off-by: Mathieu Poirier Cc: Jiri Olsa Cc: Leo

[PATCH 33/43] perf cs-etm: Modularize main decoder function

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Making the main decoder block modular so that it can be called from different decoding context (timeless vs. non-timeless), avoiding to repeat code. No change in functionality is introduced by this patch. Signed-off-by: Mathieu Poirier Cc: Jiri Olsa Cc: Leo Yan Cc:

[PATCH 31/43] perf cs-etm: Rethink kernel address initialisation

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Moving initialisation of the kernel start address to function cs_etm__setup_queues(), considered to be the common denominator for queue initialisation. That way we don't have to repeat the same code at different places. No change of functionatlity is introduced by this

[PATCH 29/43] perf cs-etm: Fix erroneous comment

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier The comment just before initialising the decoder is plane wrong since it is part of the decoding queue setup function and the operation code specifically mention that trace data is to be decoded rather than printed out. This patch simply fix the comment to prevent people

[PATCH 19/43] perf coresight: Do not test for libopencsd by default

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since it is not yet that generally available, avoid testing for the presence of libcoresight in the fast path test-all.bin feature test. # dnf search opencsd No matches found. # dnf search OpenCSD No matches found. # cat /etc/fedora-release Fedora

[PATCH 18/43] perf trace: Filter out gnome-terminal* parent

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Just like it does with 'sshd', to reduce the feedback loop when doing system wide tracing on on a gnome GUI. Need to figure out how to auto-filter the calls to other UI components tho. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim

[PATCH 20/43] perf unwind: Do not put libunwind-{x86,aarch64} in FEATURE_TESTS_BASIC

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo As it is not normally available on x86_64 not being tested on test-all.c but being in FEATURE_TESTS_BASIC ends up implying that those features are present, which leads to trying to link with those libraries and a build failure now that test-all.c is finally again

[PATCH 27/43] perf cs-etm: Fix memory leak in error path

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Memory allocated for variable 't_params' isn't released properly in the error path of function cs_etm_queue *cs_etm__alloc_queue() and cs_etm__dump_event(), something this patch addresses. Signed-off-by: Mathieu Poirier Cc: Jiri Olsa Cc: Leo Yan Cc: Peter Zijlstra Cc:

[PATCH 24/43] perf cs-etm: Remove unused structure field "time" and "timestamp"

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Field "time" and "timestamp" in structure cs_etm_queue are no longer used and need to be removed. Signed-off-by: Mathieu Poirier Cc: Jiri Olsa Cc: Leo Yan Cc: Peter Zijlstra Cc: Suzuki K Poulouse Cc: linux-arm-ker...@lists.infradead.org Link:

[PATCH 26/43] perf cs-etm: Introducing function cs_etm_decoder__init_dparams()

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Introducing function cs_etm_decoder__init_dparams() to avoid repeating code at two different places. Signed-off-by: Mathieu Poirier Cc: Jiri Olsa Cc: Leo Yan Cc: Peter Zijlstra Cc: Suzuki K Poulouse Cc: linux-arm-ker...@lists.infradead.org Link:

[PATCH 23/43] perf cs-etm: Remove unused structure field "state"

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Field "state" in structure cs_etm_queue is no longer used and needs to be removed. Signed-off-by: Mathieu Poirier Cc: Jiri Olsa Cc: Leo Yan Cc: Peter Zijlstra Cc: Suzuki K Poulouse Cc: linux-arm-ker...@lists.infradead.org Link:

[PATCH 22/43] perf build: Add missing FEATURE_CHECK_LDFLAGS-libcrypto

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When the libcrypto feature test was added we forgot to add its FEATURE_CHECK_LDFLAGS pointing to the library needed to link with the test-all.bin feature test fast path binary, so even when it was introduced we got this: $ cat

[PATCH 21/43] tools build: Add test-reallocarray.c to test-all.c to fix the build

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When a test is in the FEATURE_TESTS_BASIC list in tools/build/Makefile.feature must be added to tools/build/feature/test-all.c, because the successfull compilation and linking of that test-all.bin file means that all the features listed in FEATURE_TESTS_BASIC are

[PATCH 25/43] perf cs-etm: Fix wrong return values in error path

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Function cs_etm__mem_access() is supposed to return a u32 but the error path returns negative values at a couple of places, something that really throws off the clients using it. Fix the situation by return '0'. Signed-off-by: Mathieu Poirier Cc: Jiri Olsa Cc: Leo Yan

[PATCH 30/43] perf cs-etm: Cleaning up function cs_etm__alloc_queue()

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Function cs_etm__alloc_queue() should only be concerned with the allocation of memory for the etmq and accompanying decoder. Everything else should be done in the calling function. Signed-off-by: Mathieu Poirier Cc: Jiri Olsa Cc: Leo Yan Cc: Peter Zijlstra Cc: Suzuki

[PATCH 05/43] perf vendor events power8: Dl1_reload, instruction_misses, l2_stats, lsu_rejects, memory & pteg_reloads metrics

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Paul Clarke POWER8 metrics are not well publicized. Some are here: https://www.ibm.com/support/knowledgecenter/en/SSFK5S_2.2.0/com.ibm.cluster.pedev.v2r2.pedev100.doc/bl7ug_derivedmetricspower8.htm This patch is for metric groups: - dl1_reloads_percent_per_inst -

[PATCH 17/43] tools build: Add -lrt to FEATURE_CHECK_LDFLAGS-libaio

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since we need it to resolve the AIO symbols, otherwise we fail with: $ cat /tmp/build/perf/feature/test-all.make.output /usr/bin/ld: /tmp/ccEqrj36.o: undefined reference to symbol 'aio_return64@@GLIBC_2.2.5' /usr/bin/ld: //usr/lib64/librt.so.1: error adding

[PATCH 09/43] perf vendor events power9: Dl1_reloads, instruction_misses, l[23]_stats & pteg_reloads metrics

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Paul Clarke Descriptions of metrics for POWER9 processors can be found in the "POWER9 Performance Monitor Unit User’s Guide", which is currently available on the "IBM Portal for OpenPOWER" (https://www-355.ibm.com/systems/power/openpower/welcome.xhtml) at

[PATCH 13/43] tools feature: Undef _GNU_SOURCE at the end of feature tests

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since we get all the tests in a single .c file for a first test, tools/build/feature/test-all.c, if individual tests set that define and fail to undef it at its end, then it the test-all.c build will fail due to defining _GNU_SOURCE multiple times, getting us to

[PATCH 16/43] perf beauty waitid options: Fix up prefix showing logic

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When introducing the possibility for selecting if the common prefix to options such as the waitid ones, i.e. all 'waitid' options start with 'W', so, to make it make it more compact if configured to suppress it, 'perf trace' will do so, other examples include

[PATCH 15/43] perf trace: Check if the 'fd' is negative when mapping it to pathname

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We were crashing when processing a negative fd: Program received signal SIGSEGV, Segmentation fault. 0x00609bbf in syscall_arg__scnprintf_ioctl_cmd (bf=0x1172eca "", size=2038, arg=0x7fff8360) at trace/beauty/ioctl.c:182 182 if

[PATCH 07/43] perf vendor events power8: Translaton & general metrics

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Paul Clarke POWER8 metrics are not well publicized. Some are here: https://www.ibm.com/support/knowledgecenter/en/SSFK5S_2.2.0/com.ibm.cluster.pedev.v2r2.pedev100.doc/bl7ug_derivedmetricspower8.htm This patch is for metric groups: - translation - general and other metrics not in a

[PATCH 08/43] perf vendor events power9: Cpi_breakdown & estimated_dcache_miss_cpi metrics

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Paul Clarke Descriptions of metrics for POWER9 processors can be found in the "POWER9 Performance Monitor Unit User’s Guide", which is currently available on the "IBM Portal for OpenPOWER" (https://www-355.ibm.com/systems/power/openpower/welcome.xhtml) at

[PATCH 10/43] perf vendor events power9: Branch_prediction, instruction_stats, latency, lsu_rejects, memory, prefetch & translation metrics

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Paul Clarke Descriptions of metrics for POWER9 processors can be found in the "POWER9 Performance Monitor Unit User’s Guide", which is currently available on the "IBM Portal for OpenPOWER" (https://www-355.ibm.com/systems/power/openpower/welcome.xhtml) at

[PATCH 06/43] perf vendor events power8: Branch_prediction, latency, bus_stats, instruction_mix & instruction_stats metrics

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Paul Clarke POWER8 metrics are not well publicized. Some are here: https://www.ibm.com/support/knowledgecenter/en/SSFK5S_2.2.0/com.ibm.cluster.pedev.v2r2.pedev100.doc/bl7ug_derivedmetricspower8.htm This patch is for metric groups: - branch_prediction - latency - bus_stats -

[PATCH 03/43] perf report: Add s390 diagnosic sampling descriptor size

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Thomas Richter On IBM z13 machine types 2964 and 2965 the descriptor sizes for sampling and diagnostic sampling entries might be missing in the trailer entry and are set to zero. This leads to a perf report failure when processing diagnostic sampling entries. This patch adds missing

[PATCH 04/43] perf vendor events power8: Cpi_breakdown & estimated_dcache_miss_cpi metrics

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Paul Clarke POWER8 metrics are not well publicized. Some are here: https://www.ibm.com/support/knowledgecenter/en/SSFK5S_2.2.0/com.ibm.cluster.pedev.v2r2.pedev100.doc/bl7ug_derivedmetricspower8.htm This patch is for metric groups: - cpi_breakdown - estimated_dcache_miss_cpi

[PATCH 01/43] perf record: Implement --affinity=node|cpu option

2019-02-14 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Implement --affinity=node|cpu option for the record mode defaulting to system affinity mask bouncing. Signed-off-by: Alexey Budankov Cc: Alexander Shishkin Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[GIT PULL 00/43] perf/core improvements and fixes

2019-02-14 Thread Arnaldo Carvalho de Melo
repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-5.1-20190214 for you to fetch changes up to 44ec8396e2dadf0f0806767642cfac9e04d0d5b1: tools build feature sched_getcpu: Undef _GNU_SOURCE at the end (2019-02-14 15:39:21 -0300

Re: [PATCH] pci/quirks: Add quirk to reset nvgpu at boot for the Lenovo ThinkPad P50

2019-02-14 Thread Bjorn Helgaas
Hi Lyude, On Tue, Feb 12, 2019 at 05:02:30PM -0500, Lyude Paul wrote: > On a very specific subset of ThinkPad P50 SKUs, particularly ones that > come with a Quadro M1000M chip instead of the M2000M variant, the BIOS > seems to have a very nasty habit of not always resetting the secondary > Nvidia

Re: [PATCH] iommu/arm-smmu: Allow disabling bypass via kernel config

2019-02-14 Thread Doug Anderson
Hi, On Thu, Feb 14, 2019 at 1:32 PM Robin Murphy wrote: > > Hi Doug, > > On 2019-02-14 8:44 pm, Douglas Anderson wrote: > > Right now the only way to disable the iommu bypass for the ARM SMMU is > > with the kernel command line parameter 'arm-smmu.disable_bypass'. > > > > In general kernel

Re: [PATCH 4/4] PM / devfreq: Handle monitor start/stop in the devfreq core

2019-02-14 Thread Chanwoo Choi
Hi Matthias, On 19. 2. 15. 오전 9:19, Matthias Kaehlcke wrote: > Hi Chanwoo, > > On Fri, Feb 15, 2019 at 08:42:30AM +0900, Chanwoo Choi wrote: >> Hi Matthias, >> >> On 19. 2. 15. 오전 4:28, Matthias Kaehlcke wrote: >>> Hi Chanwoo, >>> >>> On Thu, Feb 14, 2019 at 11:17:36PM +0900, Chanwoo Choi wrote:

[PATCH] mwifiex: don't advertise IBSS features without FW support

2019-02-14 Thread Brian Norris
As it is, doing something like # iw phy phy0 interface add foobar type ibss on a firmware that doesn't have ad-hoc support just yields failures of HostCmd_CMD_SET_BSS_MODE, which happened to return a '-1' error code (-EPERM? not really right...) and sometimes may even crash the firmware along

Re: Fix 80d20d35af1e ("nohz: Fix local_timer_softirq_pending()") may have revealed another problem

2019-02-14 Thread Frederic Weisbecker
On Thu, Feb 14, 2019 at 11:33:44PM +0100, Heiner Kallweit wrote: > On 14.02.2019 22:47, Thomas Gleixner wrote: > > On Thu, 14 Feb 2019, Heiner Kallweit wrote: > >> On 24.01.2019 20:37, Heiner Kallweit wrote: > > >>> Hi Frederic, > >>> is the update debug patch still to come? > > > > Heiner,

Re: [PATCH] drbd_receiver: mark expected switch fall-throughs

2019-02-14 Thread Gustavo A. R. Silva
On 2/12/19 3:36 PM, Jens Axboe wrote: > On 2/12/19 2:28 PM, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch >> cases where we are expecting to fall through. >> >> This patch fixes the following warnings: >> >> drivers/block/drbd/drbd_receiver.c: In

Re: tmpfs inode leakage when opening file with O_TMP_FILE

2019-02-14 Thread Darrick J. Wong
[cc the shmem maintainer and the mm list] On Thu, Feb 14, 2019 at 03:44:02PM -0800, Andrew Morton wrote: > (cc linux-fsdevel) > > On Mon, 11 Feb 2019 15:18:11 +0100 Matej Kupljen > wrote: > > > Hi, > > > > it seems that when opening file on file system that is mounted on > > tmpfs with the

Re: [PATCH 0/2] mm: put_user_page() call site conversion first

2019-02-14 Thread Ira Weiny
On Thu, Feb 07, 2019 at 11:56:47PM -0800, john.hubb...@gmail.com wrote: > From: John Hubbard > > Hi, > > It seems about time to post these initial patches: I think we have pretty > good consensus on the concept and details of the put_user_pages() approach. > Therefore, here are the first two

Re: [PATCH 4/4] PM / devfreq: Handle monitor start/stop in the devfreq core

2019-02-14 Thread Matthias Kaehlcke
Hi Chanwoo, On Fri, Feb 15, 2019 at 08:42:30AM +0900, Chanwoo Choi wrote: > Hi Matthias, > > On 19. 2. 15. 오전 4:28, Matthias Kaehlcke wrote: > > Hi Chanwoo, > > > > On Thu, Feb 14, 2019 at 11:17:36PM +0900, Chanwoo Choi wrote: > >> Hi Matthias, > >> > >> As I commented on the first patch, it is

[GIT PULL] arm64: dts: uniphier: UniPhier DT updates for v5.1

2019-02-14 Thread Masahiro Yamada
Hi Arnd, Olof, Please pull UniPhier DT (64bit) updates for the v5.1 MW. Thanks! The following changes since commit 1c7fc5cbc33980acd13d668f1c8f0313d6ae9fd8: Linux 5.0-rc2 (2019-01-14 10:41:12 +1200) are available in the git repository at:

Re: [PATCH v1 1/1] of: unittest: unflatten device tree on UML when testing

2019-02-14 Thread Frank Rowand
On 2/12/19 10:53 AM, Brendan Higgins wrote: > UML supports enabling OF, and is useful for running the device tree > tests, so add support for unflattening device tree blobs so we can > actually use it. > > Signed-off-by: Brendan Higgins > --- > drivers/of/unittest.c | 3 +++ > 1 file changed, 3

[PATCH v2 perf,bpf 11/11] perf, bpf: save information about short living bpf programs

2019-02-14 Thread Song Liu
To annotate bpf programs in perf, it is necessary to save information in bpf_prog_info and btf. For short living bpf program, it is necessary to save these information before it is unloaded. This patch saves these information in a separate thread. This thread creates its own evlist, that only

[PATCH v2 perf,bpf 08/11] perf, bpf: save btf information as headers to perf.data

2019-02-14 Thread Song Liu
This patch enables perf-record to save btf information as headers to perf.data A new header type HEADER_BTF is introduced for this data. Signed-off-by: Song Liu --- tools/perf/util/header.c | 99 +++- tools/perf/util/header.h | 1 + 2 files changed, 99

[PATCH v2 perf,bpf 10/11] perf, bpf: enable annotation of bpf program

2019-02-14 Thread Song Liu
This patch enables the annotation of bpf program. A new dso type DSO_BINARY_TYPE__BPF_PROG_INFO is introduced to for BPF programs. In symbol__disassemble(), DSO_BINARY_TYPE__BPF_PROG_INFO dso calls into a new function symbol__disassemble_bpf(), where annotation line information is filled based

[PATCH v2 perf,bpf 05/11] perf, bpf: save bpf_prog_info in a rbtree in perf_env

2019-02-14 Thread Song Liu
bpf_prog_info contains information necessary to annotate bpf programs. This patch saves bpf_prog_info for bpf programs loaded in the system. Signed-off-by: Song Liu --- tools/perf/builtin-record.c | 2 +- tools/perf/builtin-top.c| 2 +- tools/perf/util/bpf-event.c | 39 +

[PATCH v2 perf,bpf 03/11] bpf: bpftool: use bpf_program__get_prog_info_linear() in prog.c:do_dump()

2019-02-14 Thread Song Liu
This patches uses bpf_program__get_prog_info_linear() to simplify the logic in prog.c do_dump(). Cc: Daniel Borkmann Cc: Alexei Starovoitov Signed-off-by: Song Liu --- tools/bpf/bpftool/prog.c | 266 +-- 1 file changed, 59 insertions(+), 207 deletions(-)

[PATCH v2 perf,bpf 04/11] perf, bpf: synthesize bpf events with bpf_program__get_prog_info_linear()

2019-02-14 Thread Song Liu
With bpf_program__get_prog_info_linear, we can simplify the logic that synthesizes bpf events. This patch doesn't change the behavior of the code. Signed-off-by: Song Liu --- tools/perf/util/bpf-event.c | 118 1 file changed, 40 insertions(+), 78

[PATCH v2 perf,bpf 09/11] perf-top: add option --bpf-event

2019-02-14 Thread Song Liu
bpf events are only tracked when opts->bpf_event is enabled. This patch adds command line flag to enable this for perf-top. Signed-off-by: Song Liu --- tools/perf/builtin-top.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index

[PATCH v2 perf,bpf 06/11] perf, bpf: save bpf_prog_info information as headers to perf.data

2019-02-14 Thread Song Liu
This patch enables perf-record to save bpf_prog_info information as headers to perf.data. A new header type HEADER_BPF_PROG_INFO is introduced for this data. Signed-off-by: Song Liu --- tools/perf/util/header.c | 134 ++- tools/perf/util/header.h | 1 + 2

[PATCH v2 perf,bpf 07/11] perf, bpf: save btf in a rbtree in perf_env

2019-02-14 Thread Song Liu
btf contains information necessary to annotate bpf programs. This patch saves btf for bpf programs loaded in the system. Signed-off-by: Song Liu --- tools/perf/util/bpf-event.c | 22 + tools/perf/util/bpf-event.h | 7 tools/perf/util/env.c | 65

[PATCH v2 perf,bpf 02/11] bpf: libbpf: introduce bpf_program__get_prog_info_linear()

2019-02-14 Thread Song Liu
Currently, bpf_prog_info includes 9 arrays. The user has the option to fetch any combination of these arrays. However, this requires a lot of handling of these arrays. This work becomes more tricky when we need to store bpf_prog_info to a file, because these arrays are allocated independently.

[PATCH v2 perf,bpf 01/11] perf, bpf: consider events with attr.bpf_event as side-band events

2019-02-14 Thread Song Liu
Events with bpf_event should be considered as side-band event, as they carry information about BPF programs. Fixes: 6ee52e2a3fe4 ("perf, bpf: Introduce PERF_RECORD_BPF_EVENT") Signed-off-by: Song Liu --- kernel/events/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v2 perf,bpf 00/11] perf annotation of BPF programs

2019-02-14 Thread Song Liu
Changes v1 to v2: 1. Fix compilation error with different feature-disassembler-four-args; 2. Fix a segfault in perf-record; 3. Split patches 5/9 and 6/9 so that perf_env changes and perf.data changes are in separate patches. This series enables annotation of BPF programs in perf. perf tool

Re: [RFC v3 18/19] of: unittest: split out a couple of test cases from unittest

2019-02-14 Thread Frank Rowand
On 12/5/18 3:54 PM, Brendan Higgins wrote: > On Tue, Dec 4, 2018 at 2:58 AM Frank Rowand wrote: >> >> Hi Brendan, >> >> On 11/28/18 11:36 AM, Brendan Higgins wrote: >>> Split out a couple of test cases that these features in base.c from the >>> unittest.c monolith. The intention is that we will

Re: [patch V5 4/8] nvme-pci: Simplify interrupt allocation

2019-02-14 Thread Thomas Gleixner
On Fri, 15 Feb 2019, Ming Lei wrote: > > +* If only one interrupt is available, combine write and read > > +* queues. If 'write_queues' is set, ensure it leaves room for at > > +* least one read queue. > > +*/ > > + if (nrirqs == 1) > > + nr_read_queues = 0; > > +

Re: [RFC PATCH v8 07/14] arm64/mm, xpfo: temporarily map dcache regions

2019-02-14 Thread Tycho Andersen
On Thu, Feb 14, 2019 at 10:29:52AM -0700, Khalid Aziz wrote: > On a side note, do you mind if I update your address in your > signed-off-by from ty...@docker.com when I send the next version of this > series? Sure that would be great thanks. This e-mail is a good one to use. Cheers, Tycho

Re: [v4 PATCH 8/8] RISC-V: Assign hwcap as per comman capabilities.

2019-02-14 Thread Atish Patra
On 2/13/19 4:38 PM, Palmer Dabbelt wrote: On Wed, 13 Feb 2019 00:44:42 PST (-0800), jo...@kernel.org wrote: On Tue, Feb 12, 2019 at 11:58:10AM -0800, Atish Patra wrote: On 2/12/19 3:25 AM, Johan Hovold wrote: On Tue, Feb 12, 2019 at 03:10:12AM -0800, Atish Patra wrote: Currently, we set

Re: [PATCH 1/4] PM / devfreq: Track overall load monitor state instead of 'stop_polling'

2019-02-14 Thread Chanwoo Choi
Hi Matthias, On 19. 2. 15. 오전 1:59, Matthias Kaehlcke wrote: > Hi Chanwoo, > > On Thu, Feb 14, 2019 at 11:25:52PM +0900, Chanwoo Choi wrote: >> Hi Matthias, >> >> 2019년 2월 14일 (목) 오후 7:16, Matthias Kaehlcke 님이 작성: >>> >>> The field ->stop_polling indicates whether load monitoring should be/is

Re: tmpfs inode leakage when opening file with O_TMP_FILE

2019-02-14 Thread Andrew Morton
(cc linux-fsdevel) On Mon, 11 Feb 2019 15:18:11 +0100 Matej Kupljen wrote: > Hi, > > it seems that when opening file on file system that is mounted on > tmpfs with the O_TMPFILE flag and using linkat call after that, it > uses 2 inodes instead of 1. > > This is simple test case: > >

Re: [PATCH 4/4] PM / devfreq: Handle monitor start/stop in the devfreq core

2019-02-14 Thread Chanwoo Choi
Hi Matthias, On 19. 2. 15. 오전 4:28, Matthias Kaehlcke wrote: > Hi Chanwoo, > > On Thu, Feb 14, 2019 at 11:17:36PM +0900, Chanwoo Choi wrote: >> Hi Matthias, >> >> As I commented on the first patch, it is not possible to call some codes >> according to the intention of each governor between

Re: [RFC PATCH v2] PCI/portdrv: Support for subtractive decode bridge

2019-02-14 Thread Bjorn Helgaas
On Thu, Feb 14, 2019 at 01:21:17PM +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > The Class Code for subtractive decode PCI-to-PCI bridge is 060401h, > add one entry to make portdrv support this type bridge. > > Signed-off-by: Honghui Zhang Applied to pci/portdrv for v5.1,

Re: [RFC PATCH v1 04/25] printk-rb: add writer interface

2019-02-14 Thread John Ogness
On 2019-02-14, Petr Mladek wrote: >> Add the writer functions prb_reserve() and prb_commit(). These make >> use of processor-reentrant spin locks to limit the number of possible >> interruption scenarios for the writers. >> >> Signed-off-by: John Ogness >> --- >>

Re: [v5 PATCH 5/8] RISC-V: Compare cpuid with NR_CPUS before mapping.

2019-02-14 Thread Atish Patra
On 2/14/19 9:59 AM, Christopher Lameter wrote: On Wed, 13 Feb 2019, Atish Patra wrote: --- a/arch/riscv/kernel/smpboot.c +++ b/arch/riscv/kernel/smpboot.c @@ -66,6 +66,11 @@ void __init setup_smp(void) found_boot_cpu = 1; continue;

Re: [PATCH v15 05/15] tracing: Add conditional snapshot

2019-02-14 Thread Tom Zanussi
Hi Steve, On Thu, 2019-02-14 at 18:11 -0500, Steven Rostedt wrote: > On Wed, 13 Feb 2019 17:42:45 -0600 > Tom Zanussi wrote: > > > + > > +/** > > + * tracing_snapshot_cond_enable - enable conditional snapshot for > > an instance > > + * @tr:The tracing instance > > + * @cond_data:

mmotm 2019-02-14-15-22 uploaded

2019-02-14 Thread akpm
The mm-of-the-moment snapshot 2019-02-14-15-22 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

[PATCH] binder: fix handling of misaligned binder object

2019-02-14 Thread Todd Kjos
Fixes crash found by syzbot: kernel BUG at drivers/android/binder_alloc.c:LINE! (2) Reported-by: syzbot+55de1eb4975dec156...@syzkaller.appspotmail.com Signed-off-by: Todd Kjos --- Applies to linux-next drivers/android/binder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] can: mark expected switch fall-throughs

2019-02-14 Thread Alexandre Belloni
On 14/02/2019 17:14:05-0600, Gustavo A. R. Silva wrote: > >>> Also, the gcc documentation says that -Wimplicit-fallthrough=3 > >>> recognizes /* fallthrough */ as a proper fall through comment (and I > >>> tested with gcc 8.2). > >>> > >> > >> Yeah. But that's not the relevant change in this case.

[PATCH 0/6]Bluetooth: mediatek: add support for MediaTek MT7663U and MT7668U UART devices

2019-02-14 Thread sean.wang
From: Sean Wang This adds the support of enabling MT7668U and MT7663U UART based Bluetooth function running on the top of btmtkuart driver. We are through several patches to reach the goal and also wish applied the same flow in MediaTek btusb [1] for the transport independence. Once [1] and the

[PATCH 6/6] Bluetooth: mediatek: add support for MediaTek MT7663U and MT7668U UART devices

2019-02-14 Thread sean.wang
From: Sean Wang This adds the support of enabling MT7663U and MT7668U Bluetooth function running on the top of btmtkuart driver. There are a few differences between MT766[3,8]U and MT7622 where MT766[3,8]U are standalone devices based on UART transport while MT7622 bluetooth is a built-in

[PATCH 2/6] Bluetooth: mediatek: trivial typo fix

2019-02-14 Thread sean.wang
From: Sean Wang add a trivial typo fix from speicfic to specific Fixes: 7237c4c9ec92 ("Bluetooth: mediatek: Add protocol support for MediaTek serial devices") Signed-off-by: Sean Wang --- drivers/bluetooth/btmtkuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/6] Bluetooth: mediatek: fix up an error path to restore bdev->tx_state

2019-02-14 Thread sean.wang
From: Sean Wang Restore bdev->tx_state with clearing bit BTMTKUART_TX_WAIT_VND_EVT when there is an error on waiting for the corresponding event. Fixes: 7237c4c9ec92 ("Bluetooth: mediatek: Add protocol support for MediaTek serial devices") Signed-off-by: Sean Wang ---

[PATCH 5/6] Bluetooth: mediatek: update the common setup between MT7622 and other devices

2019-02-14 Thread sean.wang
From: Sean Wang Update the setup sequence on MT7622 to apply the same flow with MT7663U and MT7668U USB [1] as much as possible. These additional commands are required to parse the corresponding event to determine what current state the Bluetooth device is on and thus it's necessary to extend

[PATCH 1/6] dt-bindings: net: bluetooth: add support for MediaTek MT7663U and MT7668U UART devices

2019-02-14 Thread sean.wang
From: Sean Wang Update binding document with adding support of MT7663U and MT7668U UART devices to mediatek-bluetooth. Signed-off-by: Sean Wang --- .../bindings/net/mediatek-bluetooth.txt | 64 +++ 1 file changed, 64 insertions(+) diff --git

[PATCH 4/6] Bluetooth: mediatek: pass a pointer to mtk_hci_wmt_sync

2019-02-14 Thread sean.wang
From: Sean Wang Pass a structure pointer to mtk_hci_wmt_sync rather than several arguments to avoid take up additional stack area and be better to read the code. Signed-off-by: Sean Wang --- drivers/bluetooth/btmtkuart.c | 63 ++- 1 file changed, 48

Re: [PATCH v2 2/2] cpufreq / cppc: Work around for Hisilicon CPPC cpufreq

2019-02-14 Thread Rafael J. Wysocki
On Thursday, February 14, 2019 2:58:21 PM CET Xiongfeng Wang wrote: > > On 2019/2/14 18:58, Rafael J. Wysocki wrote: > > On Thu, Feb 14, 2019 at 8:46 AM Xiongfeng Wang > > wrote: > >> > >> Hisilicon chips do not support delivered performance counter register > >> and reference performance

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