[PATCH] cris: arch-v32: gpio: Use kzalloc instead of kmalloc/memset

2015-07-06 Thread Christophe JAILLET
Turn a kmalloc/memset into an equivalent kzalloc. Doing so also move the zero'ing of the memory outside of a mutex. Signed-off-by: Christophe Jaillet --- A simililar patch has already been applied against arch/cris/arch-v32/drivers/mach-fs/gpio.c --- arch/cris/arch-v32/drivers/mach-a3/gpio.c |

linux-next: stats (Was: Linux 4.2-rc1)

2015-07-06 Thread Stephen Rothwell
Hi all, [These will be easier in the future as I have now scripted this message] As usual, the executive friendly graph is at http://neuling.org/linux-next-size.html :-) (No merge commits counted, next-20150623 was the first linux-next after the merge window opened.) Commits in v4.2-rc1

[PATCH 1/2] cxl: Fix off by one error allowing subsequent mmap page to be accessed

2015-07-06 Thread Ian Munsie
From: Ian Munsie It was discovered that if a process mmaped their problem state area they were able to access one page more than expected, potentially allowing them to access the problem state area of an unrelated process. This was due to a simple off by one error in the mmap fault handler

[PATCH 2/2] cxl: Fail mmap if requested mapping is larger than assigned problem state area

2015-07-06 Thread Ian Munsie
From: Ian Munsie This patch makes the mmap call fail outright if the requested region is larger than the problem state area assigned to the context so the error is reported immediately rather than waiting for an attempt to access an address out of bounds. Although we never expect users to map

[PATCH] [SCSI] FlashPoint: optimize string comparison

2015-07-06 Thread Christophe JAILLET
Stop comparing the strings as soon as we know that they don't match. Signed-off-by: Christophe JAILLET --- drivers/scsi/FlashPoint.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/FlashPoint.c b/drivers/scsi/FlashPoint.c index 5c74e4c..24a4d1a 100644 ---

[PATCH] rtc: rtc-ds1685: Use module_platform_driver

2015-07-06 Thread Vaishali Thakkar
Use module_platform_driver for drivers whose init and exit functions only register and unregister, respectively. A simplified version of the Coccinelle semantic patch that performs this transformation is as follows: @a@ identifier f, x; @@ -static f(...) { return platform_driver_register(); }

[PATCH] sched: make decaying sched_avg's variables happen on period boundary

2015-07-06 Thread byungchul . park
From: Byungchul Park decaying time happens on every period boundary. if it does not reach the period boundary yet, the partial time needs to be kept so that the time can be decayed on exactly period boundary at next update. sa->avg_period is not appropriate for getting partial delta_w because

[PATCH] Input: elan_i2c - Change the hover event from MT to ST

2015-07-06 Thread duson
We want the hover event like BTN_LEFT, even no contract object, it still can be reported to upper OS system. Signed-off by: Duson Lin --- drivers/input/mouse/elan_i2c_core.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/input/mouse/elan_i2c_core.c

Re: lock-up with module: Optimize __module_address() using a latched RB-tree

2015-07-06 Thread Arthur Marsh
I had a single, non-reproducible case of the same lock-up happening on my other machine running the Linus git head kernel in 64-bit mode. The kernel was built very similarly to the 32-bit mode kernel, using: CONCURRENCY_LEVEL=4 MAKEFLAGS="CC=gcc-5 LD=ld.gold KCFLAGS=-march=athlon64" \

[PATCH] coresight: replicator: Use module_platform_driver

2015-07-06 Thread Vaishali Thakkar
Use module_platform_driver for drivers whose init and exit functions only register and unregister, respectively. A simplified version of the Coccinelle semantic patch that performs this transformation is as follows: @a@ identifier f, x; @@ -static f(...) { return platform_driver_register(); }

Re: Query: Clock driver requests mailbox channel

2015-07-06 Thread Jassi Brar
On Mon, Jul 6, 2015 at 5:03 PM, Leo Yan wrote: > Hi all, > > i'm working with one clock driver, which will invoke mailbox API to > request the mailbox channel and send message. > > Usually clock driver will init with devicetree, below is the example: > CLK_OF_DECLARE(hi6220_clk_power,

[PATCH] Tools: hv: kvp: fix a build warning -Wformat-security

2015-07-06 Thread Dexuan Cui
It is to fix: hv_kvp_daemon.c:705:2: warning: format not a string literal and no format arguments [-Wformat-security] Signed-off-by: Dexuan Cui --- tools/hv/hv_kvp_daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c

Re: [RFC PATCH v6 3/3] drivers: nvmem: Add Vybrid OCOTP support

2015-07-06 Thread maitysanchayan
Hello Stefan, On 15-07-06 12:16:34, Stefan Wahren wrote: > Hi Sanchayan, > > > Sanchayan Maity hat am 29. Juni 2015 um 13:22 > > geschrieben: > > > > > > The patch adds support for the On Chip One Time Programmable Peripheral > > (OCOTP) on the Vybrid platform. > > please provide a changelog

RE: [PATCH v2 3/3] usb: dwc3: gadget: return error if command sent to DEPCMD register fails

