[PATCH 2/2] net: via/Kconfig: replace USE_OF with OF_???

2015-06-17 Thread Antonio Borneo
USE_OF is used as intermediate Kconfig option by few arch's (ARM, MIPS, Xtensa). Replace instances of USE_OF outside of arch folders with proper OF_???. Signed-off-by: Antonio Borneo borneo.anto...@gmail.com --- drivers/net/ethernet/via/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 1/2] clocksource: Kconfig: replace USE_OF with OF

2015-06-17 Thread Antonio Borneo
USE_OF is used as intermediate Kconfig option by few arch's (ARM, MIPS, Xtensa); in all these cases it implies setting option OF too. Replace the only instance of USE_OF in clocksource with OF. Signed-off-by: Antonio Borneo borneo.anto...@gmail.com --- drivers/clocksource/Kconfig | 2 +- 1 file

[PATCH] net: via-rhine: remove unneeded include file

2015-06-17 Thread Antonio Borneo
Signed-off-by: Antonio Borneo borneo.anto...@gmail.com --- drivers/net/ethernet/via/via-rhine.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c index de28504..a1aaf3a 100644 --- a/drivers/net/ethernet/via/via-rhine.c

[PATCH 0/2] replace USE_OF in drivers

2015-06-17 Thread Antonio Borneo
Kconfig option USE_OF is used as intermediate option by few arch's (ARM, MIPS, Xtensa); in all these cases USE_OF implies setting option OF and other OF_???. Outside arch folder, USE_OF is used only in two places. In both places, USE_OF can be replaced by OF or OF_???. This change reduces the

Re: [PATCH 1/2] KVM: fix checkpatch.pl errors in kvm/async_pf.h

2015-06-17 Thread Paolo Bonzini
On 16/06/2015 13:33, Kevin Mulvey wrote: fix brace spacing Signed-off-by: Kevin Mulvey kmul...@linux.com --- virt/kvm/async_pf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virt/kvm/async_pf.h b/virt/kvm/async_pf.h index e7ef6447..ec4cfa2 100644 ---

Re: [PATCH tip] perf tools: Fix a compiling problem

2015-06-17 Thread Wangnan (F)
Please note that a similar patch has been applied by Arnaldo Carvalho de Melo: http://lkml.kernel.org/r/20150616134750.gc10...@kernel.org On 2015/6/3 20:30, Namhyung Kim wrote: Hi Wang, On Wed, Jun 3, 2015 at 5:50 PM, Wang Nan wangn...@huawei.com wrote: Commit

Re: [RFC] panic_on_oom_timeout

2015-06-17 Thread Tetsuo Handa
Michal Hocko wrote a few minutes ago: Subject: [RFC -v2] panic_on_oom_timeout Oops, we raced... Michal Hocko wrote: On Tue 16-06-15 22:14:28, Tetsuo Handa wrote: Michal Hocko wrote: This patch implements system_memdie_panic_secs sysctl which configures a maximum timeout for the OOM

Re: 4.1-rc7, thinkpad X60: platform mode hibernation does very wrongthing

2015-06-17 Thread Rafael J. Wysocki
On Wednesday, June 17, 2015 08:19:37 PM linus wrote: there might be something wrong with driver, can you provide serial log with no_console_suspend? or using rtctrace ---Original--- From: Pavel Machekpa...@ucw.cz Date: 2015/06/17 20:15:28 To:

Re: [PATCH kernel] powerpc/iommu/ioda2: Enable compile with IOV=on and IOMMU_API=off

2015-06-17 Thread David Gibson
On Mon, Jun 15, 2015 at 05:49:59PM +1000, Alexey Kardashevskiy wrote: The pnv_pci_ioda2_unset_window() function is used to do the final cleanup of a DMA window being released: - via VFIO ioctl by the guest request; - via unplugging a virtual PCI function. However the function was under #ifdef

Re: [PATCH 0/5] vhost: support upto 509 memory regions

2015-06-17 Thread Igor Mammedov
On Wed, 17 Jun 2015 08:31:23 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 17, 2015 at 12:19:15AM +0200, Igor Mammedov wrote: On Tue, 16 Jun 2015 23:16:07 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Tue, Jun 16, 2015 at 06:33:34PM +0200, Igor Mammedov wrote:

[PATCH v6 08/14] crypto: marvell/CESA: add MD5 support

2015-06-17 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for MD5 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 +

[PATCH v6 06/14] crypto: marvell/CESA: add DES support

2015-06-17 Thread Boris Brezillon
Add support for DES operations. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by: Arnaud Ebalard a...@natisbad.org --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell/cipher.c | 150

[PATCH v6 09/14] crypto: marvell/CESA: add SHA256 support

2015-06-17 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for SHA256 operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 +

Re: [RFC/INCOMPLETE 00/13] x86: Rewrite exit-to-userspace code

2015-06-17 Thread Ingo Molnar
* Ingo Molnar mi...@kernel.org wrote: Basically there would be a single C function we'd call, which returns a condition (or fixes up its return address on the stack directly) to determine between the SYSRET and IRET return paths. This we could do by returning the syscall result in RAX, and

