[PATCH 1/8] arm: shmobile: Change platform dependency to ARCH_RENESAS

2018-04-20 Thread Geert Uytterhoeven
Since commit 9b5ba0df4ea4f940 ("ARM: shmobile: Introduce ARCH_RENESAS") is ARCH_RENESAS a more appropriate platform dependency than the legacy ARCH_SHMOBILE, hence use the former. This will allow to drop ARCH_SHMOBILE on ARM in the near future. Signed-off-by: Geert Uytterhoeven --- arch/arm/Kco

[PATCH 3/8] [media] v4l: rcar_fdp1: Change platform dependency to ARCH_RENESAS

2018-04-20 Thread Geert Uytterhoeven
The Renesas Fine Display Processor driver is used on Renesas R-Car SoCs only. Since commit 9b5ba0df4ea4f940 ("ARM: shmobile: Introduce ARCH_RENESAS") is ARCH_RENESAS a more appropriate platform dependency than the legacy ARCH_SHMOBILE, hence use the former. This will allow to drop ARCH_SHMOBILE o

Re: [RFC PATCH 2/2] HISI LPC: Add PNP device support

2018-04-20 Thread John Garry
On 20/04/2018 14:28, Andy Shevchenko wrote: On Fri, 2018-04-20 at 14:09 +0100, John Garry wrote: On 20/04/2018 13:50, Andy Shevchenko wrote: On Fri, 2018-04-20 at 18:07 +0800, John Garry wrote: + if (res->flags | IORESOURCE_IO) What does this mean? Here we check the

[PATCH v2 0/9] nds32: fix allmodconfig build

2018-04-20 Thread Greentime Hu
Hi, This patchset is used to fix the allmodconfig building errors. Changes in v2: - To fix the endian mismatch issue. - Use EXPORT_SYMBOL(save_stack_trace) like other architectures. Greentime Hu (9): nds32: lib: To use generic lib instead of libgcc to prevent the symbol undefined is

[PATCH v2 8/9] nds32: Fix build failed because arch_trace_hardirqs_off is changed to trace_hardirqs_off.

2018-04-20 Thread Greentime Hu
It broke the 'allmodconfig' build when CONFIG_TRACE_IRQFLAGS is enabled. Signed-off-by: Nick Chun-Ming Hu Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/kernel/ex-entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/nds32/kernel/ex-entry.S b/arch

[PATCH v2 6/9] nds32: Fix the symbols undefined issue by exporting them.

2018-04-20 Thread Greentime Hu
It broke the 'allmodconfig' build. LD vmlinux SYSMAP System.map Building modules, stage 2. MODPOST 5028 modules ERROR: "flush_dcache_page" [net/sunrpc/xprtrdma/rpcrdma.ko] undefined! ERROR: "empty_zero_page" [net/ceph/libceph.ko] undefined! ERROR: "save_stack_trace" [kernel/backtracet

[PATCH v2 9/9] nds32: Fix the allmodconfig build. To make sure CONFIG_CPU_LITTLE_ENDIAN is default y

2018-04-20 Thread Greentime Hu
This way we can build kernel with CONFIG_CPU_LITTLE_ENDIAN=y. Build allmodconfig and allnoconfig are available too. It also fix the endian mismatch issue because AFLAGS and LDFLAGS is not passed correctly. Signed-off-by: Vincent Ren-Wei Chen Signed-off-by: Greentime Hu --- arch/nds32/Kconfig.cp

[PATCH v2 3/9] nds32: Fix building error of crypto/xor.c by adding xor.h

2018-04-20 Thread Greentime Hu
When I compiled with allmodconfig, it caused this building failed. crypto/xor.c:25:21: fatal error: asm/xor.h: No such file or directory #include ^ compilation terminated. Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/include/asm/Kbuild | 1 + 1 file

[PATCH v2 5/9] nds32: Fix xfs_buf built failed by export invalidate_kernel_vmap_range and flush_kernel_vmap_range

2018-04-20 Thread Greentime Hu
It broke the 'allmodconfig' build. fs/xfs/xfs_buf.c: In function 'xfs_buf_bio_end_io': fs/xfs/xfs_buf.c:1242:3: error: implicit declaration of function 'invalidate_kernel_vmap_range' [-Werror=implicit-function-declaration] invalidate_kernel_vmap_range(bp->b_addr, xfs_buf_vmap_len(bp)); ^

[PATCH v2 4/9] nds32: Fix drivers/gpu/drm/udl/udl_fb.c building error by defining PAGE_SHARED

2018-04-20 Thread Greentime Hu
It broke the 'allmodconfig' build. drivers/gpu/drm/udl/udl_fb.c: In function 'udl_fb_mmap': drivers/gpu/drm/udl/udl_fb.c:183:52: error: 'PAGE_SHARED' undeclared (first use in this function) if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))

[PATCH v2 7/9] nds32: Fix the unknown type u8 issue.

2018-04-20 Thread Greentime Hu
It broke the 'allmodconfig' build. We need to include to make sure the type is defined before using it. Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- arch/nds32/include/asm/io.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/nds32/include/asm/io.h b/arch/nds32/include/asm

[PATCH v2 2/9] nds32: Fix building error when CONFIG_FREEZE is enabled.