2015-07-06 Thread Subbaraya Sundeep Bhatta
Hi Felipe, > -Original Message- > From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Monday, July 06, 2015 10:38 PM > To: Subbaraya Sundeep Bhatta > Cc: ba...@ti.com; gre...@linuxfoundation.org; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; sta...@vger.kernel.org > Subject: Re:

Re: [PATCH v3] ipc: Modify message queue accounting to not take kernel data structures into account

2015-07-06 Thread Davidlohr Bueso
On Mon, 2015-07-06 at 17:49 +0200, Marcus Gelderie wrote: > A while back, the message queue implementation in the kernel was > improved to use btrees to speed up retrieval of messages (commit > d6629859b36). The patch introducing the improved kernel handling of > message queues (using btrees) has,

Re: [PATCHv2 5/6] clk: sunxi: make use of of_clk_parent_fill helper function

2015-07-06 Thread Maxime Ripard
Hi Dinh, On Mon, Jul 06, 2015 at 10:59:05PM -0500, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Use of_clk_parent_fill to fill in the parent clock names' array. > > Signed-off-by: Dinh Nguyen > Cc: Maxime Ripard > Cc: "Emilio López" Acked-by: Maxime Ripard Thanks!

Re: [PATCH v4] clk: change clk_ops' ->determine_rate() prototype

