Re: [RFC][PATCHv3 2/5] printk: introduce printing kernel thread

2017-06-29 Thread Andreas Mohr
On Thu, Jun 29, 2017 at 08:26:20AM +0200, Andreas Mohr wrote: > On Wed, Jun 28, 2017 at 02:19:25PM +0200, Petr Mladek wrote: > > On Wed 2017-05-31 16:22:33, Sergey Senozhatsky wrote: > > > so I try to minimize the negative impact of RT prio here. printk_kthread > > > is not special any more. it's a

Re: [Xen-devel] [PATCH] xen/x86: Don't BUG on CPU0 offlining

2017-06-29 Thread Juergen Groß
On 06/28/2017 06:31 PM, Vitaly Kuznetsov wrote: Konrad Rzeszutek Wilk writes: On Mon, Jun 26, 2017 at 06:39:30PM +0200, Vitaly Kuznetsov wrote: CONFIG_BOOTPARAM_HOTPLUG_CPU0 allows to offline CPU0 but Xen HVM guests BUG() in xen_teardown_timer(). Remove the BUG_ON(), this is probably a leftov

Re: [PATCH 2/3] selftests: seccomp: use LDLIBS instead of LDFLAGS

2017-06-29 Thread Fathi Boudra
On 29 June 2017 at 00:40, sjpark wrote: > Hi Fathi, > > On Wed, 28 Jun 2017, Fathi Boudra wrote: > >> seccomp_bpf fails to build due to undefined reference errors: >> >> aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey >> -O2 -pipe -g -feliminate-unused-debug-types -Wl,-no-

Re: [RFC PATCH] char: misc: Init misc->list in a safe way

2017-06-29 Thread Greg Kroah-Hartman
On Thu, Jun 29, 2017 at 02:54:23PM +0800, Chunyan Zhang wrote: > Hi Greg, > > On 28 June 2017 at 19:21, Greg Kroah-Hartman > wrote: > > On Wed, Jun 28, 2017 at 12:34:28PM +0200, Arnd Bergmann wrote: > >> On Wed, Jun 28, 2017 at 7:18 AM, Greg Kroah-Hartman > >> wrote: > >> > On Wed, Jun 28, 2017

Re: [PATCH] futex: avoid undefined behaviour when shift exponent is negative

2017-06-29 Thread zhong jiang
On 2017/6/29 14:33, Thomas Gleixner wrote: > On Thu, 29 Jun 2017, zhong jiang wrote: >> On 2017/6/29 6:13, Thomas Gleixner wrote: >>> That's simply wrong. If oparg is negative and the SHIFT bit is set then the >>> result is undefined today and there is no way that this can be used at >>> all. >>> >

Re: [PATCH/RFC 0/4] perf annotate: Add --source-only option and the new source code TUI view

