Re: [PATCH] IB/cma: make config_item_type const

2017-10-12 Thread Parav Pandit
On Thu, Oct 12, 2017 at 10:04 AM, Bhumika Goyal wrote: > On Thu, Oct 12, 2017 at 2:20 PM, Bhumika Goyal wrote: >> This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and >> https://patchwork.kernel.org/patch/649/ >> >> Make these structures const as they are either passed to th

Re: [RFC 2/2] KVM: add virtio-pmem driver

2017-10-12 Thread Pankaj Gupta
> > This patch adds virtio-pmem driver for KVM guest. > > Guest reads the persistent memory range information > > over virtio bus from Qemu and reserves the range > > as persistent memory. Guest also allocates a block > > device corresponding to the pmem range which later > > can be ac

Re: [Qemu-devel] [RFC 1/2] pmem: Move reusable code to base header files

2017-10-12 Thread Pankaj Gupta
> > On Thu, Oct 12, 2017 at 8:50 AM, Pankaj Gupta wrote: > > This patch moves common code to base header files > > so that it can be used for both ACPI pmem and VIRTIO pmem > > drivers. More common code needs to be moved out in future > > based on functionality required for virtio_pmem drive

[PATCH 4.13 0/2] 4.13.7-stable review

2017-10-12 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.13.7 release. There are 2 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Oct 14 21:25:27 UTC 2017. Anything received

[PATCH 4.13 2/2] waitid(): Add missing access_ok() checks

2017-10-12 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 96ca579a1ecc943b75beba58bebb0356f6cc4b51 upstream. Adds missing access_ok() checks. CVE-2017-5123 Reported-by: Chris Salls Signed-off-by: Kees Cook Acked-by: Al Viro Fixe

[PATCH 4.13 1/2] watchdog: Revert "iTCO_wdt: all versions count down twice"

2017-10-12 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Wim Van Sebroeck commit fc61e83a29308601e6e8a0759e24fc8fe2122692 upstream. This reverts commit 1fccb73011ea8a5fa0c6d357c33fa29c695139ea. Reported as Bug 196509 - iTCO_wdt regression reboot bef

Re: [PATCH v3 22/33] tracing: Add support for 'field variables'

2017-10-12 Thread Tom Zanussi
Hi Namhyung, On Thu, 2017-10-12 at 11:52 +0900, Namhyung Kim wrote: > On Fri, Sep 22, 2017 at 03:00:02PM -0500, Tom Zanussi wrote: > > Users should be able to directly specify event fields in hist trigger > > 'actions' rather than being forced to explicitly create a variable for > > that purpose.

Re: [PATCH] scripts: fix faddr2line to work on last symbol

2017-10-12 Thread NeilBrown
On Thu, Oct 12 2017, Josh Poimboeuf wrote: > On Thu, Oct 12, 2017 at 02:22:04PM +1100, NeilBrown wrote: >> >> If faddr2line is given a function name which is the >> last one listed by "nm -n", it will fail because it >> never finds the next symbol. >> >> So teach the awk script to catch that pos

[PATCH] btrfs: Clean up unused variables in free-space-tree.c

2017-10-12 Thread Christos Gkekas
Remove variables 'start' and 'end', which are set but never used. Signed-off-by: Christos Gkekas --- fs/btrfs/free-space-tree.c | 4 1 file changed, 4 deletions(-) diff --git a/fs/btrfs/free-space-tree.c b/fs/btrfs/free-space-tree.c index 684f122..fe5e032 100644 --- a/fs/btrfs/free-space-t