[PATCH 1/1] scsi: Initialize sdp after NULL check of cmnd

2015-06-17 Thread Maninder Singh
Currently cmnd pointer is already dereferenced before NULL check and thus getting below warning in static analysis: warn: variable dereferenced before check 'cmnd' So initialize struct scsi_device *sdp after NULL check of cmnd Signed-off-by: Maninder Singh maninder...@samsung.com Reviewed-by:

[PATCH v2 4/9] staging: sm7xxfb: no space after cast

2015-06-17 Thread Sudip Mukherjee
fixes the checkpatch warning about using space after typecast. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/sm7xxfb/sm7xxfb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c

Re: [PATCH v1 02/20] [SCSI] mpt3sas: Get IOC_FACTS information using handshake protocol only after HBA card gets into READY or Operational state.

2015-06-17 Thread Tomas Henzl
On 06/17/2015 11:10 AM, Sreekanth Reddy wrote: Driver initialization fails if driver tries to send IOC facts request message when the IOC is in reset or in a fault state. This patch will make sure that 1.Driver to send IOC facts request message only if HBA is in operational or ready

Re: [PATCH v4 3/6] arch/*/asm/io.h: add ioremap_cache() to all architectures

2015-06-17 Thread Christoph Hellwig
Ok, this convinces me that we really should have a common defintion for ioremap() and friends first. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v6 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Boris Brezillon
On Wed, 17 Jun 2015 17:50:01 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Wed, Jun 17, 2015 at 09:45:33AM +0200, Boris Brezillon wrote: + ret = dma_map_sg(cesa_dev-dev, req-src, creq-src_nents, +DMA_TO_DEVICE); + if (!ret) + return -ENOMEM;

Re: [PATCH 11/11] dt: Exynos: add Snow SPI NOR node.

2015-06-17 Thread Pavel Machek
On Thu 2015-06-04 17:20:54, Marek Vasut wrote: On Thursday, June 04, 2015 at 04:04:18 AM, Krzysztof Kozlowski wrote: On 04.06.2015 06:26, Michal Suchanek wrote: The Snow has onboard SPI NOR flash which contains the bootloader. Add DT node for this flash chip. The flash is rated 133MHz

Re: [PATCH] KVM: nSVM: Check for NRIPS support before updating control field

2015-06-17 Thread Paolo Bonzini
On 11/06/2015 08:05, Bandan Das wrote: If hardware doesn't support DecodeAssist - a feature that provides more information about the intercept in the VMCB, KVM decodes the instruction and then updates the next_rip vmcb control field. However, NRIP support itself depends on cpuid

Re: [PATCH 1/8] ARC: perf: support RAW events

2015-06-17 Thread Vineet Gupta
On Monday 15 June 2015 09:00 PM, Peter Zijlstra wrote: On Tue, Jun 09, 2015 at 05:49:25PM +0530, Vineet Gupta wrote: +/* + * Raw events are specified in hex value of ASCII chars: + * + * In PCT register CC_NAME{0,1} event name string[] is saved from LSB side: + * e.g. cycles corresponds to

Re: [PATCH v3 00/18] x86/tsc: Clean up rdtsc helpers

2015-06-17 Thread Borislav Petkov
On Tue, Jun 16, 2015 at 05:35:48PM -0700, Andy Lutomirski wrote: My sincere apologies for the spam. I send an unholy mixture of the real patch set and an old poorly split-up patch set, and the result is incomprehensible. Here's what I meant to send. After the some recent threads about

[PATCH v2 9/9] staging: sm7xxfb: fix camelcase

2015-06-17 Thread Sudip Mukherjee
Fix the checkpatch warning about CamelCase. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/sm7xxfb/sm7xx.h | 2 +- drivers/staging/sm7xxfb/sm7xxfb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/sm7xxfb/sm7xx.h

[PATCH v2 8/9] staging: sm7xxfb: fix indention

2015-06-17 Thread Sudip Mukherjee
Fix the odd indention of vesa_mode_table. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/sm7xxfb/sm7xxfb.c | 1300 ++--- 1 file changed, 650 insertions(+), 650 deletions(-) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c

[PATCH v2 7/9] staging: sm7xxfb: move mode table

2015-06-17 Thread Sudip Mukherjee
move vgamode table from the header file to the C file and mark it as const. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/sm7xxfb/sm7xx.h | 660 -- drivers/staging/sm7xxfb/sm7xxfb.c | 660 ++ 2

Re: [PATCH v5 1/2] x86_64: remove not needed clear_page for init_level4_page

2015-06-17 Thread Alexander Popov
On 16.06.2015 18:46, Borislav Petkov wrote: On Tue, Jun 16, 2015 at 02:45:06PM +0300, Andrey Ryabinin wrote: Can't we just move clear_page(init_level4_pgt) higher? Before or right after clear_bss() (iow before kasan_early_init()). That sounds much better. And I don't see anything depending

Re: [PATCH 3/5] vhost: support upto 509 memory regions

2015-06-17 Thread Igor Mammedov
On Wed, 17 Jun 2015 12:46:09 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 17, 2015 at 12:37:42PM +0200, Igor Mammedov wrote: On Wed, 17 Jun 2015 12:11:09 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 17, 2015 at 10:54:21AM +0200, Igor Mammedov wrote: On

Re: [PATCH 4/8] ARCv2: perf: Support sampling events using overflow interrupts

2015-06-17 Thread Vineet Gupta
On Tuesday 16 June 2015 02:37 PM, Peter Zijlstra wrote: On Tue, Jun 16, 2015 at 05:37:40AM +, Vineet Gupta wrote: On Monday 15 June 2015 09:55 PM, Peter Zijlstra wrote: On Tue, Jun 09, 2015 at 05:49:28PM +0530, Vineet Gupta wrote: + if (arc_pmu-has_interrupts) { +

Re: [PATCH] perf unwind: Fix a compile error

2015-06-17 Thread Wangnan (F)
On 2015/6/16 21:47, Arnaldo Carvalho de Melo wrote: Em Tue, Jun 16, 2015 at 11:16:35AM +, Hou Pengyang escreveu: When libunwind is on, there is a compile error as : util/unwind-libunwind.c:363:21: error: 'dso' undeclared (first use in this function) dso__data_put_fd(dso); This

Re: Panic when cpu hot-remove

2015-06-17 Thread Joerg Roedeljoro
On Wed, Jun 17, 2015 at 10:42:49AM +, 范冬冬 wrote: Hi maintainer, We found a problem that a panic happen when cpu was hot-removed. We also trace the problem according to the calltrace information. An endless loop happen because value head is not equal to value tail forever in the

[PATCH 2/2] gpio: altera: fix return value of altera_gpio_remove()

2015-06-17 Thread Masahiro Yamada
The remove callback never succeeds, which seems odd. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- I wonder why nobody has pointed this out before me. I am suspecting -EIO might be intentional. I hope some Altera guys will give me comments. drivers/gpio/gpio-altera.c | 2 +-

[PATCH 1/2] gpio: altera: use of_mm_gpiochip_remove() to fix memory leak

2015-06-17 Thread Masahiro Yamada
This driver calls of_mm_gpiochip_add() to add a memory mapped gpio chip. So, of_mm_gpiochip_remove() should be used when removing it. The direct call of gpiochip_remove() misses unmapping the register and freeing the label. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com ---

[PATCH RESEND] perf tools: Ignore .config-detected in .gitignore

2015-06-17 Thread Wang Nan
Commit fcfd6611fbccdbf2593bd949097a5c0e45cd96da (tools build: Add detected config support) dynamically creates .config-detected. Add it to .gitignore. Signed-off-by: Wang Nan wangn...@huawei.com --- tools/perf/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/.gitignore

Re: [PATCH 2/3] vfs, writeback: replace FS_CGROUP_WRITEBACK with SB_I_CGROUPWB

2015-06-17 Thread Christoph Hellwig
Looks good, thanks. Reviewed-by: Christoph Hellwig h...@lst.de -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

[PATCH 1/3 v19 for 4.2] sys_membarrier(): system-wide memory barrier (generic, x86)

2015-06-17 Thread Mathieu Desnoyers
Here is an implementation of a new system call, sys_membarrier(), which executes a memory barrier on all threads running on the system. It is implemented by calling synchronize_sched(). It can be used to distribute the cost of user-space memory barriers asymmetrically by transforming pairs of

[PATCH 1/2] create SMAF module

2015-06-17 Thread Benjamin Gaignard
Secure Memory Allocation Framework goal is to be able to allocate memory that can be securing. There is so much ways to allocate and securing memory that SMAF doesn't do it by itself but need help of additional modules. To be sure to use the correct allocation method SMAF implement deferred

[PATCH 2/2] SMAF: add CMA allocator

2015-06-17 Thread Benjamin Gaignard
SMAF CMA allocator implement helpers functions to allow SMAF to allocate contiguous memory. match() each if at least one of the attached devices have coherent_dma_mask set to DMA_BIT_MASK(32). For allocation it use dma_alloc_attrs() with DMA_ATTR_WRITE_COMBINE and not dma_alloc_writecombine to

[PATCH 3/3 for 4.2] selftests: enhance membarrier syscall test

2015-06-17 Thread Mathieu Desnoyers
Update the membarrier syscall self-test to match the membarrier interface. Extend coverage of the interface. Consider ENOSYS as a SKIP test, since it is a valid configuration, but does not allow testing the system call. CC: Michael Ellerman m...@ellerman.id.au CC: Pranith Kumar

[PATCH 0/3 for 4.2] sys_membarrier (x86, generic)

2015-06-17 Thread Mathieu Desnoyers
Hi, I am submitting the membarrier system call for the upcoming Linux 4.2 merge window. It would be nice if it could sit a few days in Andrew Morton's tree before that. A major addition to sys_membarrier changelog is the inclusion of the list of users which would benefit from having this system

[PATCH 2/3 for 4.2] selftests: add membarrier syscall test

2015-06-17 Thread Mathieu Desnoyers
From: Pranith Kumar bobby.pr...@gmail.com This patch adds a self test for the membarrier system call. CC: Michael Ellerman m...@ellerman.id.au Signed-off-by: Pranith Kumar bobby.pr...@gmail.com Signed-off-by: Mathieu Desnoyers mathieu.desnoy...@efficios.com --- tools/testing/selftests/Makefile

Re: [PATCH 3/5] vhost: support upto 509 memory regions

2015-06-17 Thread Igor Mammedov
On Wed, 17 Jun 2015 13:51:56 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 17, 2015 at 01:48:03PM +0200, Igor Mammedov wrote: So far it's kernel limitation and this patch fixes crashes that users see now, with the rest of patches enabling performance not to regress.

Re: [PATCH 11/18] seqcount: Introduce raw_write_seqcount_barrier()

2015-06-17 Thread Peter Zijlstra
On Thu, Jun 11, 2015 at 02:45:57PM -0700, Paul E. McKenney wrote: Color me slow and stupid. Maybe due to reviewing a patch too early in the morning, who knows? There is nothing above that prevents the compiler and the CPU from reordering the assignments to X and Y with the increment of

Re: [PATCH] xen-netback:Make the function xenvif_schedulable have a return type of bool

2015-06-17 Thread Wei Liu
On Tue, Jun 16, 2015 at 11:03:30PM -0400, Nicholas Krause wrote: This makes the function xenvif_sechedulable have a return type of bool now due to this particular function's return statement only ever evaluating to have a value of one or zero. Signed-off-by: Nicholas Krause

[PATCH v2 6/9] staging: sm7xxfb: reduce indention

2015-06-17 Thread Sudip Mukherjee
reduce code indention keeping the logic same. Signed-off-by: Sudip Mukherjee su...@vectorindia.org --- drivers/staging/sm7xxfb/sm7xxfb.c | 173 ++ 1 file changed, 82 insertions(+), 91 deletions(-) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c

Re: [PATCH v6 00/21] libnvdimm: non-volatile memory devices

2015-06-17 Thread Christoph Hellwig
Still not a big fan of the spec, but I guess this is a mosly reasonable implementation now. So for patches 1-16: Acked-by: Christoph Hellwig h...@lst.de The btt integration still needs a proper patch split and review, and I still detest the mess with the test moduly by heart. -- To unsubscribe

Re: [RFC PATCH 00/18] kthreads/signal: Safer kthread API and signal handling

2015-06-17 Thread Christoph Hellwig
On Fri, Jun 05, 2015 at 05:00:59PM +0200, Petr Mladek wrote: Kthreads are implemented as an infinite loop. They include check points for termination, freezer, parking, and even signal handling. We need to touch all kthreads every time we want to add or modify the behavior of such

Re: [PATCH 1/1] scsi: Initialize sdp after NULL check of cmnd

2015-06-17 Thread Johannes Thumshirn
On Wed, Jun 17, 2015 at 04:51:07PM +0530, Maninder Singh wrote: Currently cmnd pointer is already dereferenced before NULL check and thus getting below warning in static analysis: warn: variable dereferenced before check 'cmnd' So initialize struct scsi_device *sdp after NULL check of cmnd

[PATCH v5 0/3] net/xen: Clean up

2015-06-17 Thread Julien Grall
Hi, The first 2 patches were originally part of the Xen 64KB series [1]. Although I think they can go without waiting the rest of the 64KB series. The third patch has been added in the v4. Regards, Cc: Wei Liu wei.l...@citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: David Vrabel

Re: [PATCH] i2c-parport: start using pr_fmt

2015-06-17 Thread Wolfram Sang
On Fri, Jun 12, 2015 at 12:47:14PM +0530, Sudip Mukherjee wrote: Start using pr_fmt and convert all remaining printk to use pr_* family of macros. I heard you introduced the driver model to parport. So, isn't there a struct device we could use for dev_err() and friends? Thanks, Wolfram

Re: [PATCH 3/5] vhost: support upto 509 memory regions

2015-06-17 Thread Michael S. Tsirkin
On Wed, Jun 17, 2015 at 01:48:03PM +0200, Igor Mammedov wrote: So far it's kernel limitation and this patch fixes crashes that users see now, with the rest of patches enabling performance not to regress. When I say regression I refer to an option to limit the array size again after

Re: membarrier selftest issue

2015-06-17 Thread Mathieu Desnoyers
- On Jun 17, 2015, at 12:56 AM, Pranith Kumar bobby.pr...@gmail.com wrote: Hi Mathieu, On Mon, Jun 15, 2015 at 11:31 AM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: Hi, The updated membarrier tree: https://github.com/compudj/linux-dev branch: sys-membarrier-volatile

Re: Regression in 3.10.80 vs. 3.10.79

2015-06-17 Thread Rafael J. Wysocki
On Tuesday, June 16, 2015 01:00:13 AM Rafael J. Wysocki wrote: On Monday, June 15, 2015 07:56:05 AM Roland Dreier wrote: On Sat, Jun 13, 2015 at 9:56 AM, Roland Dreier rol...@purestorage.com wrote: Below is a more sophisticated, so to speak, version of it with a changelog and all.

Re: [PATCH v6 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Herbert Xu
On Wed, Jun 17, 2015 at 01:33:24PM +0200, Boris Brezillon wrote: Actually, I think I don't need to save the dma_map_sg return val, since I'm using the sg_next function to iterate over the scatterlist. Am I right ? IOW, is the -map_sg() function (in dma_map_ops) supposed to merge the

[PATCH 3/3] HID: hid-sony: Fix report descriptor for Navigation Controller

2015-06-17 Thread Simon Wood
Patch report descriptor to remove unused and ramdomly changing axis. Original report descriptor (via BT) was as follows: 05 01 09 04 a1 01 a1 02 85 01 75 08 95 01 15 00 |..u.| 0010 26 ff 00 81 03 75 01 95 13 15 00 25 01 35 00 45 |u.%.5.E| 0020 01 05 09

[PATCH 2/3] HID: hid-sony: Navigation controller only has 1 LED and no rumble

2015-06-17 Thread Simon Wood
Signed-off-by: Simon Wood si...@mungewell.org --- drivers/hid/hid-sony.c | 41 + 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 3fba2dca..af02139 100644 --- a/drivers/hid/hid-sony.c +++

[PATCH 1/3] HID: hid-sony: Add BT support for Navigation Controller

2015-06-17 Thread Simon Wood
Signed-off-by: Simon Wood si...@mungewell.org --- drivers/hid/hid-core.c | 1 + drivers/hid/hid-sony.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 044e96a..a64f862 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@

Re: [RFC v3 4/4] shmem: Add support for generic FS events

2015-06-17 Thread Leon Romanovsky
} - if (error == -ENOSPC !once++) { + if (error == -ENOSPC) { + if (!once++) { info = SHMEM_I(inode); spin_lock(info-lock); shmem_recalc_inode(inode); spin_unlock(info-lock);

[PATCH] livepatch: add sysfs interface /sys/kernel/livepatch/state

2015-06-17 Thread Li Bin
The added sysfs interface /sys/kernel/livepatch/state is read-only, it shows the patches that have been applied, incluing the stack index and the state of each patch. $ cat /sys/kernel/livepatch/state Index Patch State --- 1

Re: [PATCH 3/5] vhost: support upto 509 memory regions

2015-06-17 Thread Michael S. Tsirkin
On Wed, Jun 17, 2015 at 12:00:56AM +0200, Igor Mammedov wrote: On Tue, 16 Jun 2015 23:14:20 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Tue, Jun 16, 2015 at 06:33:37PM +0200, Igor Mammedov wrote: since commit 1d4e7e3 kvm: x86: increase user memory slots to 509 it became

Re: [PATCH] isdn: disable HiSax NetJet driver on microblaze arch

2015-06-17 Thread Jean Delvare
Le Wednesday 17 June 2015 à 03:05 +0200, Nicolai Stange a écrit : Fix an allmodconfig compilation failer on microblaze due to big endian architectures being apparently unsupported by the NetJet code: drivers/isdn/hisax/nj_s.c: In function 'setup_netjet_s': drivers/isdn/hisax/nj_s.c:265:2:

[PATCH] Hotplug: fix the bug that the system is down,when memory

2015-06-17 Thread gongzg
From: GongZhaogang gongzhaog...@inspur.com By analysing the bug function call trace,we find that create_worker function will alloc the memory from node0.Because node0 is offline,the allocation is failed.Then we add a condition to ensure the node is online and system can alloc memory from a node

Re: [RFC][PATCHv2 8/8] zsmalloc: register a shrinker to trigger auto-compaction

2015-06-17 Thread Sergey Senozhatsky
Hello, On (06/16/15 23:47), Minchan Kim wrote: [..] I like the idea but still have a concern to lack of fragmented zspages during memory pressure because auto-compaction will prevent fragment most of time. Surely, using fragment space as buffer in heavy memory pressure is not intened design

Re: [PATCH 3/5] vhost: support upto 509 memory regions

2015-06-17 Thread Igor Mammedov
On Wed, 17 Jun 2015 08:34:26 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 17, 2015 at 12:00:56AM +0200, Igor Mammedov wrote: On Tue, 16 Jun 2015 23:14:20 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Tue, Jun 16, 2015 at 06:33:37PM +0200, Igor Mammedov wrote:

Re: [PATCH v5 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Boris Brezillon
On Wed, 17 Jun 2015 15:18:29 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Wed, Jun 17, 2015 at 09:15:03AM +0200, Boris Brezillon wrote: Anyway, now I'm doing the following test: if (creq-src_nents !ret) return -ENOMEM; Best not call dma_map_sg at all in the

[PATCH v6 11/14] crypto: marvell/CESA: add allhwsupport module parameter

2015-06-17 Thread Boris Brezillon
The old and new marvell CESA drivers both support Orion and Kirkwood SoCs. Add a module parameter to choose whether these SoCs should be attached to the new or the old driver. The default policy is to keep attaching those IPs to the old driver if it is enabled, until we decide the new CESA driver

[PATCH v6 07/14] crypto: marvell/CESA: add Triple-DES support

2015-06-17 Thread Boris Brezillon
From: Arnaud Ebalard a...@natisbad.org Add support for Triple-DES operations. Signed-off-by: Arnaud Ebalard a...@natisbad.org Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 +

[PATCH v6 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Boris Brezillon
The CESA IP supports CPU offload through a dedicated DMA engine (TDMA) which can control the crypto block. When you use this mode, all the required data (operation metadata and payload data) are transferred using DMA, and the results are retrieved through DMA when possible (hash results are not

Re: [PATCH v3 17/18] x86/kvm/tsc: Drop extra barrier and use rdtsc_ordered in kvmclock

2015-06-17 Thread Paolo Bonzini
On 17/06/2015 02:36, Andy Lutomirski wrote: __pvclock_read_cycles had an unnecessary barrier. Get rid of that barrier and clean up the code by just using rdtsc_ordered(). Cc: Paolo Bonzini pbonz...@redhat.com Cc: Radim Krcmar rkrc...@redhat.com Cc: Marcelo Tosatti mtosa...@redhat.com

Re: [PATCH] mm: use srcu for shrinkers

2015-06-17 Thread Michal Hocko
On Mon 15-06-15 13:03:22, Davidlohr Bueso wrote: The shrinker_rwsem is a global lock that protects the shrinker_list, serializing a shrinking call with register/unregistering the shrinker itself. As such, this lock is taken mostly for reading. In the unlikely case that the the list is being

[PATCH v6 12/14] crypto: marvell/CESA: add support for Orion SoCs

2015-06-17 Thread Boris Brezillon
Add the Orion SoC description, and select this implementation by default to support non-DT probing: Orion is the only platform where non-DT boards are declaring the CESA block. Control the allhwsupport module parameter to avoid probing the CESA IP when the old CESA driver is enabled (unless it is

Re: [PATCH] staging: nvec: remove duplicated const

2015-06-17 Thread Marc Dietrich
Am Dienstag, 16. Juni 2015, 23:13:21 schrieb Peng Fan: Sparse checking warning: drivers/staging/nvec/nvec_ps2.c:172:14: warning: duplicate const. Remove the duplicated const to fix the warning. Signed-off-by: Peng Fan van.free...@gmail.com Thanks! Acked-by: Marc Dietrich marvi...@gmx.de

Re: [RESUBMIT Patch 1/1] net: replace if()/BUG with BUG_ON

2015-06-17 Thread Alexander Drozdov
On Wed, 17 Jun 2015 09:36:11 +0200, Frans Klaver wrote: On Wed, Jun 17, 2015 at 6:36 AM, Maninder Singh maninder...@samsung.com wrote: Use BUG_ON(condition) instead of if(condition)/BUG() . Signed-off-by: Maninder Singh maninder...@samsung.com Reviewed-by: Akhilesh Kumar akhiles...@samsung.com

PING: [PATCH] Avoid conflict with host definitions when cross-compiling

2015-06-17 Thread Pavel Fedin
PING! 2 Yaakov: Hello! I remember you upstreamed this one: https://cygwin.com/ml/cygwin/2012-06/msg00221/0002-tools-include-use-stdint-types-for-user -space-bytesh.patch Who is the person to cc: ? Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia

BUG: spinlock bad magic, do_task_stat

2015-06-17 Thread Michael Trimarchi
Hi I'm trying to understand the reason of this failure. I'm running a 3.0.x kernel but I have seen that there are not so much differents in proc fs. Anyone have an idea what could be the reason and where this unlock happen? Michael [10669.296142] BUG: spinlock bad magic on CPU#0, top/11656

Re: [PATCH v4] pagemap: switch to the new format and do some cleanup

2015-06-17 Thread Konstantin Khlebnikov
On Wed, Jun 17, 2015 at 7:59 AM, Konstantin Khlebnikov koc...@gmail.com wrote: On Wed, Jun 17, 2015 at 12:29 AM, Andrew Morton a...@linux-foundation.org wrote: On Mon, 15 Jun 2015 08:56:49 +0300 Konstantin Khlebnikov koc...@gmail.com wrote: This patch removes page-shift bits (scheduled to

crypto: drivers - Fix Kconfig selects

2015-06-17 Thread Herbert Xu
This patch fixes a number of problems in crypto driver Kconfig entries: 1. Select BLKCIPHER instead of BLKCIPHER2. The latter is internal and should not be used outside of the crypto API itself. 2. Do not select ALGAPI unless you use a legacy type like CRYPTO_ALG_TYPE_CIPHER. 3. Select the

[PATCH next] Merge remote-tracking branch 'leds/for-next':: aat1290_intensity_to_brightness() can be static

2015-06-17 Thread kbuild test robot
Signed-off-by: Fengguang Wu fengguang...@intel.com --- leds-aat1290.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/leds/leds-aat1290.c b/drivers/leds/leds-aat1290.c index 1ac525b4..fd7c25f 100644 --- a/drivers/leds/leds-aat1290.c +++

Re: [PATCH v5 04/14] crypto: add a new driver for Marvell's CESA

2015-06-17 Thread Boris Brezillon
On Wed, 17 Jun 2015 13:58:24 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Tue, Jun 16, 2015 at 11:58:58AM +0200, Boris Brezillon wrote: +config CRYPTO_DEV_MARVELL_CESA + tristate New Marvell's Cryptographic Engine driver + depends on (PLAT_ORION || ARCH_MVEBU ||

Re: [PATCH v5 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Boris Brezillon
On Wed, 17 Jun 2015 13:56:33 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Wed, Jun 17, 2015 at 01:05:27PM +0800, Herbert Xu wrote: On Tue, Jun 16, 2015 at 11:58:59AM +0200, Boris Brezillon wrote: + ret = dma_map_sg(cesa_dev-dev, req-src, creq-src_nents, +

Re: [PATCH v2 4/4] scsi: ufs: probe and init of variant driver from the platform device

2015-06-17 Thread Dov Levenglick
On Tue, Jun 9, 2015 at 12:53 AM, Dov Levenglick d...@codeaurora.org wrote: On Sun, Jun 7, 2015 at 10:32 AM, yga...@codeaurora.org wrote: 2015-06-05 5:53 GMT+09:00 yga...@codeaurora.org: [...] If ufshcd-pltfrm driver is loaded before ufs-qcom, (what actually happens always), then the

Re: Re: [PATCH] Hotplug: fix the bug that the system is down,when memory

2015-06-17 Thread Frans Klaver
On Wed, Jun 17, 2015 at 9:38 AM, gongzhaog...@inspur.com gongzhaog...@inspur.com wrote: Yes. I am wrong and send again. Subject: [PATCH] Hotplug: fix the bug that the system is down,when memory is not in node0 and cpu is logically hotadded. You might want to shorten

Re: call_rcu from trace_preempt

2015-06-17 Thread Daniel Wagner
On 06/16/2015 07:20 PM, Alexei Starovoitov wrote: On 6/16/15 5:38 AM, Daniel Wagner wrote: static int free_thread(void *arg) +{ +unsigned long flags; +struct htab_elem *l; + +while (!kthread_should_stop()) { +spin_lock_irqsave(elem_freelist_lock, flags); +while

Re: [RFC v3 3/4] ext4: Add support for generic FS events

2015-06-17 Thread Leon Romanovsky
On Tue, Jun 16, 2015 at 4:09 PM, Beata Michalska b.michal...@samsung.com wrote: Add support for generic FS events including threshold notifications, ENOSPC and remount as read-only warnings, along with generic internal warnings/errors. Signed-off-by: Beata Michalska b.michal...@samsung.com

Re: [RESUBMIT Patch 1/1] net: replace if()/BUG with BUG_ON

2015-06-17 Thread Michael S. Tsirkin
On Wed, Jun 17, 2015 at 10:06:01AM +0530, Maninder Singh wrote: Use BUG_ON(condition) instead of if(condition)/BUG() . Signed-off-by: Maninder Singh maninder...@samsung.com Reviewed-by: Akhilesh Kumar akhiles...@samsung.com Why not? Acked-by: Michael S. Tsirkin m...@redhat.com ---

Re: [PATCH v5 05/14] crypto: marvell/CESA: add TDMA support

2015-06-17 Thread Herbert Xu
On Wed, Jun 17, 2015 at 09:15:03AM +0200, Boris Brezillon wrote: Anyway, now I'm doing the following test: if (creq-src_nents !ret) return -ENOMEM; Best not call dma_map_sg at all in the !src_nents case as I think some architectures will WARN or BUG if you give it a zero-length list.

Re: [PATCH] livepatch: add sysfs interface /sys/kernel/livepatch/state

2015-06-17 Thread Miroslav Benes
On Wed, 17 Jun 2015, Li Bin wrote: The added sysfs interface /sys/kernel/livepatch/state is read-only, it shows the patches that have been applied, incluing the stack index and the state of each patch. $ cat /sys/kernel/livepatch/state Index Patch State

Re: [BUG] fs: inotify_handle_event() reading un-init memory

2015-06-17 Thread Jan Kara
On Tue 16-06-15 22:22:34, Jesper Dangaard Brouer wrote: On Tue, 16 Jun 2015 15:52:09 +0200 Jan Kara j...@suse.cz wrote: On Tue 16-06-15 13:33:18, Jesper Dangaard Brouer wrote: Caught by kmemcheck. Don't know the fix... just pointed at the bug. Introduced in commit

[PATCH v2] futex: lower the lock contention on the HB lock during wake up

2015-06-17 Thread Sebastian Andrzej Siewior
wake_futex_pi() wakes the task before releasing the hash bucket lock (HB). The first thing the woken up task usually does is to acquire the lock which requires the HB lock. On SMP Systems this leads to blocking on the HB lock which is released by the owner shortly after. This patch rearranges the

Building tools/perf fails on next

2015-06-17 Thread Riku Voipio
Hi, The commit: commit d72da4a4d973d8a0a0d3c97e7cdebf287fbe3a99 Author: Peter Zijlstra pet...@infradead.org Date: Wed May 27 11:09:36 2015 +0930 rbtree: Make lockless searches non-fatal Adds linux/rcupdate.h to rbtree.h, which in turn is included from perf userspace headers. Now

[PATCH] Hotplug: fix the bug that the system is down,when memory is not in node0 and cpu is logically hotadded.

2015-06-17 Thread gongzg
From: GongZhaogang gongzhaog...@inspur.com By analysing the bug function call trace,we find that create_worker function will alloc the memory from node0.Because node0 is offline,the allocation is failed.Then we add a condition to ensure the node is online and system can alloc memory from a node

Re: [RESUBMIT Patch 1/1] net: replace if()/BUG with BUG_ON

2015-06-17 Thread Frans Klaver
On Wed, Jun 17, 2015 at 6:36 AM, Maninder Singh maninder...@samsung.com wrote: Use BUG_ON(condition) instead of if(condition)/BUG() . Signed-off-by: Maninder Singh maninder...@samsung.com Reviewed-by: Akhilesh Kumar akhiles...@samsung.com --- net/packet/af_packet.c |3 +-- 1 files

Re: [PATCH v3 1/4] pagemap: check permissions and capabilities at open time

2015-06-17 Thread Naoya Horiguchi
On Tue, Jun 09, 2015 at 11:00:15PM +0300, Konstantin Khlebnikov wrote: From: Konstantin Khlebnikov khlebni...@yandex-team.ru This patch moves permission checks from pagemap_read() into pagemap_open(). Pointer to mm is saved in file-private_data. This reference pins only mm_struct itself.

Re: [PATCH v5 04/11] nvmem: Add a simple NVMEM framework for consumers

2015-06-17 Thread Sascha Hauer
On Tue, Jun 16, 2015 at 03:29:25PM -0700, Stephen Boyd wrote: On 05/21/2015 09:43 AM, Srinivas Kandagatla wrote: + /* if it's not end on byte boundary */ + if ((nbits + bit_offset) % BITS_PER_BYTE) { + /* setup the last byte with msb bits from nvmem */ + rc =

Re: [PATCH] Hotplug: fix the bug that the system is down,when memory is not in node0 and cpu is logically hotadded.

2015-06-17 Thread Frans Klaver
On Wed, Jun 17, 2015 at 5:46 PM, gongzg gongzhaog...@inspur.com wrote: From: GongZhaogang gongzhaog...@inspur.com By analysing the bug function call trace,we find that create_worker function will alloc the memory from node0.Because node0 is offline,the allocation is failed.Then we add a

Re: [PATCH v2 12/13] KVM: x86: add SMM to the MMU role, support SMRAM address space

2015-06-17 Thread Paolo Bonzini
On 09/06/2015 06:01, Xiao Guangrong wrote: On 05/28/2015 01:05 AM, Paolo Bonzini wrote: This is now very simple to do. The only interesting part is a simple trick to find the right memslot in gfn_to_rmap, retrieving the address space from the spte role word. The same trick is used in

Re: [PATCH] benet:Make the function be_get_sriov_config have a return type of void

2015-06-17 Thread Sathya Perla
On Tue, Jun 16, 2015 at 7:12 PM, Nicholas Krause xerofo...@gmail.com wrote: This makes the function be_get_sriov_config have a return type of void now due to never signaling/nor its only caller the function be_alloc_sriov_res checking if this function has returned a error code to indicate this

Re: [PATCH v3 2/4] pagemap: add mmap-exclusive bit for marking pages mapped only here

2015-06-17 Thread Naoya Horiguchi
On Tue, Jun 09, 2015 at 11:00:17PM +0300, Konstantin Khlebnikov wrote: From: Konstantin Khlebnikov khlebni...@yandex-team.ru This patch sets bit 56 in pagemap if this page is mapped only once. It allows to detect exclusively used pages without exposing PFN: present file exclusive state 0

Re: [PATCH RFC] storage:rbd: make the size of request is equal to the, size of the object

2015-06-17 Thread Ilya Dryomov
On Wed, Jun 17, 2015 at 6:04 AM, juncheng bai baijunch...@unitedstack.com wrote: Hi. Yeah, you are right, use the default max_segments, the request size can be the object size, because the bi_phys_segments of bio could be recount, there's just a possibility. I want to fully understand the

[next:master 11893/11947] drivers/leds/leds-aat1290.c:397:21: sparse: symbol 'aat1290_intensity_to_brightness' was not declared. Should it be static?

2015-06-17 Thread kbuild test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: ca3cfaa9e7db530b14e4a2d98a9310130152fdb8 commit: 1da60a5e7198c716990ac6fa508e45e27e7067c0 [11893/11947] Merge remote-tracking branch 'leds/for-next' reproduce: # apt-get install sparse git checkout

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