2018-04-20 Thread Greentime Hu
To include kernel/Kconfig.freezer to make sure the dependency between CONFIG_CGROUP_FREEZER and CONFIG_FREEZER It will cause building error when I make allmodconfig. kernel/cgroup/freezer.c: In function 'freezer_css_online': kernel/cgroup/freezer.c:116:15: error: 'system_freezing_cnt' undeclared

[PATCH v2 1/9] nds32: lib: To use generic lib instead of libgcc to prevent the symbol undefined issue.

2018-04-20 Thread Greentime Hu
We can use the generic lib to fix these error because the symbol of libgcc in toolchain is not exported. ERROR: "__ucmpdi2" [fs/xfs/xfs.ko] undefined! ERROR: "__ashrdi3" [fs/xfs/xfs.ko] undefined! ERROR: "__lshrdi3" [fs/xfs/xfs.ko] undefined! ERROR: "__ashldi3" [fs/ntfs/ntfs.ko] undefined! ... Si

Re: [RFC PATCH 2/2] HISI LPC: Add PNP device support

2018-04-20 Thread John Garry
Hi Mika, /* @@ -469,8 +472,11 @@ static int hisi_lpc_acpi_probe(struct device *hostdev) struct acpi_device *child; int size, ret, count = 0, cell_num = 0; - list_for_each_entry(child, &adev->children, node) + list_for_each_entry(child, &adev->children, node) { +

Re: [PATCH net-next v4 0/3] kernel: add support to collect hardware logs in crash recovery kernel

2018-04-20 Thread Eric W. Biederman
Rahul Lakkireddy writes: > On Thursday, April 04/19/18, 2018 at 20:23:37 +0530, Eric W. Biederman wrote: >> Rahul Lakkireddy writes: >> >> > On Thursday, April 04/19/18, 2018 at 07:10:30 +0530, Dave Young wrote: >> >> On 04/18/18 at 06:01pm, Rahul Lakkireddy wrote: >> >> > On Wednesday, April 0

Re: [PATCH v2 01/10] media: v4l2-ctrls: Add missing v4l2 ctrl unlock

2018-04-20 Thread Hans Verkuil
On 04/19/18 17:41, Paul Kocialkowski wrote: > This adds a missing v4l2_ctrl_unlock call that is required to avoid > deadlocks. > > Signed-off-by: Paul Kocialkowski > --- > drivers/media/v4l2-core/v4l2-ctrls.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers

Re: [PATCH 0/8] arm: renesas: Change platform dependency to ARCH_RENESAS

2018-04-20 Thread Arnd Bergmann
On Fri, Apr 20, 2018 at 3:28 PM, Geert Uytterhoeven wrote: > Hi all, > > Commit 9b5ba0df4ea4f940 ("ARM: shmobile: Introduce ARCH_RENESAS") > started the conversion from ARCH_SHMOBILE to ARCH_RENESAS for Renesas > ARM SoCs. This patch series completes the conversion, by: > 1. Updating de

Re: [PATCH] kvmalloc: always use vmalloc if CONFIG_DEBUG_VM

2018-04-20 Thread Matthew Wilcox
On Fri, Apr 20, 2018 at 03:08:52PM +0200, Michal Hocko wrote: > > In order to detect these bugs reliably I submit this patch that changes > > kvmalloc to always use vmalloc if CONFIG_DEBUG_VM is turned on. > > No way. This is just wrong! First of all, you will explode most likely > on many allocat

Re: [PATCH] lib: micro-optimization for __bitmap_complement()

2018-04-20 Thread Yury Norov
Ping? On Wed, Apr 11, 2018 at 05:59:14PM +0300, Yury Norov wrote: > Use BITS_TO_LONGS() macro to avoid calculation of reminder > (bits % BITS_PER_LONG) On ARM64 it saves 5 instruction for function - > 16 before and 11 after. > > Signed-off-by: Yury Norov > --- > lib/bitmap.c | 5 + > 1 file

Re: [PATCH v2 03/10] videobuf2-core: Add helper to get buffer private data from media request

2018-04-20 Thread Hans Verkuil
On 04/19/18 17:41, Paul Kocialkowski wrote: > When calling media operation driver callbacks related to media requests, > only a pointer to the request itself is provided, which is insufficient > to retrieve the driver's context. Since the driver context is usually > set as vb2 queue private data an

Re: [PATCH v6 24/30] drm/rockchip: Disable PSR on input events

2018-04-20 Thread Andrzej Hajda
Hi Enric, On 05.04.2018 11:49, Enric Balletbo i Serra wrote: > From: "Kristian H. Kristensen" > > To improve PSR exit latency, we speculatively start exiting when we > receive input events. Occasionally, this may lead to false positives, > but most of the time we get a head start on coming out o

Re: [PATCH v2 02/10] media-request: Add a request complete operation to allow m2m scheduling

2018-04-20 Thread Hans Verkuil
On 04/19/18 17:41, Paul Kocialkowski wrote: > When using the request API in the context of a m2m driver, the > operations that come with a m2m run scheduling call in their > (m2m-specific) ioctl handler are delayed until the request is queued > (for instance, this includes queuing buffers and strea

Re: [PATCH] kvmalloc: always use vmalloc if CONFIG_DEBUG_VM

2018-04-20 Thread Michal Hocko
On Fri 20-04-18 06:41:36, Matthew Wilcox wrote: > On Fri, Apr 20, 2018 at 03:08:52PM +0200, Michal Hocko wrote: > > > In order to detect these bugs reliably I submit this patch that changes > > > kvmalloc to always use vmalloc if CONFIG_DEBUG_VM is turned on. > > > > No way. This is just wrong! Fi

[PATCH] gpio: pcie-idio-24: Fix off-by-one error in get_multiple loop

2018-04-20 Thread William Breathitt Gray
The PCIe-IDIO-24 features 8 bits of TTL GPIO which may be configured for output or input. This patch fixes an off-by-one error in the loop conditional for the get_multiple callback so that the TTL GPIO are handled. Fixes: ca37081595a2 ("gpio: pcie-idio-24: Implement get_multiple/set_multiple call

Re: [PATCH v2] KVM: Extend MAX_IRQ_ROUTES to 4096 for all archs

2018-04-20 Thread Wanpeng Li
2018-04-20 15:15 GMT+08:00 Cornelia Huck : > On Thu, 19 Apr 2018 17:47:28 -0700 > Wanpeng Li wrote: > >> From: Wanpeng Li >> >> Our virtual machines make use of device assignment by configuring >> 12 NVMe disks for high I/O performance. Each NVMe device has 129 >> MSI-X Table entries: >> Capabili

Re: [PATCH v6 24/30] drm/rockchip: Disable PSR on input events

2018-04-20 Thread Enric Balletbo i Serra
Hi Andrzej, On 20/04/18 15:47, Andrzej Hajda wrote: > Hi Enric, > > > On 05.04.2018 11:49, Enric Balletbo i Serra wrote: >> From: "Kristian H. Kristensen" >> >> To improve PSR exit latency, we speculatively start exiting when we >> receive input events. Occasionally, this may lead to false posi

Re: [RFC PATCH 1/2] ACPI / PNP: Don't add "enumeration_by_parent" devices

2018-04-20 Thread Mika Westerberg
On Fri, Apr 20, 2018 at 02:24:18PM +0100, John Garry wrote: > Hi Mika, > > On 20/04/2018 14:07, Mika Westerberg wrote: > > On Fri, Apr 20, 2018 at 06:07:25PM +0800, John Garry wrote: > > > + } else { > > > + device->driver_data = dev; > > > > I think this deserves a comment explaining why

Re: [PATCH bpf-next 1/5] samples/bpf: Fix typo in comment

2018-04-20 Thread Jesper Dangaard Brouer
On Fri, 20 Apr 2018 14:21:16 +0100 Daniel Thompson wrote: > On Fri, Apr 20, 2018 at 02:10:04PM +0200, Jesper Dangaard Brouer wrote: > > > > On Thu, 19 Apr 2018 09:34:02 +0800 Leo Yan wrote: > > > > > Fix typo by replacing 'iif' with 'if'. > > > > > > Signed-off-by: Leo Yan > > > --- > > >

Re: [RFC] vhost: introduce mdev based hardware vhost backend

2018-04-20 Thread Michael S. Tsirkin
On Fri, Apr 20, 2018 at 03:50:41AM +, Liang, Cunming wrote: > > > > -Original Message- > > From: Bie, Tiwei > > Sent: Friday, April 20, 2018 11:28 AM > > To: Michael S. Tsirkin > > Cc: Jason Wang ; alex.william...@redhat.com; > > ddut...@redhat.com; Duyck, Alexander H ; > > virtio-..

Re: [PATCH ghak80 V1] audit: add syscall information to FEATURE_CHANGE records

2018-04-20 Thread Richard Guy Briggs
On 2018-04-17 18:06, Paul Moore wrote: > On Wed, Apr 11, 2018 at 8:46 AM, Richard Guy Briggs wrote: > > Tie syscall information to FEATURE_CHANGE calls since it is a result of > > user action. > > > > See: https://github.com/linux-audit/audit-kernel/issues/80 > > > > Signed-off-by: Richard Guy Bri

Re: [PATCH] x86: ipc: fix x32 version of shmid64_ds and msqid64_ds

2018-04-20 Thread Jeffrey Walton
Hi Arnd, One comment here: > +#if !defined(__x86_64__) || !defined(__ilp32__) > #include > +#else I understand there's some progress having Clang compile the kernel. Clang treats __ILP32__ and friends differently than GCC. I believe ILP32 shows up just about everywhere there are 32-bit ints, l

Re: s390 perf events JSONs query

2018-04-20 Thread John Garry
this arch. Support was added for factoring out common arch events in https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/tools/perf/pmu-events?h=next-20180420&id=e9d32c1bf0cd7a98358ec4aa1625bf2b3459b9ac ARM64 chips use this feature. I am not familiar with the s390 arch, bu

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

2018-04-20 Thread Sean Paul
On Fri, Apr 20, 2018 at 01:50:01PM +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. > JFYI, in future, i

[no subject]

2018-04-20 Thread ronaldmugar
Hi Linux https://bit.ly/2K1tXfw

Re: [PATCH net-next 2/2] netns: isolate seqnums to use per-netns locks

2018-04-20 Thread Christian Brauner
On Wed, Apr 18, 2018 at 11:52:47PM +0200, Christian Brauner wrote: > On Wed, Apr 18, 2018 at 11:55:52AM -0500, Eric W. Biederman wrote: > > Christian Brauner writes: > > > > > Now that it's possible to have a different set of uevents in different > > > network namespaces, per-network namespace ue

Re: [PATCH v2 05/10] media: v4l: Add definitions for MPEG2 frame format and header metadata

2018-04-20 Thread Hans Verkuil
On 04/19/18 17:45, Paul Kocialkowski wrote: > Stateless video decoding engines require both the MPEG slices and > associated metadata from the video stream in order to decode frames. > > This introduces definitions for a new pixel format, describing buffers > with MPEG2 slice data, as well as a co

[PATCH] [net] ipv6: sr: fix NULL pointer dereference in seg6_do_srh_encap()- v4 pkts

2018-04-20 Thread Ahmed Abdelsalam
In case of seg6 in encap mode, seg6_do_srh_encap() calls set_tun_src() in order to set the src addr of outer IPv6 header. The net_device is required for set_tun_src(). However calling ip6_dst_idev() on dst_entry in case of IPv4 traffic results on the following bug. Using just dst->dev should fix

[PATCH net] tcp: don't read out-of-bounds opsize

2018-04-20 Thread Jann Horn
The old code reads the "opsize" variable from out-of-bounds memory (first byte behind the segment) if a broken TCP segment ends directly after an opcode that is neither EOL nor NOP. The result of the read isn't used for anything, so the worst thing that could theoretically happen is a pagefault; a

Re: [PATCH v2 06/10] media: v4l: Add definition for Allwinner's MB32-tiled NV12 format

2018-04-20 Thread Hans Verkuil
On 04/19/18 17:45, Paul Kocialkowski wrote: > This introduces support for Allwinner's MB32-tiled NV12 format, where > each plane is divided into macroblocks of 32x32 pixels. Hence, the size > of each plane has to be aligned to 32 bytes. The pixels inside each > macroblock are coded as they would be

Re: [PATCH v2 05/10] media: v4l: Add definitions for MPEG2 frame format and header metadata

2018-04-20 Thread Hans Verkuil
On 04/19/18 17:45, Paul Kocialkowski wrote: > Stateless video decoding engines require both the MPEG slices and > associated metadata from the video stream in order to decode frames. > > This introduces definitions for a new pixel format, describing buffers > with MPEG2 slice data, as well as a co

Re: [PATCH 1/2] IB/hfi1: Try slot reset before secondary bus reset

2018-04-20 Thread Bjorn Helgaas
[+cc Rajat, Alex because of their interest in the reset/hotplug issue] For context, Sinan's patch is this: > diff --git a/drivers/infiniband/hw/hfi1/pcie.c > b/drivers/infiniband/hw/hfi1/pcie.c > index 83d66e8..75f49e3 100644 > --- a/drivers/infiniband/hw/hfi1/pcie.c > +++ b/drivers/infiniband/h

Re: [PATCH] printk: Ratelimit messages printed by console drivers

2018-04-20 Thread Petr Mladek
On Fri 2018-04-20 08:04:28, Steven Rostedt wrote: > On Fri, 20 Apr 2018 11:12:24 +0200 > Petr Mladek wrote: > > > Yes, my number was arbitrary. The important thing is that it was long > > enough. Or do you know about an console that will not be able to write > > 100 lines within one hour? > > Th

Re: possible deadlock in blkdev_reread_part

2018-04-20 Thread Tetsuo Handa
Tetsuo Handa wrote: > Eric Biggers wrote: > > It seems that ->bd_mutex is held while opening and closing block devices, > > which > > should rank it above both ->lo_ctl_mutex and loop_index_mutex (see > > lo_open() and > > lo_release()). > > > > But blkdev_reread_part(), which takes ->bd_mutex,

Re: [kcov] watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper/0:1]

2018-04-20 Thread Andrey Ryabinin
On 04/19/2018 06:01 AM, Fengguang Wu wrote: > Hello, > > FYI this happens in mainline kernel 4.17.0-rc1. > It at least dates back to v4.8 . > > [ 25.697463] > [ 25.697463] Start testing find_bit() with random-filled bitmap > [ 25.736615] find_next_bit:30203201 ns, 163965 i

Re: [RFC PATCH 1/2] ACPI / PNP: Don't add "enumeration_by_parent" devices

2018-04-20 Thread John Garry
On 20/04/2018 14:52, Mika Westerberg wrote: On Fri, Apr 20, 2018 at 02:24:18PM +0100, John Garry wrote: Hi Mika, On 20/04/2018 14:07, Mika Westerberg wrote: On Fri, Apr 20, 2018 at 06:07:25PM +0800, John Garry wrote: + } else { + device->driver_data = dev; I think this d

Re: [PATCH v2] sched/rt: Rework for_each_process_thread() iterations in tg_has_rt_tasks()

2018-04-20 Thread Juri Lelli
On 20/04/18 13:06, Kirill Tkhai wrote: > From: Kirill Tkhai > > tg_rt_schedulable() iterates over all child task groups, > while tg_has_rt_tasks() iterates over all linked tasks. > In case of systems with big number of tasks, this may > take a lot of time. > > I observed hard LOCKUP on machine w

Re: [PATCH 1/2] IB/hfi1: Try slot reset before secondary bus reset

2018-04-20 Thread Dennis Dalessandro
On 4/19/2018 6:11 PM, Deucher, Alexander wrote: -Original Message- From: Bjorn Helgaas [mailto:helg...@kernel.org] Sent: Thursday, April 19, 2018 5:47 PM To: Jason Gunthorpe Cc: Sinan Kaya ; Bjorn Helgaas ; linux-...@vger.kernel.org; sulr...@codeaurora.org; ti...@codeaurora.org; linux-ar

Re: [RFC] vhost: introduce mdev based hardware vhost backend

2018-04-20 Thread Michael S. Tsirkin
On Fri, Apr 20, 2018 at 11:52:47AM +0800, Jason Wang wrote: > > The biggest issue is that you let userspace poke at the > > device which is also allowed by the IOMMU to poke at > > kernel memory (needed for kernel driver to work). > > I don't quite get. The userspace driver could be built on top o

Re: [PATCH V2] USB: Increment wakeup count on remote wakeup.

2018-04-20 Thread Alan Stern
On Thu, 19 Apr 2018, Ravi Chandra Sadineni wrote: > On chromebooks we depend on wakeup count to identify the wakeup source. > But currently USB devices do not increment the wakeup count when they > trigger the remote wake. This patch addresses the same. > > Resume condition is reported differentl

Re: s390 perf events JSONs query

2018-04-20 Thread Hendrik Brueckner
e JSONs contain many common (identical actually) events > >>between different chips for this arch. > >> > >>Support was added for factoring out common arch events in > >>https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/tools/perf/pmu-eve

Re: [PATCH] printk: Ratelimit messages printed by console drivers

2018-04-20 Thread Steven Rostedt
On Fri, 20 Apr 2018 16:01:57 +0200 Petr Mladek wrote: > On Fri 2018-04-20 08:04:28, Steven Rostedt wrote: > > On Fri, 20 Apr 2018 11:12:24 +0200 > > Petr Mladek wrote: > > > > > Yes, my number was arbitrary. The important thing is that it was long > > > enough. Or do you know about an console

Re: [RFC] perf/core: what is exclude_idle supposed to do

2018-04-20 Thread Vince Weaver
On Fri, 20 Apr 2018, Peter Zijlstra wrote: > On Wed, Apr 18, 2018 at 11:10:20AM -0400, Vince Weaver wrote: > > On Tue, 17 Apr 2018, Jiri Olsa wrote: > > > > > On Mon, Apr 16, 2018 at 10:04:53PM +, Stephane Eranian wrote: > > > > Hi, > > > > > > > > I am trying to understand what the exclude_

Re: [PATCH] printk: Ratelimit messages printed by console drivers

2018-04-20 Thread Steven Rostedt
On Fri, 20 Apr 2018 10:17:51 -0400 Steven Rostedt wrote: > int git_context(void) That should have been get_context(void) ;-) -- Steve

Re: [PATCH net] tcp: don't read out-of-bounds opsize

2018-04-20 Thread Eric Dumazet
On 04/20/2018 06:57 AM, Jann Horn wrote: > The old code reads the "opsize" variable from out-of-bounds memory (first > byte behind the segment) if a broken TCP segment ends directly after an > opcode that is neither EOL nor NOP. > > The result of the read isn't used for anything, so the worst th

Re: [PATCH v2] KVM: Extend MAX_IRQ_ROUTES to 4096 for all archs

2018-04-20 Thread Cornelia Huck
On Fri, 20 Apr 2018 21:51:13 +0800 Wanpeng Li wrote: > 2018-04-20 15:15 GMT+08:00 Cornelia Huck : > > On Thu, 19 Apr 2018 17:47:28 -0700 > > Wanpeng Li wrote: > > > >> From: Wanpeng Li > >> > >> Our virtual machines make use of device assignment by configuring > >> 12 NVMe disks for high I/O

Re: [PATCH 1/2] IB/hfi1: Try slot reset before secondary bus reset

2018-04-20 Thread Sinan Kaya
On 4/20/2018 10:00 AM, Bjorn Helgaas wrote: > [+cc Rajat, Alex because of their interest in the reset/hotplug issue] > > For context, Sinan's patch is this: > >> diff --git a/drivers/infiniband/hw/hfi1/pcie.c >> b/drivers/infiniband/hw/hfi1/pcie.c >> index 83d66e8..75f49e3 100644 >> --- a/driver

Re: [PATCHv3 3/8] drm/omap: add support for manually updated displays

2018-04-20 Thread Tony Lindgren
Hi, * Daniel Stone [180420 10:21]: > Hi Tomi, > > On 20 April 2018 at 08:09, Tomi Valkeinen wrote: > > It's actually not quite clear to me how manual update displays work with > > DRM... > > > > As far as I see, we have essentially two cases: 1) single buffering, > > where the userspace must se

Re: [PATCH] usb: musb: Support gadget mode when the port is set to dual role

2018-04-20 Thread Bin Liu
On Thu, Mar 29, 2018 at 01:57:24PM +0200, Paul Kocialkowski wrote: > Hi, > > On Thu, 2018-03-29 at 11:23 +0200, Maxime Ripard wrote: > > On Wed, Mar 28, 2018 at 11:52:13PM +0200, Paul Kocialkowski wrote: > > > This allows dual-role ports to be reported as having gadget mode by > > > the > > > musb

RE: linux-next: Tree for Apr 19 (dell smbios SMM)

2018-04-20 Thread Mario.Limonciello
> -Original Message- > From: Randy Dunlap [mailto:rdun...@infradead.org] > Sent: Thursday, April 19, 2018 1:00 PM > To: Stephen Rothwell; Linux-Next Mailing List > Cc: Linux Kernel Mailing List; Platform Driver; Limonciello, Mario > Subject: Re: linux-next: Tree for Apr 19 (dell smbios SMM)

RE: [PATCH v2] platform/x86: dell-wmi: Ignore new rfkill and fn-lock events

2018-04-20 Thread Mario.Limonciello
> -Original Message- > From: Pali Rohár [mailto:pali.ro...@gmail.com] > Sent: Friday, April 20, 2018 2:29 AM > To: Kai-Heng Feng > Cc: mj...@srcf.ucam.org; dvh...@infradead.org; a...@infradead.org; > Limonciello, Mario; platform-driver-...@vger.kernel.org; linux- > ker...@vger.kernel.org

Re: [PATCH v2] sched/rt: Rework for_each_process_thread() iterations in tg_has_rt_tasks()

2018-04-20 Thread Kirill Tkhai
On 20.04.2018 17:11, Juri Lelli wrote: > On 20/04/18 13:06, Kirill Tkhai wrote: >> From: Kirill Tkhai >> >> tg_rt_schedulable() iterates over all child task groups, >> while tg_has_rt_tasks() iterates over all linked tasks. >> In case of systems with big number of tasks, this may >> take a lot of

[PATCH 02/17] perf/core: Store context switch out type in PERF_RECORD_SWITCH[_CPU_WIDE]

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Store preempting context switch out event into Perf trace as a part of PERF_RECORD_SWITCH[_CPU_WIDE] record. Percentage of preempting and non-preempting context switches help understanding the nature of workloads (CPU or IO bound) that are running on a machine; The event i

[PATCH 03/17] perf report: Extend raw dump (-D) out with switch out event type

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Print additional 'preempt' tag for PERF_RECORD_SWITCH[_CPU_WIDE] OUT records when event header misc field contains PERF_RECORD_MISC_SWITCH_OUT_PREEMPT bit set designating preemption context switch out event: tools/perf/perf report -D -i perf.data | grep _SWITCH 0 76836141

[PATCH 11/17] perf hists browser: Clarify top/report browser help

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Clarify in the browser help that ESC in tui mode may go back to the previous screen instead of just exiting (was not clear to me) Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.org/r/20180406203812.3087-3-a...@firstfloor.org Signed-off-by: Arnaldo Carva

[PATCH 17/17] coresight: Move to SPDX identifier

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Mathieu Poirier Move CoreSight headers to the SPDX identifier. Signed-off-by: Mathieu Poirier Cc: Alexander Shishkin Cc: Greg Kroah-Hartman Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: linux-arm-ker...@lists.infradead.org Link: http://lkml.kernel.org/r/1524089118-27595-1-gi

[PATCH 15/17] perf tests mmap: Show which tracepoint is failing

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In the 'perf test "mmap interface"' we try creating events for several tracepoints, but when perf_evsel__new() fails we're not showing which one is failing, fix that to help diagnosing problems, such as the syscall tracepoints ones being found and fixes in this merg

[PATCH 16/17] perf test BPF: Fixup BPF test using epoll_pwait syscall function probe

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since e145242ea0df ("syscalls/core, syscalls/x86: Clean up syscall stub naming convention") changed the main syscall function for 'epoll_pwait' to something other than the expected 'SyS_epoll_pwait the' 'perf test BPF' entries started failing, fix it by using someth

Re: [PATCH v2] tracing: fix bad use of igrab in trace_uprobe.c

2018-04-20 Thread Miklos Szeredi
On Thu, Apr 19, 2018 at 6:37 PM, Song Liu wrote: > > >> On Apr 19, 2018, at 7:44 AM, Miklos Szeredi wrote: >> >> On Thu, Apr 19, 2018 at 10:58 AM, Miklos Szeredi wrote: >>> On Wed, Apr 18, 2018 at 7:40 PM, Song Liu wrote: *arg++ = '\0'; filename = argv[1]; r

[PATCH 14/17] perf tools: Add '\n' at the end of parse-options error messages

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria Few error messages does not have '\n' at the end and thus next prompt gets printed in the same line. Ex, linux~$ perf buildid-cache -verbose --add ./a.out Error: did you mean `--verbose` (with two dashes ?)linux~$ Fix it. Signed-off-by: Ravi Bangoria Reviewed-by: Masa

[PATCH 13/17] perf record: Remove suggestion to enable APIC

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Andi Kleen 'perf record' suggests to enable the APIC on errors. APIC is practically always used today and the problem is usually somewhere else. Just remove the outdated suggestion. Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.org/r/20180406203812.3087-5-a...@

[PATCH 12/17] perf record: Remove misleading error suggestion

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Andi Kleen When perf record encounters an error setting up an event it suggests to enable CONFIG_PERF_EVENTS. This is misleading because: - Usually it is enabled (it is really hard to disable on x86) - The problem is usually somewhere else, e.g. the CPU is not supported or an invalid conf

[PATCH 09/17] perf trace: Support MAP_FIXED_NOREPLACE

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Introduced in a4ff8e8620d3 ("mm: introduce MAP_FIXED_NOREPLACE"), and now that we have that define in the just syncronized tools/arch/*/include/uapi/asm/mman.h files, add support for it. This should really transition to autogeneration of string tables as done for v

