[PATCH v2 1/5] selftests/kdbus: handle cap_get_proc() error properly

2015-06-17 Thread Sergei Zviagintsev
Fix typo in checking error value of cap_get_proc(): cap - caps Signed-off-by: Sergei Zviagintsev ser...@s15v.net --- tools/testing/selftests/kdbus/kdbus-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kdbus/kdbus-util.c

[PATCH v2 4/5] selftests/kdbus: drop duplicated code from __kdbus_msg_send()

2015-06-17 Thread Sergei Zviagintsev
Set value of `size' in one step instead of four. Signed-off-by: Sergei Zviagintsev ser...@s15v.net --- tools/testing/selftests/kdbus/kdbus-util.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/testing/selftests/kdbus/kdbus-util.c

[PATCH v2 5/5] selftests/kdbus: fix error paths in __kdbus_msg_send()

2015-06-17 Thread Sergei Zviagintsev
Handle errors properly, free allocated resources. Signed-off-by: Sergei Zviagintsev ser...@s15v.net --- tools/testing/selftests/kdbus/kdbus-util.c | 31 ++ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/tools/testing/selftests/kdbus/kdbus-util.c

[PATCH v2 3/5] selftests/kdbus: remove useless initializations from kdbus_clone_userns_test()

2015-06-17 Thread Sergei Zviagintsev
Do not initialize efd, unpriv_conn_id, userns_conn_id and monitor. These vars are assigned to values later in code while initial values are never used. Signed-off-by: Sergei Zviagintsev ser...@s15v.net --- tools/testing/selftests/kdbus/test-metadata-ns.c | 9 +++-- 1 file changed, 3

[PATCH v2 2/5] selftests/kdbus: drop useless assignment

2015-06-17 Thread Sergei Zviagintsev
Assign returned file descriptor directly to `fd', without intermediate `ret' variable. Signed-off-by: Sergei Zviagintsev ser...@s15v.net --- tools/testing/selftests/kdbus/kdbus-util.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

Re: [PATCH 2/3] spi: mediatek: Add spi bus for Mediatek MT8173

2015-06-17 Thread Mark Brown
On Wed, Jun 17, 2015 at 10:10:51PM +0800, Eddie Huang wrote: Our hardware limitation is: we don't have separate dma tx, rx channel with transfer finish interrupt, only have spi trigger operation.So the mediatek SPI dma full duplex operation steps are: 1. Set TX DMA address. 2. Set RX DMA

[PATCH] arm: cmpxchg: update macro to prevent compiler warning

2015-06-17 Thread Andre Przywara
In kernel/acct.c we call the cmpxchg() macro without using it's return value, so the compiler complains when compiling for ARM: kernel/acct.c: In function 'acct_pin_kill': arch/arm/include/asm/cmpxchg.h:205:3: warning: value computed is not used [-Wunused-value]

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

2015-06-17 Thread Paul E. McKenney
On Wed, Jun 17, 2015 at 05:49:27PM +0200, Peter Zijlstra wrote: On Wed, Jun 17, 2015 at 07:57:12AM -0700, Paul E. McKenney wrote: On Wed, Jun 17, 2015 at 02:29:24PM +0200, Peter Zijlstra wrote: I did leave off the READ/WRITE ONCE stuff, because I could not come up with a scenario where it

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

2015-06-17 Thread Paolo Bonzini
On 17/06/2015 18:34, Michael S. Tsirkin wrote: On Wed, Jun 17, 2015 at 06:31:32PM +0200, Paolo Bonzini wrote: On 17/06/2015 18:30, Michael S. Tsirkin wrote: Meanwhile old tools are vulnerable to OOM attacks. For each vhost device there will be likely one tap interface, and I suspect that

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

2015-06-17 Thread Michael S. Tsirkin
On Wed, Jun 17, 2015 at 06:38:25PM +0200, Paolo Bonzini wrote: On 17/06/2015 18:34, Michael S. Tsirkin wrote: On Wed, Jun 17, 2015 at 06:31:32PM +0200, Paolo Bonzini wrote: On 17/06/2015 18:30, Michael S. Tsirkin wrote: Meanwhile old tools are vulnerable to OOM attacks. For each

[PATCH 2/2] staging: ft1000-usb: Removed global initialization