2015-07-06 Thread Boris Brezillon
Hi Stephen, On Mon, 6 Jul 2015 14:32:10 -0700 Stephen Boyd wrote: > On 07/06, Boris Brezillon wrote: > > Clock rates are stored in an unsigned long field, but ->determine_rate() > > (which returns a rounded rate from a requested one) returns a long > > value (errors are reported using negative

Re: [PATCH] staging: lustre: obdclass: fix macro coding style issue in uuid.c

2015-07-06 Thread Joe Perches
On Mon, 2015-07-06 at 19:36 -0700, Greg KH wrote: > On Fri, Jun 26, 2015 at 11:04:49PM -0700, Joe Perches wrote: > > On Sat, 2015-06-27 at 06:36 +0100, Vasiliy Korchagin wrote: [] > > > Here is another version with macro expansion. Inline function > > > expansion doesn't > > > seem like a

Re: [RFC PATCH] bio integrity: do not assume bio_integrity_pool exists if bioset exists

2015-07-06 Thread Mike Snitzer
On Wed, Jul 01 2015 at 12:57pm -0400, Mike Snitzer wrote: > bio_integrity_alloc() and bio_integrity_free() assume that if a bio was > allocated from a bioset that that bioset also had its bio_integrity_pool > allocated using bioset_integrity_create(). This is a very bad > assumption given that

Re: [PATCHv6 1/2] dts: Adding docs for Xilinx LogiCORE IP mailbox driver.

2015-07-06 Thread Jassi Brar
On Mon, Jul 6, 2015 at 10:57 PM, Sören Brinkmann wrote: > On Mon, 2015-07-06 at 10:16AM -0700, Moritz Fischer wrote: >> Signed-off-by: Moritz Fischer >> Acked-by: Michal Simek >> --- >> .../devicetree/bindings/mailbox/xilinx-mailbox.txt | 44 >> ++ >> 1 file changed, 44

[PATCH] sched: let __sched_period() use rq cfs's nr_running

2015-07-06 Thread byungchul . park
From: Byungchul Park __sched_period() returns a period which a rq can have. the period has to be stretched by the number of task *the rq has*, when nr_running > nr_latency. otherwise, task slice can be very smaller than sysctl_sched_min_granularity depending on the position of tg hierarchy when

[RFCv3 2/5] mm/compaction: enable mobile-page migration

2015-07-06 Thread Gioh Kim
From: Gioh Kim Add framework to register callback functions and check page mobility. There are some modes for page isolation so that isolate interface has arguments of page address and isolation mode while putback interface has only page address as argument. Signed-off-by: Gioh Kim ---

[RFCv3 1/5] fs/anon_inodes: new interface to create new inode

2015-07-06 Thread Gioh Kim
From: Gioh Kim The anon_inodes has already complete interfaces to create manage many anonymous inodes but don't have interface to get new inode. Other sub-modules can create anonymous inode without creating and mounting it's own pseudo filesystem. Signed-off-by: Gioh Kim --- fs/anon_inodes.c

[RFCv3 5/5] mm: remove direct calling of migration

2015-07-06 Thread Gioh Kim
From: Gioh Kim Migration is completely generalized so that migrating mobile page is processed with lru-pages in move_to_new_page. Signed-off-by: Gioh Kim --- mm/balloon_compaction.c | 8 mm/migrate.c| 13 - 2 files changed, 21 deletions(-) diff --git

[RFCv3 0/5] enable migration of driver pages

2015-07-06 Thread Gioh Kim
From: Gioh Kim Hello, This series try to enable migration of non-LRU pages, such as driver's page. My ARM-based platform occured severe fragmentation problem after long-term (several days) test. Sometimes even order-3 page allocation failed. It has memory size 512MB ~ 1024MB. 30% ~ 40% memory

[RFCv3 3/5] mm/balloon: apply mobile page migratable into balloon

2015-07-06 Thread Gioh Kim
From: Gioh Kim Apply mobile page migration into balloon driver. The balloong driver has an anonymous inode that manages address_space_operation for page migration. Signed-off-by: Gioh Kim --- drivers/virtio/virtio_balloon.c| 3 ++ include/linux/balloon_compaction.h | 15 +++--

[RFCv3 4/5] mm: call generic migration callbacks

2015-07-06 Thread Gioh Kim
From: Gioh Kim Compaction calls interfaces of mobile page migration instead of calling balloon migration directly. Signed-off-by: Gioh Kim --- mm/compaction.c | 8 mm/migrate.c| 19 ++- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git

[PATCH v3] arm64: Modify the dump mem for 64 bit addresses

2015-07-06 Thread Maninder Singh
From: Rohit Thapliyal On 64bit kernel, the dump_mem gives 32 bit addresses on the stack dump. This gives unorganized information regarding the 64bit values on the stack. Hence, modified to get a complete 64bit memory dump. With patch: [ 93.534801] Process insmod (pid: 1587, stack limit =

Re: [RESEND][PATCH v2] arm64:Modify the dump mem for 64 bit addresses

2015-07-06 Thread Krzysztof Kozlowski
2015-07-07 12:56 GMT+09:00 Maninder Singh : > From: Rohit Thapliyal > > V1 = added new function dump_mem64 > v1->v2 > Removed the separate function dump_mem64 and accommodated > a field width based on which the dump shall be created of > width either 4 or 8 as suggested by Catalin. Hi, Please

[PATCH net-next] tcp: always send a quick ack when quickacks are enabled

2015-07-06 Thread Jon Maxwell
I ran some tests and after setting the "ip route change quickack 1" knob there were still many delayed ACKs sent. This occured because when icsk_ack.quick=0 the !icsk_ack.pingpong value is subsequently ignored as tcp_in_quickack_mode() checks both these values. The condition for a quick ack to

Re: [PATCH] dmaengine: imx-sdma: Add device to device support

2015-07-06 Thread Vinod Koul
On Tue, Jun 23, 2015 at 04:42:54PM +0800, Shengjiu Wang wrote: > +static void sdma_set_watermarklevel_for_p2p(struct sdma_channel *sdmac) > +{ > + struct sdma_engine *sdma = sdmac->sdma; > + > + int lwml = sdmac->watermark_level & 0xff; > + int hwml = (sdmac->watermark_level >> 16) &

spoluprace

2015-07-06 Thread email
Mam prospesne resení pro nas oba. byste mi mel odpovedet na nize pro vysvetlení na e-mailovou adresu. E-mail: jgg.c...@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH] base: power: wakeirq: don't leak dev->power.wakeirq

2015-07-06 Thread Michael Trimarchi
Hi On Mon, Jul 6, 2015 at 8:09 PM, Felipe Balbi wrote: > On Mon, Jul 06, 2015 at 08:06:17PM +0200, Michael Trimarchi wrote: >> Hi >> >> On Jul 6, 2015 8:01 PM, "Felipe Balbi" wrote: >> > >> > on a first call to dev_pm_attach_wake_irq(), if it >> > fails, it will leave dev->power.wakeirq set to

MM: Query about different memory types(mem_types)__mmu.c

2015-07-06 Thread Sumit Gupta
Hi All, I have been exploring ARM reference manual about ARM weak memory model and mmu page table setting from some time. I think i understand different memory types, mmu settings for page/section, TEX, AP, B, C, S bits well. My target is to to dig further and fully understand setting of all

[PATCHv2 6/6] clk: ti: make use of of_clk_parent_fill helper function

2015-07-06 Thread dinguyen
From: Dinh Nguyen Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen Cc: Tero Kristo --- drivers/clk/ti/apll.c |4 +--- drivers/clk/ti/composite.c |4 +--- drivers/clk/ti/dpll.c |4 +--- drivers/clk/ti/fapll.c |3 +--

[PATCHv2 0/6] clk: make use of of_clk_parent_fill helper function

2015-07-06 Thread dinguyen
From: Dinh Nguyen Hello, This is v2 of the patchset that makes use of of_clk_parent_fill helper function on various platforms. Thanks, Dinh Nguyen (6): clk: at91: make use of of_clk_parent_fill helper function clk: qoriq: make use of of_clk_parent_fill helper function clk: keystone:

[PATCHv2 1/6] clk: at91: make use of of_clk_parent_fill helper function

2015-07-06 Thread dinguyen
From: Dinh Nguyen Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen Cc: Boris Brezillon --- drivers/clk/at91/clk-main.c |7 +-- drivers/clk/at91/clk-master.c |7 +-- drivers/clk/at91/clk-programmable.c |7 +--

[PATCHv2 4/6] clk: st: make use of of_clk_parent_fill helper function

2015-07-06 Thread dinguyen
From: Dinh Nguyen Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen Tested-by Gabriel Fernandez Cc: Peter Griffin --- drivers/clk/st/clk-flexgen.c |6 ++ drivers/clk/st/clkgen-mux.c |7 ++- 2 files changed, 4 insertions(+), 9

[PATCHv2 5/6] clk: sunxi: make use of of_clk_parent_fill helper function

2015-07-06 Thread dinguyen
From: Dinh Nguyen Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen Cc: Maxime Ripard Cc: "Emilio López" --- v2: Add if (of_clk_parent_fill(node, parents, 2) != 2) to clk-a20-gmac.c --- drivers/clk/sunxi/clk-a20-gmac.c|4 +---

[PATCHv2 3/6] clk: keystone: make use of of_clk_parent_fill helper function

2015-07-06 Thread dinguyen
From: Dinh Nguyen Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen Acked-by: Santosh Shilimkar --- drivers/clk/keystone/pll.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/keystone/pll.c

[PATCHv2 2/6] clk: qoriq: make use of of_clk_parent_fill helper function

2015-07-06 Thread dinguyen
From: Dinh Nguyen Use of_clk_parent_fill to fill in the parent clock names' array. Signed-off-by: Dinh Nguyen --- drivers/clk/clk-qoriq.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c index cda90a9..d3f4570 100644

Re: [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c

2015-07-06 Thread Greg KH
On Mon, Jul 06, 2015 at 09:53:26PM -0400, Sreenath Madasu wrote: > When the checkpatch.pl script was run, it showed lines with length > more than 80 characters in rtw_ap.c file. Fixed line number 382 by > breaking it up into two lines within 80 characters. > > Signed-off-by: Sreenath Madasu >

Re: [PATCH] x86: Fix detection of GCC -mpreferred-stack-boundary support

2015-07-06 Thread Raymond Jennings
On Mon, 2015-07-06 at 10:59 -0700, Andy Lutomirski wrote: > On Mon, Jul 6, 2015 at 10:40 AM, Ingo Molnar wrote: > > > > * Andy Lutomirski wrote: > > > >> > My reasoning: on modern uarchs there's no penalty for 32-bit > >> > misalignment of > >> > 64-bit variables, only if they cross 64-byte

Re: [PATCH 1/2] staging: wilc1000: Delete unnecessary checks before two function calls

2015-07-06 Thread Greg Kroah-Hartman
On Sat, Jun 27, 2015 at 04:36:14PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 27 Jun 2015 15:56:57 +0200 Why is this in the body of the email? Please fix your email client or just use git send-email properly. -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH RESEND] sched: prefer an idle cpu vs an idle sibling for BALANCE_WAKE

2015-07-06 Thread Mike Galbraith
On Mon, 2015-07-06 at 15:41 -0400, Josef Bacik wrote: > So the NO_WAKE_WIDE_IDLE results are very good, almost the same as the > baseline with a slight regression at lower RPS and a slight improvement > at high RPS. Good. I can likely drop the rest then (I like dinky, so do CPUs;). I'm not

Re: [PATCH] staging: lustre: obdclass: fix macro coding style issue in uuid.c

2015-07-06 Thread Greg KH
On Fri, Jun 26, 2015 at 11:04:49PM -0700, Joe Perches wrote: > On Sat, 2015-06-27 at 06:36 +0100, Vasiliy Korchagin wrote: > > This patch fixes the checkpatch.pl error: > > > > ERROR: Macros with complex values should be enclosed in parentheses > > +#define CONSUME(val, ptr) (val) =

Re: [PATCH 2/2] staging: wilc1000: One function call less in mac_ioctl() after error detection

2015-07-06 Thread Greg Kroah-Hartman
On Sat, Jun 27, 2015 at 04:37:24PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 27 Jun 2015 16:00:59 +0200 Again, please fix. > > The kfree() function was called in two cases by the mac_ioctl() function > during error handling even if the passed variable did not contain

Re: [PATCH v2] usb: move assignment out of if condition

2015-07-06 Thread Greg KH
On Thu, Jul 02, 2015 at 06:23:59PM -0400, Kris Borer wrote: > Fix four occurrences of checkpatch.pl error: > > ERROR: do not use assignment in if condition > > Signed-off-by: Kris Borer > --- > drivers/usb/core/hcd.c | 19 +-- > 1 file changed, 13 insertions(+), 6 deletions(-)

Re: [PATCH] dmaengine: pl330: Really fix choppy sound because of wrong residue calculation

2015-07-06 Thread Vinod Koul
On Mon, Jun 15, 2015 at 11:00:09PM +0900, Krzysztof Kozlowski wrote: > When pl330 driver was used during sound playback, after some time or > after a number of plays the sound became choppy or totally noisy. For > example on Odroid XU3 board the first four executions of aplay with > small WAVE

Re: [PATCH 7/8] xtensa: implement counting and sampling perf events

2015-07-06 Thread Chris Zankel
Hi Max, We could probably still use NMI with a separate stack. However, for exception handling while in NMI, we might have to implement something similar to x86_64 (https://lwn.net/Articles/484932/). Cheers! -Chris On Mon, Jul 6, 2015 at 7:22 AM, Max Filippov wrote: > On Mon, Jul 6, 2015 at

[RESEND][PATCH v2] arm64:Modify the dump mem for 64 bit addresses

2015-07-06 Thread Maninder Singh
From: Rohit Thapliyal V1 = added new function dump_mem64 v1->v2 Removed the separate function dump_mem64 and accommodated a field width based on which the dump shall be created of width either 4 or 8 as suggested by Catalin. On 64bit kernel, the dump_mem gives 32 bit addresses on the stack

Re: [PATCH] dmaengine: pl330: Fix overflow when reporting residue in memcpy

2015-07-06 Thread Vinod Koul
On Mon, Jun 15, 2015 at 05:25:16PM +0900, Krzysztof Kozlowski wrote: > During memcpy operations the residue was always set to an u32 overflowed > value. > > In pl330_tx_status() function number of currently transferred bytes was > subtracted from internal "bytes_requested" field. However this >

Re: perf, kprobes: fuzzer generates huge number of WARNings

2015-07-06 Thread Vince Weaver
On Tue, 7 Jul 2015, Masami Hiramatsu wrote: > On 2015/07/07 6:27, Vince Weaver wrote: > > Hello > > > > I've been working on trying to get the perf_fuzzer to start fuzzing the > > PERF_EVENT_IOC_SET_BPF so I've added some really hackish kprobe support. > > > > However before I can get to the

Re: perf, kprobes: fuzzer generates huge number of WARNings

2015-07-06 Thread Vince Weaver
On Mon, 6 Jul 2015, Steven Rostedt wrote: > On Mon, 6 Jul 2015 17:27:04 -0400 (EDT) > Vince Weaver wrote: > > [ 3521.650521] ---[ end trace a413501925547ed5 ]--- > > [ 3521.655960] ftrace failed to modify [] > > handle_mm_fault+0x0/0x1750 > > [ 3521.664767] actual: e8:cb:18:ef:1e > > Hmm, it

Re: [PATCH v3 0/3] net: dsa: mv88e6xxx: add support for VLAN Table Unit

2015-07-06 Thread Scott Feldman
On Mon, Jul 6, 2015 at 7:00 PM, Andrew Lunn wrote: > On Tue, Jul 07, 2015 at 01:38:04AM +0200, Andrew Lunn wrote: >> On Sun, Jul 05, 2015 at 10:14:50PM -0400, Vivien Didelot wrote: >> > Hi all, >> > >> > This patchset brings full support for hardware VLANs in DSA, and the >> > Marvell >> >

[PATCH v2] perf tools: Allow passing perf's own pid to '--filter'

2015-07-06 Thread Wang Nan
This patch allows passing perf's own PID to '--filter' by using '$PERFPID'. This should be useful when system-widely capturing tracepoints events. Before this patch, when doing something like: # perf record -a -e syscalls:sys_enter_write One could easily get result like this: # perf report

[PATCH 2/6] xen/x86: Remove unnecessary memset() call

2015-07-06 Thread Boris Ostrovsky
Since ctxt is kzalloc'd there is no need to call a memset for ctxt->fpu_ctxt. Signed-off-by: Boris Ostrovsky --- arch/x86/xen/smp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index ca7ee1f..7cf0765 100644 --- a/arch/x86/xen/smp.c +++

[PATCH 6/6] xen/x86/pvh: Allow building 32-bit PVH guests

2015-07-06 Thread Boris Ostrovsky
Signed-off-by: Boris Ostrovsky --- arch/x86/xen/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig index e88fda8..891031e 100644 --- a/arch/x86/xen/Kconfig +++ b/arch/x86/xen/Kconfig @@ -48,5 +48,5 @@ config XEN_DEBUG_FS

[PATCH 1/6] xen/x86/pvh: Save %rbx in xen_pvh_early_cpu_init()

2015-07-06 Thread Boris Ostrovsky
x86-64 ABI requires that functions preserve %rbx. When xen_pvh_early_cpu_init() is executed on boot cpu it is invoked as a function and 'cpuid' instruction will clobber %rbx. (This is not a concern on secondary processors since there xen_pvh_early_cpu_init() is the entry point and thus does not

[PATCH 0/6] 32-bit PVH domU support

2015-07-06 Thread Boris Ostrovsky
A set of PVH-related patches. The first patch is x86-64 ABI fix for PVH guests. The second is a small update that removes redundant memset (both on PV and PVH code paths) The rest is to enable non-privileged 32-bit PVH guests. This requires hypervisor patches from

[PATCH 4/6] xen/x86/pvh: Set up descriptors for 32-bit PVH guests

2015-07-06 Thread Boris Ostrovsky
Signed-off-by: Boris Ostrovsky --- arch/x86/xen/enlighten.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 0b95c9b..7953e68 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@

[PATCH 3/6] xen/x86/pvh: Properly set page tables for 32-bit PVH guests

2015-07-06 Thread Boris Ostrovsky
32-bit PVH guests don't want to write-protect/pin page tables. Signed-off-by: Boris Ostrovsky --- arch/x86/xen/mmu.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index dd151b2..b473df8 100644 ---

[PATCH 5/6] xen/x86/pvh: Add 32-bit PVH initialization code

2015-07-06 Thread Boris Ostrovsky
Signed-off-by: Boris Ostrovsky --- arch/x86/xen/enlighten.c | 4 arch/x86/xen/smp.c | 17 ++--- arch/x86/xen/xen-head.S | 17 +++-- 3 files changed, 25 insertions(+), 13 deletions(-) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index

[PATCH 1/1] regmap: add fast_io_disable_irq property for regmap_config

2015-07-06 Thread 周学文
(please ignore the last email which contain HTML format and was rejected, sorry for the inconvenience caused) This patch aims to fix an issue when using the regmap function in different drivers. I describe the issue here: We want to use the the same regmap handler to access the same hardware

Re: [PATCH v2 3/3] usb: dwc3: gadget: return error if command sent to DEPCMD register fails

2015-07-06 Thread Felipe Balbi
Hi, On Tue, Jul 07, 2015 at 02:10:26AM +, John Youn wrote: > On 7/1/2015 8:00 PM, Felipe Balbi wrote: > > On Thu, Jul 02, 2015 at 02:03:14AM +, John Youn wrote: > >> On 6/29/2015 2:48 PM, Felipe Balbi wrote: > >>> Hi again, > >>> > >>> On Mon, Jun 29, 2015 at 04:47:01PM -0500, Felipe

Re: [PATCH] arm64: dts: mt8173-evb: Add PMIC support

2015-07-06 Thread Eddie Huang
On Mon, 2015-07-06 at 18:39 +0200, Matthias Brugger wrote: > On Monday, July 06, 2015 03:43:57 PM Eddie Huang wrote: > > On Mon, 2015-06-22 at 21:19 +0800, Henry Chen wrote: > > > From: Eddie Huang > > > [...] > > > diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts > > >

linux-next: Tree for Jul 7

2015-07-06 Thread Stephen Rothwell
Hi all, Now that -rc1 is out, please clean up your trees if necessary. Changes since 20150706: My fixes tree contains: Merge branch 'perf-urgent-for-linus' of ../../tip The device-mapper tree lost its build failure. Non-merge commits (relative to Linus' tree): 676 725 files changed, 51320

Re: [Intel-gfx] [Announcement] 2015-Q2 release of XenGT - a Mediated Graphics Passthrough Solution from Intel

2015-07-06 Thread Jike Song
Hi all, We're pleased to announce a public update to Intel Graphics Virtualization Technology(Intel GVT-g, formerly known as XenGT). Intel GVT-g is a full GPU virtualization solution with mediated pass-through, starting from 4th generation Intel Core(TM) processors with Intel Graphics

Re: [PATCH] perf record: Allow passing perf's own pid to '--filter'

2015-07-06 Thread Wangnan (F)
On 2015/7/6 23:40, Arnaldo Carvalho de Melo wrote: Em Mon, Jul 06, 2015 at 11:00:10PM +0800, pi3orama escreveu: 发自我的 iPhone 在 2015年7月6日,下午9:56,Arnaldo Carvalho de Melo 写道: I.e. having something in the filter expression that gets transformed into the tools' pid, I have no problem with

Re: perf, kprobes: fuzzer generates huge number of WARNings

2015-07-06 Thread Masami Hiramatsu
On 2015/07/07 6:27, Vince Weaver wrote: > Hello > > I've been working on trying to get the perf_fuzzer to start fuzzing the > PERF_EVENT_IOC_SET_BPF so I've added some really hackish kprobe support. > > However before I can get to the BPF testing the kprobe code generates a > constant stream

Re: [PATCH v2] add stealth mode

2015-07-06 Thread David Miller
From: Matteo Croce Date: Mon, 6 Jul 2015 21:44:06 +0200 > 2015-07-06 12:49 GMT+02:00 : >> On Thu, 02 Jul 2015 10:56:01 +0200, Matteo Croce said: >>> Add option to disable any reply not related to a listening socket, >>> like RST/ACK for TCP and ICMP Port-Unreachable for UDP. >>> Also disables

Re: [PATCH v3 1/3] net: dsa: mv88e6xxx: add debugfs interface for VTU

2015-07-06 Thread Andrew Lunn
> +static int _mv88e6xxx_vtu_getnext(struct dsa_switch *ds, u16 vid, > + struct mv88e6xxx_vtu_entry *entry) > +{ > + int ret, i; > + > + ret = _mv88e6xxx_vtu_wait(ds); > + if (ret < 0) > + return ret; > + > + ret = _mv88e6xxx_reg_write(ds,

Re: [PATCH v2 3/3] usb: dwc3: gadget: return error if command sent to DEPCMD register fails

2015-07-06 Thread John Youn
On 7/1/2015 8:00 PM, Felipe Balbi wrote: > On Thu, Jul 02, 2015 at 02:03:14AM +, John Youn wrote: >> On 6/29/2015 2:48 PM, Felipe Balbi wrote: >>> Hi again, >>> >>> On Mon, Jun 29, 2015 at 04:47:01PM -0500, Felipe Balbi wrote: On Thu, May 21, 2015 at 03:46:48PM +0530, Subbaraya Sundeep

Re: [PATCH v3 0/3] net: dsa: mv88e6xxx: add support for VLAN Table Unit

2015-07-06 Thread Andrew Lunn
On Tue, Jul 07, 2015 at 01:38:04AM +0200, Andrew Lunn wrote: > On Sun, Jul 05, 2015 at 10:14:50PM -0400, Vivien Didelot wrote: > > Hi all, > > > > This patchset brings full support for hardware VLANs in DSA, and the Marvell > > 88E6xxx compatible switch chips. > > Hi Vivien > > I just booted

Re: [PATCH 12/15] SH: kill off set_irq_flags usage

2015-07-06 Thread Simon Horman
On Tue, Jul 07, 2015 at 09:53:39AM +0900, Simon Horman wrote: > On Tue, Jun 09, 2015 at 01:26:38PM -0500, Rob Herring wrote: > > set_irq_flags is ARM specific with custom flags which have genirq > > equivalents. Convert drivers to use the genirq interfaces directly, so we > > can kill off

[PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c

2015-07-06 Thread Sreenath Madasu
When the checkpatch.pl script was run, it showed lines with length more than 80 characters in rtw_ap.c file. Fixed line number 382 by breaking it up into two lines within 80 characters. Signed-off-by: Sreenath Madasu --- drivers/staging/rtl8188eu/core/rtw_ap.c | 3 ++- 1 file changed, 2

Re: [PATCH] ARM: dts: exynos4: add DMA support for serial ports

2015-07-06 Thread Krzysztof Kozlowski
2015-06-30 9:56 GMT+09:00 Krzysztof Kozlowski : > On 29.06.2015 22:22, Robert Baldyga wrote: >> Enable DMA transfers for serial ports. >> >> Signed-off-by: Robert Baldyga >> --- >> arch/arm/boot/dts/exynos4.dtsi | 8 >> 1 file changed, 8 insertions(+) > > Reviewed-by: Krzysztof

Re: [PATCH 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-06 Thread Xishi Qiu
On 2015/7/6 22:03, PINTU KUMAR wrote: > Hi, > >> -Original Message- >> From: Xishi Qiu [mailto:qiuxi...@huawei.com] >> Sent: Monday, July 06, 2015 3:53 PM >> To: Pintu Kumar >> Cc: cor...@lwn.net; a...@linux-foundation.org; vba...@suse.cz; >> gorcu...@openvz.org; mho...@suse.cz;

Re: [alsa-devel][PATCH 1/2] ASoC: fsl_ssi: Add driver suspend and resume to support MEGA Fast

2015-07-06 Thread Timur Tabi
On Jul 6, 2015, at 4:49 AM, Zidan Wang wrote: > +static bool fsl_ssi_readable_reg(struct device *dev, unsigned int reg) > +{ > + switch (reg) { > + case CCSR_SSI_STX0: > + case CCSR_SSI_STX1: > + case CCSR_SSI_SRX0: > + case CCSR_SSI_SRX1: > + case CCSR_SSI_SCR: > +

Re: [alsa-devel][PATCH 2/2] ASoC: fsl_ssi: sound is wrong after suspend/resume

2015-07-06 Thread Timur Tabi
On Jul 6, 2015, at 4:49 AM, Zidan Wang wrote: > The register SFCSR is volatile, but some bits in it need to be > recovered after suspend/resume. > > Signed-off-by: Zidan Wang Shouldn't this be part of patch #1? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

[PATCH v2 02/11] uprobes: Introduce free_ret_instance()

2015-07-06 Thread Oleg Nesterov
We can simplify uprobe_free_utask() and handle_uretprobe_chain() if we add a simple helper which does put_uprobe/kfree and returns the ->next return_instance. Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju --- kernel/events/uprobes.c | 27 +-- 1 files

[PATCH v2 05/11] uprobes: Change handle_trampoline() to find the next chain beforehand

2015-07-06 Thread Oleg Nesterov
No functional changes, preparation. Add the new helper, find_next_ret_chain(), which finds the first !chained entry and returns its ->next. Yes, it is suboptimal. We probably want to turn ->chained into ->start_of_this_chain pointer and avoid another loop. But this needs the boring changes in

[PATCH v2 08/11] uprobes: Change handle_trampoline() to flush the frames invalidated by longjmp()

2015-07-06 Thread Oleg Nesterov
Test-case: #include #include jmp_buf jmp; void func_2(void) { longjmp(jmp, 1); } void func_1(void) { if (setjmp(jmp)) return; func_2();

[PATCH v2 06/11] uprobes: Export struct return_instance, introduce arch_uretprobe_is_alive()

2015-07-06 Thread Oleg Nesterov
Add the new "weak" helper, arch_uretprobe_is_alive(), used by the next patches. It should return true if this return_instance is still valid. The arch agnostic version just always returns true. The patch exports "struct return_instance" for the architectures which want to override this hook. We

[PATCH v2 10/11] uprobes: Add the "enum rp_check ctx" arg to arch_uretprobe_is_alive()

2015-07-06 Thread Oleg Nesterov
arch/x86 doesn't care (so far), but as Pratyush Anand pointed out other architectures might want why arch_uretprobe_is_alive() was called and use different checks depending on the context. Add the new argument to distinguish 2 callers. Signed-off-by: Oleg Nesterov --- arch/x86/kernel/uprobes.c

[PATCH v2 11/11] uprobes/x86: Make arch_uretprobe_is_alive(RP_CHECK_CALL) more clever

2015-07-06 Thread Oleg Nesterov
The previous change documents that cleanup_return_instances() can't always detect the dead frames, the stack can grow. But there is one special case which imho worth fixing: arch_uretprobe_is_alive() can return true when the stack didn't actually grow, but the next "call" insn uses the already

[PATCH v2 09/11] uprobes: Change prepare_uretprobe() to (try to) flush the dead frames

2015-07-06 Thread Oleg Nesterov
Change prepare_uretprobe() to flush the !arch_uretprobe_is_alive() return_instance's. This is not needed correctness-wise, but can help to avoid the failure caused by MAX_URETPROBE_DEPTH. Note: in this case arch_uretprobe_is_alive() can be false positive, the stack can grow after longjmp().

[PATCH v2 03/11] uprobes: Send SIGILL if handle_trampoline() fails

2015-07-06 Thread Oleg Nesterov
1. It doesn't make sense to continue if handle_trampoline() fails, change handle_swbp() to always return after this call. 2. Turn pr_warn() into uprobe_warn(), and change handle_trampoline() to send SIGILL on failure. It is pointless to return to user mode with the corrupted

[PATCH v2 01/11] uprobes: Introduce get_uprobe()

2015-07-06 Thread Oleg Nesterov
Cosmetic. Add the new trivial helper, get_uprobe(). It matches put_uprobe() we already have and we can simplify a couple of its users. Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju --- kernel/events/uprobes.c | 39 --- 1 files changed, 20

[PATCH v2 07/11] uprobes/x86: Reimplement arch_uretprobe_is_alive()

2015-07-06 Thread Oleg Nesterov
Add the x86-specific version of arch_uretprobe_is_alive() helper. It returns true if the stack frame mangled by prepare_uretprobe() is still on stack. So if it returns false, we know that the probed function has already returned. We add the new return_instance->stack member and change the generic

[PATCH v2 04/11] uprobes: Change prepare_uretprobe() to use uprobe_warn()

2015-07-06 Thread Oleg Nesterov
Turn the last pr_warn() in uprobes.c into uprobe_warn(). While at it: - s/kzalloc/kmalloc, we initialize every member of ri - remove the pointless comment above the obvious code Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju --- kernel/events/uprobes.c | 10 +++--- 1

[PATCH v2 00/11] uprobes: longjmp fixes

2015-07-06 Thread Oleg Nesterov
Sorry for delay, Currently ret-probes can't work (the application will likely crash) if the probed function does not return, and this is even documented in handle_trampoline(). This series tries to make the first step to fix the problem, assuming that the probed functions use the same stack.

Re: [PATCH v2] mm: nommu: fix typos in comment blocks

2015-07-06 Thread Masahiro Yamada
Hi Paul 2015-07-07 4:25 GMT+09:00 Paul Gortmaker : > [[PATCH v2] mm: nommu: fix typos in comment blocks] On 06/07/2015 (Mon 13:01) > Masahiro Yamada wrote: > >> continguos -> contiguous >> >> Signed-off-by: Masahiro Yamada > > I'd suggested this go via the trivial tree, but instead I see it is

Re: [PATCH 1/1] suspend: delete sys_sync()

2015-07-06 Thread Dave Chinner
On Mon, Jul 06, 2015 at 03:52:25PM +0200, Rafael J. Wysocki wrote: > On Monday, July 06, 2015 10:06:14 AM Dave Chinner wrote: > > On Sat, Jul 04, 2015 at 03:03:46AM +0200, Rafael J. Wysocki wrote: > > > > No, your observation was that "sync is slow". Your *solution* is "we > > > > need to remove

Re: [PATCH v2] powerpc/powernv: Fix race in updating core_idle_state

2015-07-06 Thread Shreyas B Prabhu
On 07/07/2015 05:52 AM, Michael Ellerman wrote: > On Tue, 2015-07-07 at 01:39 +0530, Shreyas B. Prabhu wrote: >> Signed-off-by: Shreyas B. Prabhu >> Fixes: 7b54e9f213f76 'powernv/powerpc: Add winkle support for offline >> cpus' > > The sha is wrong, it should be 77b54e9f213f. > Argh! Sorry >

[PATCH] trivial: fix typos in comment blocks

2015-07-06 Thread Masahiro Yamada
Looks like the word "contiguous" is often mistyped. Signed-off-by: Masahiro Yamada --- Hi Jiri, Please consider applying this into your trivial.git tree Thanks, arch/mips/kernel/setup.c | 2 +- drivers/gpio/gpiolib-acpi.c | 2 +-

[PATCH v2] sched: separate operations only for SMP from account_entity_en(de)queue

2015-07-06 Thread byungchul . park
From: Byungchul Park manipulating rq->cfs_tasks and numa-accounting are not meaningless on !SMP. separate the operations from account_entity_en(de)queue. Signed-off-by: Byungchul Park --- kernel/sched/fair.c | 40 +++- 1 file changed, 27 insertions(+), 13

[PATCH] pinctrl: qcom: Hook pm_power_down for shutdown support

2015-07-06 Thread Stephen Boyd
Assign pm_power_off() if we have the PS_HOLD functionality so that we can properly shutdown the SoC. Otherwise, shutdown won't do anything besides put the CPU into a tight loop. Unfortunately, we have to use a singleton here because pm_power_off() doesn't take any arguments. Fortunately there's

[PATCH] Input: pmic8xxx-pwrkey - Support shutdown

2015-07-06 Thread Stephen Boyd
On pm8xxx PMICs, shutdown and restart are signaled to the PMIC via a pin called PS_HOLD. When this pin goes low, the PMIC performs a configurable power sequence. Add a .shutdown hook so that we can properly configure this power sequence for shutdown or restart depending on the system state.

[PATCH] block/blk-cgroup.c: free per-blkcg data when freeing the blkcg

2015-07-06 Thread Arianna Avanzini
Currently, per-blkcg data is freed each time a policy is deactivated, that is also upon scheduler switch. However, when switching from a scheduler implementing a policy which requires per-blkcg data to another one, that same policy might be active on other devices, and therefore those same

  1   2   3   4   5   6   7   8   9   10   >