Re: [Part2 PATCH v5.2 12.2/31] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-10-12 Thread Borislav Petkov
On Thu, Oct 12, 2017 at 04:11:18PM -0500, Brijesh Singh wrote: > The sev_exit() will be called for all the psp_device instance. we need > to set psp_misc_dev = NULL after deregistering the device. > > if (psp_misc_dev) { >   misc_deregister(psp_misc_dev); >    psp_misc_dev = NULL; Right, except w

Re: [PATCH] btrfs: Clean up unused variables in free-space-tree.c

2017-10-12 Thread Omar Sandoval
On Thu, Oct 12, 2017 at 10:40:42PM +0100, Christos Gkekas wrote: > Remove variables 'start' and 'end', which are set but never used. Oops. Reviewed-by: Omar Sandoval > Signed-off-by: Christos Gkekas > --- > fs/btrfs/free-space-tree.c | 4 > 1 file changed, 4 deletions(-) > > diff --git

[GIT PULL] xfs: fixes for 4.14-rc5

2017-10-12 Thread Darrick J. Wong
Hi Linus, Here's round three of bug fixes and other build problems. --D The following changes since commit e12199f85d0ad1b04ce6c425ad93cd847fe930bb: xfs: handle racy AIO in xfs_reflink_end_cow (2017-10-03 21:27:55 -0700) are available in the git repository at: git://git.kernel.org/pub/sc

Re: [PATCH 5/9] PCI: host: brcmstb: add dma-ranges for inbound traffic

2017-10-12 Thread Jim Quinlan
On Thu, Oct 12, 2017 at 2:04 PM, Robin Murphy wrote: > [+DMA API maintainers] > > On 11/10/17 23:34, Jim Quinlan wrote: >> The Broadcom STB PCIe host controller is intimately related to the >> memory subsystem. This close relationship adds complexity to how cpu >> system memory is mapped to PCIe

Re: [PATCH 1/3] sched/fair: Introduce scaled capacity awareness in find_idlest_cpu code path

2017-10-12 Thread Joel Fernandes
On Thu, Oct 12, 2017 at 10:03 AM, Rohit Jain wrote: > Hi Joel, Atish, > > Moving off-line discussions to LKML, just so everyone's on the same page, > I actually like this version now and it is outperforming my previous > code, so I am on board with this version. It makes the code simpler too. I t

Re: [RFC 1/2] cgroup, kthread: do not allow moving kthreads out of the root cgroup

2017-10-12 Thread Roman Gushchin
On Thu, Oct 12, 2017 at 09:24:45PM +0200, Peter Zijlstra wrote: > On Thu, Oct 12, 2017 at 06:37:22PM +0100, Roman Gushchin wrote: > > Attaching kernel threads to a non-root cgroup is generally a bad > > idea. Kernel threads are generally performing the work required > > to keep the system working a

Re: [v11 3/6] mm, oom: cgroup-aware OOM killer

2017-10-12 Thread David Rientjes
On Wed, 11 Oct 2017, Roman Gushchin wrote: > > But let's move the discussion forward to fix it. To avoid necessarily > > accounting memory to the root mem cgroup, have we considered if it is even > > necessary to address the root mem cgroup? For the users who opt-in to > > this heuristic, wou

Re: [PATCH 2/2] perf, tools: Don't force MetricExprs to lower case

2017-10-12 Thread Andi Kleen
> > I think I found the issue, could you please check following patch? > I did some testing and it appears to work. Thanks! Please submit it. Tested-by: Andi Kleen -Andi

Re: [Part2 PATCH v5.2 12.2/31] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-10-12 Thread Brijesh Singh
On 10/12/17 4:41 PM, Borislav Petkov wrote: > On Thu, Oct 12, 2017 at 04:11:18PM -0500, Brijesh Singh wrote: >> The sev_exit() will be called for all the psp_device instance. we need >> to set psp_misc_dev = NULL after deregistering the device. >> >> if (psp_misc_dev) { >>   misc_deregister(psp_mi

[PATCH] ceph: Delete unused variables in mds_client

2017-10-12 Thread Christos Gkekas
Remove variables in mds_client that are set but never used. Signed-off-by: Christos Gkekas --- fs/ceph/mds_client.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index f23c820..cadf9b6 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/m

Re: [RFC 2/2] KVM: add virtio-pmem driver

2017-10-12 Thread Dan Williams
On Thu, Oct 12, 2017 at 2:25 PM, Pankaj Gupta wrote: > >> > This patch adds virtio-pmem driver for KVM guest. >> > Guest reads the persistent memory range information >> > over virtio bus from Qemu and reserves the range >> > as persistent memory. Guest also allocates a block >> > device

[PATCH] auxdisplay: panel: mark expected switch fall-throughs

2017-10-12 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. In this particular case, notice that I replaced the "no break here, fall through" comments with "fall through" comments, which is what GCC is expecting to find. Signed-off-by: Gustavo A. R

Re: [RFC 1/2] cgroup, kthread: do not allow moving kthreads out of the root cgroup

2017-10-12 Thread David Rientjes
On Thu, 12 Oct 2017, Peter Zijlstra wrote: > > Attaching kernel threads to a non-root cgroup is generally a bad > > idea. Kernel threads are generally performing the work required > > to keep the system working and healthy, and applying various > > resource limits may affect system stability and p

[PATCH] atm: fore200e: mark expected switch fall-throughs

2017-10-12 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/atm/fore200e.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c index f8b7e86..12

Re: [PATCH v9 2/5] x86/cpuid: Add generic table for cpuid dependencies

2017-10-12 Thread Andi Kleen
On Thu, Oct 12, 2017 at 05:13:34PM +0200, Thomas Gleixner wrote: > On Thu, 12 Oct 2017, Ingo Molnar wrote: > > > > * Andi Kleen wrote: > > > > > --- /dev/null > > > +++ b/arch/x86/kernel/cpu/cpuid-deps.c > > > @@ -0,0 +1,109 @@ > > > +/* Declare dependencies between CPUIDs */ > > > +#include >

[PATCH 1/2] rtc: ds1305: switch to rtc_register_device

2017-10-12 Thread Alexandre Belloni
This allows for future improvement of the driver. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1305.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-ds1305.c b/drivers/rtc/rtc-ds1305.c index 72b22935eb62..c3232c818e65 100644 --- a/driver

[PATCH 2/2] rtc: ds1305: use generic nvmem

2017-10-12 Thread Alexandre Belloni
Instead of adding a binary sysfs attribute from the driver (which suffers from a race condition as the attribute appears after the device), use the core to register an nvmem device. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1305.c | 59 +--

[PATCH 2/2] rtc: m48t86: use generic nvmem

2017-10-12 Thread Alexandre Belloni
Instead of adding a binary sysfs attribute from the driver (which suffers from a race condition as the attribute appears after the device), use the core to register an nvmem device. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-m48t86.c | 48 +++

[PATCH 1/2] rtc: abx80x: switch to rtc_register_device

2017-10-12 Thread Alexandre Belloni
This allows for future improvement of the driver. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-abx80x.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-abx80x.c b/drivers/rtc/rtc-abx80x.c index fea9a60b06cf..442e62a3c9a9 100644 --- a/drivers

[PATCH 2/2] rtc: abx80x: solve race condition

2017-10-12 Thread Alexandre Belloni
There is a race condition that can happen if abx80x_probe() fails after the rtc registration succeeded. Solve that by moving the registration at the end of the probe function. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-abx80x.c | 10 +- 1 file changed, 5 insertions(+), 5 deleti

[PATCH 1/2] rtc: m48t86: switch to rtc_register_device

2017-10-12 Thread Alexandre Belloni
This allows for future improvement of the driver. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-m48t86.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-m48t86.c b/drivers/rtc/rtc-m48t86.c index 02af045305dd..22656a90cfc5 100644 --- a/drivers

[PATCH 3/3] rtc: ds1511: use generic nvmem

2017-10-12 Thread Alexandre Belloni
Instead of adding a binary sysfs attribute from the driver (which suffers from a race condition as the attribute appears after the device), use the core to register an nvmem device. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1511.c | 58 ++-

[PATCH 2/3] rtc: ds1511: allow waking platform

2017-10-12 Thread Alexandre Belloni
Disabling interrupts when removing the driver is bad practice as this will prevent some platform from waking up when using that RTC. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1511.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/rtc/rtc-ds1511.

[PATCH 1/3] rtc: ds1511: switch to rtc_register_device

2017-10-12 Thread Alexandre Belloni
This allows for future improvement of the driver. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1511.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c index 1b2dcb58c0ab..d44635178771 100644 --- a/drivers/r

[PATCH] tracing: x86/fpu: Remove unused tracepoints x86_fpu_state and x86_fpu_deactivate_state

2017-10-12 Thread Steven Rostedt
From: Steven Rostedt (VMware) Commit d1898b73 ("x86/fpu: Add tracepoints to dump FPU state at key points") added trace points x86_fpu_state and x86_fpu_deactivate_state, but never used them. Today they are still not used. As they take up and waste memory, remove them. Signed-off-by: Steven Roste

[PATCH 2/2] rtc: omap: switch to rtc_register_device

2017-10-12 Thread Alexandre Belloni
This removes a possible race condition and crash and allows for further improvement of the driver. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-omap.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index 3bdc04

[PATCH 1/2] rtc: omap: fix error path when pinctrl_register fails

2017-10-12 Thread Alexandre Belloni
If pinctrl_register() fails probe will return with an error without locking the RTC and disabling pm_runtime. Set ret and jump to err instead. Fixes: 97ea1906b3c2 ("rtc: omap: Support ext_wakeup configuration") Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-omap.c | 3 ++- 1 file changed,

[PATCH net-next] net: dsa: set random switch address

2017-10-12 Thread Vivien Didelot
An Ethernet switch may support having a MAC address, which can be used as the switch's source address in transmitted full-duplex Pause frames. If a DSA switch supports the related .set_addr operation, the DSA core sets the master's MAC address on the switch. This won't make sense anymore in a mul

Re: [PATCH v9 2/5] x86/cpuid: Add generic table for cpuid dependencies

2017-10-12 Thread Andi Kleen
> > Why isn't this __initdata? It's referenced during cpu hotplug. Actually it should never change in this case, but it's hard to tell that to the dependency checker. -Andi

[PATCH] tracing, rcu: Remove no longer used trace event rcu_prep_idle

2017-10-12 Thread Steven Rostedt
From: Steven Rostedt (VMware) Commit c0f4dfd4f90 ("rcu: Make RCU_FAST_NO_HZ take advantage of numbered callbacks") removed the only instances of trace_rcu_prep_idle, but did not remove the TRACE_EVENT() that creates it. As defined trace events take up memory within the kernel even when they are n

Re: x86/mce: suspicious RCU usage in 4.13.4

2017-10-12 Thread Andi Kleen
On Thu, Oct 12, 2017 at 11:02:52AM +0200, Borislav Petkov wrote: > On Wed, Oct 11, 2017 at 04:11:37PM -0700, Andi Kleen wrote: > > Sorry I take back what I wrote earlier. This RCU is actually still needed, > > otherwise the reader could see partially written entries. > > Why? All the readers and w

[PATCH] mtip32xx: Clean up unused variables

2017-10-12 Thread Christos Gkekas
Remove variables that are set but never used. Signed-off-by: Christos Gkekas --- drivers/block/mtip32xx/mtip32xx.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 4a3cfc7..b8af735 100644 --- a/drivers/block/mt

[PATCH] tracing, rcu: Hide trace event rcu_nocb_wake when not used

2017-10-12 Thread Steven Rostedt
From: Steven Rostedt (VMware) The trace event rcu_nocb_wake is only used when CONFIG_RCU_NOCB_CPU is defined. But the trace event is defined regardless. As defined trace events take up memory, it is a waste to have it defined when not used. Surround the trace event with an #ifdef to have it only

Re: [RFC 2/2] KVM: add virtio-pmem driver

2017-10-12 Thread Pankaj Gupta
> > On Thu, Oct 12, 2017 at 2:25 PM, Pankaj Gupta wrote: > > > >> > This patch adds virtio-pmem driver for KVM guest. > >> > Guest reads the persistent memory range information > >> > over virtio bus from Qemu and reserves the range > >> > as persistent memory. Guest also allocates a blo

[PATCH] drm: Replace kzalloc with kcalloc

2017-10-12 Thread Harsha Sharma
Prefer kcalloc over kzalloc to allocate an array. This patch fixes checkcpatch issue. Signed-off-by: Harsha Sharma --- drivers/gpu/drm/drm_crtc_helper.c | 4 ++-- drivers/gpu/drm/drm_fb_helper.c| 2 +- drivers/gpu/drm/drm_plane_helper.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(

Re: [PATCH net-next] net: dsa: set random switch address

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:10 PM, Vivien Didelot wrote: > An Ethernet switch may support having a MAC address, which can be used > as the switch's source address in transmitted full-duplex Pause frames. > > If a DSA switch supports the related .set_addr operation, the DSA core > sets the master's MAC addres

Re: [Part2 PATCH v5.2 12.2/31] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-10-12 Thread Borislav Petkov
On Thu, Oct 12, 2017 at 04:52:32PM -0500, Brijesh Singh wrote: > See my above comment, I think the simplest solution is remove psp->sev_misc Ok, so far so good. But now you still need to track which is the last psp device and to call misc_deregister() only when the last device exits. Because if y

[PATCH] powerpc/powernv: Enable reset_devices parameter to issue a PHB reset

2017-10-12 Thread Guilherme G. Piccoli
During a kdump kernel boot in PowerPC, we request a reset of the PHBs to the FW. It makes sense, since if we are booting a kdump kernel it means we had some trouble before and we cannot rely in the adapters' health; they could be in a bad state, hence the reset is needed. But not only in a kdump k

[PATCH v2 0/2] Add support for ZSTD-compressed kernel

2017-10-12 Thread Nick Terrell
Hi, This patch set adds support for a ZSTD-compressed kernel and ramdisk images in the kernel boot process. It only integrates the support with x86, though the first patch is generic to all architectures. Zstandard requires slightly more memory during the kernel decompression on x86 (192 KB vs 64

[PATCH v2 1/2] lib: Add support for ZSTD-compressed kernel

2017-10-12 Thread Nick Terrell
Add support for extracting ZSTD-compressed kernel images, as well as ZSTD-compressed ramdisk images in the kernel boot process. When neither `fill' nor `flush' are used, the decompression function requires a constant amount of memory (192 KB is sufficient). When either is used the decompression fu

Re: [PATCH] Add -target to clang switches while cross compiling.

2017-10-12 Thread Alexei Starovoitov
On Thu, Oct 12, 2017 at 01:45:57PM -0700, Abhijit Ayarekar wrote: > Latest llvm update excludes assembly instructions. > As a result __ASM_SYSREGS_H define is not required. > -target switch includes appropriate target specific files. > > Tested on x86 and arm64 with llvm with git revision > commit

[PATCH] Bluetooth: mark expected switch fall-throughs

2017-10-12 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. In this particular case, notice that I replaced the "deliberate fall-through..." comment with a "fall through" comment, which is what GCC is expecting to find. Signed-off-by: Gustavo A. R.

[PATCH v2 2/2] x86: Add support for ZSTD-compressed kernel

2017-10-12 Thread Nick Terrell
Integrates the ZSTD decompression code to the x86 pre-boot code. Zstandard requires slightly more memory during the kernel decompression on x86 (192 KB vs 64 KB), and the memory usage is independent of the window size. Zstandard requires memory proportional to the window size used during compress

[PATCH] tracing: Hide power_domain_target trace event when not used

2017-10-12 Thread Steven Rostedt
From: Steven Rostedt (VMware) The power_domain_target trace event is only used by the ARM OMAP2 platform. Defining events when they are not used wastes memory. Until there are other users of the power_domain_target trace event, encapsulate it with #ifdef CONFIG_ARM_OMAP2 Signed-off-by: Steven Ro

Re: [PATCH] tracing, rcu: Remove no longer used trace event rcu_prep_idle

2017-10-12 Thread Paul E. McKenney
On Thu, Oct 12, 2017 at 06:12:57PM -0400, Steven Rostedt wrote: > From: Steven Rostedt (VMware) > > Commit c0f4dfd4f90 ("rcu: Make RCU_FAST_NO_HZ take advantage of > numbered callbacks") removed the only instances of trace_rcu_prep_idle, > but did not remove the TRACE_EVENT() that creates it. As

Re: [PATCH 0/3] PCI: rockchip: assert PERST# in S3

2017-10-12 Thread Doug Anderson
Hi, On Thu, Oct 12, 2017 at 1:52 PM, Brian Norris wrote: > Hi, > > This patch series should mostly be self-descriptive, but it's motivated by the > fact that I've found differing requirements from PCIe endpoint makers > regarding > the state of PERST# when in system suspend (S3). Additionally, s

Re: [RFC 2/2] KVM: add virtio-pmem driver

2017-10-12 Thread Rik van Riel
On Thu, 2017-10-12 at 18:18 -0400, Pankaj Gupta wrote: > > > > On Thu, Oct 12, 2017 at 2:25 PM, Pankaj Gupta > > wrote: > > > > > > > >   This patch adds virtio-pmem driver for KVM guest. > > > > >   Guest reads the persistent memory range information > > > > >   over virtio bus from Qemu and re

Re: [PATCH] MAINTAINERS: Add git repository to Renesas clock driver section

2017-10-12 Thread Stephen Boyd
On 10/04, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven > --- Acked-by: Stephen Boyd I take it this will come through some PR? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH] tracing, rcu: Remove no longer used trace event rcu_prep_idle

2017-10-12 Thread Steven Rostedt
On Thu, 12 Oct 2017 15:26:45 -0700 "Paul E. McKenney" wrote: > On Thu, Oct 12, 2017 at 06:12:57PM -0400, Steven Rostedt wrote: > > From: Steven Rostedt (VMware) > > > > Commit c0f4dfd4f90 ("rcu: Make RCU_FAST_NO_HZ take advantage of > > numbered callbacks") removed the only instances of trace_r

Re: [PATCH] mtip32xx: Clean up unused variables

2017-10-12 Thread Jens Axboe
On 10/12/2017 04:15 PM, Christos Gkekas wrote: > Remove variables that are set but never used. Looks good, applied for 4.15. -- Jens Axboe

Re: [PATCH net-next] net: dsa: set random switch address

2017-10-12 Thread Vivien Didelot
Hi Florian, Florian Fainelli writes: > On 10/12/2017 03:10 PM, Vivien Didelot wrote: >> An Ethernet switch may support having a MAC address, which can be used >> as the switch's source address in transmitted full-duplex Pause frames. >> >> If a DSA switch supports the related .set_addr operatio

Re: [RFC 2/2] KVM: add virtio-pmem driver

2017-10-12 Thread Pankaj Gupta
> > > > > > > > > >   This patch adds virtio-pmem driver for KVM guest. > > > > > >   Guest reads the persistent memory range information > > > > > >   over virtio bus from Qemu and reserves the range > > > > > >   as persistent memory. Guest also allocates a block > > > > > >   device correspondi

Re: [PATCH] kdb: use __ktime_get_real_seconds instead of __current_kernel_time

2017-10-12 Thread Andrew Morton
On Thu, 12 Oct 2017 16:06:11 +0200 Arnd Bergmann wrote: > kdb is the only user of the __current_kernel_time() interface, which is > not y2038 safe and should be removed at some point. > > The kdb code also goes to great lengths to print the time in a > human-readable format from 'struct timespec

[PATCH] tracing: bpf: Hide bpf trace events when they are not used

2017-10-12 Thread Steven Rostedt
From: Steven Rostedt (VMware) All the trace events defined in include/trace/events/bpf.h are only used when CONFIG_BPF_SYSCALL is defined. But this file gets included by include/linux/bpf_trace.h which is included by the networking code with CREATE_TRACE_POINTS defined. If a trace event is creat

Re: [PATCH net-next] net: dsa: set random switch address

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:35 PM, Vivien Didelot wrote: > Hi Florian, > > Florian Fainelli writes: > >> On 10/12/2017 03:10 PM, Vivien Didelot wrote: >>> An Ethernet switch may support having a MAC address, which can be used >>> as the switch's source address in transmitted full-duplex Pause frames. >>> >

Re: [PATCH] Add -target to clang switches while cross compiling.

2017-10-12 Thread Abhijit Ayarekar
On Thu, Oct 12, 2017 at 03:23:04PM -0700, Alexei Starovoitov wrote: > On Thu, Oct 12, 2017 at 01:45:57PM -0700, Abhijit Ayarekar wrote: > > Latest llvm update excludes assembly instructions. > > As a result __ASM_SYSREGS_H define is not required. > > -target switch includes appropriate target speci

Re: [PATCH] tracing, rcu: Hide trace event rcu_nocb_wake when not used

2017-10-12 Thread Paul E. McKenney
On Thu, Oct 12, 2017 at 06:16:41PM -0400, Steven Rostedt wrote: > From: Steven Rostedt (VMware) > > The trace event rcu_nocb_wake is only used when CONFIG_RCU_NOCB_CPU is > defined. But the trace event is defined regardless. As defined trace > events take up memory, it is a waste to have it defin

Re: [PATCH] ceph: Delete unused variables in mds_client

2017-10-12 Thread Gregory Farnum
On Thu, Oct 12, 2017 at 2:55 PM, Christos Gkekas wrote: > Remove variables in mds_client that are set but never used. Hmm, it looks like all the values removed here (except err) *are* used and this patch would break the world. Specifically... > > Signed-off-by: Christos Gkekas > --- > fs/ceph/

Re: [PATCH] tracing, rcu: Remove no longer used trace event rcu_prep_idle

2017-10-12 Thread Paul E. McKenney
On Thu, Oct 12, 2017 at 06:32:39PM -0400, Steven Rostedt wrote: > On Thu, 12 Oct 2017 15:26:45 -0700 > "Paul E. McKenney" wrote: > > > On Thu, Oct 12, 2017 at 06:12:57PM -0400, Steven Rostedt wrote: > > > From: Steven Rostedt (VMware) > > > > > > Commit c0f4dfd4f90 ("rcu: Make RCU_FAST_NO_HZ ta

[PATCH] tracing, memcg, vmscan: Hide trace events when not in use

2017-10-12 Thread Steven Rostedt
From: Steven Rostedt (VMware) When trace events are defined but not used they still create data structures and functions for their use, even though nothing may be using them. The trace events mm_vmscan_memcg_reclaim_begin, mm_vmscan_memcg_softlimit_reclaim_begin, mm_vmscan_memcg_reclaim_end, and

Re: [PATCH v4 0/9] Mediatek MT2712 clock and scpsys support

2017-10-12 Thread Stephen Boyd
On 09/19, Weiyi Lu wrote: > This series is based on v4.14-rc1 and composed of > clock control (PATCH 1-4) and scpsys control (PATCH 5-9) What's the merge plan? Can I apply the clk ones to clk tree and ignore the rest? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux

[PATCH net-next 2/5] net: dsa: add slave notify helper

2017-10-12 Thread Vivien Didelot
Both DSA slave create and destroy functions call call_dsa_notifiers with respectively DSA_PORT_REGISTER and DSA_PORT_UNREGISTER and the same dsa_notifier_register_info structure. Wrap this in a dsa_slave_notify helper so prevent cluttering these functions. Signed-off-by: Vivien Didelot --- net/

[PATCH net-next 4/5] net: dsa: add slave get master helper

2017-10-12 Thread Vivien Didelot
Many part of the DSA slave code require to get the master device assigned to a slave device. Remove dsa_master_netdev() in favor of a dsa_slave_get_master() helper which does that. Signed-off-by: Vivien Didelot --- net/dsa/dsa_priv.h | 13 - net/dsa/slave.c| 26 +-

[PATCH net-next 1/5] net: dsa: use port's cpu_dp when creating a slave

2017-10-12 Thread Vivien Didelot
When dsa_slave_create is called, the related port already has a CPU port assigned to it, available in its cpu_dp member. Use it instead of the unique tree cpu_dp. Signed-off-by: Vivien Didelot --- net/dsa/slave.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/net/dsa/

Re: [RFC 2/2] KVM: add virtio-pmem driver

2017-10-12 Thread Pankaj Gupta
> > > wrote: > > > > > > > > > >   This patch adds virtio-pmem driver for KVM guest. > > > > > >   Guest reads the persistent memory range information > > > > > >   over virtio bus from Qemu and reserves the range > > > > > >   as persistent memory. Guest also allocates a block > > > > > >   devi

[PATCH net-next 3/5] net: dsa: add slave to port helper

2017-10-12 Thread Vivien Didelot
Many portions of DSA core code require to get the dsa_port structure corresponding to a slave net_device. For this purpose, introduce a dsa_slave_to_port() helper. Signed-off-by: Vivien Didelot --- net/dsa/dsa_priv.h| 7 +++ net/dsa/legacy.c | 6 +- net/dsa/slave.c | 167 +

Re: [PATCH net-next 1/5] net: dsa: use port's cpu_dp when creating a slave

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:51 PM, Vivien Didelot wrote: > When dsa_slave_create is called, the related port already has a CPU port > assigned to it, available in its cpu_dp member. Use it instead of the > unique tree cpu_dp. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian

[PATCH net-next 0/5] net: dsa: master and slave helpers

2017-10-12 Thread Vivien Didelot
This patch series adds a few helpers to DSA core for clarity and readability but brings no functional changes. A dsa_slave_notify helper calls the DSA notifiers when (un)registering a slave device. Most of the DSA slave code only needs to access the dsa_port structure, not the dsa_slave_priv (whi

[PATCH net-next 5/5] net: dsa: split dsa_port's netdev member

2017-10-12 Thread Vivien Didelot
The dsa_port structure has a "netdev" member, which can be used for either the master device, or the slave device, depending on its type. It is true that today, CPU port are not exposed to userspace, thus the port's netdev member can be used to point to its master interface. But it is still sligh

[PATCH] crypto: qat: qat_common: qat_uclo - mark expected switch fall-throughs

2017-10-12 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/crypto/qat/qat_common/qat_uclo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/crypto/qat/qat_common/qat_uclo.c b/drivers/

Re: [PATCH net-next 2/5] net: dsa: add slave notify helper

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:51 PM, Vivien Didelot wrote: > Both DSA slave create and destroy functions call call_dsa_notifiers with > respectively DSA_PORT_REGISTER and DSA_PORT_UNREGISTER and the same > dsa_notifier_register_info structure. > > Wrap this in a dsa_slave_notify helper so prevent cluttering th

[PATCH] netfilter: nf_conntrack_h323: Remove typedef struct

2017-10-12 Thread Harsha Sharma
Remove typedef from struct as linux-kernel coding style tends to avoid using typedefs. Done using following coccinelle semantic patch @r1@ type T; @@ typedef struct { ... } T; @script:python c1@ T2; T << r1.T; @@ if T[-2:] =="_t" or T[-2:] == "_T": coccinelle.T2 = T[:-2]; else: c

Re: [PATCH v6 1/2] pid: Replace pid bitmap implementation with IDR API

2017-10-12 Thread Andrew Morton
On Wed, 11 Oct 2017 20:54:32 -0400 Rik van Riel wrote: > On Wed, 2017-10-11 at 15:37 -0700, Andrew Morton wrote: > > On Wed, 11 Oct 2017 18:19:38 -0400 Gargi Sharma > > wrote: > > > > > This patch replaces the current bitmap implemetation for > > > Process ID allocation. Functions that are no l

[PATCH v2 0/10] arm+arm64: vdso unification

2017-10-12 Thread Mark Salyzyn
Take an effort to recode the arm64 vdso code from assembler to C previously submitted by Andrew Pinski , rework it for use in both arm and arm64, overlapping any optimizations for each architecture. But instead of landing it in arm64, land the result into arm codebase and unify both implementations

[PATCH v2 1/10] arm: vdso: rename vdso_datapage variables

2017-10-12 Thread Mark Salyzyn
Rename seq_count to tb_seq_count. Rename tk_is_cntvct to use_syscall. Rename cs_mult to cs_mono_mult. All to align with the variables in the arm64 vdso datapage. Rework vdso_read_begin() and vdso_read_retry() functions to reflect modern access patterns for tb_seq_count field. Update copyright mess

Re: [RFC 2/2] KVM: add virtio-pmem driver

2017-10-12 Thread Dan Williams
On Thu, Oct 12, 2017 at 3:52 PM, Pankaj Gupta wrote: > Dan, > > I have a query regarding below patch [*]. My assumption is its halted > because of memory hotplug restructuring work? Anything I am missing > here? > > [*] https://www.mail-archive.com/linux-nvdimm@lists.01.org/msg02978.html It's fal

[PATCH v2 3/10] arm: vdso: inline assembler operations to compiler.h

2017-10-12 Thread Mark Salyzyn
Move compiler-specific code to a local compiler.h file. CONFIG_AEABI dependency check. System call fallback functions standardized into a DEFINE_FALLBACK macro. Accept that __arch_counter_get_cntvct() is the API for aarch64. Deal with unresolved references emitted by GCC. Optimize handling of fallb

Re: [PATCH net-next 3/5] net: dsa: add slave to port helper

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:51 PM, Vivien Didelot wrote: > Many portions of DSA core code require to get the dsa_port structure > corresponding to a slave net_device. For this purpose, introduce a > dsa_slave_to_port() helper. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian

[PATCH v2 4/10] arm: vdso: enforce monotonic and realtime as inline

2017-10-12 Thread Mark Salyzyn
Ensure monotonic and realtime are inline, small price to pay for high volume common request. Signed-off-by: Mark Salyzyn v2: split first CL into 4 of 7 pieces --- arch/arm/vdso/vgettimeofday.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/vdso/vgettimeofd

[PATCH v2 5/10] arm: vdso: do calculations outside reader loops

2017-10-12 Thread Mark Salyzyn
In variable timer reading loops, pick up just the values until all are synchronized, then outside of loop pick up cntvct and perform calculations to determine final offset, shifted and multiplied output value. This replaces get_ns with get_clock_shifted_nsec as cntvct reader. Signed-off-by: Mark

[PATCH v2 6/10] arm: vdso: Add support for CLOCK_MONOTONIC_RAW

2017-10-12 Thread Mark Salyzyn
Add a case for CLOCK_MONOTONIC_RAW to match up with support that is available in arm64's vdso. Signed-off-by: Mark Salyzyn v2: split first CL into 6 of 7 pieces --- arch/arm/include/asm/vdso_datapage.h | 4 +++ arch/arm/kernel/vdso.c | 5 arch/arm/vdso/vgettimeofday.c

[PATCH v2 7/10] arm: vdso: add support for clock_getres

2017-10-12 Thread Mark Salyzyn
Add clock_getres vdso support to match up with existing support in the arcm64's vdso. Signed-off-by: Mark Salyzyn v2: split first CL into 7 of 7 pieces --- arch/arm/kernel/vdso.c| 1 + arch/arm/vdso/vdso.lds.S | 1 + arch/arm/vdso/vgettimeofday.c | 23 +++ 3 f

[PATCH] tracing, drm/i915: Remove unused trace events

2017-10-12 Thread Steven Rostedt
From: Steven Rostedt (VMware) Commit ce8daef3580 ("drm/i915: Remove dead i915_gem_evict_everything()") removed the only instances of trace_i915_gem_evict_everything. Commit a7b9761d0a ("drm/i915: Split i915_gem_flush_ring() into seperate invalidate/flush funcs") removed the only instances of tra

[PATCH v2 8/10] arm: vdso: disable profiling

2017-10-12 Thread Mark Salyzyn
Make sure kasan and ubsan profiling, and kcov instrumentation, is turned off for VDSO code. Signed-off-by: Mark Salyzyn v2: Added this to the split up of first CL, based on comments in second CL --- arch/arm/vdso/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/a

[PATCH v2 2/10] arm: vdso: add include file defining __get_datapage()

2017-10-12 Thread Mark Salyzyn
Define the prototype for __get_datapage() in local datapage.h header. Rename all vdata variable that point to the datapage shortened to vd to relect a consistent and concise style. Make sure that all references to the datapage in vdso operations are readonly (const). Make sure datapage is first par

[PATCH v2 10/10] arm+arm64: vdso: Add support for CLOCK_BOOTTIME

2017-10-12 Thread Mark Salyzyn
Add a case for CLOCK_BOOTTIME as it is popular for measuring relative time on systems expected to suspend() or hibernate(). Signed-off-by: Mark Salyzyn v2: rebased and changed from 3/3 to 10/10, fortified commit message. --- arch/arm/include/asm/vdso_datapage.h | 1 + arch/arm/kernel/vdso.c

Re: [PATCH net-next 4/5] net: dsa: add slave get master helper

2017-10-12 Thread Florian Fainelli
On 10/12/2017 03:51 PM, Vivien Didelot wrote: > Many part of the DSA slave code require to get the master device > assigned to a slave device. Remove dsa_master_netdev() in favor of a > dsa_slave_get_master() helper which does that. > > Signed-off-by: Vivien Didelot > --- > +static inline struct

[PATCH v2 9/10] arm64: vdso: replace gettimeofday.S with arm vgettimeofday.C

2017-10-12 Thread Mark Salyzyn
Take an effort represented in the previous 8 patches to recode the arm64 vdso code from assembler to C previously submitted by Andrew Pinski , rework it for use in both arm and arm64, overlapping any optimizations for each architecture. apin...@cavium.com makes the following claims in the original

[PATCH] cpufreq: speedstep-lib: mark expected switch fall-through

2017-10-12 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/cpufreq/speedstep-lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/speedstep-lib.c b/drivers/cpufre

[RFC PATCH v9 for 4.15 00/14] Restartable sequences and CPU op vector system calls

2017-10-12 Thread Mathieu Desnoyers
Hi, This v9 series addresses the debugger single-stepping problem for restartable sequences by providing a new cpu_opv "cpu operation vector" system call, and let userspace defer execution of the critical sections to the kernel in case a restartable sequence gets restarted. This cpu_opv system ca

[RFC PATCH for 4.15 04/14] Restartable sequences: wire up ARM 32 system call

2017-10-12 Thread Mathieu Desnoyers
Wire up the rseq system call on 32-bit ARM. This provides an ABI improving the speed of a user-space getcpu operation on ARM by skipping the getcpu system call on the fast path, as well as improving the speed of user-space operations on per-cpu data compared to using load-linked/store-conditional.

<    3   4   5   6   7   8   9   10   >