crypto: drivers - Fix Kconfig selects

2015-06-16 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 algori

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

2015-06-16 Thread kbuild test robot
Signed-off-by: Fengguang Wu --- 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 +++ b/drivers/leds/leds-aat1290.c @@ -394,7 +394,7

[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-16 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 1da60a5

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

2015-06-16 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:

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

2015-06-16 Thread Konstantin Khlebnikov
On Wed, Jun 17, 2015 at 7:59 AM, Konstantin Khlebnikov wrote: > On Wed, Jun 17, 2015 at 12:29 AM, Andrew Morton > wrote: >> On Mon, 15 Jun 2015 08:56:49 +0300 Konstantin Khlebnikov >> wrote: >> >>> This patch removes page-shift bits (scheduled to remove since 3.11) and >>> completes migration t

BUG: spinlock bad magic, do_task_stat

2015-06-16 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 [1066

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

2015-06-16 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-16 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" 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 beca

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

2015-06-16 Thread Michael S. Tsirkin
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" wrote: > > > On Tue, Jun 16, 2015 at 06:33:34PM +0200, Igor Mammedov wrote: > > > Series extends vhost to support upto 509 memory regions, > > > and adds some vhost:translate

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

2015-06-16 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 > Reviewed-by: Akhilesh Kumar Why not? Acked-by: Michael S. Tsirkin > --- > net/packet/af_packet.c |3 +-- > 1 files changed, 1 ins

Building tools/perf fails on next

2015-06-16 Thread Riku Voipio
Hi, The commit: commit d72da4a4d973d8a0a0d3c97e7cdebf287fbe3a99 Author: Peter Zijlstra Date: Wed May 27 11:09:36 2015 +0930 rbtree: Make lockless searches non-fatal Adds to rbtree.h, which in turn is included from perf userspace headers. Now building tools/perf will fail with hundreds

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

2015-06-16 Thread Sathya Perla
On Tue, Jun 16, 2015 at 7:12 PM, Nicholas Krause 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 particular func

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

2015-06-16 Thread Leon Romanovsky
On Tue, Jun 16, 2015 at 4:09 PM, Beata Michalska 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 > --- > fs/ext4/balloc.c | 10 --

Re: [PATCH] selftests: add seccomp suite

2015-06-16 Thread Michael Ellerman
On Tue, 2015-06-16 at 10:54 -0700, Kees Cook wrote: > This imports the existing seccomp test suite into the kernel's selftests > tree. It contains extensive testing of seccomp features and corner cases. > There remain additional tests to move into the kernel tree, but they have > not yet been porte

Re: [PATCH v2 1/1] perf tools: Check access permission when reading /proc/kcore file.

2015-06-16 Thread Sukadev Bhattiprolu
Li Zhang [zhlci...@linux.vnet.ibm.com] wrote: | When using command perf report --kallsyms=/proc/kallsyms with a non-root | user, symbols are resolved. Then select one symbol and annotate it, it | reports the error as the following: | Can't annotate __clear_user: No vmlinux file with build id xxx wa

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

2015-06-16 Thread Simon Wood
Signed-off-by: Simon Wood --- 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 +++ b/drivers/hid/hid-son

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

2015-06-16 Thread Simon Wood
Signed-off-by: Simon Wood --- 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 @@ -1962,6 +1962,7 @@ s

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

2015-06-16 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

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

2015-06-16 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); >

Re: [uClinux-dev] m68k compile issue with 4.0.5

2015-06-16 Thread Greg Ungerer
Hi Waldemar, On 17/06/15 15:42, Waldemar Brodkorb wrote: > Hi Greg, > Greg Ungerer wrote, >> >> I don't have any compile (or runtime) problems with m5208evb_defconfig >> on linux-4.0.5 either. That is close to what most people use with qemu. >> What .config are you using? > > Are you sure the def

Re: [PATCH 7/8] nohz: Evaluate tick dependency once on context switch

2015-06-16 Thread Preeti U Murthy
On 06/12/2015 02:16 AM, Rik van Riel wrote: > On 06/11/2015 01:36 PM, Frederic Weisbecker wrote: >> The tick dependency is evaluated on every irq. This is a batch of checks >> which determine whether it is safe to stop the tick or not. These checks >> are often split in many details: posix cpu time

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

2015-06-16 Thread Herbert Xu
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 || COMPILE_TEST) && HAS_DMA && > HAS_IOMEM > + select CRYPTO_ALGAPI > + select CRYP

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

2015-06-16 Thread Herbert Xu
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, > > +DMA_TO_DEVICE); > > + if (ret != creq->src_nents) > > + return -

Re: [PATCH V1] x86, espfix: postpone the initialization of espfix stack for AP