[PATCH 10/17] perf mem: Allow all record/report options

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Andi Kleen For perf mem report / perf mem record, pass all unknown options through to the underlying report/record commands. This makes things like perf mem record -a sleep 1 work. Matches how c2c and other tools work. Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.ker

[PATCH 08/17] perf: Remove superfluous allocation error check

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa If the get_callchain_buffers fails to allocate the buffer it will decrease the nr_callchain_events right away. There's no point of checking the allocation error for nr_callchain_events > 1. Removing that check. Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc: A

[PATCH 07/17] perf: Fix sample_max_stack maximum check

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The syzbot hit KASAN bug in perf_callchain_store having the entry stored behind the allocated bounds [1]. We miss the sample_max_stack check for the initial event that allocates callchain buffers. This missing check allows to create an event with sample_max_stack value bigger tha

How to disable Linux kernel self-extraction (KERNEL_GZIP, KERNEL_BZIP2, …)?

2018-04-20 Thread Paul Menzel
Dear Linux folks, I try to decrease boot time, and my system has an SSD and enough space, so loading 18 instead of 12 MB doesn’t make a difference, but the self-extraction is noticeable. So, I like to disable it. From `init/Kconfig`: The linux kernel is a kind of self-extracting executable

[PATCH 06/17] perf: Return proper values for user stack errors

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Return immediately when we find issue in the user stack checks. The error value could get overwritten by following check for PERF_SAMPLE_REGS_INTR. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: H. Peter Anvin Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Step