2017-06-29 Thread Namhyung Kim
Hello, On Wed, Jun 28, 2017 at 11:53:22AM +0200, Milian Wolff wrote: > On Wednesday, June 28, 2017 5:18:08 AM CEST Taeung Song wrote: > > Hi, > > > > The --source-only option and new source code TUI view can show > > the result of performance analysis based on full source code per > > symbol(func

Re: [PATCH] mm: convert three more cases to kvmalloc

2017-06-29 Thread Michal Hocko
On Wed 28-06-17 23:24:10, Mikulas Patocka wrote: [...] > From: Mikulas Patocka > > The patch a7c3e901 ("mm: introduce kv[mz]alloc helpers") converted a lot > of kernel code to kvmalloc. This patch converts three more forgotten > cases. Thanks! I have two remarks below but other than that feel

Re: [PATCH v7 0/4] KVM: async_pf: Fix async pf exception injection

2017-06-29 Thread Wanpeng Li
2017-06-29 11:01 GMT+08:00 Wanpeng Li : > INFO: task gnome-terminal-:1734 blocked for more than 120 seconds. >Not tainted 4.12.0-rc4+ #8 > "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > gnome-terminal- D0 1734 1015 0x > Call Trace: > __sched

Re: [PATCH v2 4/8] objtool: add undwarf debuginfo generation

2017-06-29 Thread Ingo Molnar
* Josh Poimboeuf wrote: > Now that objtool knows the states of all registers on the stack for each > instruction, it's straightforward to generate debuginfo for an unwinder > to use. > > Instead of generating DWARF, generate a new format called undwarf, which > is more suitable for an in-kernel

[PATCH 00/14] Add QCOM QPIC NAND support

2017-06-29 Thread Abhishek Sahu
The current QCOM NAND driver only support EBI2 NAND which uses ADM DMA. The latest QCOM controller supports QPIC NAND which uses BAM DMA. NAND registers and programming sequence are same for EBI2 and QPIC NAND so the same driver can support QPIC NAND also by adding the BAM DMA support. This patch s

[PATCH 05/14] qcom: mtd: nand: allocate bam transaction

2017-06-29 Thread Abhishek Sahu
The BAM transaction is the core data structure which will be used for all the data transfers in QPIC NAND. Since the base layer is serializing all the NAND requests so allocating BAM transaction before every transfer will be overhead. The memory for it be allocated during probe time and before ever

[PATCH 02/14] qcom: mtd: nand: add and initialize QPIC DMA resources

2017-06-29 Thread Abhishek Sahu
1. The QPIC NAND uses 3 BAM channels: command, data tx and data rx while EBI2 NAND uses only single ADM channel. 2. The EBI2 NAND uses normal register read buffer since this buffer will be remapped with dma_map_sg. The QPIC NAND will give register read buffer in command descriptor and the

[PATCH 03/14] qcom: mtd: nand: Fixed config error for BCH

2017-06-29 Thread Abhishek Sahu
The configuration for BCH is not correct in the current driver so this patch fixed the same. Signed-off-by: Abhishek Sahu --- drivers/mtd/nand/qcom_nandc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/qcom_nandc.c b/drivers/mtd/nand/qcom_nandc.c index 520a

[PATCH 01/14] qcom: mtd: nand: Add driver data for QPIC DMA

2017-06-29 Thread Abhishek Sahu
The current driver only support EBI2 NAND which uses ADM DMA. The latest QCOM controller supports QPIC NAND which uses BAM DMA. NAND registers and programming sequence are same for EBI2 and QPIC NAND so the same driver can support QPIC NAND also by adding the BAM DMA support. This patch adds the QP

[PATCH 09/14] qcom: mtd: nand: BAM support for read page

2017-06-29 Thread Abhishek Sahu
1. The BAM mode requires few registers configuration before each NAND page read and codeword read which is different from ADM so add the helper functions which will be called in BAM mode only. 2. The NAND page read handling of BAM is different from ADM so call the appropriate helper fu

[PATCH 08/14] qcom: mtd: nand: Add support for additional CSRs

2017-06-29 Thread Abhishek Sahu
1. NAND_READ_LOCATION: provides the offset in page for reading in BAM DMA mode 2. NAND_ERASED_CW_DETECT_CFG: contains the status for erased code words 3. NAND_BUFFER_STATUS: contains the status for ECC Signed-off-by: Abhishek Sahu --- drivers/mtd/nand/qcom_nandc.c | 67 ++

[PATCH 06/14] qcom: mtd: nand: add bam dma descriptor handling

2017-06-29 Thread Abhishek Sahu
1. prepare_bam_async_desc is the function which will call all the DMA API’s. It will fetch the outstanding scatter gather list for passed channel and will do the DMA descriptor formation. The DMA flag is dependent upon the type of channel. 2. For ADM DMA, the descriptor is being formed fo

[PATCH 10/14] qcom: mtd: nand: support for QPIC Page read/write

2017-06-29 Thread Abhishek Sahu
1. Add the function for command descriptor preparation which will be used only by BAM DMA and it will form the DMA descriptors containing command elements. 2. Add the data descriptor preparation function which will be used only by BAM DMA for forming the data SGL’s. 3. Add clear BAM tran

[PATCH 13/14] qcom: mtd: nand: support for QPIC version 1.5.0

2017-06-29 Thread Abhishek Sahu
The current QCOM NAND driver only supports version 1.4.0 QCOM QPIC NAND controller. This patch adds the support for version 1.5.0 which contains some of the registers at different offsets. The driver data contains the register offset field which is being initialized with its crossponding register o

[PATCH 11/14] qcom: mtd: nand: BAM raw read and write support

2017-06-29 Thread Abhishek Sahu
1. BAM uses READ_LOCATION registers to copy data from offset into data buffer. 2. BAM requires EOT flag should be set only for the last data write in a codeword. Signed-off-by: Abhishek Sahu --- drivers/mtd/nand/qcom_nandc.c | 46 ++- 1 file changed

Where to update regulator register with initial voltage set by HW

2017-06-29 Thread Waldemar Rymarkiewicz
Hi, I do a power regulator driver and I have faced an issue with an initial voltage value set (or rather not set) in regulator register. Initially, on boot, the voltage is set by HW (sensing resistors). When OS starts and the reg driver registers regulator with the specific constraints uV_min a

[PATCH 14/14] qcom: mtd: nand: programmed NAND_DEV_CMD_VLD register

2017-06-29 Thread Abhishek Sahu
The current driver is failing without complete bootchain in BAM mode since NAND_DEV_CMD_VLD value is not valid. So programmed the required value in NAND_DEV_CMD_VLD register. Signed-off-by: Abhishek Sahu --- drivers/mtd/nand/qcom_nandc.c | 4 1 file changed, 4 insertions(+) diff --git a/dr

Re: [PATCH v2 1/8] dt-bindings: mfd: Add STM32 LPTimer binding

2017-06-29 Thread Fabrice Gasnier
On 06/28/2017 06:44 PM, Rob Herring wrote: > On Tue, Jun 27, 2017 at 10:57:32AM +0200, Fabrice Gasnier wrote: >> On 06/26/2017 08:07 PM, Rob Herring wrote: >>> On Wed, Jun 21, 2017 at 04:30:08PM +0200, Fabrice Gasnier wrote: Add documentation for STMicroelectronics STM32 Low-Power Timer bindin

[PATCH 07/14] qcom: mtd: nand: support for passing flags in transfer functions

2017-06-29 Thread Abhishek Sahu
The BAM has multiple flags to control the transfer. This patch adds flags parameter in register and data transfer functions and modifies all these function call with appropriate flags. Signed-off-by: Abhishek Sahu --- drivers/mtd/nand/qcom_nandc.c | 114 --

[PATCH 12/14] qcom: mtd: nand: change register offset defines with enums

2017-06-29 Thread Abhishek Sahu
The current driver defines the register offset with preprocessor macro which is defined crossponding to NAND controller version 1.4.0. This patch changes these macro with enumeration. It also adds mapping array which contains controller register offsets for each register offset enumeration. This ma

[PATCH 04/14] qcom: mtd: nand: reorganize nand devices probing

2017-06-29 Thread Abhishek Sahu
This is reorganization of exiting code and will not change any functionality. The NAND controller supports multiple NAND device with different page size. The subsequent patch allocate memory which depends upon the maximum number of codewords so this patch reorganizes the NAND device probing. First

[PATCH v2 0/3] selftests: fixes for undefined reference (LDFLAGS -> LDLIBS)

2017-06-29 Thread Fathi Boudra
This serie fixes undefined reference errors caused by the usage of LDFLAGS instead of LDLIBS. The issue is GNU Make and linker specific. The default Makefile rule looks like: $(CC) $(CFLAGS) $(LDFLAGS) $@ $^ $(LDLIBS) When linking is done by gcc itself, no issue, but when it needs to be passed

[PATCH v2 2/3] selftests: seccomp: use LDLIBS instead of LDFLAGS

2017-06-29 Thread Fathi Boudra
seccomp_bpf fails to build due to undefined reference errors: aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey -O2 -pipe -g -feliminate-unused-debug-types -Wl,-no-as-needed -Wall -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -lpthread seccomp_bpf.c -o /build/tmp-rpb-glibc

Re: [PATCH v2 4/8] objtool: add undwarf debuginfo generation

2017-06-29 Thread Ingo Molnar
* Josh Poimboeuf wrote: > +#ifndef _UNDWARF_TYPES_H > +#define _UNDWARF_TYPES_H > + > +/* > + * The UNDWARF_REG_* registers are base registers which are used to find > other > + * registers on the stack. > + * > + * The CFA (call frame address) is the value of the stack pointer on the > + * pre

[PATCH v2 3/3] selftests: timers: use LDLIBS instead of LDFLAGS

2017-06-29 Thread Fathi Boudra
posix_timers fails to build due to undefined reference errors: aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey -O2 -pipe -g -feliminate-unused-debug-types -O3 -Wl,-no-as-needed -Wall -DKTEST -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -lrt -lpthread posix_timers.c -o

Re: [PATCH v2] um: Avoid longjmp/setjmp symbol clashes with libpthread.a

2017-06-29 Thread Richard Weinberger
Florian, Am 29.06.2017 um 00:40 schrieb Florian Fainelli: >> Hehe, yes. >> This patch is good, I like it. :) >> It will part of the next pull request. > > Humm okay, did you apply the patch in one of your kernel trees on > git.kernel.org or somewhere else? Will happen soon since the merge window