2015-06-16 Thread Zhu Guihua
Any feedback about this? On 06/04/2015 05:45 PM, Gu Zheng wrote: The following lockdep warning occurrs when running with latest kernel: [3.178000] [ cut here ] [3.183000] WARNING: CPU: 128 PID: 0 at kernel/locking/lockdep.c:2755 lockdep_trace_alloc+0xdd/0xe0() [

Re: [uClinux-dev] m68k compile issue with 4.0.5

2015-06-16 Thread Waldemar Brodkorb
Hi Greg, Greg Ungerer wrote, > > I don't have any compile (or runtime) problems with m5208evb_defconfig > on linux-4.0.5 either. That is close to what most people use with qemu. > What .config are you using? Are you sure the defconfig creates a bootable image? I still need at least two patches.

Re: [PATCH perf/core v3 3/3] [BUGFIX] perf probe: Show usage even if the last event is skipped

2015-06-16 Thread Masami Hiramatsu
On 2015/06/16 23:46, Arnaldo Carvalho de Melo wrote: > Em Tue, Jun 16, 2015 at 08:50:57PM +0900, Masami Hiramatsu escreveu: >> When the last part of converted events are blacklisted or out-of-text, >> those are skipped and perf probe doesn't show usage examples. >> This fixes it to show the example

Re: m68k compile issue with 4.0.5

2015-06-16 Thread Waldemar Brodkorb
Hi Geert, Geert Uytterhoeven wrote, > Hi Waldemar, > > On Mon, Jun 15, 2015 at 10:23 PM, Waldemar Brodkorb wrote: > > I am trying to build a M68K (Coldfire no-MMU) kernel for Qemu-system-m68k. > > Any idea what change breaks the compile? > > I tried a few m68knommu defconfigs, but can't reprodu

Re: [PATCH v2] TCO watchdog pretimeout handler

2015-06-16 Thread Guenter Roeck
On 06/16/2015 06:45 AM, Francois-Nicolas Muller wrote: Use TCO watchdog first timeout (pretimeout) to dump CPU backtraces and ease debug of watchdog expiration causes. TCO logic generates a SCI interrupt, then its handler dumps all CPU backtraces and calls panic (in order to execute registered pa

Re: [Resend PATCH v8 0/4] sched: Rewrite runnable load and utilization average tracking

2015-06-16 Thread Boqun Feng
On Wed, Jun 17, 2015 at 11:06:50AM +0800, Boqun Feng wrote: > Hi Yuyang, > > I've run the test as follow on tip/master without and with your > patchset: > > On a 12-core system (Intel(R) Xeon(R) CPU X5690 @ 3.47GHz) > run stress --cpu 12 > run dbench 1 Sorry, I forget to say that `stress --cpu 1

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

2015-06-16 Thread Herbert Xu
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, > + DMA_TO_DEVICE); > + if (ret != creq->src_nents) > + return -ENOMEM; Hmm it doesn't quite work like that. It returns zero o

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

2015-06-16 Thread Maninder Singh
Hi David, >> Use BUG_ON(condition) instead of if(condition)/BUG() >> >> Signed-off-by: Maninder Singh >> Reviewed-by: Akhilesh Kumar >Your email client corrupted this patch, making it unusable I resent the patch with git send-mail , it results ok, hopefully it does not corrupt it. Thanks

Re: perf,ftrace: fuzzer triggers warning in trace_events_filter code

2015-06-16 Thread Vince Weaver
On Tue, 16 Jun 2015, Steven Rostedt wrote: > > Does this patch fix your issue? > > I got this patch all ready and set to push to Linus. But I was hoping > to add a Tested-by: from you. I already have you as Reported-by. > > I would like to get this in before 4.1 is released. sorry for the delay.

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

2015-06-16 Thread Konstantin Khlebnikov
On Wed, Jun 17, 2015 at 12:29 AM, Andrew Morton wrote: > On Mon, 15 Jun 2015 08:56:49 +0300 Konstantin Khlebnikov > wrote: > >> This patch removes page-shift bits (scheduled to remove since 3.11) and >> completes migration to the new bit layout. Also it cleans messy macro. > > hm, I can't find a

Re: membarrier selftest issue

2015-06-16 Thread Pranith Kumar
Hi Mathieu, On Mon, Jun 15, 2015 at 11:31 AM, Mathieu Desnoyers wrote: > Hi, > > The updated membarrier tree: > https://github.com/compudj/linux-dev > branch: sys-membarrier-volatile > > has an issue building selftests (make -C tools/testing/selftests) > > It appears that including linux/membarri

[PATCH v2] Staging: wilc1000: Remove casting the values returned by kmalloc()

2015-06-16 Thread Abdul, Hussain (H.)
From: Abdul Hussain This patch removes casting the values returned by memory allocation functions. Signed-off-by: Abdul Hussain --- drivers/staging/wilc1000/linux_mon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/linux_mon.c b/drivers/staging/w

Re: Suspicious RCU usage at boot w/ arm ipi trace events?

2015-06-16 Thread Paul E. McKenney
On Tue, Jun 16, 2015 at 05:41:29PM -0700, Stephen Boyd wrote: > On 06/16/2015 05:31 PM, Paul E. McKenney wrote: > > On Tue, Jun 16, 2015 at 05:21:59PM -0700, John Stultz wrote: > >> Not sure if I have the right folks on CC. Noticed this booting on a > >> apq8064 based system w/ 4.1-rc7 (plus a few

Re: [PATCH] Staging: wilc1000: Remove casting the values returned by kmalloc()

2015-06-16 Thread Abdul, Hussain (H.)
On Wednesday 17 June 2015 07:48 AM, gre...@linuxfoundation.org wrote: > On Tue, Jun 16, 2015 at 07:09:56AM +, Abdul, Hussain (H.) wrote: >> From: Abdul Hussain >> >> This patch removes casting the values returned by memory allocation >> functions. >> >> Signed-off-by: Abdul Hussain >> --- >>

Re: [PATCH 2/6] mtd: nandsim: Fix kasprintf() usage

2015-06-16 Thread Joe Perches
On Tue, 2015-06-16 at 19:07 -0700, Brian Norris wrote: > On Mon, Jun 01, 2015 at 11:10:50PM +0200, Richard Weinberger wrote: > > kasprintf() used in get_partition_name() does a dynamic > > memory allocation and can fail. We have to handle that case. [] > > diff --git a/drivers/mtd/nand/nandsim.c b/

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

2015-06-16 Thread Maninder Singh
Use BUG_ON(condition) instead of if(condition)/BUG() . Signed-off-by: Maninder Singh Reviewed-by: Akhilesh Kumar --- net/packet/af_packet.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index b5989c6..c91d405 100644 --

Re: [RFC NEXT] mm: Fix suspicious RCU usage at kernel/sched/core.c:7318

2015-06-16 Thread Martin KaFai Lau
On Tue, Jun 16, 2015 at 09:43:28PM -0500, Larry Finger wrote: > On 06/16/2015 04:07 PM, Martin KaFai Lau wrote: > >On Mon, Jun 15, 2015 at 04:25:18PM -0500, Larry Finger wrote: > >>Additional backtrace lines are truncated. In addition, the above splat is > >>followed by several "BUG: sleeping funct

Re: [PATCH] arm64: dts: symlink cros-ec-keyboard from arm to arm64

2015-06-16 Thread Daniel Kurtz
On Tue, Jun 16, 2015 at 10:55 PM, Will Deacon wrote: > On Tue, Jun 16, 2015 at 03:35:41PM +0100, Daniel Kurtz wrote: >> The cros-ec-keyboard.dtsi snippet is useful for both arm and arm64 boards. >> Create a link between the two. >> >> This may not be the most scalable solution, so consider it temp

Re: Possible broken MM code in dell-laptop.c?

2015-06-16 Thread Darren Hart
On Tue, Jun 16, 2015 at 09:15:23AM +0200, Pali Rohár wrote: > On Tuesday 16 June 2015 08:33:46 Michal Hocko wrote: > > On Mon 15-06-15 23:27:59, Pali Rohár wrote: > > > On Monday 15 June 2015 23:18:16 Michal Hocko wrote: > > > > On Sun 14-06-15 11:05:07, Pali Rohár wrote: > > > > > Hello, > > > > >

[PATCH] perf tools: Fix a problem when opening old perf.data with different byte order

2015-06-16 Thread Wang Nan
Following error occurs when trying to use 'perf report' on x86_64 to cross analysis a perf.data generated by an old perf on a big-endian machine: # perf report *** Error in `/home/w00229757/perf': free(): invalid next size (fast): 0x032c99f0 *** === Backtrace: = /lib64/lib

[PATCH 1/3] cpu-hotadd-patch-liujiang

2015-06-16 Thread gongzg
From: songxiumiao --- arch/x86/kernel/acpi/boot.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index dbe76a1..b8f93b3 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -733,6 +733

Re: [PATCH V2 1/6] SLIMbus: Device management on SLIMbus

2015-06-16 Thread Joe Perches
On Tue, 2015-06-16 at 19:45 -0600, Sagar Dharia wrote: > SLIMbus (Serial Low Power Interchip Media Bus) is a specification > developed by MIPI (Mobile Industry Processor Interface) alliance. > SLIMbus is a 2-wire implementation, which is used to communicate with > peripheral components like audio-c

linux-next: Tree for Jun 17

2015-06-16 Thread Michael Ellerman
Hi all, Changes since 20150615: The rdma tree gained a conflict against the nfs tree. The rdma tree gained a conflict against the net-next tree. The tip tree gained a conflict against the iommu tree. The tip tree gained a conflict against the crypto tree. The akpm-current tree gained a confli

Re: kexec_load(2) bypasses signature verification

2015-06-16 Thread Theodore Ts'o
On Tue, Jun 16, 2015 at 04:27:57PM -0400, Vivek Goyal wrote: > > So looks like you are looking for a system/option where you just want to > always make use of kexec_file_load() and disable kexec_load(). This sounds > like you want a kernel where kexec_load() is compiled out and you want > only kex

linux-next: manual merge of the akpm-current tree with the vfs tree

2015-06-16 Thread Michael Ellerman
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: fs/ufs/namei.c between commit: a50e4a02ad69 "ufs: don't bother with lock_ufs()/unlock_ufs() for directory access" from the vfs tree and commit: 2ce1efe3965b "fs/ufs: revert "ufs: fix deadlocks introduced by

linux-next: manual merge of the tip tree with the crypto tree

2015-06-16 Thread Michael Ellerman
Hi all, Today's linux-next merge of the tip tree got conflicts in: drivers/crypto/vmx/aes.c drivers/crypto/vmx/aes_cbc.c drivers/crypto/vmx/ghash.c between commit: 4beb10604597 "crypto: vmx - Reindent to kernel style" from the crypto tree and commit: 5f76eea88dcb "sched/preempt, pow

linux-next: manual merge of the rdma tree with the net-next tree

2015-06-16 Thread Michael Ellerman
Hi Doug, Today's linux-next merge of the rdma tree got a conflict in: drivers/infiniband/hw/mlx4/mad.c between commit: 7193a141eb74 "IB/mlx4: Set VF to read from QP counters" from the net-next tree and commit: 4cd7c9479aff "IB/mad: Add support for additional MAD info to/from drivers" f

Re: [RFC 3/3] mm: make swapin readahead to improve thp collapse rate

2015-06-16 Thread Rik van Riel
On 06/16/2015 05:15 PM, Andrew Morton wrote: > On Sun, 14 Jun 2015 18:04:43 +0300 Ebru Akagunduz > wrote: > >> This patch makes swapin readahead to improve thp collapse rate. >> When khugepaged scanned pages, there can be a few of the pages >> in swap area. >> >> With the patch THP can collapse

linux-next: manual merge of the rdma tree with the nfs tree

2015-06-16 Thread Michael Ellerman
Hi Doug, Today's linux-next merge of the rdma tree got a conflict in: net/sunrpc/xprtrdma/verbs.c between commit: 89e0d11258e9 "xprtrdma: Use ib_device pointer safely" from the nfs tree and commit: 8e37210b38fb "IB/core: Change ib_create_cq to use struct ib_cq_init_attr" from the rdma

linux-next: manual merge of the rdma tree with the nfs tree

2015-06-16 Thread Michael Ellerman
Hi Doug, Today's linux-next merge of the rdma tree got a conflict in: net/sunrpc/xprtrdma/frwr_ops.c between commit: 951e721ca0d6 "xprtrdma: Introduce an FRMR recovery workqueue" from the nfs tree and commit: 76357c715f32 "xprtrdma, svcrdma: Switch to generic logging helpers" from the

Re: [PATCH 3/3] writeback, blkio: add documentation for cgroup writeback support

2015-06-16 Thread Theodore Ts'o
On Tue, Jun 16, 2015 at 05:54:36PM -0400, Tejun Heo wrote: > Hello, Ted. > > On Mon, Jun 15, 2015 at 07:35:19PM -0400, Theodore Ts'o wrote: > > So if there is some way we can signal to any cgroup that that might be > > throttling writeback or disk I/O that the jbd/jbd2 process should be > > consid

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

2015-06-16 Thread juncheng bai
On 2015/6/16 23:51, Ilya Dryomov wrote: On Tue, Jun 16, 2015 at 5:14 PM, juncheng bai wrote: On 2015/6/16 21:30, Ilya Dryomov wrote: On Tue, Jun 16, 2015 at 2:57 PM, juncheng bai wrote: On 2015/6/16 16:37, Ilya Dryomov wrote: On Tue, Jun 16, 2015 at 6:28 AM, juncheng bai wrote:

Re: [PATCH RFC v7 2/3] crypto: rsa: add a new rsa generic implementation

2015-06-16 Thread Tadeusz Struk
On 06/16/2015 07:36 PM, Herbert Xu wrote: > The existing crypto/asymmetric_key errno scheme doesn't really > mesh in with the rest of crypto. So you'll just have to pick one > scheme and stick with it. > > I don't really mind either way as long as the error codes are > unique and meaningful. So

Re: [RFC NEXT] mm: Fix suspicious RCU usage at kernel/sched/core.c:7318

2015-06-16 Thread Larry Finger
On 06/16/2015 04:07 PM, Martin KaFai Lau wrote: On Mon, Jun 15, 2015 at 04:25:18PM -0500, Larry Finger wrote: Additional backtrace lines are truncated. In addition, the above splat is followed by several "BUG: sleeping function called from invalid context at mm/slub.c:1268" outputs. As suggested

Re: [Intel-gfx] [PATCH 6/8] pwm: crc: Add Crystalcove (CRC) PWM driver

2015-06-16 Thread Shobhit Kumar
On Wed, May 20, 2015 at 8:39 PM, Shobhit Kumar wrote: > On Thu, May 7, 2015 at 12:49 PM, Shobhit Kumar wrote: >> On Wed, May 6, 2015 at 5:44 PM, Thierry Reding >> wrote: >>> On Tue, May 05, 2015 at 03:08:36PM +0530, Shobhit Kumar wrote: The Crystalcove PMIC controls PWM signals and this dr

Re: [PATCH RFC v7 2/3] crypto: rsa: add a new rsa generic implementation

2015-06-16 Thread Herbert Xu
On Tue, Jun 16, 2015 at 07:32:16PM -0700, Tadeusz Struk wrote: > > I thought that -EBADMSG was mainly used for authenticated ciphers in case > when verification of auth data fails. > Since this are input params I thought that -EINVAL would be more appropriate. > I can change it to -EBADMSG, no pro

Re: [PATCH RFC v7 2/3] crypto: rsa: add a new rsa generic implementation

2015-06-16 Thread Tadeusz Struk
Hi David, On 06/16/2015 03:10 PM, David Howells wrote: >> +static int _rsa_sign(const struct rsa_key *key, MPI s, MPI m) >> > +{ >> > + /* (1) Validate 0 <= m < n */ >> > + if (mpi_cmp_ui(m, 0) < 0 || mpi_cmp(m, key->n) >= 0) >> > + return -EINVAL; > Why -EINVAL not -EBADMSG? I thought

Re: [RFC PATCH] perf/kvm: Guest Symbol Resolution for powerpc

2015-06-16 Thread David Ahern
On 6/16/15 7:24 PM, Hemant Kumar wrote: Because, this depends on the kernel tracepoint "kvm_hv:kvm_guest_exit". perf_prepare_sample() in the kernel side sets the event->header.misc field to PERF_RECORD_MISC_KERNEL through perf_misc_flags(pt_regs). In case of tracepoints which always get hit in th

Re: [PATCH] Staging: wilc1000: Remove casting the values returned by kmalloc()

2015-06-16 Thread gre...@linuxfoundation.org
On Tue, Jun 16, 2015 at 07:10:28AM +, Abdul, Hussain (H.) wrote: > From: Abdul Hussain > > This patch removes casting the values returned by memory allocation functions. > > Signed-off-by: Abdul Hussain > --- > drivers/staging/wilc1000/linux_wlan.c | 6 +++--- > 1 file changed, 3 insertion

Re: [PATCH] Staging: wilc1000: Remove casting the values returned by kmalloc()

2015-06-16 Thread gre...@linuxfoundation.org
On Tue, Jun 16, 2015 at 07:09:56AM +, Abdul, Hussain (H.) wrote: > From: Abdul Hussain > > This patch removes casting the values returned by memory allocation functions. > > Signed-off-by: Abdul Hussain > --- > drivers/staging/wilc1000/linux_mon.c | 4 ++-- > 1 file changed, 2 insertions(+

Re: [Cluster-devel] [PATCH] dlm: remove unnecessary error check

2015-06-16 Thread Guoqing Jiang
Hi David, David Teigland wrote: > On Thu, Jun 11, 2015 at 05:47:28PM +0800, Guoqing Jiang wrote: > >> Do you consider take the following clean up? If yes, I will send a >> formal patch, otherwise pls ignore it. >> > > On first glance, the old and new code do not appear to do the same thing

MCE bug?

2015-06-16 Thread Rui Wang
Hi Boris & Tony, While injecting MCEs using einj, I encountered a panic: [0.305697] mce: CPU supports 22 MCE banks [0.310288] BUG: unable to handle kernel NULL pointer dereference at 0100 [0.319057] IP: [] __queue_wor

Re: [PATCH 1/6] mtd: r852: Fix device_create_file() usage

2015-06-16 Thread Brian Norris
On Mon, Jun 01, 2015 at 11:10:49PM +0200, Richard Weinberger wrote: > device_create_file() can fail, therefore we have to > handle this case and abort. > > Signed-off-by: Richard Weinberger Pushed the first 5. Still looking at the 6th. -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 2/6] mtd: nandsim: Fix kasprintf() usage

2015-06-16 Thread Brian Norris
On Mon, Jun 01, 2015 at 11:10:50PM +0200, Richard Weinberger wrote: > kasprintf() used in get_partition_name() does a dynamic > memory allocation and can fail. We have to handle that case. > > Signed-off-by: Richard Weinberger > --- > drivers/mtd/nand/nandsim.c | 10 ++ > 1 file changed,

[PATCH V2 2/6] of/slimbus: OF helper for SLIMbus

2015-06-16 Thread Sagar Dharia
OF helper routine scans the SLIMbus DeviceTree, allocates resources, and creates slim_devices according to the hierarchy. Signed-off-by: Sagar Dharia --- Documentation/devicetree/bindings/slimbus/bus.txt | 34 ++ drivers/slimbus/slimbus.c | 76

Re: kexec_load(2) bypasses signature verification

2015-06-16 Thread Vivek Goyal
On Tue, Jun 16, 2015 at 08:32:37PM -0500, Eric W. Biederman wrote: > Vivek Goyal writes: > > > On Tue, Jun 16, 2015 at 02:38:31PM -0500, Eric W. Biederman wrote: > >> > >> Adding Vivek as he is the one who implemented kexec_file_load. > >> I was hoping he would respond to this thread, and it loo

[PATCH V2 5/6] slimbus: Add support for 'clock-pause' feature

2015-06-16 Thread Sagar Dharia
Per slimbus specification, a reconfiguration sequence known as 'clock pause' needs to be broadcast over the bus while entering low- power mode. Clock-pause is initiated by the controller driver. To exit clock-pause, controller typically wakes up the framer device. Since wakeup precedure is controll

[PATCH V2 4/6] slim: qcom: Add Qualcomm Slimbus controller driver

2015-06-16 Thread Sagar Dharia
This controller driver programs manager, interface, and framer devices for Qualcomm's slimbus HW block. Manager component currently implements logical address setting, and messaging interface. Interface device reports bus synchronization information, and framer device clocks the bus from the time i

[PATCH V2 6/6] slim: qcom: Add runtime-pm support using clock-pause feature

2015-06-16 Thread Sagar Dharia
Slimbus HW mandates that clock-pause sequence has to be executed before disabling relevant interface and core clocks. Runtime-PM's autosuspend feature is used here to enter/exit low power mode for Qualcomm's Slimbus controller. Autosuspend feature enables driver to avoid changing power-modes too fr

[PATCH V2 3/6] slimbus: Add messaging APIs to slimbus framework

2015-06-16 Thread Sagar Dharia
Slimbus devices use value-element, and information elements to control device parameters (e.g. value element is used to represent gain for codec, information element is used to represent interrupt status for codec when codec interrupt fires). Messaging APIs are used to set/get these value and infor

[PATCH V2 1/6] SLIMbus: Device management on SLIMbus

2015-06-16 Thread Sagar Dharia
SLIMbus (Serial Low Power Interchip Media Bus) is a specification developed by MIPI (Mobile Industry Processor Interface) alliance. SLIMbus is a 2-wire implementation, which is used to communicate with peripheral components like audio-codec. SLIMbus uses Time-Division-Multiplexing to accommodate mu

[PATCH V2 0/6] Introduce framework for SLIMbus device drivers

2015-06-16 Thread Sagar Dharia
SLIMbus (Serial Low Power Interchip Media Bus) is a specification developed by MIPI (Mobile Industry Processor Interface) alliance. SLIMbus is a 2-wire implementation, which is used to communicate with peripheral components like audio-codec. SLIMbus uses Time-Division-Multiplexing to accommodate mu

[PATCH v0] arm64: dts: Add poweroff button device node for APM X-Gene platform

2015-06-16 Thread Y Vo
This patch adds poweroff button device node to support poweroff feature on APM X-Gene Mustang platform. Signed-off-by: Y Vo --- arch/arm64/boot/dts/apm/apm-mustang.dts | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-mustang.dts b/a

[PATCH] acer-wmi: update removal notice for sysfs interface

2015-06-16 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger --- These just look odd when out of date. The proper fix would probably be to create a Documentation/ABI/testing/sysfs-platform-acer-wmi file and remove the deprecated ones. drivers/platform/x86/acer-wmi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

Re: kexec_load(2) bypasses signature verification

2015-06-16 Thread Eric W. Biederman
Vivek Goyal writes: > On Tue, Jun 16, 2015 at 02:38:31PM -0500, Eric W. Biederman wrote: >> >> Adding Vivek as he is the one who implemented kexec_file_load. >> I was hoping he would respond to this thread, and it looks like he >> simply has not ever been Cc'd. >> >> Theodore Ts'o writes: >>

[PATCH v2 2/2] apei/erst-dbg: Define pr_fmt macro to avoid the duplication of ERST_DBG_PFX

2015-06-16 Thread Wang Long
Define pr_fmt macro with {ERST DBG: } prefix, then remove all use of ERST_DBG_PFX in the pr_* functions. Signed-off-by: Wang Long --- drivers/acpi/apei/erst-dbg.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/apei/erst-dbg.c b/drivers/acpi/apei/erst

[PATCH v2 1/2] apei/*.c: use pr_warn instead of pr_warning

2015-06-16 Thread Wang Long
This patch can avoid the following WARNING when run checkpatch.pl: WARNING: Prefer pr_warn(... to pr_warning(... #21: FILE: drivers/acpi/apei/erst-dbg.c:134: + pr_warning("Record (ID: 0x%llx) length is too long: %zd\n", Signed-off-by: Wang Long --- drivers/

Re: [PATCH 0/3] aio: ctx->dead cleanups

2015-06-16 Thread Oleg Nesterov
Damn, sorry for noise, forgot to mention. And whatever I missed, this ctx->dead check in aio_ring_remap() looks wrong anyway. Please correct me. On 06/17, Oleg Nesterov wrote: > > On 06/17, Oleg Nesterov wrote: > > > > On 06/17, Al Viro wrote: > > > > > > On Wed, Jun 17, 2015 at 01:04:14AM +0200,

Re: [PATCH 2/2] apei/erst-dbg: Define pr_fmt macro to avoid the duplication of ERST_DBG_PFX

2015-06-16 Thread long.wanglong
On 2015/6/15 22:42, Joe Perches wrote: > On Mon, 2015-06-15 at 09:57 +, Wang Long wrote: >> Define pr_fmt macro with {ERST DBG: } prefix, then remove all use >> of ERST_DBG_PFXin the pr_* functions. > [] >> diff --git a/drivers/acpi/apei/erst-dbg.c b/drivers/acpi/apei/erst-dbg.c > [] >> @@ -31,

Re: [PATCH v2 2/3] watchdog: bcm2835: Add poweroff code for the Raspberry Pi

2015-06-16 Thread Stephen Warren
On 06/16/2015 03:39 AM, Noralf Trønnes wrote: > > Den 16.06.2015 05:07, skrev Stephen Warren: >> On 06/13/2015 05:39 AM, Noralf Trønnes wrote: >>> This adds a new poweroff function to the watchdog driver for the >>> Raspberry Pi. Currently poweroff/halt results in a reboot. >>> >>> The Raspberry P

Re: [RFC PATCH] perf/kvm: Guest Symbol Resolution for powerpc

2015-06-16 Thread Hemant Kumar
Hi David, Thanks for the review. On 06/16/2015 08:23 PM, David Ahern wrote: On 6/15/15 8:50 PM, Hemant Kumar wrote: +/* + * Get the instruction pointer from the tracepoint data + */ +u64 arch__get_ip(struct perf_evsel *evsel, struct perf_sample *data) +{ +u64 tp_ip = data->ip; +int tra

Re: [PATCH 0/3] aio: ctx->dead cleanups

2015-06-16 Thread Oleg Nesterov
On 06/17, Al Viro wrote: > > On Wed, Jun 17, 2015 at 01:39:06AM +0100, Al Viro wrote: > > > Huh? kill_ioctx() picks ctx->mmap_base and passes it to vm_munmap(). > > Which tries to grab mmap_sem, blocks for mremap() from another thread > > and waits for it to drop mmap_sem. By that time ctx->mmap_

Re: [PATCH v2 2/2] TPM: remove unnecessary little endian conversion

2015-06-16 Thread Ashley Lai
Looks good. Reviewed-by: Ashley Lai Thanks, --Ashley On Tue, 9 Jun 2015, Hon Ching(Vicky) Lo wrote: The base pointer for the event log is allocated in the local kernel (in prom_instantiate_sml()), therefore it is already in the host's endian byte order and requires no conversion. The conten

Re: [PATCH v2 1/2] vTPM: support little endian guests

2015-06-16 Thread Ashley Lai
Just a small comment otherwise it looks good. On Tue, 9 Jun 2015, Hon Ching(Vicky) Lo wrote: case NONHOST_INFO: - name = tcpa_event_type_strings[event->event_type]; + name = + tcpa_event_type_strings[do_endian_conversion +

Re: call_rcu from trace_preempt

2015-06-16 Thread Steven Rostedt
On Tue, 16 Jun 2015 18:04:39 -0700 Alexei Starovoitov wrote: > > you mean similar to what rb_wakeups() and friends are doing? > makes sense. starting to study it... Yes, I meant those functions. But yours would be slightly different. As it would be the one calling the irq work that would be sett

Re: [PATCH 0/3] aio: ctx->dead cleanups

2015-06-16 Thread Oleg Nesterov
On 06/17, Oleg Nesterov wrote: > > On 06/17, Al Viro wrote: > > > > On Wed, Jun 17, 2015 at 01:04:14AM +0200, Oleg Nesterov wrote: > > > Al, please help. We are trying to backport some aio fixes and I am > > > absolutely confused by your b2edffdd912b "fix mremap() vs. ioctx_kill() > > > race". > >

Re: [PATCH 0/3] aio: ctx->dead cleanups

2015-06-16 Thread Oleg Nesterov
On 06/17, Al Viro wrote: > > On Wed, Jun 17, 2015 at 01:04:14AM +0200, Oleg Nesterov wrote: > > Al, please help. We are trying to backport some aio fixes and I am > > absolutely confused by your b2edffdd912b "fix mremap() vs. ioctx_kill() > > race". > > > > > > Firstly, I simply can't understand wh

Re: [PATCH v3 08/18] baycom_epp: Replace rdtscl() with native_read_tsc()

2015-06-16 Thread Thomas Sailer
Acked-by: Thomas Sailer On 06/17/2015 02:35 AM, Andy Lutomirski wrote: This is only used if BAYCOM_DEBUG is defined. Cc: walter harms Cc: Ralf Baechle Cc: Thomas Sailer Cc: linux-h...@vger.kernel.org Signed-off-by: Andy Lutomirski --- I'm hoping for an ack for this to go through -tip.

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

2015-06-16 Thread Nicolai Stange
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: error: #error "not running on big endian machines now" Modify th

Re: call_rcu from trace_preempt

2015-06-16 Thread Alexei Starovoitov
On 6/16/15 5:47 PM, Steven Rostedt wrote: Do what I do in tracing. Use a bit (per cpu?) test. Add the element to the list (that will be a cmpxchg, but I'm not sure you can avoid it), then check the bit to see if the irq work is already been activated. If not, then activate the irq work and set t

[PATCH] scripts/tags.sh: Include trace_*_rcuidle() in tags

2015-06-16 Thread Stephen Boyd
Every tracepoint creates two functions, the usual one 'trace_*()' and the rcuidle one 'trace_*_rcuidle()'. Add regex for the rcuidle variant so that we can jump to the tracepoints that use rcuidle. Cc: Steven Rostedt Signed-off-by: Stephen Boyd --- scripts/tags.sh | 4 1 file changed, 4 in

Re: [PATCH 0/3] aio: ctx->dead cleanups

2015-06-16 Thread Al Viro
On Wed, Jun 17, 2015 at 01:39:06AM +0100, Al Viro wrote: > Huh? kill_ioctx() picks ctx->mmap_base and passes it to vm_munmap(). > Which tries to grab mmap_sem, blocks for mremap() from another thread > and waits for it to drop mmap_sem. By that time ctx->mmap_base has > nothing whatsoever to the

Re: call_rcu from trace_preempt

2015-06-16 Thread Steven Rostedt
On Tue, 16 Jun 2015 17:33:24 -0700 Alexei Starovoitov wrote: > On 6/16/15 10:37 AM, Steven Rostedt wrote: > >>> + kfree(l); > >> > > >> >that's not right, since such thread defeats rcu protection of lookup. > >> >We need either kfree_rcu/call_rcu or synchronize_rcu. > >> >Obviousl

[PATCH v3 01/18] x86/tsc: Inline native_read_tsc and remove __native_read_tsc

2015-06-16 Thread Andy Lutomirski
In cdc7957d1954 ("x86: move native_read_tsc() offline"), native_read_tsc was moved out of line, presumably for some now-obsolete vDSO-related reason. Undo it. The entire rdtsc, shl, or sequence is only 11 bytes, and calls via rdtscl and similar helpers were already inlined. Signed-off-by: Andy L

Re: [PATCH] regulator: qcom_spmi: Fix missing parenthesis

2015-06-16 Thread Stephen Boyd
On 06/16/2015 05:39 PM, Axel Lin wrote: > Fix the logic in spmi_regulator_common_list_voltage() to return correct uV. > > Signed-off-by: Axel Lin There are two, and patch already sent[1]. [1] https://patchwork.kernel.org/patch/6619381/ -- Qualcomm Innovation Center, Inc. is a member of Code Au

Re: Suspicious RCU usage at boot w/ arm ipi trace events?

2015-06-16 Thread Stephen Boyd
On 06/16/2015 05:31 PM, Paul E. McKenney wrote: > On Tue, Jun 16, 2015 at 05:21:59PM -0700, John Stultz wrote: >> Not sure if I have the right folks on CC. Noticed this booting on a >> apq8064 based system w/ 4.1-rc7 (plus a few patches that I believe are >> unrelated). >> >> >> [0.008796] CPU0

[PATCH v3 09/18] staging/lirc_serial: Remove TSC-based timing

2015-06-16 Thread Andy Lutomirski
It wasn't compiled in by default. I suspect that the driver was and still is broken, though -- it's calling udelay with a parameter that's derived from loops_per_jiffy. Cc: Jarod Wilson Cc: de...@driverdev.osuosl.org Cc: Greg Kroah-Hartman Signed-off-by: Andy Lutomirski --- drivers/staging/me

  1   2   3   4   5   6   7   8   9   10   >