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

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 de

[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, > > > + DMA_TO_DEVICE);

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

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 reaso

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

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 cond

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

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

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 porte

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 a/net/pack

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

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

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() which

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 case

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

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

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

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

[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 a/Documentation/devicetree/bindings/crypto

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

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

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

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 Lutom

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

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

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

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

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: 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);

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 70

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

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 her

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 u

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

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 in

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 y

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 inserti

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 Thanks! Acked-by: Marc Dietrich > --- > drivers/staging/nvec/n

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

2015-06-17 Thread Frans Klaver
On Wed, Jun 17, 2015 at 10:26 AM, Alexander Drozdov wrote: > 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-b

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

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

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

2015-06-17 Thread Jiri Olsa
On Wed, Jun 17, 2015 at 03:40:42AM +, Wang Nan wrote: > 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: > SNIP > - attr->branch_sample_type = bswap_64(attr->branch_sample_type); > -

Re: [PATCH] mailmap: add rdunlap email auto-correction

2015-06-17 Thread Joe Perches
On Tue, 2015-06-16 at 16:45 -0700, Kees Cook wrote: > To avoid having xenotime bounce when things like get_maintainers gives > me addresses, add Randy's current address. > > Signed-off-by: Kees Cook > --- > .mailmap | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.mailmap b/.mailmap >

[PATCH] ahci, msix: Fix build error for !PCI_MSI

2015-06-17 Thread Robert Richter
>From fd984f3be22f27b8d3c4cf577dbbf0a39792ea89 Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Wed, 17 Jun 2015 10:33:22 +0200 Subject: [PATCH] ahci, msix: Fix build error for !PCI_MSI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixing a build err

Re: Re: [PATCH] perf probe: Fix failure to probe events on arm

