[PATCH 4.4 19/37] i2c: rcar: refactor setup of a msg

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Wolfram Sang commit b9d0684c79c4b9d30ce0d47d3270493dd0e76e59 upstream. We want to reuse this function later. Signed-off-by: Wolfram Sang Signed-off-by: Wolfram Sang Signed-off-by: Fabrizio

[PATCH 4.4 16/37] i2c: rcar: rework hw init

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Wolfram Sang commit 2c78cdc1c06308a59d6ed4145cdba73fdeff8c0d upstream. We don't need to init HW before every transfer since we know the HW state then. HW init at probe time is enough. While

[PATCH 4.4 15/37] i2c: rcar: make sure clocks are on when doing clock calculation

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Wolfram Sang commit e43e0df13f8528ca55ed79f469c4b2af897fa796 upstream. When calculating the bus speed, the clock should be on, of course. Most bootloaders left them on, so this went unnoticed

[PATCH 4.4 14/37] tcp: avoid integer overflows in tcp_rcv_space_adjust()

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 607065bad9931e72207b0cac365d7d4abc06bd99 upstream. When using large tcp_rmem[2] values (I did tests with 500 MB), I noticed overflows while computing rcvwin. Lets fix this

[PATCH 15/46] perf tools: Ditch the symbol_conf.nr_events global

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since over time the places where we need to pass this got reduced because we can obtain it from evsel->evlist->nr_entries, no need to have this global anymore. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 11/46] perf annotate: Introduce symbol__hists()

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In this case we're wanting just notes->src->histograms, 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-4iatualjskia7sojmdb65...@git.kernel.org Signed-off-by: Arnaldo

[PATCH 14/46] perf annotate: Replace symbol__alloc_hists() with symbol__hists()

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Its a bit shorter, so ditch the old symbol__alloc_hists() function. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-m7tienxk7dijh5ln62yln...@git.kernel.org Signed-off-by: Arnaldo Carvalho de

[PATCH 23/46] perf annotate: Move disassembler_style global to annotation_options

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

[PATCH 30/46] perf sched: Use sched->show_callchain where appropriate

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Instead of using symbol_conf.use_callchain, reducing its usage a bit more. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-edgwb1b2mpbrdeg0w64wp...@git.kernel.org Signed-off-by: Arnaldo