[PATCH v2 1/3] selftests: net: use LDLIBS instead of LDFLAGS

2017-06-29 Thread Fathi Boudra
reuseport_bpf_numa fails to build due to undefined reference errors: aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -lnuma reuseport_bpf_numa.c -o /build/tmp-rpb

WARNING: CPU: 3 PID: 0 at kernel/cgroup/cgroup.c:441 cgroup_get+0x4b/0x50

2017-06-29 Thread Justin Piszcz
Hello, Kernel: 4.11.0 Arch: x86_64 First time I have run into a WARN in a while, .config is attached: $ cp /proc/config.gz . Snippet: [22606.516656] [ cut here ] [22606.516669] WARNING: CPU: 3 PID: 0 at kernel/cgroup/cgroup.c:441 cgroup_get+0x4b/0x50 [22606.516672] CPU:

Re: [PATCH 3/3 v6] ARC: hsdk: initial port for HSDK board

2017-06-29 Thread Vineet Gupta
On 06/26/2017 06:11 PM, Eugeniy Paltsev wrote: From: Alexey Brodkin diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig new file mode 100644 index 000..53bc9f3 --- /dev/null +++ b/arch/arc/configs/hsdk_defconfig @@ -0,0 +1,75 @@ +CONFIG_DEFAULT_HOSTNAME="ARCLinu

Re: [RFC PATCH] char: misc: Init misc->list in a safe way

2017-06-29 Thread Chunyan Zhang
ti On 29 June 2017 at 15:03, Greg Kroah-Hartman wrote: > On Thu, Jun 29, 2017 at 02:54:23PM +0800, Chunyan Zhang wrote: >> Hi Greg, >> >> On 28 June 2017 at 19:21, Greg Kroah-Hartman >> wrote: >> > On Wed, Jun 28, 2017 at 12:34:28PM +0200, Arnd Bergmann wrote: >> >> On Wed, Jun 28, 2017 at 7:1

Re: Spurious touchpad events with closed LID

2017-06-29 Thread Pali Rohár
On Thursday 29 June 2017 00:44:27 Bastien Nocera wrote: > On Wed, 2017-06-28 at 22:15 +0200, Pavel Machek wrote: > > > > > While policy normally belongs to userspace, I'd argue this is > > workaround for a hardware bug, and in-kernel solution would be > > acceptable. > > > > Anyway, disable attr

Re: [RFC][PATCHv3 2/5] printk: introduce printing kernel thread

2017-06-29 Thread Sergey Senozhatsky
On (06/28/17 14:19), Petr Mladek wrote: [..] > > so I try to minimize the negative impact of RT prio here. printk_kthread > > is not special any more. it's an auxiliary kthread that we sometimes > > wake_up. the thing is that printk_kthread also must offload at some > > point, basically the same `a

Re: [PATCH v4 1/6] clk: sunxi-ng: div: Add support for fixed post-divider

2017-06-29 Thread Maxime Ripard
On Wed, Jun 28, 2017 at 05:59:49PM +, Priit Laes wrote: > On Tue, Jun 27, 2017 at 11:46:07AM +0200, Maxime Ripard wrote: > > Hi! > > > > On Sun, Jun 25, 2017 at 11:45:42PM +0300, Priit Laes wrote: > > > SATA clock on sun4i/sun7i is of type (parent) / M / 6 where > > > 6 is fixed post-divider.

[PATCH 2/2] mm, memory_hotplug: remove zone restrictions