2015-06-17 Thread Masami Hiramatsu
On 2015/06/17 0:26, hekuang wrote: > hi, Arnaldo > > On 06/15/2015 10:49 PM, Arnaldo Carvalho de Melo wrote: >> Em Mon, Jun 15, 2015 at 08:06:53AM +, He Kuang escreveu: >>> Fix failure to probe events on arm, problem is introduced by commit >>> 5a51fcd1f30c ("perf probe: Skip kernel symbols wh

[PATCH] gpio: zynq: add missing module_exit function

2015-06-17 Thread Masahiro Yamada
This driver is tristate, so it should be cleanable. Signed-off-by: Masahiro Yamada --- drivers/gpio/gpio-zynq.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index 184c4b1..1d38da7 100644 --- a/drivers/gpio/gpio-zynq.c +++ b/driver

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

2015-06-17 Thread Paolo Bonzini
On 17/06/2015 08:34, Michael S. Tsirkin wrote: >>> > > >>> > > Also - 509? >> > userspace memory slots in terms of KVM, I made it match >> > KVM's allotment of memory slots for userspace side. > Maybe KVM has its reasons for this #. Nice power of two (512) - number of reserved slots required by

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

2015-06-17 Thread Paul Bolle
A nit and a question follow. On Tue, 2015-06-16 at 10:28 -0700, York Sun wrote: > --- /dev/null > +++ b/drivers/i2c/muxes/i2c-mux-reg.c > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * publishe

Re: [PATCH v4 3/3] net/xen-netback: Don't mix hexa and decimal with 0x in the printf format

2015-06-17 Thread Ian Campbell
On Tue, 2015-06-16 at 16:55 -0700, Joe Perches wrote: > 0x%x is easier and simpler to visualize than %#x. They also don't produce the same output if the value is 0 (0x%x=>0x0, % #x=>0), which can matter if you are trying to line up a column or whatever. Ian. -- To unsubscribe from this list: sen

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

2015-06-17 Thread Igor Mammedov
On Wed, 17 Jun 2015 09:39:06 +0200 "Michael S. Tsirkin" wrote: > 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

[RESEND PATCH 1/2] ARM: at91/dt: trivial: fix USB udc compatible string

2015-06-17 Thread Nicolas Ferre
To please checkpatch and the tiresome reader, add the "atmel," prefix to the USB udc compatible string. Signed-off-by: Nicolas Ferre Cc: #4.0+ --- Documentation/devicetree/bindings/usb/atmel-usb.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicet

[RESEND PATCH 2/2] ARM: at91/dt: update udc compatible strings

2015-06-17 Thread Nicolas Ferre
From: Boris Brezillon at91sam9g45, at91sam9x5 and sama5 SoCs should not use "atmel,at91sam9rl-udc" for their USB device compatible property since this compatible is attached to a specific hardware bug fix. Signed-off-by: Boris Brezillon Acked-by: Alexandre Belloni Tested-by: Bo Shen Acked-by:

Re: [alsa-devel][PATCH v2] ASoC: wm8960: add dapm kcontrols to select left/right ADC input source

2015-06-17 Thread Zidan Wang
On Tue, Jun 16, 2015 at 01:18:39PM +0100, Charles Keepax wrote: > On Tue, Jun 16, 2015 at 02:23:19PM +0800, Zidan Wang wrote: > > Add dapm kcontrols to select left/right ADC input source, one to select > > the left ADC input source and one for the right ADC input source. > > > > In default, the le

Re: [PATCH] ahci, msix: Fix build error for !PCI_MSI

2015-06-17 Thread Jiang Liu
On 2015/6/17 16:48, Robert Richter wrote: > From fd984f3be22f27b8d3c4cf577dbbf0a39792ea89 Mon Sep 17 00:00:00 2001 > From: Robert Richter > Date: Wed, 17 Jun 2015 10:33:22 +0200 > Subject: [PATCH] ahci, msix: Fix build error for !PCI_MSI > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-

[PATCH v2 5/7] staging: board: Add support for devices with complex dependencies

2015-06-17 Thread Geert Uytterhoeven
Add support for easy registering of one ore more platform devices that may: - need clocks that are described in DT, - be part of a PM Domain. All these dependencies are optional. Signed-off-by: Geert Uytterhoeven --- v2: - Drop support for pinctrl, use standard pinctrl in DT instead, - D

[PATCH v2 4/7] staging: board: kzm9d: Translate hwirq numbers to virq numbers

2015-06-17 Thread Geert Uytterhoeven
As of commit 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain."), GIC IRQ numbers are virtual, breaking hardcoded hardware IRQ numbers in platform device resources. Translate the hardware IRQ numbers to virtual IRQ numbers to fix this. Signed-off-by: Geert Uytterhoeven --- Untested

Re: call_rcu from trace_preempt

2015-06-17 Thread Daniel Wagner
On 06/17/2015 10:11 AM, Daniel Wagner wrote: > 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()) { >>> +

[PATCH v2 3/7] staging: board: Add support for translating hwirq to virq numbers

2015-06-17 Thread Geert Uytterhoeven
As of commit 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq domain."), GIC IRQ numbers are virtual, breaking hardcoded hardware IRQ numbers in platform device resources. Add support for translating hardware IRQ numbers to virtual IRQ numbers, and fixing up platform device resources with ha

[PATCH v2 6/7] staging: board: armadillo800eva: Board staging for sh_mobile_lcdc_fb

2015-06-17 Thread Geert Uytterhoeven
Add staging board support for the r8a7740-based armadillo800eva board and add platform devices to allow in-tree continuous development of the drivers on the armadillo800eva board. When DT bindings are ready for theses drivers then the platform devices in the armadillo800eva staging board code can

[PATCH v2 0/7] staging: board: armadillo800eva: Board staging for sh_mobile_lcdc_fb

2015-06-17 Thread Geert Uytterhoeven
board staging code to DT, - Use clk_add_alias() instead of open coding. Dependencies: - This is against next-20150617, - The gpio-hog in patch 7 depends on a bug fix like "[PATCH] [RFC] gpio: Retry deferred GPIO hogging on pin range change" (https://lkml.org/lkml/2015/6/16/455).

[PATCH v2 1/7] Revert "staging: board: disable as it breaks the build"

2015-06-17 Thread Geert Uytterhoeven
This reverts commit d13778d537a0ed6115d2a79a942af999cfb8eec6. Commit 13c11072536f2613 ("staging:board: remove unnecessary function") fixed the build of drivers/staging/board/board.c. Signed-off-by: Geert Uytterhoeven Reviewed-by: Simon Horman --- v2: - Add Reviewed-by. --- drivers/staging/bo

[PATCH v2 2/7] staging: board: Initialize staging board code earlier

2015-06-17 Thread Geert Uytterhoeven
Currently the staging board code is initialized from a late_initcall(). However, unused PM domains are also disabled from a late_initcall(), which happens before due to link order. Change the initialization of staging board code from using late_initcall() to device_initcall() to fix this. Signed-

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

2015-06-17 Thread Eddie Huang
Hi Mark, On Wed, 2015-06-10 at 16:06 +0800, Eddie Huang wrote: > On Tue, 2015-06-09 at 11:39 +0100, Mark Brown wrote: > > On Tue, Jun 09, 2015 at 06:05:21PM +0800, Eddie Huang wrote: > > > > > --- a/drivers/spi/spi.c > > > +++ b/drivers/spi/spi.c > > > @@ -539,8 +539,8 @@ static int __spi_map_msg

[PATCH v2 7/7] ARM: shmobile: armadillo800eva dts: Add pinctrl and gpio-hog for lcdc0

2015-06-17 Thread Geert Uytterhoeven
Configure pinctrl and a GPIO-controller board mux for LCD use. This allows the armadillo800eva board staging code to enable lcdc0. Signed-off-by: Geert Uytterhoeven --- v2: - New. --- arch/arm/boot/dts/r8a7740-armadillo800eva.dts | 13 + 1 file changed, 13 insertions(+) diff --git

Re: [PATCH 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 Sreekanth Reddy
On Tue, Jun 16, 2015 at 9:29 PM, Tomas Henzl wrote: > On 06/12/2015 11:42 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 fact

Re: sysctl_writes_strict documentation + an oddity?

2015-06-17 Thread Michael Kerrisk (man-pages)
Hi Kees, On 06/16/2015 06:32 PM, Kees Cook wrote: > On Tue, Jun 16, 2015 at 3:03 AM, Michael Kerrisk (man-pages) > wrote: >> On 06/04/2015 09:36 PM, Kees Cook wrote: >>> On Sat, May 9, 2015 at 1:54 AM, Michael Kerrisk (man-pages) >>> wrote: = 2) Behavior puzzle (a) = The l

[PATCH] watchdog: omap_wdt: implement get_timeleft

2015-06-17 Thread poeschel
From: Lars Poeschel The omap watchdog hardware is able to read the watchdog timer counter register. This implements this functionality in the omap_wdt driver, so one is can read the time until the watchdog will trigger the reset in seconds using WDIOC_GETTIMELEFT. Signed-off-by: Lars Poeschel -

[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 Sreekanth Reddy
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 state. 2.If IOC is in fault state, a diagnostic reset wou

Re: [Xen-devel] [PATCH v4 3/3] net/xen-netback: Don't mix hexa and decimal with 0x in the printf format

2015-06-17 Thread Jan Beulich
>>> On 16.06.15 at 21:10, wrote: > Append 0x to all %x in order to avoid while reading when there is other > decimal value in the log. To save on the space taken by the format strings you should prefer %#x over 0x%x (like we do in the hypervisor). Jan -- To unsubscribe from this list: send the

[PATCH] watchdog: docs: omap_wdt also understands nowayout

2015-06-17 Thread poeschel
From: Lars Poeschel The omap_wdt kernel driver also understands the nowayout module parameter. This updates the watchdog-parameters.txt to reflect this fact. Signed-off-by: Lars Poeschel --- Documentation/watchdog/watchdog-parameters.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Do

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

2015-06-17 Thread Herbert Xu
On Tue, Jun 16, 2015 at 10:30:50AM -0700, Tadeusz Struk 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 regis

[PATCH] tools/perf, rbtree: Add RCU wrappers to make rbtree.h usable in user-space

2015-06-17 Thread Ingo Molnar
* Riku Voipio wrote: > 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

Re: [RFC v3 1/4] fs: Add generic file system event notifications

2015-06-17 Thread Beata Michalska
Hi, On 06/16/2015 06:21 PM, Al Viro wrote: > On Tue, Jun 16, 2015 at 03:09:30PM +0200, Beata Michalska wrote: >> Introduce configurable generic interface for file >> system-wide event notifications, to provide file >> systems with a common way of reporting any potential >> issues as they emerge. >

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

2015-06-17 Thread Beata Michalska
On 06/17/2015 08:08 AM, Leon Romanovsky wrote: >> } >> - if (error == -ENOSPC && !once++) { >> + if (error == -ENOSPC) { >> + if (!once++) { >> info = SHMEM_I(inode); >> spin_lock(&info->lock); >> shmem_recalc_inode(i

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

2015-06-17 Thread Beata Michalska
On 06/17/2015 08:15 AM, Leon Romanovsky wrote: > 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

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

2015-06-17 Thread Li Bin
On 2015/6/17 16:13, Miroslav Benes wrote: > 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 >

Re: [PATCH v4 3/3] net/xen-netback: Don't mix hexa and decimal with 0x in the printf format

2015-06-17 Thread Ian Campbell
On Tue, 2015-06-16 at 20:10 +0100, Julien Grall wrote: > Append 0x to all %x in order to avoid while reading when there is other > decimal value in the log. > > Also replace some of the hexadecimal print to decimal to uniformize the > format with netfront. > > Signed-off-by: Julien Grall > Cc: W

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

2015-06-17 Thread Borislav Petkov
On Tue, Jun 16, 2015 at 05:35:49PM -0700, Andy Lutomirski wrote: > 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

Re: [PATCH 1/3] x86, acpi: Eliminate saved_eip

2015-06-17 Thread Pavel Machek
On Tue 2015-06-16 14:46:20, Denys Vlasenko wrote: > On 06/16/2015 12:05 PM, Pavel Machek wrote: > > > >> diff --git a/arch/x86/kernel/acpi/wakeup_32.S > >> b/arch/x86/kernel/acpi/wakeup_32.S > >> index 665c6b7..eef2bd3 100644 > >> --- a/arch/x86/kernel/acpi/wakeup_32.S > >> +++ b/arch/x86/kernel/

Re: [Patch v3] driver/clk/clk-si5338: Add common clock framework driver for si5338

2015-06-17 Thread Paul Bolle
On Tue, 2015-06-16 at 09:31 -0700, York Sun wrote: > COMMON_CLK in Kconfig is changed from bool to tristate so all common > clock framework drivers can be selected by users. A bool to tristate change isn't needed to make it possible to set a symbol manually. That's achieved by adding a prompt (whi

Re: [PATCH v4 3/3] net/xen-netback: Don't mix hexa and decimal with 0x in the printf format

2015-06-17 Thread Julien Grall
Hi Ian, On 17/06/2015 10:25, Ian Campbell wrote: On Tue, 2015-06-16 at 20:10 +0100, Julien Grall wrote: Append 0x to all %x in order to avoid while reading when there is other decimal value in the log. Also replace some of the hexadecimal print to decimal to uniformize the format with netfront

Re: [PATCH v4] ARM: early fixmap support for earlycon

2015-06-17 Thread Ard Biesheuvel
On 17 June 2015 at 01:22, Stephen Boyd wrote: > On 06/16/2015 02:51 PM, Stefan Agner wrote: >> Add early fixmap support, initially to support permanent, fixed >> mapping support for early console. A temporary, early pte is >> created which is migrated to a permanent mapping in paging_init. >> This

Re: [PATCH v4 3/3] net/xen-netback: Don't mix hexa and decimal with 0x in the printf format

2015-06-17 Thread Ian Campbell
On Wed, 2015-06-17 at 10:30 +0100, Julien Grall wrote: > I see different opinion on whether using 0x% or %#. As I plan to resend > a version with the commit message update, shall I use %#? I think it's mostly pointless bike-shedding over a saving measured in single digit bytes, use whichever you

[PATCH v4] iio: light: Add support for ROHM RPR0521 sensor

2015-06-17 Thread Daniel Baluta
This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta --- Changes since v3: * use GENMASK instead BIT(x) | BIT(y) * remove (now) unused RPR0521_PXS_MAX_VAL because of PXS ABI

  1   2   3   4   5   6   7   8   9   10   >