[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 [

[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

[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 ---

[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:

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

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

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

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

Re: [PATCH v2] drivers: base: cacheinfo: use OF property_read_u32 instead of get_property,read_number

2018-06-05 Thread Andy Shevchenko
On Tue, Jun 5, 2018 at 7:26 PM, Sudeep Holla wrote: > > > On 05/06/18 17:21, Andy Shevchenko wrote: >> On Mon, May 21, 2018 at 3:53 PM, Sudeep Holla wrote: >>> of_property_read_u32 searches for a property in a device node and read >>> a 32-bit value from it. Instead of using of_get_property to

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

2018-06-05 Thread Oleg Nesterov
On 06/05, Peter Zijlstra wrote: > > On Tue, Jun 05, 2018 at 05:22:12PM +0200, Peter Zijlstra wrote: > > > > OK, but __kthread_parkme() can be preempted before it calls schedule(), > > > so the > > > caller still can be migrated? Plus kthread_park_complete() can be called > > > twice. > > > >

[PATCH 4.4 02/37] powerpc/64s: Clear PCR on boot

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Michael Neuling commit faf37c44a105f3608115785f17cbbf3500f8bc71 upstream. Clear the PCR (Processor Compatibility Register) on boot to ensure we are not running in a compatibility mode. We've

[PATCH 4.4 22/37] i2c: rcar: check master irqs before slave irqs

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Wolfram Sang commit c3be0af15959e11fa535d5332ab3d7cf34abd09b upstream. Due to the HW design, master IRQs are timing critical, so give them precedence over slave IRQ. Signed-off-by: Wolfram

[PATCH 4.4 03/37] USB: serial: cp210x: use tcflag_t to fix incompatible pointer type

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit 009615ab7fd4e43b82a38e4e6adc5e23c1ee567f upstream. On sparc32, tcflag_t is unsigned long, unlike all other architectures: drivers/usb/serial/cp210x.c: In

[PATCH 4.4 21/37] i2c: rcar: dont issue stop when HW does it automatically

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Wolfram Sang commit d89667b14f9d13b684287f6189ca209af5feee43 upstream. The manual says (55.4.8.6) that HW does automatically send STOP after NACK was received. My measuerments confirm that.

[PATCH 4.4 28/37] scsi: scsi_transport_srp: Fix shost to rport translation

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit c9ddf73476ff4fffb7a87bd5107a0705bf2cf64b upstream. Since an SRP remote port is attached as a child to shost->shost_gendev and as the only child, the translation from the

[PATCH 4.4 33/37] fix io_destroy()/aio_complete() race

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Al Viro commit 4faa99965e027cc057c5145ce45fa772caa04e8d upstream. If io_destroy() gets to cancelling everything that can be cancelled and gets to kiocb_cancel() calling the function driver has

Re: linux-next: manual merge of the kvm tree with the arm64 tree

2018-06-05 Thread Paolo Bonzini
On 04/06/2018 09:33, Dave Martin wrote: > On Mon, Jun 04, 2018 at 04:57:54PM +1000, Stephen Rothwell wrote: >> Hi all, >> >> Today's linux-next merge of the kvm tree got a conflict in: >> >> arch/arm64/include/asm/processor.h >> >> between commit: >> >> 94b07c1f8c39 ("arm64: signal: Report

[PATCH 4.9 03/61] USB: serial: cp210x: use tcflag_t to fix incompatible pointer type

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit 009615ab7fd4e43b82a38e4e6adc5e23c1ee567f upstream. On sparc32, tcflag_t is unsigned long, unlike all other architectures: drivers/usb/serial/cp210x.c: In

[PATCH 4.9 58/61] fix io_destroy()/aio_complete() race

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Al Viro commit 4faa99965e027cc057c5145ce45fa772caa04e8d upstream. If io_destroy() gets to cancelling everything that can be cancelled and gets to kiocb_cancel() calling the function driver has

[PATCH 4.9 24/61] powerpc/rfi-flush: Move out of HARDLOCKUP_DETECTOR #ifdef

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michael Ellerman The backport of the RFI flush support, done by me, has a minor bug in that the code is inside an #ifdef CONFIG_HARDLOCKUP_DETECTOR, which is incorrect. This doesn't matter

[PATCH 4.9 33/61] powerpc: Add security feature flags for Spectre/Meltdown

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michael Ellerman commit 9a868f634349e62922c226834aa23e3d1329ae7f upstream. This commit adds security feature flags to reflect the settings we receive from firmware regarding Spectre/Meltdown

[PATCH 4.9 31/61] powerpc/rfi-flush: Call setup_rfi_flush() after LPM migration

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michael Ellerman commit 921bc6cf807ceb2ab8005319cf39f33494d6b100 upstream. We might have migrated to a machine that uses a different flush type, or doesn't need flushing at all.

[PATCH 4.9 18/61] tcp: avoid integer overflows in tcp_rcv_space_adjust()

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 607065bad9931e72207b0cac365d7d4abc06bd99 upstream. When using large tcp_rmem[2] values (I did tests with 500 MB), I noticed overflows while computing rcvwin. Lets fix this

RE: [PATCH v3 03/10] mfd: da9063: Rename PMIC_DA9063 to PMIC_CHIP_ID_DA9063

2018-06-05 Thread Steve Twiss
On 04 June 2018 19:32, Marek Vasut wrote, > Subject: Re: [PATCH v3 03/10] mfd: da9063: Rename PMIC_DA9063 to > PMIC_CHIP_ID_DA9063 > > On 06/04/2018 02:26 PM, Lee Jones wrote: > > On Sat, 02 Jun 2018, Marek Vasut wrote: > > > >> The PMIC_DA9063 is a complete misnomer, it denotes the value of

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

2018-06-05 Thread Dmitry Torokhov
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 != RMI_2D_OBJECT_NONE) {

[PATCH v2 1/2] compiler-gcc.h: add gnu_inline to all inline declarations

2018-06-05 Thread Nick Desaulniers
Functions marked extern inline do not emit an externally visible function when the gnu89 C standard is used. Some KBUILD Makefiles overwrite KBUILD_CFLAGS. This is an issue for GCC 5.1+ users as without an explicit C standard specified, the default is gnu11. Since c99, the semantics of extern

[PATCH 4.4 29/37] stm class: Use vmalloc for the master map

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Shishkin commit b5e2ced9bf81393034072dd4d372f6b430bc1f0a upstream. Fengguang is running into a warning from the buddy allocator: > swapper/0: page allocation failure: order:9, >

[PATCH 4.4 23/37] i2c: rcar: revoke START request early

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Wolfram Sang commit 52df445f29b79006d8b2dcd129152987c0d3bd64 upstream. If we don't clear START generation as soon as possible, it may cause another message to be generated, e.g. when receiving

[PATCH 4.4 25/37] iio:kfifo_buf: check for uint overflow

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Martin Kelly commit 3d13de4b027d5f6276c0f9d3a264f518747d83f2 upstream. Currently, the following causes a kernel OOPS in memcpy: echo 1073741825 > buffer/length echo 1 > buffer/enable Note

Re: [PATCH v10 0/5] Kernel parameter parser cleanup/enhancement

2018-06-05 Thread Michal Suchánek
On Tue, 5 Jun 2018 20:05:50 +0300 Andy Shevchenko wrote: > On Tue, Jun 5, 2018 at 7:43 PM, Michal Suchanek > wrote: > > Hello, > > > > due to work on the fadump_extra_args I looked at the kernel > > parameter parser and found its grammar rather curious. > > > > It supports double quotes but not

[PATCH 4.4 24/37] dmaengine: usb-dmac: fix endless loop in usb_dmac_chan_terminate_all()

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit d9f5efade2cfd729138a7cafb46d01044da40f5e upstream. This patch fixes an issue that list_for_each_entry() in usb_dmac_chan_terminate_all() is possible to cause endless

[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

[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

[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

[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

[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

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

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

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

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: [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

[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

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. > >> > >>

[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

[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

[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

[PATCH v2 2/2] arm64: dts: Add Mediatek X20 Development Board support

2018-06-05 Thread Manivannan Sadhasivam
Add initial device tree support for Mediatek X20 Development Board based on MT6797 Deca core SoC. This board is one of the 96Boards Consumer Edition platform. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../boot/dts/mediatek/mt6797-x20-dev.dts

[PATCH v2 1/2] dt-bindings: arm: mediatek: Document Mediatek X20 Development Board

2018-06-05 Thread Manivannan Sadhasivam
Document Mediatek X20 Development Board which is a 96Boards Consumer Edition platform based on MT6797 SoC. Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/arm/mediatek.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v2 0/2] Add Mediatek X20 Development Board support

2018-06-05 Thread Manivannan Sadhasivam
Add devicetree support for Mediatek X20 Development Board by Archermind. This board is based on the Deca-Core MT6797 SoC from Mediatek and is one of the 96Boards Consumer Edition platform. With this devicetree change, board can boot into initramfs. More information about this board can be found

[PATCH] scripts: Use SPDX tag in get_maintainer and checkpatch

2018-06-05 Thread Joe Perches
Add the appropriate SPDX tag to these scripts. Miscellanea: o Add my copyright to checkpatch Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 4 +++- scripts/get_maintainer.pl | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/checkpatch.pl

RE: [RFC Patch 1/3] X86/Hyper-V: Add flush HvFlushGuestPhysicalAddressSpace hypercall support

2018-06-05 Thread Michael Kelley (EOSG)
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org > On Behalf > Of Tianyu Lan > Sent: Monday, June 4, 2018 2:08 AM > Cc: Tianyu Lan ; KY Srinivasan > ; Haiyang > Zhang ; Stephen Hemminger ; > t...@linutronix.de; mi...@redhat.com; h...@zytor.com; x...@kernel.org; >

[PATCH v2] dmaengine: ti: omap-dma: Fix OMAP1510 incorrect residue_granularity

2018-06-05 Thread Janusz Krzysztofik
Commit 0198d7bb8a0c ("ASoC: omap-mcbsp: Convert to use the sdma-pcm instead of omap-pcm") resulted in broken audio playback on OMAP1510 (discovered on Amstrad Delta). When running on OMAP1510, omap-pcm used to obtain DMA offset from snd_dmaengine_pcm_pointer_no_residue() based on DMA interrupt

[PATCH 4.9 51/61] scsi: scsi_transport_srp: Fix shost to rport translation

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit c9ddf73476ff4fffb7a87bd5107a0705bf2cf64b upstream. Since an SRP remote port is attached as a child to shost->shost_gendev and as the only child, the translation from the

[PATCH 4.9 47/61] net/mlx4_en: fix potential use-after-free with dma_unmap_page

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sarah Newman [ Not relevant upstream, therefore no upstream commit. ] To fix, unmap the page as soon as possible. When swiotlb is in use, calling dma_unmap_page means that the original page

[PATCH 4.9 61/61] serial: pl011: add console matching function

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Aleksey Makarov commit 10879ae5f12e9cab3c4e8e9504c1aaa8a033bde7 upstream. This patch adds function pl011_console_match() that implements method match of struct console. It allows to match

[PATCH 4.9 49/61] MIPS: ptrace: Fix PTRACE_PEEKUSR requests for 64-bit FGRs

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Maciej W. Rozycki commit c7e814628df65f424fe197dde73bfc67e4a244d7 upstream. Use 64-bit accesses for 64-bit floating-point general registers with PTRACE_PEEKUSR, removing the truncation of

[PATCH 4.9 54/61] IB/core: Fix error code for invalid GID entry

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Parav Pandit commit a840c93ca7582bb6c88df2345a33f979b7a67874 upstream. When a GID entry is invalid EAGAIN is returned. This is an incorrect error code, there is nothing that will make this GID

Re: [PATCH v2 2/3] ACPI / PPTT: fix build when CONFIG_ACPI_PPTT is not enabled

2018-06-05 Thread Catalin Marinas
On Tue, Jun 05, 2018 at 03:35:03PM +0100, Sudeep Holla wrote: > Though CONFIG_ACPI_PPTT is selected by platforms and nor user visible, > it may be useful to support the build with CONFIG_ACPI_PPTT disabled. > > This patch adds the missing dummy/boiler plate implementation to fix > the build. > >

[PATCH 4.9 50/61] MIPS: prctl: Disallow FRE without FR with PR_SET_FP_MODE requests

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Maciej W. Rozycki commit 28e4213dd331e944e7fca1954a946829162ed9d4 upstream. Having PR_FP_MODE_FRE (i.e. Config5.FRE) set without PR_FP_MODE_FR (i.e. Status.FR) is not supported as the lone

[PATCH 4.9 53/61] hwtracing: stm: fix build error on some arches

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 806e30873f0e74d9d41b0ef761bd4d3e55c7d510 upstream. Commit b5e2ced9bf81 ("stm class: Use vmalloc for the master map") caused a build error on some arches as vmalloc.h

[PATCH 4.9 48/61] iio:kfifo_buf: check for uint overflow

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Martin Kelly commit 3d13de4b027d5f6276c0f9d3a264f518747d83f2 upstream. Currently, the following causes a kernel OOPS in memcpy: echo 1073741825 > buffer/length echo 1 > buffer/enable Note

[PATCH 4.9 52/61] stm class: Use vmalloc for the master map

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Shishkin commit b5e2ced9bf81393034072dd4d372f6b430bc1f0a upstream. Fengguang is running into a warning from the buddy allocator: > swapper/0: page allocation failure: order:9, >

[PATCH 4.9 59/61] mm: fix the NULL mapping case in __isolate_lru_page()

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hugh Dickins commit 145e1a71e090575c74969e3daa8136d1e5b99fc8 upstream. George Boole would have noticed a slight error in 4.16 commit 69d763fc6d3a ("mm: pin address_space before dereferencing

[PATCH 4.9 38/61] powerpc/powernv: Use the security flags in pnv_setup_rfi_flush()

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michael Ellerman commit 37c0bdd00d3ae83369ab60a6712c28e11e6458d5 upstream. Now that we have the security flags we can significantly simplify the code in pnv_setup_rfi_flush(), because we can

[PATCH 4.9 36/61] powerpc/64s: Move cpu_show_meltdown()

2018-06-05 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Michael Ellerman commit 8ad33041563a10b34988800c682ada14b2612533 upstream. This landed in setup_64.c for no good reason other than we had nowhere else to put it. Now that we have a

[PATCH 4.4 35/37] sparc64: Add __multi3 for gcc 7.x and later.

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: David S. Miller commit 1b4af13ff2cc6897557bb0b8d9e2fad4fa4d67aa upstream. Reported-by: Waldemar Brodkorb Signed-off-by: David S. Miller Cc: Guenter Roeck Signed-off-by: Greg Kroah-Hartman

Re: [PATCH] slab: Clean up the code comment in slab kmem_cache struct

2018-06-05 Thread Christopher Lameter
On Sun, 3 Jun 2018, Baoquan He wrote: > diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h > index d9228e4d0320..3485c58cfd1c 100644 > --- a/include/linux/slab_def.h > +++ b/include/linux/slab_def.h > @@ -67,9 +67,10 @@ struct kmem_cache { > > /* >* If debugging is

[PATCH 4.4 08/37] tracing: Fix crash when freeing instances with event triggers

2018-06-05 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt (VMware) commit 86b389ff22bd6ad8fd3cb98e41cd271886c6d023 upstream. If a instance has an event trigger enabled when it is freed, it could cause an access of free memory. Here's

Re: [GIT PULL] Device properties framework update for v4.18-rc1

2018-06-05 Thread Linus Torvalds
On Mon, Jun 4, 2018 at 4:31 AM Rafael J. Wysocki wrote: > > device property: Get rid of union aliasing Honestly, this looks questionable to me. I'm not talking about the changes themselves - I can live with them. But the _rationale_ is pure and utter garbage, and dangerously so. The fact is,

Re: How to print stack uses of IRQ in ARM64

2018-06-05 Thread James Morse
Hi Vishun, (CC: +linux-arm-kernel list) On 05/06/18 14:12, Andy Shevchenko wrote: > On Thu, May 31, 2018 at 1:01 PM, Vishnu Motghare > wrote: >> My understanding is each CPU getting its own IRQ stack. So is it >> possible to print the stack uses of each IRQ handler? The stacks are per-cpu not

Re: [CFT][PATCH] kernfs: Correct kernfs directory seeks.

2018-06-05 Thread Eric W. Biederman
"'t...@kernel.org'" writes: > Hello, > > On Tue, Jun 05, 2018 at 10:31:36AM -0500, Eric W. Biederman wrote: >> What I have above is not the clearest, and in fact the logic could be >> better. >> >> The fundamental challenge is because hash collisions are possible a file >> offset does not hold

[PATCH 43/46] perf intel-pt: Fix sync_switch INTEL_PT_SS_NOT_TRACING

2018-06-05 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter sync_switch is a facility to synchronize decoding more closely with the point in the kernel when the context actually switched. In one case, INTEL_PT_SS_NOT_TRACING state was not correctly transitioning to INTEL_PT_SS_TRACING state due to a missing case clause. Add it.

[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

[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

[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

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

[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

[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

[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

[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

[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

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

2018-06-05 Thread Arnaldo Carvalho de Melo
: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" error (

[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

[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

[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:

[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

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: >> -

[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

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: [PATCH v2] drivers: base: cacheinfo: use OF property_read_u32 instead of get_property,read_number

2018-06-05 Thread Sudeep Holla
On 05/06/18 17:21, Andy Shevchenko wrote: > On Mon, May 21, 2018 at 3:53 PM, Sudeep Holla wrote: >> of_property_read_u32 searches for a property in a device node and read >> a 32-bit value from it. Instead of using of_get_property to get the >> property and then read 32-bit value using

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