[PATCH 41/46] perf test record+probe_libc_inet_pton: Ask 'nm' for dynamic symbols

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Adrian reported that this test fails in his system where: probe libc's inet_pton & backtrace it with ping: FAILED! root@kbl04:~/git/linux-perf# nm -g /lib/x86_64-linux-gnu/libc-2.19.so | grep inet_pton nm: /lib/x86_64-linux-gnu/libc-2.19.so: no symbols This

[PATCH 40/46] perf map: Consider PTI entry trampolines in rip_2objdump()

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter perf tools uses map__rip_2objdump() to calculate objdump virtual addresses. map__rip_2objdump() needs to be amended to deal with PTI entry trampolines. Signed-off-by: Adrian Hunter Reported-by: Arnaldo Carvalho de Melo Tested-by: Arnaldo Carvalho de Melo Cc: Jiri Olsa Lin

Re: [PATCH v5 1/2] mm: memcg: remote memcg charging for kmem allocations

2018-06-05 Thread Shakeel Butt
On Mon, Apr 16, 2018 at 1:51 PM, Shakeel Butt wrote: > Introduce the memcg variant for kmalloc[_node] and > kmem_cache_alloc[_node]. For kmem_cache_alloc, the kernel switches the > root kmem cache with the memcg specific kmem cache for __GFP_ACCOUNT > allocations to charge those allocations to th

[PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- Changes in v2: - [6/9] Do not remove last paragraph. drivers/input/keyboard/cros_ec_keyb.c | 34 ++- 1 file changed, 12 insertions(+), 22 deletions

[PATCH v2 2/8] platform/chrome: pstore: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- Changes in v2: None drivers/platform/chrome/chromeos_pstore.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/platform/chrome/chr

[PATCH v2 8/8] i2c: i2c-cros-ec-tunnel: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- Changes in v2: None drivers/i2c/busses/i2c-cros-ec-tunnel.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/i2c/busses/i2c-cros

[PATCH v2 7/8] extcon: usbc-cros-ec: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- Changes in v2: - [8/9] Fixed wrong copyright year. drivers/extcon/extcon-usbc-cros-ec.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff -

[PATCH v2 6/8] pwm: cros-ec: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- Changes in v2: None drivers/pwm/pwm-cros-ec.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/pwm/pwm-cros-ec.c b/drivers/pwm/pwm

[PATCH v2 3/8] mfd: cros_ec: Add or fix SPDX-License-Identifier in all files.

2018-06-05 Thread Enric Balletbo i Serra
And get rid of the license text that is no longer necessary. Also fix the license as sometimes doesn't match what the header with the value in the MODULE_LICENSE macro. Assuming that the desired license is GPL-2.0+, all the files are updated to this license version. Signed-off-by: Enric Balletbo i

[PATCH v2 4/8] iio: cros_ec: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- Changes in v2: None drivers/iio/accel/cros_ec_accel_legacy.c | 27 +++ .../common/cros_ec_sensors/cros_ec_sensors.c | 24 + .../cros_

[PATCH v2 1/8] platform/chrome: cros_ec: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Enric Balletbo i Serra --- Changes in v2: - s/Chrome OS/ChromeOS/ - [1/9] Fixed wrong copyright year. drivers/platform/chrome/cros_ec_debugfs.c | 22 +++- drivers/platform/chrome/cros_ec

Re: [PATCH 1/1] Update AMD cpu microcode for family 15h

2018-06-05 Thread Rudolf Marek
Hi Sherry, Many thanks for your efforts. Are there any technical restriction(s) of why the OS bundled updates are not the latest available version? I think we can't count much on hardware vendors to release microcode updates in the BIOS in the timely manner. I also think especially for older fam

[PATCH v2 0/8] cros_ec: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Dear all, This patchset is just to adopt the SPDX license identifier for all ChromeOS Embedded Controller related drivers. The patches touches different subsystems but every patch can be picked from their respective maintainer independently. This second version fixes some copy paste errors in the

[PATCH 39/46] perf test code-reading: Fix perf_env setup for PTI entry trampolines

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The "Object code reading" test will not create maps for the PTI entry trampolines unless the machine environment exists to show that the arch is x86_64. Signed-off-by: Adrian Hunter Reported-by: Arnaldo Carvalho de Melo Tested-by: Arnaldo Carvalho de Melo Cc: Jiri Olsa Li

[PATCH 38/46] perf tools: Fix pmu events parsing rule

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Currently all the event parsing fails end up in the event_pmu rule, and display misleading help like: $ perf stat -e inst kill event syntax error: 'inst' \___ Cannot find PMU `inst'. Missing kernel support? ... The reason is that the event_pmu is too

[PATCH 37/46] perf stat: Display user and system time

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding the support to read rusage data once the workload is finished and display the system/user time values: $ perf stat --null perf bench sched pipe ... Performance counter stats for 'perf bench sched pipe': 5.342599256 seconds time elapsed 2.544434000 s

[PATCH 32/46] perf hists: Introduce hist_entry__has_callchain() method

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We'll use this helper more frequently when reworking symbol_conf.use_callchain logic, where knowing if a hist_entry has callchains is the important bit, so make going from hist_entry to hists to evsel easier, compact. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Ol

[PATCH 33/46] perf hists: Check if a hist_entry has callchains before using them

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So far if we use 'perf record -g' this will make symbol_conf.use_callchain 'true' and logic will assume that all events have callchains enabled, but ever since we added the possibility of setting up callchains for some events (e.g.: -e cycles/call-graph=dwarf/) whil

[PATCH 34/46] perf tests kmod-path: Add tests for vdso32 and vdsox32

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add tests for vdso32 and vdsox32. This will cause the overall test to fail because __kmod_path__parse() does not handle vdso32 or vdsox32. Fixes: 1f121b03d058 ("perf tools: Deal with kernel module names in '[]' correctly") Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Wan

[PATCH 31/46] perf hists: Do not allocate space for callchains for evsels without them

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This is another case were a big switch for callchains, symbol_conf.use_callchain, is inconvenient, as we can have both events with and without callchains, no point in checking a single switch to decide to allocate space for callchains. Cc: Adrian Hunter Cc: David

[PATCH 29/46] perf script: Check if evsel has callchains before trying to use it

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We were checking just if callchain processing was asked for by the user, not if the evsel itself has callchains, and since we can have some evsels with callchains and others without, check that. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim C

[PATCH 28/46] perf evsel: Add has_callchain() helper to make code more compact/clear

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Its common to have the (evsel->attr.sample_type & PERF_SAMPLE_CALLCHAIN), so add an evsel__has_callchain(evsel) helper. This will actually get more uses as we check that instead of symbol_conf.use_callchain in places where that produces the same result but makes th

[PATCH 27/46] perf report: No need to have report_callchain_help as a global

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It is used in a single place, move the declaration to that function. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-p650ofrl8xike4dewxod5...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Me

[PATCH 26/46] perf test: Use header file util/debug.h

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Thomas Richter Use the header file util/debug.h instead of declaration of verbose variable. Signed-off-by: Thomas Richter Cc: Heiko Carstens Cc: Hendrik Brueckner Cc: Martin Schwidefsky Link: http://lkml.kernel.org/r/20180528134817.36643-1-tmri...@linux.ibm.com Signed-off-by: Arnaldo C

[PATCH 24/46] perf hists browser: Pass annotation_options from tool to browser

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So that things changed in the command line may percolate to the browser code without using globals. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-5daawc40zhl6gcs600com...@git.kernel.org [ Merg

[PATCH 22/46] perf annotate: Adopt anotation options from symbol_conf

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Continuing to group annotation options in an annotation specific struct. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-astei92tzxp4yccag5pxb...@git.kernel.org Signed-off-by: Arnaldo Carvalho d

[PATCH 25/46] perf annotate: Move objdump_path to struct annotation_options

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo One more step in grouping annotation options. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-sogzdhugoavm6fyw60jnb...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arc

[PATCH 21/46] perf annotate: Pass annotation_options to symbol__annotate()

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Now all callers to symbol__disassemble() can hand it the per-tool annotation_options, which will allow us to remove lots of stuff from symbol_options, the kitchen sink of perf configs, reducing its size and getting annotation specific stuff grouped together. Cc: Ad

[PATCH 20/46] perf srcline: Make hist_entry srcline helper consistent with map's

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No need to have "get_srcline", plain hist_entry__srcline() is enough and shorter. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-irhzpfmgdaf6cyk0uqqex...@git.kernel.org Signed-off-by: Arnaldo C

[PATCH 18/46] perf srcline: Introduce map__srcline() to make code more compact

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Replacing a common open coded sequence. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-2d7d1nzd3ksqornloqeer...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/map.

[PATCH 17/46] perf annotate stdio: Use annotation_options consistently

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Accross all the routines, this way we can have eventually have a consistent set of defaults for all UIs. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-6qgtixurjgdk5u0n3rw78...@git.kernel.org S

[PATCH 19/46] perf sort: Introduce addr_map_symbol__srcline() to make code more compact

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since we have 'struct addr_map_symbol' and the srcline sort order keys all operate on those, make the code more compact by introducing a function that receives a pointer to such struct and expands the arguments to map__srcline(). Cc: Adrian Hunter Cc: David Ahern

[PATCH 16/46] perf annotate: Add comment about annotated_src->nr_histograms

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When we have multiple groups in an evlist, say: $ perf stat -e '{cycles,instructions},{cache-references,cache-misses}' sleep 1 Performance counter stats for 'sleep 1': 343,134 cycles:u 249,292 instructions:u#0.

[PATCH 13/46] perf annotate: Stop using symbol_conf.nr_events global in symbol__hists()

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since now we have evsel->evlist->nr_entries in the single place calling this function, use it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-9mgosbqa977h39j4i9ys8...@git.kernel.org Signed-off-

[PATCH 12/46] perf annotate: Introduce symbol__cycle_hists()

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In this case we're wanting just notes->src->cycles_hist, allocating it if needed. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-pqj81aneunhftlntm66tm...@git.kernel.org Signed-off-by: Arnaldo

[PATCH 10/46] perf annotate: __symbol__inc_addr_samples() needs just annotated_source

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It only operates on the histograms, so no need for the encompassing 'struct annotation'. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-2se2v7rrjil0kwqywks04...@git.kernel.org Signed-off-by: Ar

Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.

2018-06-05 Thread Fabio Estevam
Hi Enric, On Tue, Jun 5, 2018 at 2:54 PM, Enric Balletbo i Serra wrote: > Adopt the SPDX license identifier headers to ease license compliance > management. > > Signed-off-by: Enric Balletbo i Serra > --- > > Changes in v2: > - [6/9] Do not remove last paragraph. > > drivers/input/keyboard/cros

[PATCH 07/46] perf annotate: Split allocation of annotated_source struct

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So that we can allocate just the notes->src->cyc_hist, that, unlike notes->src->histograms, is not per event, and in paths where we need to lazily allocate notes->src->cyc_hist we don't have the number of events handy to also allocate ->histograms. Cc: Adrian Hunte

[PATCH 09/46] perf annotate: Introduce annotated_source__alloc_histograms

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So that we can call it independently, in contexts were we know we already have notes->src allocated. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-f5fn7tr1asey6g013wavp...@git.kernel.org Signe

[PATCH 06/46] perf annotate: __symbol__acount_cycles doesn't need notes

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It only operates on the notes->src->cyc_hist, just pass that to it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-zd1cu4zwmu21k0cxlr83y...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Mel

[PATCH 03/46] perf cgroup: Make evlist__find_cgroup() more compact

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo By taking advantage that __get() routines return the pointer to the object for which a reference count is being get. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane Eranian Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-xnvd07r

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

2018-06-05 Thread Arnaldo Carvalho de Melo
-06-04 10:28:20 -0300) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.18-20180605 for you to fetch changes up to 03ac4e71cd120d2c3411d106d00d266114575f74: perf intel-pt: Fix "Unexpected indirect branch&quo

building in 32bit chroot on x86_64 host broken (was: Linux 4.17)

2018-06-05 Thread Thomas Backlund
I have a 32bit x86 and a 64bit x86_64 install on the system. With linux source up to 4.16.x I could do: setarch i686 (or use command linux32) chroot /path/to/32bit/ (/dev, /proc, /sys, /run is bind mounted in the chroot) Then I could build a 32bit kernel in the chroot without booting the 32b

Re: building in 32bit chroot on x86_64 host broken - IGNORE

2018-06-05 Thread Thomas Backlund
Den 2018-06-05 kl. 20:52, skrev Thomas Backlund: I have a 32bit x86 and a 64bit x86_64 install on the system. With linux source up to 4.16.x I could do: setarch i686 (or use command linux32) chroot /path/to/32bit/ (/dev, /proc, /sys, /run is bind mounted in the chroot) Then I could build a 32

Re: building in 32bit chroot on x86_64 host broken (was: Linux 4.17)

2018-06-05 Thread Linus Torvalds
On Tue, Jun 5, 2018 at 10:51 AM Thomas Backlund wrote: > > Is this intentional ? If so, why ? If not, how can I fix it ? It shouldn't be intentional. And I don't see anythin ghaving changed in this area. We still have config 64BIT bool "64-bit kernel" if ARCH = "x86" default AR

Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Hi Fabio, On 05/06/18 20:04, Fabio Estevam wrote: > Hi Enric, > > On Tue, Jun 5, 2018 at 2:54 PM, Enric Balletbo i Serra > wrote: >> Adopt the SPDX license identifier headers to ease license compliance >> management. >> >> Signed-off-by: Enric Balletbo i Serra >> --- >> >> Changes in v2: >> - [

Re: [PATCH v2 7/8] extcon: usbc-cros-ec: Switch to SPDX identifier.

2018-06-05 Thread Benson Leung
On Tue, Jun 05, 2018 at 07:54:28PM +0200, Enric Balletbo i Serra wrote: > Adopt the SPDX license identifier headers to ease license compliance > management. > > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Benson Leung > --- > > Changes in v2: > - [8/9] Fixed wrong copyright year. > >

Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.

2018-06-05 Thread Fabio Estevam
Hi Enric, On Tue, Jun 5, 2018 at 3:14 PM, Enric Balletbo i Serra wrote: > Right, but the module license is set to GPL which means GNU Public License v2 > or > later, see [1]. So, there is a mismatch. In such cases I assumed GPL-2.0+ as > the > default. These mismatches are common so I think th

Re: [PATCH] mremap: Avoid TLB flushing anonymous pages that are not in swap cache

2018-06-05 Thread Dave Hansen
On 06/05/2018 10:13 AM, Mel Gorman wrote: > The anonymous page race fix is overkill for two reasons. Pages that are not > in the swap cache are not going to be issued for IO and if a stale TLB entry > is used, the write still occurs on the same physical page. Any race with > mmap replacing the addr

Re: [PATCH v1] kthread/smpboot: Serialize kthread parking against wakeup

2018-06-05 Thread Kohli, Gaurav
Hi, Just for info , the patch that I have shared earlier with pi_lock approach has been tested since last one month and no issue has been observed, https://lkml.org/lkml/2018/4/25/189 Can we take this if it looks good? Regards Gaurav On 6/5/2018 10:05 PM, Oleg Nesterov wrote: On 06/05, Pe

[GIT PULL] Security subsystem: general updates for v4.18

2018-06-05 Thread James Morris
Please pull these general security subsystem updates for v4.18. Summary: - Incorporate new socketpair() hook into LSM and wire up the SELinux and Smack modules. From David Herrmann: "The idea is to allow SO_PEERSEC to be called on AF_UNIX sockets created via socketpair(2), and return

Re: building in 32bit chroot on x86_64 host broken

2018-06-05 Thread Thomas Backlund
Den 2018-06-05 kl. 21:11, skrev Linus Torvalds: On Tue, Jun 5, 2018 at 10:51 AM Thomas Backlund wrote: Is this intentional ? If so, why ? If not, how can I fix it ? It shouldn't be intentional. And I don't see anythin ghaving changed in this area. We still have config 64BIT bool

Re: [PATCH 5/5] mm, hmm: mark hmm_devmem_{add, add_resource} EXPORT_SYMBOL_GPL

2018-06-05 Thread Jerome Glisse
On Tue, May 22, 2018 at 02:31:21PM -0700, Andrew Morton wrote: > On Tue, 22 May 2018 08:32:36 +0200 Christoph Hellwig wrote: > > > On Mon, May 21, 2018 at 03:35:40PM -0700, Dan Williams wrote: > > > The routines hmm_devmem_add(), and hmm_devmem_add_resource() are small > > > wrappers around devm_

Re: [PATCH v6 0/2] sparc64: Add privileged ADI driver

2018-06-05 Thread David Miller
From: Tom Hromatka Date: Thu, 26 Apr 2018 10:54:07 -0600 > ADI is a feature supported on SPARC M7 and newer processors to allow > hardware to catch rogue accesses to memory. ADI is supported for data > fetches only and not instruction fetches. An app can enable ADI on its > data pages, set versio

Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.

2018-06-05 Thread Dmitry Torokhov
On Tue, Jun 05, 2018 at 03:16:40PM -0300, Fabio Estevam wrote: > Hi Enric, > > On Tue, Jun 5, 2018 at 3:14 PM, Enric Balletbo i Serra > wrote: > > > Right, but the module license is set to GPL which means GNU Public License > > v2 or > > later, see [1]. So, there is a mismatch. In such cases I

Re: [alsa-devel] [PATCH 0/3] ASoC: stm32: sai: add support of iec958 controls

2018-06-05 Thread Takashi Iwai
On Tue, 05 Jun 2018 17:50:57 +0200, Arnaud Pouliquen wrote: > > Hi Takashi, > > On 04/17/2018 01:17 PM, Mark Brown wrote: > > On Tue, Apr 17, 2018 at 08:29:17AM +, Olivier MOYSAN wrote: > > > >> I guess the blocking patch in this patchset is the patch "add IEC958 > >> channel status control

Re: [PATCH] sparc: fix compat siginfo ABI regression

2018-06-05 Thread David Miller
From: "Dmitry V. Levin" Date: Fri, 13 Apr 2018 17:19:02 +0300 > Starting with commit v4.14-rc1~60^2^2~1, a SIGFPE signal sent via kill > results to wrong values in si_pid and si_uid fields of compat siginfo_t. > > This happens due to FPE_FIXME being defined to 0 for sparc, and at the > same time

Re: building in 32bit chroot on x86_64 host broken

2018-06-05 Thread Linus Torvalds
On Tue, Jun 5, 2018 at 11:23 AM Thomas Backlund wrote: > # > -# CONFIG_64BIT is not set > > So something _does_ strip away the needed config bit Why do you need it? I get CONFIG_X86_32=y CONFIG_X86=y and CONFIG_64BIT never gets set. It is true that I don't get the # CONFIG_64BIT is n

Re: [PATCH v2 7/8] extcon: usbc-cros-ec: Switch to SPDX identifier.

2018-06-05 Thread Dmitry Torokhov
On Tue, Jun 5, 2018 at 11:15 AM, Benson Leung wrote: > On Tue, Jun 05, 2018 at 07:54:28PM +0200, Enric Balletbo i Serra wrote: >> Adopt the SPDX license identifier headers to ease license compliance >> management. >> >> Signed-off-by: Enric Balletbo i Serra > > Reviewed-by: Benson Leung It has

Re: [PATCH] xfs: mark sb_fname as nonstring

2018-06-05 Thread Eric Sandeen
On 5/25/18 10:14 AM, Arnd Bergmann wrote: > gcc-8 reports two warnings for the newly added getlabel/setlabel code: > > fs/xfs/xfs_ioctl.c: In function 'xfs_ioc_getlabel': > fs/xfs/xfs_ioctl.c:1822:38: error: argument to 'sizeof' in 'strncpy' call is > the same expression as the source; did you

[PATCH 1/5] can: enable multi-queue for SocketCAN devices

2018-06-05 Thread Mark Jonas
From: Zhu Yi The existing SocketCAN implementation provides alloc_candev() to allocate a CAN device using a single Tx and Rx queue. This can lead to priority inversion in case the single Tx queue is already full with low priority messages and a high priority message needs to be sent while the bus

Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Hi Dmitry, On 05/06/18 20:29, Dmitry Torokhov wrote: > On Tue, Jun 05, 2018 at 03:16:40PM -0300, Fabio Estevam wrote: >> Hi Enric, >> >> On Tue, Jun 5, 2018 at 3:14 PM, Enric Balletbo i Serra >> wrote: >> >>> Right, but the module license is set to GPL which means GNU Public License >>> v2 or >>

[PATCH 2/5] spi: implement companion-spi driver

2018-06-05 Thread Mark Jonas
From: Zhu Yi The low level companion-spi driver encapsulates the communication details with the companion processor, and provides interface for the upper level drivers to access. Signed-off-by: Zhu Yi Signed-off-by: Mark Jonas --- drivers/spi/Kconfig |2 + drivers/spi

Re: [PATCH 0/5] mm: rework hmm to use devm_memremap_pages

2018-06-05 Thread Jerome Glisse
On Tue, May 29, 2018 at 04:33:49PM -0700, Dan Williams wrote: > On Tue, May 29, 2018 at 4:00 PM, Dave Airlie wrote: > > On 30 May 2018 at 08:31, Dan Williams wrote: > >> On Tue, May 29, 2018 at 3:22 PM, Dave Airlie wrote: > >>> > >>> On 24 May 2018 at 13:18, Dan Williams wrote: > >>> > On Wed,

[PATCH V3] ARM: dts: armada388-helios4

2018-06-05 Thread Dennis Gilmore
The helios4 is a Armada388 based nas board designed by SolidRun and based on their SOM. It is sold by kobol.io the dts file came from https://raw.githubusercontent.com/armbian/build/master/patch/kernel/mvebu-default/95-helios4-device-tree.patch I added a SPDX license line to match the clearfog it s

Re: building in 32bit chroot on x86_64 host broken

2018-06-05 Thread Thomas Backlund
Den 2018-06-05 kl. 21:38, skrev Linus Torvalds: On Tue, Jun 5, 2018 at 11:23 AM Thomas Backlund wrote: # -# CONFIG_64BIT is not set So something _does_ strip away the needed config bit Why do you need it? I get CONFIG_X86_32=y CONFIG_X86=y and CONFIG_64BIT never gets set. It is

Re: [PATCH 5/9] rtc: cros-ec: Switch to SPDX identifier.

2018-06-05 Thread Enric Balletbo i Serra
Hi Alexandre, On 05/06/18 11:46, Alexandre Belloni wrote: > On 05/06/2018 11:22:05+0200, Enric Balletbo i Serra wrote: >> Adopt the SPDX license identifier headers to ease license compliance >> management. >> >> Signed-off-by: Enric Balletbo i Serra >> --- >> >> drivers/rtc/rtc-cros-ec.c | 21 ++

Re: [PATCH v2 5/8] Input: cros_ec_keyb - Switch to SPDX identifier.

2018-06-05 Thread Dmitry Torokhov
On Tue, Jun 05, 2018 at 08:45:44PM +0200, Enric Balletbo i Serra wrote: > Hi Dmitry, > > On 05/06/18 20:29, Dmitry Torokhov wrote: > > On Tue, Jun 05, 2018 at 03:16:40PM -0300, Fabio Estevam wrote: > >> Hi Enric, > >> > >> On Tue, Jun 5, 2018 at 3:14 PM, Enric Balletbo i Serra > >> wrote: > >> >

Re: [RFC/PATCH] Input: make input_report_slot_state() return boolean

2018-06-05 Thread Henrik Rydberg
On 06/05/2018 07:16 PM, Dmitry Torokhov wrote: Let's make input_report_slot_state() return boolean representing whether the contact is active or not. This will allow writing code like: if (input_mt_report_slot_state(input, obj->mt_tool, obj->type

[GIT PULL] Char/Misc driver patches for 4.18-rc1

2018-06-05 Thread Greg KH
The following changes since commit 6da6c0db5316275015e8cc2959f12a17584aeb64: Linux v4.17-rc3 (2018-04-29 14:17:42 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/ tags/char-misc-4.18-rc1 for you to fetch changes up to b23220

[GIT PULL] Driver core patches for 4.18-rc1

2018-06-05 Thread Greg KH
The following changes since commit 6da6c0db5316275015e8cc2959f12a17584aeb64: Linux v4.17-rc3 (2018-04-29 14:17:42 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/ tags/driver-core-4.18-rc1 for you to fetch changes up to 8c

[GIT PULL] TTY/Serial patches for 4.18-rc1

2018-06-05 Thread Greg KH
The following changes since commit 6da6c0db5316275015e8cc2959f12a17584aeb64: Linux v4.17-rc3 (2018-04-29 14:17:42 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/ tags/tty-4.18-rc1 for you to fetch changes up to 4b4ecd9cb853c14913

Re: [PATCH 5/9] rtc: cros-ec: Switch to SPDX identifier.

2018-06-05 Thread Alexandre Belloni
On 05/06/2018 20:51:06+0200, Enric Balletbo i Serra wrote: > Hi Alexandre, > > On 05/06/18 11:46, Alexandre Belloni wrote: > > On 05/06/2018 11:22:05+0200, Enric Balletbo i Serra wrote: > >> Adopt the SPDX license identifier headers to ease license compliance > >> management. > >> > >> Signed-off-

[GIT PULL] xfs: 4.18 merge, part 1

2018-06-05 Thread Darrick J. Wong
Hi Linus, Here's the first round of patches for XFS for 4.18. New features this cycle include the ability to relabel mounted filesystems, support for fallocated swapfiles, and using FUA for pure data O_DSYNC directio writes. With this cycle we begin to integrate online filesystem repair and refa

[PATCH V3] i8042: Increment wakeup_count for the respective port.

2018-06-05 Thread Ravi Chandra Sadineni
Call pm_wakeup_event on every irq. This should help us in identifying if keyboard was a potential wake reason for the last resume. Signed-off-by: Ravi Chandra Sadineni --- V3: Remove the unnecessary device_may_wakeup check. V2: Increment the wakeup count only when there is a irq and not when the

Re: [PATCH V2] i8042: Increment wakeup_count for the respective port.

2018-06-05 Thread Ravi Chandra Sadineni
On Tue, Jun 5, 2018 at 2:14 AM, Rafael J. Wysocki wrote: > On Mon, Jun 4, 2018 at 11:53 PM, Dmitry Torokhov > wrote: >> On Fri, Jun 01, 2018 at 06:07:08PM -0700, Ravi Chandra Sadineni wrote: >>> Call pm_wakeup_event on every irq. This should help us in identifying if >>> keyboard was a potential

[GIT PULL 1/2] libata changes for v4.18-rc1

2018-06-05 Thread Tejun Heo
Hello, Linus. These two are fixes which missed v4.17. I tried to merge these into libata/for-4.18 but couldn't make "git request-pull" not generate huge spurious diffstat without merging v4.17 in the middle, so I'm sending them out as two spearate pull request. Pulling into master should be clea

[PATCH] arm64: topology: Avoid checking numa mask for scheduler MC selection

2018-06-05 Thread Jeremy Linton
The numa mask subset check has problems if !CONFIG_NUMA, over hotplug operations or during early boot. Lets disable the NUMA siblings checks for the time being, as NUMA in socket machines have LLC's that will assure that the scheduler topology isn't "borken". Futher, as a defensive mechanism durin

Re: [PATCH] ARM64: dts: meson-gxl-s905x-p212: Add phy-supply for usb0

2018-06-05 Thread Martin Blumenstingl
On Tue, Jun 5, 2018 at 10:52 AM, Neil Armstrong wrote: > Like LibreTech-CC, the USB0 needs the 5V regulator to be enabled to power the > devices on the P212 Reference Design based boards. > > Fixes: b9f07cb4f41f ("ARM64: dts: meson-gxl-s905x-p212: enable the USB > controller") > Signed-off-by: Ne

Re: [PATCH] mremap: Avoid TLB flushing anonymous pages that are not in swap cache

2018-06-05 Thread Mel Gorman
On Tue, Jun 05, 2018 at 11:18:18AM -0700, Dave Hansen wrote: > On 06/05/2018 10:13 AM, Mel Gorman wrote: > > The anonymous page race fix is overkill for two reasons. Pages that are not > > in the swap cache are not going to be issued for IO and if a stale TLB entry > > is used, the write still occu

Re: building in 32bit chroot on x86_64 host broken

2018-06-05 Thread Linus Torvalds
On Tue, Jun 5, 2018 at 11:50 AM Thomas Backlund wrote: > > > > but why do you care? > > Because without it running the build in the 32bit chroot will get the > initial reported issue: Ahh. I can re-create that now. Yes, doing make ARCH=i386 allnoconfig followed by make oldconfig

[GIT PULL 2/2] libata changes for v4.18-rc1

2018-06-05 Thread Tejun Heo
Hello, Linus. This is the second part of libata pull request. * libata has always been limiting the maximum queue depth to 31, 1 set aside mostly for historical reasons. This didn't use to make much difference but Jens found out that modern hard drives can actually perform measurably bette

[PATCH] Bluetooth: hci_bcm: Configure SCO routing automatically

2018-06-05 Thread Attila Tőkés
Signed-off-by: Attila Tőkés --- drivers/bluetooth/hci_bcm.c | 61 + 1 file changed, 61 insertions(+) diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index ddbd8c6a..50c73eef 100644 --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetoot

[GIT PULL] cgroup changes for v4.18-rc1

2018-06-05 Thread Tejun Heo
Hello, Linus. cgroup changes for v4.18. * For cpustat, cgroup has a percpu hierarchical stat mechanism which propagates up the hierarchy lazily. This pull request contains commits to factor out and generalize the mechanism so that it can be used for other cgroup stats too. The original in

Re: [PATCH] spdxcheck: Work with current HEAD LICENSES/ directory

2018-06-05 Thread Thomas Gleixner
On Tue, 5 Jun 2018, Joe Perches wrote: > Depending on how old your -next tree is, it may > not have a master that has the LICENSES directory. > > Change the lookup to HEAD and find whatever > LICENSE directory files are used in that branch. > > Miscellanea: > > o Remove the checkpatch test as i

[GIT PULL] workqueue changes for v4.18-rc1

2018-06-05 Thread Tejun Heo
Hello, Linus. * Patches to make kworkers to report the workqueue it is executing or has executed most recently in /proc/PID/comm. * CONFIG_SMP shuffle to move stuff which isn't necessary for UP builds inside CONFIG_SMP. Thanks. The following changes since commit e6506eb241871d68647c53cb6d0a

Re: [PATCH 2/2] sched/fair: util_est: add running_sum tracking

2018-06-05 Thread Joel Fernandes
On Tue, Jun 05, 2018 at 04:21:56PM +0100, Patrick Bellasi wrote: [..] > > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > > index f74441be3f44..5d54d6a4c31f 100644 > > > --- a/kernel/sched/fair.c > > > +++ b/kernel/sched/fair.c > > > @@ -3161,6 +3161,8 @@ accumulate_sum(u64 delta, int

Re: building in 32bit chroot on x86_64 host broken

2018-06-05 Thread Thomas Backlund
Den 2018-06-05 kl. 22:13, skrev Linus Torvalds: On Tue, Jun 5, 2018 at 11:50 AM Thomas Backlund wrote: but why do you care? Because without it running the build in the 32bit chroot will get the initial reported issue: Ahh. I can re-create that now. Yes, doing make ARCH=i386 allnoco

Re: [PATCH v4 1/4] tpm: migrate tpm2_shutdown() to use struct tpm_buf

2018-06-05 Thread Jarkko Sakkinen
On Sun, May 27, 2018 at 02:14:52AM -0700, Jerry Snitselaar wrote: > On Wed May 23 18, Jarkko Sakkinen wrote: > > On Fri, May 18, 2018 at 03:30:32PM -0700, Jerry Snitselaar wrote: > > > On Mon Mar 26 18, Jarkko Sakkinen wrote: > > > > In order to make struct tpm_buf the first class object for constr

Re: [PATCH v4 1/6] Documentation: DT: Consolidate SP805 binding docs

2018-06-05 Thread Rob Herring
On Mon, May 28, 2018 at 11:01:32AM -0700, Ray Jui wrote: > Consolidate two SP805 binding documents "arm,sp805.txt" and > "sp805-wdt.txt" into "arm,sp805.txt" that matches the naming of the > desired compatible string to be used > > Signed-off-by: Ray Jui > --- > .../devicetree/bindings/watchdog/

Re: [PATCH 2/2] sched/fair: util_est: add running_sum tracking

2018-06-05 Thread Joel Fernandes
On Tue, Jun 05, 2018 at 12:33:17PM -0700, Joel Fernandes wrote: > On Tue, Jun 05, 2018 at 04:21:56PM +0100, Patrick Bellasi wrote: [..] > > To be more precise, at each ___update_load_avg we should really update > > running_avg by: > > > >u32 divider = LOAD_AVG_MAX - 1024 + sa->period_contrib;

Re: [PATCH] mremap: Avoid TLB flushing anonymous pages that are not in swap cache

2018-06-05 Thread Dave Hansen
On 06/05/2018 12:12 PM, Mel Gorman wrote: > That's fair enough. I updated part of the changelog to read > > This patch special cases anonymous pages to only flush ranges under the > page table lock if the page is in swap cache and can be potentially queued > for IO. Note that the full flush of the

[PATCH V2] xfs: fix string handling in get/set functions

2018-06-05 Thread Eric Sandeen
From: Arnd Bergmann [sandeen: fix subject, avoid copy-out of uninit data in getlabel] gcc-8 reports two warnings for the newly added getlabel/setlabel code: fs/xfs/xfs_ioctl.c: In function 'xfs_ioc_getlabel': fs/xfs/xfs_ioctl.c:1822:38: error: argument to 'sizeof' in 'strncpy' call is the same

Re: [PATCH] mremap: Avoid TLB flushing anonymous pages that are not in swap cache

2018-06-05 Thread Mel Gorman
On Tue, Jun 05, 2018 at 12:49:18PM -0700, Dave Hansen wrote: > >> I usually try to make the non-pte-modifying functions take a pte_t > >> instead of 'pte_t *' to make it obvious that there no modification going > >> on. Any reason not to do that here? > > > > No, it was just a minor saving on sta

RE: [PATCH v3 07/10] mfd: da9063: Add custom IRQ map for DA9063L

2018-06-05 Thread Steve Twiss
Hi Marek, Thanks. On 02 June 2018 11:12, Marek Vasut wrote, > Subject: [PATCH v3 07/10] mfd: da9063: Add custom IRQ map for DA9063L > > While the datasheet for DA9063L (2v1, 23-Mar-2017) lists the RTC register > block, the DA9063L does not have an RTC. Add custom IRQ map for DA9063L to > ignore

Re: [PATCH] mremap: Avoid TLB flushing anonymous pages that are not in swap cache

2018-06-05 Thread Dave Hansen
On 06/05/2018 12:51 PM, Mel Gorman wrote: > Using another testcase that simply calls mremap heavily with varying number > of threads, it was found that very broadly speaking that TLB shootdowns > were reduced by 31% on average throughout the entire test case but your > milage will vary. Looks good

Re: [PATCH] mremap: Avoid TLB flushing anonymous pages that are not in swap cache

2018-06-05 Thread Nadav Amit
Mel Gorman wrote: > Commit 5d1904204c99 ("mremap: fix race between mremap() and page cleanning") > fixed races between mremap and other operations for both file-backed and > anonymous mappings. The file-backed was the most critical as it allowed the > possibility that data could be changed on a p

Re: [PATCH v4 2/6] Documentation: DT: Add optional 'timeout-sec' property for sp805

2018-06-05 Thread Rob Herring
On Mon, May 28, 2018 at 11:01:33AM -0700, Ray Jui wrote: > Update the SP805 binding document to add optional 'timeout-sec' > devicetree property Note "dt-bindings: watchdog: ..." is the preferred subject prefix. > > Signed-off-by: Ray Jui > --- > Documentation/devicetree/bindings/watchdog/arm,

Re: [PATCH] ksys_mount: check for permissions before resource allocation

2018-06-05 Thread Eric W. Biederman
Ilya Matveychikov writes: > Just CC’ed to some of maintainers. > > $ perl scripts/get_maintainer.pl > fs/0001-ksys_mount-check-for-permissions-before-resource-all.patch > Alexander Viro (maintainer:FILESYSTEMS (VFS and > infrastructure)) > linux-fsde...@vger.kernel.org (open list:FILESYSTEMS (

Re: [PATCH v3 2/5] gpio: syscon: rockchip: add GPIO_MUTE support for rk3328

2018-06-05 Thread Rob Herring
On Sat, Jun 02, 2018 at 04:40:09PM +0800, Levin Du wrote: > > Rob Herring writes: > > > On Thu, May 31, 2018 at 9:05 PM, Levin wrote: > > > Hi Rob, > > > > > > > > > On 2018-05-31 10:45 PM, Rob Herring wrote: > > > > > > > > On Wed, May 30, 2018 at 10:27 PM, wrote: > > > > > > > > > > Fro

<    1   2   3   4   5   6   7   8   >