2017-06-29 Thread Michal Hocko
From: Michal Hocko Historically we have enforced that any kernel zone (e.g ZONE_NORMAL) has to precede the Movable zone in the physical memory range. The purpose of the movable zone is, however, not bound to any physical memory restriction. It merely defines a class of migrateable and reclaimable

[PATCH 1/2] mm, memory_hotplug: display allowed zones in the preferred ordering

2017-06-29 Thread Michal Hocko
From: Michal Hocko Prior to "mm, memory_hotplug: do not associate hotadded memory to zones until online" we used to allow to change the valid zone types of a memory block if it is adjacent to a different zone type. This fact was reflected in memoryNN/valid_zones by the ordering of printed zones.

[RFC PATCH 0/2] mm, memory_hotplug: remove zone onlining restriction

2017-06-29 Thread Michal Hocko
Hi, I am sending this as an RFC because this hasn't seen a lot of testing yet but I would like to see whether the semantic I came up with (see patch 2) is sensible. This work should help Joonsoo with his CMA zone based approach when reusing MOVABLE zone. I think it will also help to remove more cod

RE: [PATCH 0/5] v3 block subsystem refcounter conversions

2017-06-29 Thread Reshetova, Elena
> On 06/28/2017 05:58 AM, Reshetova, Elena wrote: > > > >> Subject: Re: [PATCH 0/5] v3 block subsystem refcounter conversions > >> > >> On Tue, Jun 27, 2017 at 6:26 AM, Jens Axboe wrote: > >>> On 06/27/2017 05:39 AM, Elena Reshetova wrote: > Changes in v3: > No changes in patches apart

[PATCH] usb: dwc2: gadget: Use ep->index in conext of FIFO registers

2017-06-29 Thread Minas Harutyunyan
It's reverting patch for commit "usb: dwc2: gadget: use ep->fifo_index in context of FIFO registers". DTXFSTSn indexation based on EP number not TxFIFO number. Signed-off-by: Minas Harutyunyan --- drivers/usb/dwc2/gadget.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/

[PATCH 5/5] Staging: android: ion_cma_heap.c: fix coding style of kmalloc usage

2017-06-29 Thread Jaya Durga
This patch fixes coding style of kmalloc usage found by checkpatch.pl CHECK: Prefer kmalloc(sizeof(*table)...) over kmalloc(sizeof(struct sg_table)...) Signed-off-by: Jaya Durga --- drivers/staging/android/ion/ion_cma_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri

Re: [PATCH] usb: dwc2: gadget: Use ep->index in conext of FIFO registers

2017-06-29 Thread Felipe Balbi
Hi, Minas Harutyunyan writes: > It's reverting patch for commit "usb: dwc2: gadget: > use ep->fifo_index in context of FIFO registers". > DTXFSTSn indexation based on EP number not TxFIFO number. > > Signed-off-by: Minas Harutyunyan have a look at 'git revert' -- balbi signature.asc Descri

Re: [RFC][PATCHv3 2/5] printk: introduce printing kernel thread

2017-06-29 Thread Sergey Senozhatsky
On (06/28/17 15:17), Petr Mladek wrote: > On Thu 2017-06-01 16:21:02, Sergey Senozhatsky wrote: > > On (05/31/17 16:30), Sergey Senozhatsky wrote: > > > On (05/29/17 14:12), Jan Kara wrote: > > > [..] > > > > Actually I had something very similar in old versions of my patch set. > > > > And > > >

[PATCH] scsi: ibmvscsi: constify dev_pm_ops structures.

2017-06-29 Thread Arvind Yadav
dev_pm_ops are not supposed to change at runtime. All functions working with dev_pm_ops provided by work with const dev_pm_ops. So mark the non-const structs as const. File size before: textdata bss dec hex filename 179561456 8 194204bdc drivers/scsi/ibmvscsi/

Re: arm64: build is broken on next-20170609 with merge-commit 9afca2c4e379 (arm64: allwinner: sun50i-a64: add dwmac-sun8i Ethernet driver)

2017-06-29 Thread Maxime Ripard
Hi, On Wed, Jun 28, 2017 at 04:07:11PM +1000, Stephen Rothwell wrote: > Hi all, > > [Yes, top posted :-)] > > With the merge window approaching, this is just a reminder that this > merge problem still exists. I assume that the sunxi tree will be > merged into the arm-soc tree before going to Li

Re: [PATCH v3 net-next 02/12] bpf/verifier: rework value tracking

2017-06-29 Thread kbuild test robot
Hi Edward, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Edward-Cree/bpf-rewrite-value-tracking-in-verifier/20170629-012559 config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0 reproduce: wget https

Re: [PATCH] [net-next] net/mlx5e: select CONFIG_MLXFW

2017-06-29 Thread Arnd Bergmann
On Thu, Jun 29, 2017 at 5:47 AM, Or Gerlitz wrote: > On Wed, Jun 28, 2017 at 11:10 PM, Arnd Bergmann wrote: >> With the introduction of mlx5 firmware flash support, we get a link >> error with CONFIG_MLXFW=m and CONFIG_MLX5_CORE=y: >> >> drivers/net/ethernet/mellanox/mlx5/core/fw.o: In function

Re: [ANNOUNCE] v4.11.7-rt3

2017-06-29 Thread Sebastian Andrzej Siewior
On 2017-06-29 02:30:12 [+0200], Bernhard Landauer wrote: > I'm unable to compile the ndiswrapper extramodule against 4.11.7-rt3 I am surprised that this is still needed. > I get lots of errors of the kind > > 'struct task_struct' has no member named 'cpus_allowed'; did you mean > 'nr_cpus_allowe