2015-06-17 Thread Peter Karlsson
Fix checkpatch error about initialize globals to 0. Signed-off-by: Peter Karlsson peter.p.karls...@svt.se --- drivers/staging/ft1000/ft1000-usb/ft1000_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c

Hi Beautiful Angel

2015-06-17 Thread Gavin
I am 45years old male, from United State, Currently in Syria for Peace keeping, I work for US Army, I would love to know you more better and that is only if you do not mind. I am an easy going man that wants to be loved and i believe that is not too much to ask. Can you tell me something about

[PATCH 0/2] staging: ft1000-usb: checkpatch fixes

2015-06-17 Thread Peter Karlsson
Fixes two checkpatch style issues. Peter Karlsson (2): staging: ft1000-usb: Removed unnecessary parenthes. staging: ft1000-usb: Removed global initialization. drivers/staging/ft1000/ft1000-usb/ft1000_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1 -- To

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

2015-06-17 Thread Peter Zijlstra
On Wed, Jun 17, 2015 at 07:57:12AM -0700, Paul E. McKenney wrote: On Wed, Jun 17, 2015 at 02:29:24PM +0200, Peter Zijlstra wrote: I did leave off the READ/WRITE ONCE stuff, because I could not come up with a scenario where it makes a difference -- I appreciate paranoia, but I also think we

Re: [RESEND PATCH 1/2] pinctrl: change function behavior for per pin muxing controllers

2015-06-17 Thread Stephen Warren
On 06/17/2015 06:38 AM, Ludovic Desroches wrote: Hi Stephen, On Mon, Jun 15, 2015 at 09:58:05AM -0600, Stephen Warren wrote: On 06/10/2015 09:04 AM, Ludovic Desroches wrote: When having a controller which allows per pin muxing, declaring with which groups a function can be used is a useless

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

2015-06-17 Thread Boris Brezillon
On Wed, 17 Jun 2015 17:34:02 +0200 Boris Brezillon boris.brezil...@free-electrons.com wrote: On Wed, 17 Jun 2015 23:08:08 +0800 Herbert Xu herb...@gondor.apana.org.au wrote: On Wed, Jun 17, 2015 at 03:32:02PM +0200, Boris Brezillon wrote: Hi Herbert, I send you this patch alone

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

2015-06-17 Thread Arnaldo Carvalho de Melo
Em Wed, Jun 17, 2015 at 08:41:52PM +0800, Wangnan (F) escreveu: This patch has already acked-by Jiri Olsa on March, but I lost the original email on my local mailbox, so send it again. Couldn't find the Ack, or the first submission, anyway, applying it now, Thanks, - Arnaldo Thank you.

Re: [PATCH V3 1/2] perf,tools: add time out to force stop proc map processing

