[PATCH v2] powerpc/64: Fix build failure with GCC 8.1

2018-05-29 Thread Christophe Leroy
CC arch/powerpc/kernel/nvram_64.o arch/powerpc/kernel/nvram_64.c: In function 'nvram_create_partition': arch/powerpc/kernel/nvram_64.c:1042:2: error: 'strncpy' specified bound 12 equals destination size [-Werror=stringop-truncation] strncpy(new_part->header.name, name, 12);

[PATCH] tracing: prefer strlcpy to strncpy

2018-05-29 Thread Nick Desaulniers
Fixes a stringop-truncation warning from gcc-8. Signed-off-by: Nick Desaulniers --- kernel/trace/trace_events_hist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace_events_hist.c b/kernel/trace/trace_events_hist.c index b9061ed..b53a6c0 100644 ---

Re: linux-next: build warning after merge of the devicetree tree

2018-05-29 Thread Stephen Rothwell
Hi Rob, On Wed, 9 May 2018 07:17:06 -0500 Rob Herring wrote: > > > and over 2000 more :-( > > I assume you mean on other files. I've already sent out patches for > arm and arm64 dts files. Yeah, we appear to be just down to this now: arch/arm/boot/dts/qcom-apq8064-arrow-sd-600eval.dtb:

[PATCH v2] clk: qcom: Enable clocks which needs to be always on for SDM845

2018-05-29 Thread Amit Nischal
There are certain clocks which needs to be always enabled for system operation. Remove support for such clocks from the clock driver and enable them explicitly gcc driver probe. Also fix the target name in kernel configuration description for SDM845 gcc driver. Signed-off-by: Amit Nischal ---

Re: [PATCH 4.14 000/496] 4.14.45-stable review

2018-05-29 Thread Naresh Kamboju
On 28 May 2018 at 15:26, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.45 release. > There are 496 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH] riscv: pass machine size to sparse

2018-05-29 Thread Christoph Hellwig
On Mon, May 28, 2018 at 06:35:05PM +0200, Luc Van Oostenryck wrote: > By default, sparse assumes a 64bit machine when compiled on x86-64 > and 32bit when compiled on anything else. > > This can of course create all sort of problems when this doesn't > correspond to the target's machine size, like

Re: [PATCH 4.4 000/268] 4.4.134-stable review

2018-05-29 Thread Naresh Kamboju
On 28 May 2018 at 15:29, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.134 release. > There are 268 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [RFC v5 2/5] virtio_ring: support creating packed ring

2018-05-29 Thread Jason Wang
On 2018年05月29日 13:24, Tiwei Bie wrote: On Tue, May 29, 2018 at 10:49:11AM +0800, Jason Wang wrote: On 2018年05月22日 16:16, Tiwei Bie wrote: This commit introduces the support for creating packed ring. All split ring specific functions are added _split suffix. Some necessary stubs for packed

Re: [PATCH] riscv: pass machine size to sparse

2018-05-29 Thread Masahiro Yamada
2018-05-29 15:11 GMT+09:00 Christoph Hellwig : > On Mon, May 28, 2018 at 06:35:05PM +0200, Luc Van Oostenryck wrote: >> By default, sparse assumes a 64bit machine when compiled on x86-64 >> and 32bit when compiled on anything else. >> >> This can of course create all sort of problems when this

Re: [RFC v5 3/5] virtio_ring: add packed ring support