Re: [PATCH v2 3/3] crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64

2017-06-29 Thread Horia Geantă
On 6/28/2017 7:51 PM, Logan Gunthorpe wrote: > > > On 28/06/17 04:20 AM, Arnd Bergmann wrote: >> On Wed, Jun 28, 2017 at 1:02 AM, Logan Gunthorpe wrote: >>> #include >>> #include >>> -#include >>> +#include >> >> Here you include the hi-lo variant unconditionally. >> Arnd, thanks for spott

Re: [PATCH v3 2/3] dt-bindings: input: Add R_LRADC support for A83T

2017-06-29 Thread Maxime Ripard
Hi, On Thu, Jun 29, 2017 at 12:35:30PM +0800, Ziping Chen wrote: > 2017-06-28 1:31 GMT+08:00 Maxime Ripard : > > On Tue, Jun 27, 2017 at 11:18:17PM +0800, Ziping Chen wrote: > >> 2017-06-27 1:15 GMT+08:00 Maxime Ripard : > >> > Hi, > >> > > >> > On Sat, Jun 24, 2017 at 10:45:14AM +0800, Ziping Che

Re: [linux-sunxi] Re: [PATCH v3 2/3] dt-bindings: input: Add R_LRADC support for A83T

2017-06-29 Thread Maxime Ripard
On Thu, Jun 29, 2017 at 12:45:51PM +0800, Ziping Chen wrote: > 2017-06-28 1:36 GMT+08:00 Maxime Ripard : > > Hi, > > > > On Tue, Jun 27, 2017 at 11:29:10PM +0800, icen...@aosc.io wrote: > >> Maxime, here's another problem: if we have already a GP LRADC driver, > >> how can we tell the kernel to use

[PATCH] scsi: ibmvfc: constify dev_pm_ops structures.

2017-06-29 Thread Arvind Yadav
dev_pm_ops are not supposed to change at runtime. All functions working with dev_pm_ops provided by work with const dev_pm_ops. So mark the non-const structs as const. File size before: textdata bss dec hex filename 419371296 20 43253a8f5 drivers/scsi/ibmvscsi/

Re: [PATCH v3] KVM: LAPIC: Fix lapic timer injection delay