2015-06-17 Thread David Ahern
On 6/17/15 1:56 AM, kan.li...@intel.com wrote: diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index 793b150..ac6cf2a 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c @@ -213,6 +213,8 @@ static int perf_event__synthesize_fork(struct perf_tool *tool,

Re: [PATCH RFC v7 0/3] crypto: Introduce Public Key Encryption API

2015-06-17 Thread Tadeusz Struk
On 06/17/2015 02:14 AM, Herbert Xu wrote: This patch set introduces a Public Key Encryption API. What is proposed is a new crypto type called crypto_akcipher_type, plus new struct akcipher_alg and struct crypto_akcipher, together with number of helper functions to register akcipher type

Re: [PATCH v3] TCO watchdog pretimeout handler

2015-06-17 Thread Andy Shevchenko
On Wed, Jun 17, 2015 at 4:34 PM, Francois-Nicolas Muller francois-nicolas.mul...@intel.com wrote: First of all it would be nice to start a new thread per iteration. Use TCO watchdog first timeout (pretimeout) to dump CPU backtraces and ease debug of watchdog expiration causes. On Intel

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

2015-06-17 Thread Igor Mammedov
On Wed, 17 Jun 2015 17:38:40 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 17, 2015 at 05:12:57PM +0200, Igor Mammedov wrote: On Wed, 17 Jun 2015 16:32:02 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 17, 2015 at 03:20:44PM +0200, Paolo Bonzini wrote:

Re: [PATCH v2 11/15] KVM: MTRR: sort variable MTRRs

2015-06-17 Thread Paolo Bonzini
On 15/06/2015 10:55, Xiao Guangrong wrote: + /* add it to the list if it's valid. */ + if (var_mtrr_range_is_valid(mtrr_state-var_ranges[index])) { + list_for_each_entry(tmp, mtrr_state-head, node) + if (cur-base tmp-base) +

Re: [PATCH] driver/i2c/mux: Add register based mux i2c-mux-reg

2015-06-17 Thread Paul Bolle
On Wed, 2015-06-17 at 17:00 +0200, Alexander Sverdlin wrote: You do not see the platform_device, because there are no users yet, put this MODULE_ALIAS() is perfectly fine, it will allow automatic module loading in non-DT case. Do you mean that it will allow automatic module loading once the

RE: [PATCH v2] spi: img-spfi: Same Edge bit set to double supported transfer speed

2015-06-17 Thread Sifan Naeem
Hi Jonas, -Original Message- From: Jonas Gorski [mailto:j...@openwrt.org] Sent: 17 June 2015 15:31 To: Sifan Naeem Cc: Mark Brown; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Andrew Bresticker Subject: Re: [PATCH v2] spi: img-spfi: Same Edge bit set to double supported

Re: [PATCH] xilinx:Remove unused variable num_frag in the function axienet_start_xmit

2015-06-17 Thread Sören Brinkmann
On Wed, 2015-06-17 at 11:52AM -0400, Nicholas Krause wrote: This removes the unused variable num_frag and the setting of it to the number of fragments from the passed sk_buff pointer by this function's caller due to this variable never being used in this particular function and is not declared

[PATCH V2] mm: kmemleak_alloc_percpu() should follow the gfp from

2015-06-17 Thread Larry Finger
Beginning at commit d52d3997f843 (ipv6: Create percpu rt6_info), the following INFO splat is logged: === [ INFO: suspicious RCU usage. ] 4.1.0-rc7-next-20150612 #1 Not tainted --- kernel/sched/core.c:7318 Illegal context switch in RCU-bh

[PATCH 1/1 linux-next] fs/ufs: restore s_lock mutex_init()

2015-06-17 Thread Fabian Frederick
Add last missing line in commit cdd9eefdf905 (fs/ufs: restore s_lock mutex) Signed-off-by: Fabian Frederick f...@skynet.be --- Second part of the patch with 2 fixes was not applied. Meanwhile, Al already fixed remount(). fs/ufs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git

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

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

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(>lock); > shmem_recalc_inode(inode); > spin_unlock(>lock); >

[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 --- 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 --- 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 @@

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

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

Re: [PATCH] selftests: add seccomp suite

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

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 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] 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 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

Building tools/perf fails on next

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

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

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

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" 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

[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

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 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

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': >

[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

[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 --- 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

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

Re: [arc-linux-dev] [PATCH] stmmac: explicitly zero des0 & des1 on init

2015-06-17 Thread Vineet Gupta
+CC linux-arch, linux-mm, Arnd and Marek On Tuesday 16 June 2015 11:11 PM, Alexey Brodkin wrote: Current implementtion of descriptor init procedure only takes care about ownership flag. While it is perfectly possible to have underlying memory filled with garbage on boot or driver installation.

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

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

2015-06-17 Thread gongzg
From: GongZhaogang 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 that is online. Follow

Re: [PATCH v4 0/4] remoteproc: Introduce wkup_m3_rproc driver

2015-06-17 Thread Ohad Ben-Cohen
On Fri, May 22, 2015 at 11:45 PM, Dave Gerlach wrote: > Hi, > This patch series is v4 of the series to add a wkup_m3_rproc driver > for TI AM335xi and AM437x SoCs. This family of SoCs contains an ARM > Cortex M3 coprocessor that is responsible for low-level power tasks > that cannot be handled by

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 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 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 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 || COMPILE_TEST) && HAS_DMA &&

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

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

2015-06-17 Thread Michal Hocko
On Tue 16-06-15 20:43:34, Darren Hart wrote: [...] > Michal - thanks for the context. > > I'm surprised by your recommendation to use __free_page() out here in platform > driver land. > > I'd also prefer that the driver consistently free the same address to avoid > confusion. > > For these

[PATCH] clk: xgene: Delete duplicated name field

2015-06-17 Thread Matthias Brugger
X-Gene clocks implement it's name in the clock private struct. This is a duplication of the name field. We can delete the field and rely on the common implementation to retrieve the name. Signed-off-by: Matthias Brugger --- drivers/clk/clk-xgene.c | 28 +--- 1 file

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

2015-06-17 Thread Frans Klaver
Hi, Your subject got cut short, I guess. On Wed, Jun 17, 2015 at 5:22 PM, gongzg wrote: > From: GongZhaogang > > 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 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

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

2015-06-17 Thread H. Peter Anvin
On 06/04/2015 02:45 AM, 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() > [3.193000]

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" 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" wrote: > > > > > On Tue, Jun 16, 2015 at 06:33:37PM +0200, Igor Mammedov wrote: > > > > since commit >

Re: [PATCH] selftests: add seccomp suite

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

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" 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" wrote: > > > > > On Tue, Jun 16, 2015 at 06:33:34PM +0200, Igor Mammedov wrote: > > > > Series extends

[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 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 that is online. Follow

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 wrote: > 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

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 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 !src_nents case as I

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

2015-06-17 Thread Michael S. Tsirkin
On Wed, Jun 17, 2015 at 09:28:02AM +0200, Igor Mammedov wrote: > On Wed, 17 Jun 2015 08:34:26 +0200 > "Michael S. Tsirkin" 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" wrote: > > > > > > > On

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

2015-06-17 Thread Michael S. Tsirkin
On Wed, Jun 17, 2015 at 09:33:57AM +0200, Igor Mammedov wrote: > On Wed, 17 Jun 2015 08:31:23 +0200 > "Michael S. Tsirkin" 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" wrote: > > > > > > > On

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 > wrote: >>> On Sun, Jun 7, 2015 at 10:32 AM, wrote: > 2015-06-05 5:53 GMT+09:00 : > > [...] > If ufshcd-pltfrm driver is loaded before ufs-qcom, (what actually happens always), then the calling to of_platform_populate()

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 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 it a bit in any

[PATCH v6 02/14] crypto: mv_cesa: use gen_pool to reserve the SRAM memory region

2015-06-17 Thread Boris Brezillon
The mv_cesa driver currently expects the SRAM memory region to be passed as a platform device resource. This approach implies two drawbacks: - the DT representation is wrong - the only one that can access the SRAM is the crypto engine The last point is particularly annoying in some cases: for

[PATCH v6 00/14] crypto: add a new driver for Marvell's CESA

2015-06-17 Thread Boris Brezillon
Hello, This patch series adds a new driver supporting Marvell's CESA IP. This driver addresses some limitations of the existing one. >From a performance and CPU load point of view the most important limitation in the existing driver is the lack of DMA support, thus preventing us from chaining

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

2015-06-17 Thread Boris Brezillon
The existing mv_cesa driver supports some features of the CESA IP but is quite limited, and reworking it to support new features (like involving the TDMA engine to offload the CPU) is almost impossible. This driver has been rewritten from scratch to take those new features into account. This

[PATCH v6 03/14] crypto: mv_cesa: explicitly define kirkwood and dove compatible strings

2015-06-17 Thread Boris Brezillon
We are about to add a new driver to support new features like using the TDMA engine to offload the CPU. Orion, Dove and Kirkwood platforms are already using the mv_cesa driver, but Orion SoCs do not embed the TDMA engine, which means we will have to differentiate them if we want to get TDMA

[PATCH v6 01/14] crypto: mv_cesa: document the clocks property

2015-06-17 Thread Boris Brezillon
On Dove platforms, the crypto engine requires a clock. Document this clocks property in the mv_cesa bindings doc. Signed-off-by: Boris Brezillon --- Documentation/devicetree/bindings/crypto/mv_cesa.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[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

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

[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

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

2015-06-17 Thread Boris Brezillon
From: Arnaud Ebalard Add support for Triple-DES operations. Signed-off-by: Arnaud Ebalard Signed-off-by: Boris Brezillon --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell/cipher.c | 147 3

[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 > Cc: Radim Krcmar > Cc: Marcelo Tosatti > Cc: k...@vger.kernel.org > Signed-off-by: Andy

[PATCH v6 10/14] crypto: marvell/CESA: add support for all armada SoCs

2015-06-17 Thread Boris Brezillon
Add CESA IP description for all the missing armada SoCs (XP, 375 and 38x). Signed-off-by: Boris Brezillon --- drivers/crypto/marvell/cesa.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index 9c43cd7e..af590bf

[PATCH v6 13/14] crypto: marvell/CESA: add support for Kirkwood and Dove SoCs

2015-06-17 Thread Boris Brezillon
From: Arnaud Ebalard Add the Kirkwood and Dove SoC descriptions, and control the allhwsupport module parameter to avoid probing the CESA IP when the old CESA driver is enabled (unless it is explicitly requested to do so). Signed-off-by: Arnaud Ebalard Signed-off-by: Boris Brezillon ---

[PATCH v6 14/14] crypto: marvell/CESA: add DT bindings documentation

2015-06-17 Thread Boris Brezillon
Add DT bindings documentation for the new marvell-cesa driver. Signed-off-by: Boris Brezillon --- .../devicetree/bindings/crypto/marvell-cesa.txt| 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/marvell-cesa.txt diff

[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 Signed-off-by: Arnaud Ebalard --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell/cipher.c | 150 3 files changed, 154 insertions(+)

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

2015-06-17 Thread Boris Brezillon
From: Arnaud Ebalard Add support for SHA256 operations. Signed-off-by: Arnaud Ebalard Signed-off-by: Boris Brezillon --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell/hash.c | 159 ++ 3 files

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

2015-06-17 Thread Boris Brezillon
From: Arnaud Ebalard Add support for MD5 operations. Signed-off-by: Arnaud Ebalard Signed-off-by: Boris Brezillon --- drivers/crypto/marvell/cesa.c | 2 + drivers/crypto/marvell/cesa.h | 2 + drivers/crypto/marvell/hash.c | 172 +- 3 files changed,

Re: [PATCH 5/5] ARM64: MediaTek MT8173: Add SCPSYS device node

2015-06-17 Thread Sascha Hauer
On Tue, Jun 16, 2015 at 11:17:53AM -0700, Kevin Hilman wrote: > Sascha Hauer writes: > > > This adds the SCPSYS device node to the MT8173 dtsi file. > > > > Signed-off-by: Sascha Hauer > > --- > > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 10 ++ > > 1 file changed, 10 insertions(+) >

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 > > 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. /proc/*/mem, maps,

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 */ > > +

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(_freelist_lock, flags); >> +

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 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

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 > > 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 00

Re: [PATCH 7/8] staging: sm7xxfb: move mode table

2015-06-17 Thread Sudip Mukherjee
On Tue, Jun 16, 2015 at 10:33:57AM -0700, Joe Perches wrote: > On Tue, 2015-06-16 at 19:12 +0530, Sudip Mukherjee wrote: > > move vgamode table from the header file to the C file and mark it > > as const. > > The slightly odd indentation could be fixed here too. Ok. I am sending v2. But if I am

Re: [PATCH v2 09/13] KVM: x86: pass kvm_mmu_page to gfn_to_rmap

2015-06-17 Thread Paolo Bonzini
On 09/06/2015 05:28, Xiao Guangrong wrote: >> >> -rmapp = gfn_to_rmap(kvm, sp->gfn, PT_PAGE_TABLE_LEVEL); >> +slots = kvm_memslots(kvm); >> +slot = __gfn_to_memslot(slots, sp->gfn); >> +rmapp = __gfn_to_rmap(sp->gfn, PT_PAGE_TABLE_LEVEL, slot); >> > > Why @sp is not available

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

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 wrote: > From: GongZhaogang > > 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 >

Re: [PATCH 7/8] staging: sm7xxfb: move mode table

2015-06-17 Thread Joe Perches
On Wed, 2015-06-17 at 13:45 +0530, Sudip Mukherjee wrote: > On Tue, Jun 16, 2015 at 10:33:57AM -0700, Joe Perches wrote: > > On Tue, 2015-06-16 at 19:12 +0530, Sudip Mukherjee wrote: > > > move vgamode table from the header file to the C file and mark it > > > as const. > > > > The slightly odd

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 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 bi_phys_segments, hope

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 wrote: 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

<    6   7   8   9   10   11   12   13   14   15   >