2018-05-29 Thread Jason Wang
On 2018年05月29日 13:11, Tiwei Bie wrote: On Tue, May 29, 2018 at 11:18:57AM +0800, Jason Wang wrote: On 2018年05月22日 16:16, Tiwei Bie wrote: [...] +static void detach_buf_packed(struct vring_virtqueue *vq, + unsigned int id, void **ctx) +{ + struct

[PATCH net] vhost_net: flush batched heads before trying to busy polling

2018-05-29 Thread Jason Wang
After commit e2b3b35eb989 ("vhost_net: batch used ring update in rx"), we tend to batch updating used heads. But it doesn't flush batched heads before trying to do busy polling, this will cause vhost to wait for guest TX which waits for the used RX. Fixing by flush batched heads before busy loop.

Re: [PATCH v2] media: staging: tegra-vde: Reset memory client

2018-05-29 Thread Hans Verkuil
Hi Dmitry, On 05/26/2018 04:27 PM, Dmitry Osipenko wrote: > DMA requests must be blocked before resetting VDE HW, otherwise it is > possible to get a memory corruption or a machine hang. Use the reset > control provided by the Memory Controller to block DMA before resetting > the VDE HW. > >

Re: [PATCH 4/5] clocksource: add driver for i.MX EPIT timer

2018-05-29 Thread Vladimir Zapolskiy
Hi Clément, please find basic review comments below. On 05/28/2018 08:34 PM, Clément Péron wrote: > From: Colin Didier > > Add driver for NXP's EPIT timer used in i.MX 6 family of SoC. > The first author's signed-off-by tag is missing. > Signed-off-by: Clément Peron > --- >

[PATCH] ext4: prefer strlcpy to strncpy

2018-05-29 Thread Nick Desaulniers
Fixes a stringop-truncation warning from gcc-8. Signed-off-by: Nick Desaulniers --- fs/ext4/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index eb104e8..d47c85f 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -323,11

Re: [PATCH] drm: Fix possible race conditions while unplugging DRM device

2018-05-29 Thread Oleksandr Andrushchenko
ping On 05/22/2018 05:13 PM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko When unplugging a hotpluggable DRM device we first unregister it with drm_dev_unregister and then set drm_device.unplugged flag which is used to mark device critical sections with drm_dev_enter()/

Re: [PATCH v8 4/6] cpuset: Make generate_sched_domains() recognize isolated_cpus

2018-05-29 Thread Juri Lelli
On 28/05/18 21:24, Waiman Long wrote: > On 05/28/2018 09:12 PM, Waiman Long wrote: > > On 05/24/2018 06:28 AM, Juri Lelli wrote: > >> On 17/05/18 16:55, Waiman Long wrote: > >> > >> [...] > >> > >>> @@ -849,7 +860,12 @@ static void rebuild_sched_domains_locked(void) > >>>* passing doms with

Re: [PATCH 3/5] scsi: ufs: Add Kconfig for UFS HC driver crypto support

2018-05-29 Thread Ladvine D Almeida
On Monday 28 May 2018 04:49 PM, Randy Dunlap wrote: > On 05/28/2018 06:29 AM, Ladvine D Almeida wrote: >> >> This patch adds the Kconfig for enabling crypto support for >> UFS Host Controller driver. It also adds Makefile changes >> for building crypto support based on crypto Kconfig selection. >>

Re: [alsa-devel] [PATCH] ALSA: xen: ensure nul-terminated device name

2018-05-29 Thread Takashi Iwai
On Tue, 29 May 2018 07:48:51 +0200, Oleksandr Andrushchenko wrote: > > On 05/28/2018 06:59 PM, Arnd Bergmann wrote: > > gcc-8 warns that pcm_instance->name is not necessarily terminated correctly > > if the input is more than 80 characters long or lacks a termination byte > > itself: > > > > In

[PATCH] blk-wbt: tracing: prefer strlcpy to strncpy

2018-05-29 Thread Nick Desaulniers
Fixes a stringop-truncation warning from gcc-8. Signed-off-by: Nick Desaulniers --- include/trace/events/wbt.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/trace/events/wbt.h b/include/trace/events/wbt.h index b048694..305252d 100644 ---

Re: [PATCH v5 05/10] cpufreq/schedutil: get max utilization

2018-05-29 Thread Juri Lelli
On 28/05/18 22:08, Joel Fernandes wrote: > On Mon, May 28, 2018 at 12:12:34PM +0200, Juri Lelli wrote: > [..] > > > + > > > + util = max_t(unsigned long, util, READ_ONCE(rq->avg_dl.util_avg)); > > > + > > > + return util; > > > > Anyway, just a quick thought. I guess we should experiment with

Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-05-29 Thread Eugen Hristev
On 28.05.2018 13:10, Peter Rosin wrote: On 2018-05-28 00:11, Peter Rosin wrote: On 2018-05-27 11:18, Peter Rosin wrote: On 2018-05-25 16:51, Tudor Ambarus wrote: We think the best way is to keep LCD on DDR Ports 2 and 3 (8th and 9th slaves), to have maximum bandwidth and to use DMA on DDR

[PATCH] writeback: tracing: prefer strlcpy to strncpy

2018-05-29 Thread Nick Desaulniers
Fixes a stringop-truncation warning from gcc-8. Signed-off-by: Nick Desaulniers --- include/trace/events/writeback.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h index

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

2018-05-29 Thread Matthias Brugger
Hi Manivannan, it's nice to see that someone at Linaro cares about upstreaming the 96 board. >From what I can see, your patches add the very same support to the board as does the mt6797 evaluation board. Do you have plans to upstream more drivers for the board? Do you have a roadmap or something?

Re: [PATCH] gpu: drm: vgem: Change return type to vm_fault_t

2018-05-29 Thread Daniel Vetter
On Thu, May 24, 2018 at 07:51:40PM +0530, Souptick Joarder wrote: > On Thu, May 24, 2018 at 6:27 PM, Daniel Vetter wrote: > > On Wed, May 23, 2018 at 03:05:35PM +0530, Souptick Joarder wrote: > >> On Mon, May 14, 2018 at 9:56 PM, Daniel Vetter wrote: > >> > On Thu, May 10, 2018 at 02:51:38PM

Re: [PATCH v2] drm: udl: Destroy framebuffer only if it was initialized

2018-05-29 Thread Daniel Vetter
On Mon, May 28, 2018 at 04:27:11PM +0200, Emil Lundmark wrote: > This fixes a NULL pointer dereference that can happen if the UDL > driver is unloaded before the framebuffer is initialized. This can > happen e.g. if the USB device is unplugged right after it was plugged > in. > > As explained by

Re: [RFC PATCH 00/16] x86/split_lock: Enable #AC exception for split locked accesses

2018-05-29 Thread Fenghua Yu
On Tue, May 29, 2018 at 10:28:11AM -0700, Dave Hansen wrote: > On 05/29/2018 10:25 AM, Fenghua Yu wrote: > > (By the way, ISE and SDM don't mention other important details, e.g. > > the fact that operand is fetched to cache before split lock is > > checked. Without the fact, it's hard to explain

Re: [PATCH 2/3 V2] x86/mce: Fix incorrect "Machine check from unknown source" message

2018-05-29 Thread Borislav Petkov
On Tue, May 29, 2018 at 05:50:48PM +, Luck, Tony wrote: > Ah. That would be because I forgot to "git add" before "git commit --amend" > :-( Oh, I know the situation very well. :) > I had put: > > (void) mce_severity(, cfg->tolerant, , true); > > but either works. Right. >

Re: [PATCH 2/6] lib/rhashtable: guarantee initial hashtable allocation

2018-05-29 Thread Herbert Xu
On Tue, May 29, 2018 at 10:03:38AM -0700, Davidlohr Bueso wrote: > On Mon, 28 May 2018, Herbert Xu wrote: > > > + /* > > > + * This is api initialization and thus we need to guarantee the > > > + * initial rhashtable allocation. Upon failure, retry with a > > > + * smallest possible size,

Re: [PATCH] Input: elantech - Fix V4 report decoding for module with middle key

2018-05-29 Thread Dmitry Torokhov
Hi KT, On Mon, May 28, 2018 at 07:33:02PM +0800, KT Liao wrote: > Some touchpad has middle key and it will be indicated in bit 2 of packet[0]. > We need to fix V4 formation's byte mask to prevent error decoding. Could you please let me know what devices this patch fixes? Are they released or new

[PATCH 7/7] atomics: switch to generated instrumentation

2018-05-29 Thread Mark Rutland
As a step towards ensuring the atomic* APIs are consistent, let's switch to wrappers generated by gen-atomic-instrumented.h, using the same table used to generate the fallbacks and atomic-long wrappers. These are checked in rather than generated with Kbuild, since: * This allows inspection of

Re: dm-writecache: fix compilation issue with !DAX

2018-05-29 Thread Mike Snitzer
On Tue, May 29 2018 at 1:52pm -0400, Ross Zwisler wrote: > As reported by Arnd (https://lkml.org/lkml/2018/5/28/1697), dm-writecache > will fail with link errors in configs where DAX isn't present: > > drivers/md/dm-writecache.o: In function `writecache_ctr': > dm-writecache.c:(.text+0x1fdc):

[PATCH 6/7] atomics: switch to generated atomic-long

2018-05-29 Thread Mark Rutland
As a step towards ensuring the atomic* APIs are consistent, let's switch to wrappers generated by gen-atomic-long.h, using the same table that gen-atomic-fallbacks.h uses to fill in gaps in the atomic_* and atomic64_* APIs. These are checked in rather than generated with Kbuild, since: * This

[PATCH 3/7] atomics: separate basic {cmp,}xchg()

2018-05-29 Thread Mark Rutland
Currently the basic {cmp,}xchg() definitions live in the middle of the atomic_t definitions. Let's pull them earlier so that the file has, in order: * __atomic_op_() definitions * {cmp,}xchg() definitions * atomic_t definiitions * atomic64_t definitions * atomic_long_t definitions ... which

Re: [patch] mm, hugetlb_cgroup: suppress SIGBUS when hugetlb_cgroup charge fails

2018-05-29 Thread Mike Kravetz
On 05/25/2018 01:16 PM, David Rientjes wrote: > When charging to a hugetlb_cgroup fails, alloc_huge_page() returns > ERR_PTR(-ENOSPC) which will cause VM_FAULT_SIGBUS to be returned to the > page fault handler. > > Instead, return the proper error code, ERR_PTR(-ENOMEM), so VM_FAULT_OOM > is

Re: [PATCH 2/6] lib/rhashtable: guarantee initial hashtable allocation

2018-05-29 Thread Davidlohr Bueso
On Wed, 30 May 2018, Herbert Xu wrote: It doesn't explain it at all. In fact I don't see why we neeed three attempts, just do the GFP_NOFAIL as the second and final step. Second attempt is reduced size only as we don't want to GFP_NOFAIL if we can avoid it helping the allocator. We go from

Re: [PATCH V2] i2c: ocores: update HDL sources URL

2018-05-29 Thread Wolfram Sang
On Mon, May 28, 2018 at 10:59:14AM +0200, Federico Vaga wrote: > The URL is broken. This patch fix it > > Signed-off-by: Federico Vaga Shortened the URL a bit and applied to for-current, thanks! @Peter: since the patch is trivial and nice to have in 4.17 already, I took the liberty to apply it

[PATCH 4/7] scsi: ufs: sysfs: Document attribute writability

2018-05-29 Thread Evan Green
This change removes the read-only clauses from the documentation for UFS attributes, which are now writable. Signed-off-by: Evan Green --- Documentation/ABI/testing/sysfs-driver-ufs | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git

Re: [PATCH 2/3] x86/mce: Fix incorrect "Machine check from unknown source" message

2018-05-29 Thread Raj, Ashok
On Mon, May 28, 2018 at 10:49:23PM +0200, Borislav Petkov wrote: > On Fri, May 25, 2018 at 02:41:55PM -0700, Tony Luck wrote: > > @@ -1287,12 +1292,17 @@ void do_machine_check(struct pt_regs *regs, long > > error_code) > > no_way_out = worst >= MCE_PANIC_SEVERITY; > > }

Re: [PATCH 2/8] xen/balloon: Move common memory reservation routines to a module

2018-05-29 Thread Oleksandr Andrushchenko
On 05/29/2018 09:04 PM, Boris Ostrovsky wrote: On 05/25/2018 11:33 AM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Memory {increase|decrease}_reservation and VA mappings update/reset code used in balloon driver can be made common, so other drivers can also re-use the same

Re: [PATCH 2/6] lib/rhashtable: guarantee initial hashtable allocation

2018-05-29 Thread Herbert Xu
On Tue, May 29, 2018 at 10:59:27AM -0700, Davidlohr Bueso wrote: > On Wed, 30 May 2018, Herbert Xu wrote: > > > It doesn't explain it at all. In fact I don't see why we neeed > > three attempts, just do the GFP_NOFAIL as the second and final step. > > Second attempt is reduced size only as we

[PATCH 7/7] clocksource/drivers/mxs_timer: Switch to SPDX identifier

2018-05-29 Thread Daniel Lezcano
From: Fabio Estevam Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Fabio Estevam Signed-off-by: Daniel Lezcano --- drivers/clocksource/mxs_timer.c | 28 +++- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git

[PATCH 6/7] clocksource/drivers/timer-imx-tpm: Switch to SPDX identifier

2018-05-29 Thread Daniel Lezcano
From: Fabio Estevam Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Fabio Estevam Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-imx-tpm.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git

[PATCH 5/7] clocksource/drivers/timer-imx-gpt: Switch to SPDX identifier

2018-05-29 Thread Daniel Lezcano
From: Fabio Estevam Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Fabio Estevam Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-imx-gpt.c | 26 ++ 1 file changed, 6 insertions(+), 20 deletions(-) diff

[PATCH 4/7] clocksource/drivers/timer-imx-gpt: Remove outdated file path

2018-05-29 Thread Daniel Lezcano
From: Fabio Estevam imx gpt timer driver has been moved from arch/arm/mach-imx to drivers/clocksource/ a long time ago, so remove the reference to the old file path. Signed-off-by: Fabio Estevam Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-imx-gpt.c | 2 -- 1 file changed, 2

Re: [PATCH 3/3] thermal: broadcom: Add Stingray thermal driver

2018-05-29 Thread kbuild test robot
Hi Pramod, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on soc-thermal/next] [also build test WARNING on v4.17-rc7 next-20180529] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

Re: [PATCH 1/7] atomics/tty: add missing atomic_long_t * cast

2018-05-29 Thread Greg Kroah-Hartman
On Tue, May 29, 2018 at 07:07:40PM +0100, Mark Rutland wrote: > In ldsem_cmpxchg a pointer to unsigned long is passed to > atomic_long_cmpxchg(), which expects a pointer to atomic_long_t. > > In preparation for making the atomic_long_* APIs type safe, add a cast > before passing the value to

Re: [PATCH 4.16 000/272] 4.16.13-stable review

2018-05-29 Thread Shuah Khan
On 05/28/2018 04:00 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.13 release. > There are 272 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 2/3 V2] x86/mce: Fix incorrect "Machine check from unknown source" message

2018-05-29 Thread Dan Williams
On Tue, May 29, 2018 at 11:54 AM, Luck, Tony wrote: > On Tue, May 29, 2018 at 07:53:14PM +0200, Borislav Petkov wrote: [..] > P.S. What happened to my "part 3/3" (updating the Skylake quirk) > ... does that belong in somebody else's tree? I have no qualms taking it through the nvdimm tree with

Re: [PATCH] mm: Change return type to vm_fault_t

2018-05-29 Thread Matthew Wilcox
On Tue, May 29, 2018 at 09:25:05PM +0530, Souptick Joarder wrote: > On Tue, May 29, 2018 at 8:20 PM, Matthew Wilcox wrote: > > On Tue, May 29, 2018 at 08:01:26PM +0530, Souptick Joarder wrote: > >> Use new return type vm_fault_t for fault handler. For > >> now, this is just documenting that the

Re: [PATCH bpf 2/2] bpf: enforce usage of __aligned_u64 in the UAPI header

2018-05-29 Thread Song Liu
On Sun, May 27, 2018 at 4:28 AM, Eugene Syromiatnikov wrote: > Use __aligned_u64 instead of __u64 everywhere in the UAPI header, > similarly to v4.17-rc1~94^2~58^2 "RDMA: Change all uapi headers to use > __aligned_u64 instead of __u64". > > This commit doesn't change structure layouts, but

Re: [PATCH 2/6] lib/rhashtable: guarantee initial hashtable allocation

2018-05-29 Thread Herbert Xu
On Tue, May 29, 2018 at 10:55:13AM -0700, Davidlohr Bueso wrote: > On Wed, 30 May 2018, Herbert Xu wrote: > > > On Tue, May 29, 2018 at 09:42:31AM -0700, Davidlohr Bueso wrote: > > > > > > For the sake of simplicity, Linus suggested directly using HASH_MIN_SIZE > > > such that we have a single

Re: [PATCH 1/9] Input: mt - export MT_TOOL in input_mt_init_slot()

2018-05-29 Thread Dmitry Torokhov
Hi Benjamin, On Tue, May 29, 2018 at 11:57:52AM +0200, Benjamin Tissoires wrote: > Looks like we require users to set a tool but input_mt_init_slots() never > set the tool bit for us. Meaning that this is a useless information the > driver tries to forward. I am not sure if I agree with this

Re: KASAN: use-after-free Read in crypto_destroy_tfm

2018-05-29 Thread Eric Biggers
On Sat, May 26, 2018 at 07:41:34PM +0200, 'Dmitry Vyukov' via syzkaller-bugs wrote: > On Sat, May 26, 2018 at 7:40 PM, syzbot > wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:0644f186fc9d Merge tag 'for_linus' of git://git.kernel.org.. > > git tree:

[PATCH 2/7] clocksource/drivers/mips-gic-timer: Add pr_fmt and reword pr_* messages

2018-05-29 Thread Daniel Lezcano
From: Matt Redfearn Several messages from the MIPS GIC driver include the text "GIC", "GIC timer", etc, but the format is not standard. Add a pr_fmt of "mips-gic-timer: " and reword the messages now that they will be prefixed with the driver name. Signed-off-by: Matt Redfearn Signed-off-by:

[PATCH 1/7] clocksource/drivers/sprd: Fix Kconfig dependency

2018-05-29 Thread Daniel Lezcano
From: Chunyan Zhang SPRD arch doesn't select SPRD_TIMER, so this config would not appear even if ARCH_SPRD is set but COMPILE_TEST not. Fix the dependency of this config with SPRD arch, and set a default value for it, also leave other choices for EXPERT. Signed-off-by: Chunyan Zhang

Re: LKMM litmus test for Roman Penyaev's rcu-rr

2018-05-29 Thread Paul E. McKenney
On Tue, May 29, 2018 at 02:35:34PM -0400, Alan Stern wrote: > On Mon, 28 May 2018, Paul E. McKenney wrote: > > > Hello! > > > > The litmus test below is a first attempt to model Roman's rcu-rr > > round-robin RCU-protected linked list. His test code, which includes > > the algorithm under test,

[PATCH 2/2] PCI: imx: Initial imx7d pm support

2018-05-29 Thread Leonard Crestez
On imx7d the phy is turned off in suspend and must be reset on resume. Right now lspci -v fails after a suspend/resume cycle, fix this by adding minimal suspend/resume code from the nxp vendor tree. This is currently only enabled for imx7 but the same sequence can be applied to other imx pcie

[PATCH 1/2] reset: imx7: Fix always writing bits as 0

2018-05-29 Thread Leonard Crestez
Right now the only user of reset-imx7 is pci-imx6 and the reset_control_assert and deassert calls on pciephy_reset don't toggle the PCIEPHY_BTN and PCIEPHY_G_RST bits as expected. Fix this by writing 1 or 0 respectively. The reference manual is not very clear regarding SRC_PCIEPHY_RCR but for

[PATCH 0/2] PCI: Initial imx7d pm support

2018-05-29 Thread Leonard Crestez
This series adds initial pm support on imx7d so that after suspend/resume lspci works again. This mostly copies the resume sequence from the imx tree. More can be done later to reduce power in suspend as well as adding support for other socs. This is motivated mostly by a desire to bring imx PM

Re: [PATCH] [RESEND] selftest: intel_pstate: debug support message from aperf.c and return value fix.

2018-05-29 Thread Shuah Khan
On 05/29/2018 11:24 AM, Jeffrin Jose T wrote: > Additional message along with an error message which is more > verbose for debug support from aperf.c and updated with the > new return value "KSFT_SKIP". > > Signed-off-by: Jeffrin Jose T [Rajagiri SET] > --- >

Re: [PATCH 2/6] lib/rhashtable: guarantee initial hashtable allocation

2018-05-29 Thread Herbert Xu
On Tue, May 29, 2018 at 09:42:31AM -0700, Davidlohr Bueso wrote: > > For the sake of simplicity, Linus suggested directly using HASH_MIN_SIZE > such that we have a single fallback. Where did he suggest that? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

[PATCH v4 4/8] firmware: add call to LSM hook before firmware sysfs fallback

2018-05-29 Thread Mimi Zohar
Add an LSM hook prior to allowing firmware sysfs fallback loading. Signed-off-by: Mimi Zohar Cc: Luis R. Rodriguez Cc: David Howells Cc: Kees Cook Changelog v4: - call new LSM security_kernel_arg hook Changelog v2: - call security_kernel_read_blob() - rename the READING_FIRMWARE_FALLBACK

[PATCH 4/7] atomics: add common header generation files

2018-05-29 Thread Mark Rutland
To minimize repetition, to allow for future rework, and to ensure regularity of the various atomic APIs, we'd like to automatically generate (the bulk of) a number of headers related to atomics. This patch adds the infrastructure to do so, leaving actual conversion of headers to subsequent

[PATCH 2/7] atomics/treewide: rework ordering barriers

2018-05-29 Thread Mark Rutland
Currently architectures can override __atomic_op_*() to define the barriers used before/after a relaxed atomic when used to build acquire/release/fence variants. This has the unfortunate property of requiring the architecture to define the full wrapper for the atomics, rather than just the

[PATCH] staging: comedi: comedi_usb.h: SPDX License Identifier is added in the first line

2018-05-29 Thread Bhanusree Pola
SPDX License Identifier is added in form of a comment. Signed-off-by: Bhanusree Pola --- drivers/staging/comedi/comedi_usb.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/comedi_usb.h b/drivers/staging/comedi/comedi_usb.h index 50287de..601e29d

Re: [PATCH 4.4 000/268] 4.4.134-stable review

2018-05-29 Thread Shuah Khan
On 05/28/2018 03:59 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.134 release. > There are 268 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH RFC tools/memory-model] Add litmus-test naming scheme

2018-05-29 Thread Will Deacon
On Tue, May 29, 2018 at 05:11:07AM -0700, Paul E. McKenney wrote: > On Tue, May 29, 2018 at 10:30:50AM +0100, Will Deacon wrote: > > Hi Paul, > > > > On Fri, May 25, 2018 at 12:10:20PM -0700, Paul E. McKenney wrote: > > > This commit documents the scheme used to generate the names for the > > >

Re: [PATCH 2/6] lib/rhashtable: guarantee initial hashtable allocation

2018-05-29 Thread Davidlohr Bueso
On Wed, 30 May 2018, Herbert Xu wrote: Well I think we should respect min_size. rhashtable users may fail at insertion time if the table is too small. I'm fine either way.

Re: [PATCH 2/8] xen/balloon: Move common memory reservation routines to a module

2018-05-29 Thread Boris Ostrovsky
On 05/25/2018 11:33 AM, Oleksandr Andrushchenko wrote: > + > +void xenmem_reservation_va_mapping_update(unsigned long count, > + struct page **pages, > + xen_pfn_t *frames) > +{ > +#ifdef CONFIG_XEN_HAVE_PVMMU > + int

[GIT PULL] clockevents / clocksource changes for 4.18

2018-05-29 Thread Daniel Lezcano
Hi Thomas, this pull request contains the following changes: - Fix Kconfig dependency on the spreadtrum timer (Chunyan Zhang) - Add comment describing in details the reason why the local interrupt is disabled (Eugeniy Paltsev) - Fix outdated file path and add the SPDX tag for the imx

Re: [PATCH 4.16 000/272] 4.16.13-stable review

2018-05-29 Thread Rafael Tinoco
The following bug has been opened for LTP: https://github.com/linux-test-project/ltp/issues/319 for the CVE-2017-5669's wrong assumptions (based on Davidlohr's work). I'll change the test to cover both scenarios and expect the right results from them. > On 29 May 2018, at 04:08, Greg

Re: [PATCH v3 01/16] mtd: rawnand: helper function for setting up ECC configuration

2018-05-29 Thread Boris Brezillon
On Sat, 26 May 2018 10:42:47 +0200 Miquel Raynal wrote: > Hi Abhishek, > > On Fri, 25 May 2018 17:51:29 +0530, Abhishek Sahu > wrote: > > > commit 2c8f8afa7f92 ("mtd: nand: add generic helpers to check, > > match, maximize ECC settings") provides generic helpers which > > drivers can use for

[GIT PULL rcu/next] Additional RCU commit for 4.18

2018-05-29 Thread Paul E. McKenney
Hello, Ingo, This additional v4.18 pull request contains a single commit that fell through the cracks: 1. Provide early rcu_cpu_starting() callback for the benefit of the x86/mtrr code, which needs RCU to be available on incoming CPUs earlier than has been the case in the

RE: [PATCH 2/3 V2] x86/mce: Fix incorrect "Machine check from unknown source" message

2018-05-29 Thread Luck, Tony
> It is still assigning. Ah. That would be because I forgot to "git add" before "git commit --amend" :-( > I'll simply do: > > if (worst >= MCE_PANIC_SEVERITY && mca_cfg.tolerant < 3) { > mce_severity(, cfg->tolerant, , true); > mce_panic("Local fatal machine

Re: [PATCH 2/6] lib/rhashtable: guarantee initial hashtable allocation

2018-05-29 Thread Davidlohr Bueso
On Wed, 30 May 2018, Herbert Xu wrote: On Tue, May 29, 2018 at 09:42:31AM -0700, Davidlohr Bueso wrote: For the sake of simplicity, Linus suggested directly using HASH_MIN_SIZE such that we have a single fallback. Where did he suggest that? https://lkml.org/lkml/2018/5/24/1265

Re: [PATCH] procfs: use inline functions instead of macros for proc_create_single_data stub

2018-05-29 Thread Boris Brezillon
On Fri, 25 May 2018 23:45:00 +0200 Arnd Bergmann wrote: > The procfs interface changes caused one warning in afs for > a now unused function: > > fs/afs/proc.c:818:12: error: 'afs_proc_stats_show' defined but not used > [-Werror=unused-function] > static int afs_proc_stats_show(struct

[PATCH 1/7] atomics/tty: add missing atomic_long_t * cast

2018-05-29 Thread Mark Rutland
In ldsem_cmpxchg a pointer to unsigned long is passed to atomic_long_cmpxchg(), which expects a pointer to atomic_long_t. In preparation for making the atomic_long_* APIs type safe, add a cast before passing the value to atomic_long_cmpxchg(). Similar is already done in ldsem_atomic_update() when

Re: [PATCH 02/11] PM / devfreq: Fix handling of min/max_freq == 0

2018-05-29 Thread Matthias Kaehlcke
On Mon, May 28, 2018 at 03:37:47PM +0900, Chanwoo Choi wrote: > Hi, > > On 2018년 05월 26일 05:30, Matthias Kaehlcke wrote: > > Commit ab8f58ad72c4 ("PM / devfreq: Set min/max_freq when adding the > > devfreq device") initializes df->min/max_freq with the min/max OPP when > > the device is added.

Re: [RESEND PATCH] dmaengine: pxa: add a default requestor policy

2018-05-29 Thread Robert Jarzmik
Vinod writes: > On 26-05-18, 11:54, Robert Jarzmik wrote: >> @@ -762,6 +762,8 @@ static void pxad_free_chan_resources(struct dma_chan >> *dchan) >> dma_pool_destroy(chan->desc_pool); >> chan->desc_pool = NULL; >> >> +chan->drcmr = (u32)-1; > > why not use U32_MAX for this? But

PostgreSQL licensed code on Linux

2018-05-29 Thread Luis R. Rodriguez
The question over future possible PostgreSQL licensed code on Linux came up to me recently. While doing some quick of digging around I found code already under such license it seems: The file drivers/md/bcache/util.c has: cafe563591446 (Kent Overstreet 2013-03-23 16:11:31 -0700 318) /*

Re: PostgreSQL licensed code on Linux

2018-05-29 Thread Kent Overstreet
On Tue, May 29, 2018 at 12:14:01PM -0700, Luis R. Rodriguez wrote: > The question over future possible PostgreSQL licensed code on Linux came up > to me recently. While doing some quick of digging around I found code > already under such license it seems: > > The file drivers/md/bcache/util.c

Re: [PATCH 4.14 000/496] 4.14.45-stable review

2018-05-29 Thread Shuah Khan
On 05/28/2018 03:56 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.45 release. > There are 496 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

[PATCH v2 2/7] dax: change bdev_dax_supported() to support boolean returns

2018-05-29 Thread Ross Zwisler
From: Dave Jiang The function return values are confusing with the way the function is named. We expect a true or false return value but it actually returns 0/-errno. This makes the code very confusing. Changing the return values to return a bool where if DAX is supported then return true and

Re: [PATCH 3.18 000/185] 3.18.111-stable review

2018-05-29 Thread Shuah Khan
On 05/28/2018 04:00 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.111 release. > There are 185 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH 07/11] PM / devfreg: Add support policy notifiers

2018-05-29 Thread Matthias Kaehlcke
On Mon, May 28, 2018 at 02:19:49PM +0900, MyungJoo Ham wrote: > >Policy notifiers are called before a frequency change and may narrow > >the min/max frequency range in devfreq_policy, which is used to adjust > >the target frequency if it is beyond this range. > > > >Also add a few helpers: > > -

Re: [RFC PATCH 00/16] x86/split_lock: Enable #AC exception for split locked accesses

2018-05-29 Thread Fenghua Yu
On Tue, May 29, 2018 at 09:40:09AM -0700, Dave Hansen wrote: > On 05/27/2018 08:45 AM, Fenghua Yu wrote: > > A split lock is any atomic operation whose operand crosses two cache > > lines. Since the operand spans two cache lines and the operation must > > be atomic, the system locks the bus while

[PATCH] staging: mt7621-mmc: Fix line size exceeding 80 columns.

2018-05-29 Thread Sankalp Negi
This patch fixes the checkpatch.pl warning: WARNING: line over 80 characters Signed-off-by: Sankalp Negi --- drivers/staging/mt7621-mmc/dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/mt7621-mmc/dbg.c b/drivers/staging/mt7621-mmc/dbg.c index

Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-05-29 Thread Boris Brezillon
On Tue, 29 May 2018 17:46:21 +0200 Boris Brezillon wrote: > On Tue, 29 May 2018 18:21:40 +0300 > Eugen Hristev wrote: > > > On 29.05.2018 18:15, Boris Brezillon wrote: > > > On Tue, 29 May 2018 18:01:40 +0300 > > > Eugen Hristev wrote: > > > > > >> [...] > > >> > > >> > > >>> > >

[PATCH] PCI: dwc: Do not let PCIE_DW_PLAT_HOST default to yes

2018-05-29 Thread Geert Uytterhoeven
PCIE_DW_PLAT_HOST does not have any platform dependency, so it should not default to yes. Fixes: 1d906b22076e12cf ("PCI: dwc: Add support for EP mode") Signed-off-by: Geert Uytterhoeven --- drivers/pci/dwc/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/Kconfig

Re: [PATCHv1] timekeeping: Update multiplier when NTP frequency is set directly

2018-05-29 Thread John Stultz
On Tue, May 29, 2018 at 3:53 AM, Miroslav Lichvar wrote: > When the NTP frequency is set directly from userspace using the > ADJ_FREQUENCY or ADJ_TICK timex mode, immediately update the > timekeeper's multiplier instead of waiting for the next tick. > > This removes a hidden non-deterministic

[PATCH] Documentation: fpga: cleanup

2018-05-29 Thread Alan Tull
Hi Greg, This patch fixes the minor spelling/typos/etc that Randy Dunlap pointed out in his review. This patch applies cleanly on char-misc-next; kernel-doc builds with no warnings for fpga docs. Thanks, Alan Alan Tull (1): Documentation: fpga: cleanup

Re: [RFC PATCH 0/5] kmalloc-reclaimable caches

2018-05-29 Thread Johannes Weiner
On Mon, May 28, 2018 at 10:15:46AM +0200, Vlastimil Babka wrote: > On 05/24/2018 05:32 PM, Johannes Weiner wrote: > > On Thu, May 24, 2018 at 01:00:06PM +0200, Vlastimil Babka wrote: > >> - the vmstat/meminfo counter name is rather general and might suggest it > >> also > >> includes

[PATCH] Documentation: fpga: cleanup

2018-05-29 Thread Alan Tull
Minor fixes including: * fix some typos * correct use of a/an * rephrase explanation of .state ops function * s/re-use/reuse/ (use only one spelling of 'reuse' in these docs) * s/cpu/CPU/ Signed-off-by: Alan Tull --- Documentation/driver-api/fpga/fpga-mgr.rst| 12 ++--

[-next fix PATCH] checkpatch: Fix missing close parenthesis

2018-05-29 Thread Joe Perches
Latest -next has a missing close parenthesis in the patch that adds better recognition for rename only patches. Add it. Signed-off-by: Joe Perches --- Dunno how that happened. Maybe this could be rolled into the appropriate patch that added this change. scripts/checkpatch.pl | 2 +- 1 file

Re: [PATCH 01/11] PM / devfreq: Init user limits from OPP limits, not viceversa

2018-05-29 Thread Matthias Kaehlcke
On Mon, May 28, 2018 at 02:26:49PM +0900, Chanwoo Choi wrote: > Hi, > > On 2018년 05월 26일 05:30, Matthias Kaehlcke wrote: > > Commit ab8f58ad72c4 ("PM / devfreq: Set min/max_freq when adding > > the devfreq device") introduced the initialization of the user > > limits min/max_freq from the

Re: [PATCH v1] i2c: tegra: Remove suspend-resume

2018-05-29 Thread Wolfram Sang
> > Our I2C driver is based on the interrupt. So we have converted the > > suspend/resume to suspend_noirq and reseume_noirq so that we will not allow > > the > > transfer when system interrupt disabled in downstream. > >   SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(tegra_i2c_suspend,

Re: [PATCH 2/3 V2] x86/mce: Fix incorrect "Machine check from unknown source" message

2018-05-29 Thread Luck, Tony
On Tue, May 29, 2018 at 07:53:14PM +0200, Borislav Petkov wrote: > Nah, the cleanups will all go ontop. This is just a dirty branch to show > my intention but yours go first and then the cleanup. Couple of thoughts: In "x86/mce: Carve out bank scanning code" you drop the extra call to

[PATCH] platform/chrome: chromeos_laptop: fix touchpad button mapping on Celes

2018-05-29 Thread Dmitry Torokhov
Celes has newer touch controller (compared to the controllers used in older BayTrail-based devices) and so uses the same button mapping as Samus. This fixes the issue with mouse button being stuck in pressed state after the first click. Reported-by: Sultan Alsawaf Signed-off-by: Dmitry Torokhov

Re: [PATCH 4.9 000/329] 4.9.104-stable review

2018-05-29 Thread Shuah Khan
On 05/28/2018 03:58 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.104 release. > There are 329 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [RFC PATCH] m68k: set dma and coherent masks for Macintosh SONIC based ethernet

2018-05-29 Thread Michael Schmitz
Hi Finn, On Tue, May 29, 2018 at 5:38 PM, Finn Thain wrote: > I found some patches here, > http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/generic-dma-noncoherent.2 That's the most recent IIRC. Haven't begun looking at that yet - still stuck at

  1   2   3   4   5   6   7   8   9   10   >