2017-06-29 Thread Paolo Bonzini
On 29/06/2017 05:42, Wanpeng Li wrote: > So how about something like this? > > diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c > index d24c874..900ce86 100644 > --- a/arch/x86/kvm/lapic.c > +++ b/arch/x86/kvm/lapic.c > @@ -1504,21 +1504,26 @@ static void cancel_hv_timer(struct kvm_lapic

Re: [lttng-dev] Clarification on SCHED_FIFO support

2017-06-29 Thread Daniel Bristot de Oliveira
On 06/28/2017 09:05 PM, Steven Rostedt wrote: > You can propose settling this as a [TECH TOPIC] for kernel summit in > Prague. +1 -- Daniel

Re: [RFC][PATCHv4 0/7] printk: introduce printing kernel threads

2017-06-29 Thread Sergey Senozhatsky
On (06/28/17 15:42), Petr Mladek wrote: [..] > My head is whirling when thinking about all the per-CPU stuff. It is > looking for escape. The way is to keep it as simple as possible. > > After all, we should need all this only when there is a flood of > messages. Otherwise, the messages should be

Re: [PATCH v2 0/8] x86: undwarf unwinder

2017-06-29 Thread Ingo Molnar
* Josh Poimboeuf wrote: > Undwarf vs frame pointers > - > > With frame pointers enabled, GCC adds instrumentation code to every > function in the kernel. The kernel's .text size increases by about > 3.2%, resulting in a broad kernel-wide slowdown. Measurements by Mel >

Re: [RFC PATCH] userfaultfd: Add feature to request for a signal delivery

2017-06-29 Thread Michal Hocko
On Wed 28-06-17 11:23:32, Prakash Sangappa wrote: > > > On 6/28/17 6:18 AM, Mike Rapoport wrote: [...] > >I've just been thinking that maybe it would be possible to use > >UFFD_EVENT_REMOVE for this case. We anyway need to implement the generation > >of UFFD_EVENT_REMOVE for the case of hole punc

[PATCH] mmc: host: omap_hsmmc: constify dev_pm_ops structures.

2017-06-29 Thread Arvind Yadav
dev_pm_ops are not supposed to change at runtime. All functions working with dev_pm_ops provided by work with const dev_pm_ops. So mark the non-const structs as const. File size before: textdata bss dec hex filename 11586 624 0 122102fb2 drivers/mmc/host/omap_

Re: [PATCH] perf/core: generate overflow signal when samples are dropped (WAS: Re: [REGRESSION] perf/core: PMU interrupts dropped if we entered the kernel in the "skid" region)

2017-06-29 Thread Ingo Molnar
* Mark Rutland wrote: > It still seems wrong to make up data, though. So what we have here is a hardware quirk: we asked for user-space samples, but didn't get them and we cannot expose the kernel-internal address. The question is, how do we handle the hardware quirk. Since we cannot fix the

Re: [PATCH] perf/core: generate overflow signal when samples are dropped (WAS: Re: [REGRESSION] perf/core: PMU interrupts dropped if we entered the kernel in the "skid" region)

2017-06-29 Thread Alexey Budankov
Hi Folks, On 28.06.2017 16:07, Mark Rutland wrote: > On Wed, Jun 28, 2017 at 08:40:30AM -0400, Vince Weaver wrote: >> On Wed, 28 Jun 2017, Mark Rutland wrote: >> >>> On Wed, Jun 28, 2017 at 11:12:48AM +0100, Mark Rutland wrote: >> >>> Instead of bailing out early in perf_event_overflow, we can bai

Re: [PATCH v1] xen/input: add multi-touch support

2017-06-29 Thread Dmitry Torokhov
Hi Oleksandr, On Fri, Jun 23, 2017 at 09:09:55AM +0300, Oleksandr Andrushchenko wrote: > + switch (event->mtouch.event_type) { > + case XENKBD_MT_EV_DOWN: > + input_mt_report_slot_state(dev, MT_TOOL_FINGER, > +

Re: [PATCH v3] KVM: LAPIC: Fix lapic timer injection delay

2017-06-29 Thread Wanpeng Li
2017-06-29 15:55 GMT+08:00 Paolo Bonzini : >> + >> +/* In case the sw timer triggered in the window */ >> +if (atomic_read(&apic->lapic_timer.pending) && >> +!apic_lvtt_period(apic)) >> +need_cancel = true; >> +else if (r && (apic_

Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done()

2017-06-29 Thread Andrea Righi
On Thu, Jun 29, 2017 at 08:36:51AM +0300, Sagi Grimberg wrote: > > >Just tested this patch, I wasn't able to reproduce the NULL pointer > >dereference or any other bugs, so this fix seems safe enough to me. > > > >Tested-by: Andrea Righi > > Can you test just the one liner fix below? > > >>@@ -

centos 7.2,I got some oops form my production line

2017-06-29 Thread Xishi Qiu
centos 7.2,I got some oops form my production line, Anybody has seen these errors before? 1) 2017-06-28T02:18:16.461384+08:00[880983.488036] do nothing after die! 2017-06-28T02:18:16.462068+08:00[880983.488723] Modules linked in: fuse iptable_filter sha512_generic icp_qa_al_vf(OVE) vfat fat isof

Re: [PATCH 5/9] RISC-V: Task implementation

2017-06-29 Thread Tobias Klauser
On 2017-06-28 at 20:55:34 +0200, Palmer Dabbelt wrote: [...] > diff --git a/arch/riscv/include/asm/kprobes.h > b/arch/riscv/include/asm/kprobes.h > new file mode 100644 > index ..1190de7a0f74 > --- /dev/null > +++ b/arch/riscv/include/asm/kprobes.h > @@ -0,0 +1,22 @@ > +/* > + * Copyr

[PATCH][i2c-next] i2c: designware: fix spelling mistakes

2017-06-29 Thread Colin King
From: Colin Ian King Trivial fixes to spelling mistakes in dev_dbg message "STAUTS" -> "STATUS" "SLAVE_ACTTVITY" -> "SLAVE_ACTIVITY" Signed-off-by: Colin Ian King --- drivers/i2c/busses/i2c-designware-slave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/buss

[PATCH] media: exynos4-is: fimc-is-i2c: constify dev_pm_ops structures.

2017-06-29 Thread Arvind Yadav
dev_pm_ops are not supposed to change at runtime. All functions working with dev_pm_ops provided by work with const dev_pm_ops. So mark the non-const structs as const. File size before: textdata bss dec hex filename 1195 376 01571 623 drivers/media/platfor

Re: [PATCH] perf/core: generate overflow signal when samples are dropped (WAS: Re: [REGRESSION] perf/core: PMU interrupts dropped if we entered the kernel in the "skid" region)

2017-06-29 Thread Alexey Budankov
On 29.06.2017 11:13, Alexey Budankov wrote: > Hi Folks, > > On 28.06.2017 16:07, Mark Rutland wrote: >> On Wed, Jun 28, 2017 at 08:40:30AM -0400, Vince Weaver wrote: >>> On Wed, 28 Jun 2017, Mark Rutland wrote: >>> On Wed, Jun 28, 2017 at 11:12:48AM +0100, Mark Rutland wrote: >>> Instead

Re: [PATCH v2] selftests: add a generic testsuite for ethernet device

2017-06-29 Thread Fathi Boudra
On 4 April 2017 at 16:32, Corentin Labbe wrote: > This patch add a generic testsuite for testing ethernet network device driver. > > Signed-off-by: Corentin Labbe > --- > > Changes since v1: > - Test for starting master interface > - Changed printing format to "RESULT: $netdev: line" > - Use "ip

Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done()

2017-06-29 Thread Sagi Grimberg
Can you test just the one liner fix below? @@ -1452,7 +1452,7 @@ isert_login_recv_done(struct ib_cq *cq, struct ib_wc *wc) { struct isert_conn *isert_conn = wc->qp->qp_context; - struct ib_device *ib_dev = isert_conn->cm_id->device; + struct ib_device *ib_dev = isert_co

Re: [PATCH v2 3/3] hwmon: ltc2990: support all measurement modes

2017-06-29 Thread Mike Looijmans
On 28-06-17 19:02, Tom Levens wrote: On Wed, 28 Jun 2017, Guenter Roeck wrote: On Wed, Jun 28, 2017 at 05:29:38PM +0200, Tom Levens wrote: [ ... ] Whatever happened to this patch though? It didn't make it to mainline, otherwise I'd have found it sooner... I'll have to look it up, but

Re: [PATCH] nvme: Makefile: remove dead build rule

2017-06-29 Thread Johannes Thumshirn
On Thu, Jun 29, 2017 at 08:59:07AM +0200, Valentin Rothberg wrote: > Remove dead build rule for drivers/nvme/host/scsi.c which has been > removed by commit ("nvme: Remove SCSI translations"). > > Signed-off-by: Valentin Rothberg > --- Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thu

Re: [PATCH v2] edac, i5000, i5400: fix definition of nrecmemb register

2017-06-29 Thread Borislav Petkov
On Wed, Jun 28, 2017 at 08:57:29PM -0400, Jérémy Lefaure wrote: > In i5000 and i5400 edac drivers, the register nrecmemb is defined as a > 16 bits value which result in wrong shifts in the code: > CHECK drivers/edac/i5000_edac.c > drivers/edac/i5000_edac.c:485:15: warning: right shift by bigger

Re: [PATCH 0/3] kselftest build errors

2017-06-29 Thread Fathi Boudra
On 28 June 2017 at 17:21, Shuah Khan wrote: > On 06/28/2017 02:30 AM, Fathi Boudra wrote: >> On 23 June 2017 at 22:44, Shuah Khan wrote: >>> On 06/23/2017 04:37 AM, Marcin Nowakowski wrote: This patch series fixes build errors observed when building net, memfd, gpio and intel_pstate te

Re: [Intel-gfx] [PATCH v9 5/7] vfio: Define vfio based dma-buf operations

2017-06-29 Thread Daniel Vetter
On Thu, Jun 29, 2017 at 08:41:53AM +0200, Gerd Hoffmann wrote: > Hi, > > > > Does gvt track the live cycle of all dma-bufs it has handed out? > > > > The V9 implementation does track the dma-bufs' live cycle. The > > original idea was that leaving the dma-bufs' live cycle management to > > user

Re: [PATCH 6/9] RISC-V: Device, timer, IRQs, and the SBI

2017-06-29 Thread Tobias Klauser
On 2017-06-28 at 20:55:35 +0200, Palmer Dabbelt wrote: [...] > diff --git a/arch/riscv/include/asm/device.h b/arch/riscv/include/asm/device.h > new file mode 100644 > index ..28975e528d2f > --- /dev/null > +++ b/arch/riscv/include/asm/device.h > @@ -0,0 +1,27 @@ > +/* > + * Copyright (

Re: [PATCH] thp, mm: Fix crash due race in MADV_FREE handling

2017-06-29 Thread Minchan Kim
On Wed, Jun 28, 2017 at 01:15:50PM +0300, Kirill A. Shutemov wrote: > On Wed, Jun 28, 2017 at 01:12:49PM +0300, Kirill A. Shutemov wrote: > > Reinette reported following crash: > > > > BUG: Bad page state in process log2exe pfn:57600 > > page:ea00015d8000 count:0 mapcount:0 mapping:

Re: [PATCH v3] KVM: LAPIC: Fix lapic timer injection delay

2017-06-29 Thread Wanpeng Li
2017-06-29 16:17 GMT+08:00 Wanpeng Li : > 2017-06-29 15:55 GMT+08:00 Paolo Bonzini : >>> + >>> +/* In case the sw timer triggered in the window */ >>> +if (atomic_read(&apic->lapic_timer.pending) && >>> +!apic_lvtt_period(apic)) >>> +need_canc

Re: [RFC PATCH] mm, oom: allow oom reaper to race with exit_mmap

2017-06-29 Thread Michal Hocko
Forgot to CC Hugh. Hugh, Andrew, do you see this could cause any problem wrt. ksm/khugepaged exit path? On Mon 26-06-17 15:03:46, Michal Hocko wrote: > From: Michal Hocko > > David has noticed that the oom killer might kill additional tasks while > the existing victim hasn't terminated yet beca

Re: [PATCH v1 0/7] writeback incompressible pages to storage

2017-06-29 Thread Minchan Kim
Hi Sergey, On Thu, Jun 29, 2017 at 12:41:57AM +0900, Sergey Senozhatsky wrote: > Hello, > > On (06/26/17 15:52), Minchan Kim wrote: > [..] > > zRam is useful for memory saving with compressible pages but sometime, > > workload can be changed and system has lots of incompressible pages > > which i

Re: [PATCH] clk: scpi: error when clock fails to register

2017-06-29 Thread Jerome Brunet
On Wed, 2017-06-28 at 18:07 +0100, Sudeep Holla wrote: > > On 28/06/17 17:46, Jerome Brunet wrote: > > On Wed, 2017-06-28 at 16:52 +0100, Sudeep Holla wrote: > > [..] > > > > > > > Thanks for this stack. I just worked out the same path now. I did come > > > up with the patch as below. That shou

[PATCH] [media] media/platform: add const to v4l2_file_operations structures

2017-06-29 Thread Bhumika Goyal
Declare v4l2_file_operations structures as const as they are only stored in the fops field of video_device structures. This field is of type const, so declare v4l2_file_operations structures with similar properties as const. Cross compiled bfin_capture.o for blackfin arch. vpbe_display.o file did

Re: [v3 5/6] mm, oom: don't mark all oom victims tasks with TIF_MEMDIE

2017-06-29 Thread Michal Hocko
On Wed 21-06-17 22:19:15, Roman Gushchin wrote: > We want to limit the number of tasks which are having an access > to the memory reserves. To ensure the progress it's enough > to have one such process at the time. > > If we need to kill the whole cgroup, let's give an access to the > memory reser

[PATCH] selftests/nsfs: create kconfig fragments

2017-06-29 Thread naresh . kamboju
From: Naresh Kamboju Create a config fragment for nsfs to enable additional config options. The config fragments can be used with the help of scripts/kconfig/merge_config.sh. Signed-off-by: Naresh Kamboju --- tools/testing/selftests/nsfs/config | 3 +++ 1 file changed, 3 insertions(+) create

Re: [kernel-hardening] [RFC PATCH 4/4] bpf: Use linux/set_memory.h

2017-06-29 Thread Daniel Borkmann
On 06/29/2017 08:29 AM, Michael Ellerman wrote: This header always exists, so doesn't require an ifdef around its inclusion. When CONFIG_ARCH_HAS_SET_MEMORY=y it includes the asm header, otherwise it provides empty versions of the set_memory_xx() routines. Signed-off-by: Michael Ellerman Acke

Re: [PATCH 1/1] selftests: gpio: use pkg-config to determine libmount CFLAGS/LDLIBS

2017-06-29 Thread Michael Ellerman
Fathi Boudra writes: > Fix hardcoded and misplaced libmount headers. Use pkg-config instead to > figure out CFLAGS/LDLIBS, fixing also their value for cross-compilation. Can you explain how it fixes the values for cross-compilation? cheers

[PATCH] [media] cx23885: add const to v4l2_file_operations structure

2017-06-29 Thread Bhumika Goyal
Declare v4l2_file_operations structure as const as it is only stored in the fops field of video_device structure. This field is of type const, so declare v4l2_file_operations structures with similar properties as const. Signed-off-by: Bhumika Goyal --- drivers/media/pci/cx23885/cx23885-417.c | 2

Re: [PATCH 1/8] drm/vc4: Fix DSI T_INIT timing.

2017-06-29 Thread Andrzej Hajda
On 27.06.2017 21:58, Eric Anholt wrote: > The DPHY spec requires a much larger T_INIT than I was specifying > before. In the absence of clear specs from the slave of what their > timing is, just use the value that the firmware was using. > > Signed-off-by: Eric Anholt Reviewed-by: Andrzej Hajda

Re: [PATCH] clk: scpi: error when clock fails to register

2017-06-29 Thread Sudeep Holla
Hi Jerome, Thanks for the fix. On 28/06/17 14:53, Jerome Brunet wrote: > Current implementation of scpi_clk_add just print a warning when clock > fails to register but then keep going as if nothing happened. The > provider is then registered with bogus data. > > This may latter lead to an Oops i

Re: [kernel-hardening] [RFC PATCH 1/4] Provide linux/set_memory.h

2017-06-29 Thread Daniel Borkmann
On 06/29/2017 08:29 AM, Michael Ellerman wrote: Currently code that wants to use set_memory_ro() etc, needs to include asm/set_memory.h, which doesn't exist on all arches. Some code knows it only builds on arches which have the header, other code guards the inclusion with an #ifdef, neither is id

Re: [PATCH 2/8] drm/vc4: Fix misleading name of the continuous flag.

2017-06-29 Thread Andrzej Hajda
On 27.06.2017 21:58, Eric Anholt wrote: > The logic was all right in the end, the name was just backwards. > > Signed-off-by: Eric Anholt Reviewed-by: Andrzej Hajda -- Regards Andrzej

Re: [v3 1/6] mm, oom: use oom_victims counter to synchronize oom victim selection

2017-06-29 Thread Michal Hocko
On Wed 21-06-17 22:19:11, Roman Gushchin wrote: > Oom killer should avoid unnecessary kills. To prevent them, during > the tasks list traverse we check for task which was previously > selected as oom victims. If there is such a task, new victim > is not selected. > > This approach is sub-optimal (

Re: [PATCH v3 01/17] mfd: madera: Add register definitions for Cirrus Logic Madera codecs

2017-06-29 Thread Richard Fitzgerald
On Wed, 2017-06-28 at 20:26 +0100, Mark Brown wrote: > On Mon, Jun 26, 2017 at 09:33:38AM +0100, Richard Fitzgerald wrote: > > On Mon, 2017-06-05 at 11:07 +0100, Lee Jones wrote: > > > > For my own reference: > > > Acked-for-MFD-by: Lee Jones > > > Can I suggest that you take this patch into t

[PATCH net] net: handle NAPI_GRO_FREE_STOLEN_HEAD case also in napi_frags_finish()

2017-06-29 Thread Michal Kubecek
Recently I started seeing warnings about pages with refcount -1. The problem was traced to packets being reused after their head was merged into a GRO packet by skb_gro_receive(). While bisecting the issue pointed to commit c21b48cc1bbf ("net: adjust skb->truesize in ___pskb_trim()") and I have nev

Re: [PATCH] clk: scpi: error when clock fails to register

2017-06-29 Thread Sudeep Holla
Hi Jerome, On 29/06/17 09:50, Jerome Brunet wrote: > On Wed, 2017-06-28 at 18:07 +0100, Sudeep Holla wrote: >> >> On 28/06/17 17:46, Jerome Brunet wrote: >>> On Wed, 2017-06-28 at 16:52 +0100, Sudeep Holla wrote: >> >> [..] >> Thanks for this stack. I just worked out the same path now. I

Re: [PATCH] [media] staging/imx: remove confusing IS_ERR_OR_NULL usage

2017-06-29 Thread Philipp Zabel
Hi Arnd, thank you for the cleanup. I see two issues below: On Wed, 2017-06-28 at 22:13 +0200, Arnd Bergmann wrote: > While looking at a compiler warning, I noticed the use of > IS_ERR_OR_NULL, which is generally a sign of a bad API design > and should be avoided. > > In this driver, this is fai

[PATCH] perf/x86/intel: constify array lbr_desc and make a function static

2017-06-29 Thread Colin King
From: Colin Ian King A few minor clean-ups: constify array lbr_desc and make local function lbr_from_signext_quirk_rd static to fix sparse warning: "symbol 'lbr_from_signext_quirk_rd' was not declared. Should it be static?" Signed-off-by: Colin Ian King --- arch/x86/events/intel/lbr.c | 4 ++-

  1   2   3   4   5   6   7   8   9   10   >