[PATCH 05/17] perf list: Add s390 support for detailed/verbose PMU event description

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Thomas Richter 'perf list' with flags -d and -v print a description (-d) or a very verbose explanation (-v) of CPU specific counter events. These descriptions are provided with the json files in directory pmu-events/arch/s390/*.json. Display of these descriptions on s390 requires the corr

[PATCH 04/17] perf script: Extend misc field decoding with switch out event type

2018-04-20 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Append 'p' sign to 'S' tag designating the type of context switch out event so 'Sp' means preemption context switch. Documentation is extended to cover new presentation changes. $ perf script --show-switch-events -F +misc -I -i perf.data: hdparm 4073 [004] U 7

[REVIEW][PATCH 00/22] Simplifying siginfo users

2018-04-20 Thread Eric W. Biederman
This patchset is almost completely updating the various pieces of architecture code from filling out a struct siginfo and then calling force_sig_info. To using the helper force_sig_fault instead. Which takes the values that would have gone in siginfo as arguments. As the diffstat below shows th

Re: [PATCH] [net] ipv6: sr: fix NULL pointer dereference in seg6_do_srh_encap()- v4 pkts

2018-04-20 Thread David Lebrun
On 04/20/2018 02:58 PM, Ahmed Abdelsalam wrote: In case of seg6 in encap mode, seg6_do_srh_encap() calls set_tun_src() in order to set the src addr of outer IPv6 header. The net_device is required for set_tun_src(). However calling ip6_dst_idev() on dst_entry in case of IPv4 traffic results on t

Re: [PATCH] x86: ipc: fix x32 version of shmid64_ds and msqid64_ds

2018-04-20 Thread Arnd Bergmann
On Fri, Apr 20, 2018 at 3:53 PM, Jeffrey Walton wrote: >> +#if !defined(__x86_64__) || !defined(__ilp32__) >> #include >> +#else > > I understand there's some progress having Clang compile the kernel. > Clang treats __ILP32__ and friends differently than GCC. I believe > ILP32 shows up just abou

Re: [PATCHv3 3/8] drm/omap: add support for manually updated displays

2018-04-20 Thread Daniel Stone
Hi Tony! On 20 April 2018 at 15:25, Tony Lindgren wrote: > * Daniel Stone [180420 10:21]: >> On 20 April 2018 at 08:09, Tomi Valkeinen wrote: >> > It's actually not quite clear to me how manual update displays work with >> > DRM... >> > >> > As far as I see, we have essentially two cases: 1) si

RE: [PATCH] platform/x86: dell-smbios: Match on www.dell.com in OEM strings too

2018-04-20 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Thursday, April 19, 2018 6:43 PM > To: Limonciello, Mario > Cc: Andy Shevchenko; LKML; platform-driver-...@vger.kernel.org > Subject: Re: [PATCH] platform/x86: dell-smbios: Match on www.dell.com in OEM > string

[REVIEW][PATCH 01/22] signal/alpha: Use send_sig_fault where appropriate

2018-04-20 Thread Eric W. Biederman
Filling in struct siginfo before calling send_sig_info a tedious and error prone process, where once in a great while the wrong fields are filled out, and siginfo has been inconsistently cleared. Simplify this process by using the helper send_sig_fault. Which takes as a parameters all of the info

[REVIEW][PATCH 02/22] signal/alpha: Use force_sig_fault where appropriate

2018-04-20 Thread Eric W. Biederman
Filling in struct siginfo before calling force_sig_info a tedious and error prone process, where once in a great while the wrong fields are filled out, and siginfo has been inconsistently cleared. Simplify this process by using the helper force_sig_fault. Which takes as a parameters all of the in

Re: [PATCH] net: qrtr: Expose tunneling endpoint to user space

2018-04-20 Thread David Miller
From: Bjorn Andersson Date: Wed, 18 Apr 2018 22:03:46 -0700 > +struct qrtr_tun { > + struct qrtr_endpoint ep; > + > + struct mutex queue_lock; > + struct sk_buff_head queue; > + wait_queue_head_t readq; > +}; The queue lock is surperfluous. sk_buff_head and all of the helpers yo

[REVIEW][PATCH 05/22] signal/m68k: Use force_sig_fault where appropriate

2018-04-20 Thread Eric W. Biederman
Filling in struct siginfo before calling force_sig_info a tedious and error prone process, where once in a great while the wrong fields are filled out, and siginfo has been inconsistently cleared. Simplify this process by using the helper force_sig_fault. Which takes as a parameters all of the in

[REVIEW][PATCH 08/22] signal/mips: Use force_sig_fault where appropriate

2018-04-20 Thread Eric W. Biederman
Filling in struct siginfo before calling force_sig_info a tedious and error prone process, where once in a great while the wrong fields are filled out, and siginfo has been inconsistently cleared. Simplify this process by using the helper force_sig_fault. Which takes as a parameters all of the in

[REVIEW][PATCH 07/22] signal/microblaze: Use force_sig_fault where appropriate

2018-04-20 Thread Eric W. Biederman
Filling in struct siginfo before calling force_sig_info a tedious and error prone process, where once in a great while the wrong fields are filled out, and siginfo has been inconsistently cleared. Simplify this process by using the helper force_sig_fault. Which takes as a parameters all of the in

[REVIEW][PATCH 10/22] signal/nios2: Use force_sig_fault where appropriate

2018-04-20 Thread Eric W. Biederman
Filling in struct siginfo before calling force_sig_info a tedious and error prone process, where once in a great while the wrong fields are filled out, and siginfo has been inconsistently cleared. Simplify this process by using the helper force_sig_fault. Which takes as a parameters all of the in

[REVIEW][PATCH 09/22] signal/nds32: Use force_sig_fault where appropriate

2018-04-20 Thread Eric W. Biederman
Filling in struct siginfo before calling force_sig_info a tedious and error prone process, where once in a great while the wrong fields are filled out, and siginfo has been inconsistently cleared. Simplify this process by using the helper force_sig_fault. Which takes as a parameters all of the in

[REVIEW][PATCH 03/22] signal/c6x: Use force_sig_fault where appropriate

2018-04-20 Thread Eric W. Biederman
Filling in struct siginfo before calling force_sig_info a tedious and error prone process, where once in a great while the wrong fields are filled out, and siginfo has been inconsistently cleared. Simplify this process by using the helper force_sig_fault. Which takes as a parameters all of the in

[REVIEW][PATCH 06/22] signal/microblaze: Remove the commented out force_sig_info in do_page_fault

2018-04-20 Thread Eric W. Biederman
Remove the commented out call to force_sig_info right after a call to _exception in do_page_fault. The function _exception does exactly the work the commented out code does so there is no reason for the commented out code. Cc: Michal Simek Signed-off-by: "Eric W. Biederman" --- arch/microblaze

[REVIEW][PATCH 04/22] signal/hexagon: Use force_sig_fault as appropriate

2018-04-20 Thread Eric W. Biederman
Filling in struct siginfo before calling force_sig_info a tedious and error prone process, where once in a great while the wrong fields are filled out, and siginfo has been inconsistently cleared. Simplify this process by using the helper force_sig_fault. Which takes as a parameters all of the in

Re: [RFC PATCH v2 4/6] sched/fair: Introduce an energy estimation helper function

2018-04-20 Thread Quentin Perret
Hi Leo, On Wednesday 18 Apr 2018 at 20:15:47 (+0800), Leo Yan wrote: > Sorry I introduce mess at here to spread my questions in several > replying, later will try to ask questions in one replying. Below are > more questions which it's good to bring up: > > The code for energy computation is quit

Re: [PATCHv3 3/8] drm/omap: add support for manually updated displays

2018-04-20 Thread Tony Lindgren
* Daniel Stone [180420 14:41]: > Hi Tony! > > On 20 April 2018 at 15:25, Tony Lindgren wrote: > > * Daniel Stone [180420 10:21]: > >> On 20 April 2018 at 08:09, Tomi Valkeinen wrote: > >> > It's actually not quite clear to me how manual update displays work with > >> > DRM... > >> > > >> > As

[REVIEW][PATCH 11/22] signal/openrisc: Use force_sig_fault where appropriate

2018-04-20 Thread Eric W. Biederman
Filling in struct siginfo before calling force_sig_info a tedious and error prone process, where once in a great while the wrong fields are filled out, and siginfo has been inconsistently cleared. Simplify this process by using the helper force_sig_fault. Which takes as a parameters all of the in

Re: [PATCH] [net] ipv6: sr: fix NULL pointer dereference in seg6_do_srh_encap()- v4 pkts

2018-04-20 Thread Ahmed Abdelsalam
On Fri, 20 Apr 2018 15:38:08 +0100 David Lebrun wrote: > On 04/20/2018 02:58 PM, Ahmed Abdelsalam wrote: > > In case of seg6 in encap mode, seg6_do_srh_encap() calls set_tun_src() > > in order to set the src addr of outer IPv6 header. > > > > The net_device is required for set_tun_src(). However

[REVIEW][PATCH 19/22] signal/um: Use force_sig_fault in relay_signal.

2018-04-20 Thread Eric W. Biederman
Today user mode linux only works on x86 and x86_64 and this allows simplifications of relay_signal. - x86 always set si_errno to 0 in fault handlers. - x86 does not implement si_trapno. - Only si_codes between SI_USER and SI_KERNEL have a fault address. Therefore warn if si_errno is set (it shoul

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