[PATCH 06/11] usb: dwc2/gadget: ensure that all fifos have correct memory buffers

2014-06-23 Thread Robert Baldyga
From: Marek Szyprowski Print warning if FIFOs are configured in such a way that they don't fit into the SPRAM available on the s3c hsotg module. Signed-off-by: Marek Szyprowski Signed-off-by: Robert Baldyga --- drivers/usb/dwc2/core.h | 1 + drivers/usb/dwc2/gadget.c | 15 ++-

Re: [PATCH -tip v2 2/3] ftrace, kprobes: Support IPMODIFY flag to find IP modify conflict

2014-06-23 Thread Masami Hiramatsu
(2014/06/20 11:48), Steven Rostedt wrote: > On Tue, 17 Jun 2014 11:04:49 + > Masami Hiramatsu wrote: > >> Introduce FTRACE_OPS_FL_IPMODIFY to avoid conflict among >> ftrace users who may modify regs->ip to change the execution >> path. This also adds the flag to kprobe_ftrace_ops, since >>

[PATCH 2/2] perf symbols: Get kernel start address by symbol name

2014-06-23 Thread Jiri Olsa
From: Simon Que The function machine__get_kernel_start_addr() was taking the first symbol of kallsyms as the start address. This is incorrect in certain cases where the first symbol is something at 0, while the actual kernel functions begin at a later point (e.g. 0x8020). This patch fixes

[PATCH 11/11] usb: dwc2/gadget: disable clock when it's not needed

2014-06-23 Thread Robert Baldyga
When device is stopped or suspended clock is not needed so we can disable it for this time. Signed-off-by: Robert Baldyga --- drivers/usb/dwc2/gadget.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 2a7c014..0523bc3

[GIT PULL 0/2] perf/urgent fixes

2014-06-23 Thread Jiri Olsa
hi Ingo, please consider pulling thanks, jirka The following changes since commit cf230918cda19532e4a5cc4f0d5c82fa7e5e94f6: Merge branch 'perf/core' into perf/urgent, to pick up the latest fixes (2014-06-14 14:10:08 +0200) are available in the git repository at:

[PATCH 09/11] usb: dwc2/gadget: delay enabling irq once hardware is configured properly

2014-06-23 Thread Robert Baldyga
From: Marek Szyprowski This patch fixes kernel panic/interrupt storm/etc issues if bootloader left s3c-hsotg module in enabled state. Now interrupt handler is enabled only after proper configuration of hardware registers. Signed-off-by: Marek Szyprowski Signed-off-by: Robert Baldyga ---

[PATCH 10/11] usb: dwc2/gadget: assign TX FIFO dynamically

2014-06-23 Thread Robert Baldyga
Because we have not enough memory to have each TX FIFO of size at least 3072 bytes (the maximum single packet size), we create four FIFOs of lenght 1024, and four of length 3072 bytes, and assing them to endpoints dynamically according to maxpacket size value of given endpoint. Signed-off-by:

[PATCH 08/11] usb: dwc2/gadget: do not call disconnect method in pullup

2014-06-23 Thread Robert Baldyga
From: Marek Szyprowski This leads to potential spinlock recursion in composite framework, other udc drivers also don't call it directly from pullup method. Signed-off-by: Marek Szyprowski Signed-off-by: Robert Baldyga --- drivers/usb/dwc2/gadget.c | 1 - 1 file changed, 1 deletion(-) diff

[PATCH 07/11] usb: dwc2/gadget: break infinite loop in endpoint disable code

2014-06-23 Thread Robert Baldyga
From: Marek Szyprowski This patch fixes possible freeze caused by infinite loop in interrupt context. Signed-off-by: Marek Szyprowski Signed-off-by: Robert Baldyga --- drivers/usb/dwc2/gadget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc2/gadget.c

[PATCH 1/2] perf tools: Fix segfault in cumulative.callchain report

2014-06-23 Thread Jiri Olsa
When cumulative callchain mode is on, we could get samples with with no actual hits. This breaks the assumption of the annotation code, that each sample has annotation counts allocated and leads to segfault. Fixing this by additional checks for annotation stats. Acked-by: Namhyung Kim Acked-by:

Re: [PATCH 1/2] SCHED: remove proliferation of wait_on_bit action functions.

2014-06-23 Thread David Howells
Acked-by: David Howells (fscache, keys) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] ARM: dts: exynos5410: Fill in CPU clock-frequency

2014-06-23 Thread Tarek Dakhran
On 06/22/2014 11:49 PM, Andreas Färber wrote: It's 1.6 GHz for the Cortex-A15. Avoids warnings like "/cpus/cpu@0 missing clock-frequency property". Signed-off-by: Andreas Färber --- arch/arm/boot/dts/exynos5410.dtsi | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 05/11] usb: dwc2/gadget: hide some not really needed debug messages

2014-06-23 Thread Robert Baldyga
From: Marek Szyprowski Some DWC2/s3c-hsotg debug messages are really useless for typical user, so hide them behind dev_dbg(). Signed-off-by: Marek Szyprowski Signed-off-by: Robert Baldyga --- drivers/usb/dwc2/gadget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 04/11] usb: dwc2/gadget: Fix comment text

2014-06-23 Thread Robert Baldyga
From: Andrzej Pietrasiewicz Adjust the debug text to the name of the printed variable. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Robert Baldyga --- drivers/usb/dwc2/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/gadget.c

[PATCH 02/11] usb: dwc2/gadget: fix phy initialization sequence

2014-06-23 Thread Robert Baldyga
From: Kamil Debski In the Generic PHY Framework a NULL phy is considered to be a valid phy thus the "if (hsotg->phy)" check does not give us the information whether the Generic PHY Framework is used. In addition to the above this patch also removes phy_init from probe and phy_exit from remove.

[PATCH 03/11] usb: dwc2/gadget: move phy bus legth initialization

2014-06-23 Thread Robert Baldyga
From: Kamil Debski This patch moves the part of code that initializes the PHY bus width. This results in simpler code and removes the need to check whether the Generic PHY Framework is used. Signed-off-by: Kamil Debski Signed-off-by: Marek Szyprowski Signed-off-by: Robert Baldyga ---

[PATCH 00/11] usb: dwc2/gadget: fix series

2014-06-23 Thread Robert Baldyga
Hello, This patchset contains fixes for dwc2 gadget driver. It touches PHY, FIFO configuration, initialization sequence and adds many other small fixes. Best regards Robert Baldyga Samsung R Institute Poland Andrzej Pietrasiewicz (1): usb: dwc2/gadget: Fix comment text Kamil Debski (3):

[PATCH 01/11] usb: dwc2/gadget: fix phy disable sequence

2014-06-23 Thread Robert Baldyga
From: Kamil Debski When the driver is removed s3c_hsotg_phy_disable is called three times instead of once. This results in decreasing of the phy reference counter below zero and thus consecutive inserts of the module fails. This patch removes calls to s3c_hsotg_phy_disable from s3c_hsotg_remove

Re: [patch 1/4] mm: vmscan: remove remains of kswapd-managed zone->all_unreclaimable

2014-06-23 Thread Michal Hocko
On Fri 20-06-14 12:33:47, Johannes Weiner wrote: > shrink_zones() has a special branch to skip the all_unreclaimable() > check during hibernation, because a frozen kswapd can't mark a zone > unreclaimable. > > But ever since 6e543d5780e3 ("mm: vmscan: fix do_try_to_free_pages() > livelock"),

[regression] fix 32-bit breakage in block device read(2) (was Re: 32-bit bug in iovec iterator changes)

2014-06-23 Thread Al Viro
On Sun, Jun 22, 2014 at 07:50:07AM -0400, Theodore Ts'o wrote: > On Sun, Jun 22, 2014 at 02:00:32AM +0100, Al Viro wrote: > > > > PS: I agree that it's worth careful commenting, obviously, but > > before sending it to Linus (*with* comments) I want to get a > > confirmation that this one-liner

Re: [PATCH 1/2] perf/x86: update Haswell PEBS event constraints

2014-06-23 Thread Peter Zijlstra
On Thu, Jun 19, 2014 at 01:40:41PM -0700, Andi Kleen wrote: > On Thu, Jun 19, 2014 at 10:31:29PM +0200, Stephane Eranian wrote: > > On Thu, Jun 19, 2014 at 10:18 PM, Andi Kleen wrote: > > >> I don't quite understand that. > > >> You need to know which events support PEBS. You need a table > > > >

[PATCH 0/2] ARM: tegra: roth: pinmux fixes

2014-06-23 Thread Alexandre Courbot
Two small but important fixes to SHIELD's pinmux configuration. The use of invalid properties caused the pinmux to not be applied at all. Also the setting for sdmmc clock lines resulted in random errors or even the impossibility to probe attached devices. Alexandre Courbot (2): ARM: tegra:

[PATCH 1/2] ARM: tegra: roth: fix unsupported pinmux properties

2014-06-23 Thread Alexandre Courbot
The pinmux subsystem complained that the nvidia,low-power-mode property is not supported by the sdio1, sdio3 and gma drive groups. In addition gma also does not support nvidia,drive-type. Remove these properties so the pinmux configuration can properly be applied. Signed-off-by: Alexandre Courbot

[PATCH 2/2] ARM: tegra: roth: enable input on mmc clock pins

2014-06-23 Thread Alexandre Courbot
Input had been disabled by mistake on these pins, leading to issues with SDIO devices like the Wifi module not being probed or random errors occuring on the SD card. Signed-off-by: Alexandre Courbot --- arch/arm/boot/dts/tegra114-roth.dts | 6 +++--- 1 file changed, 3 insertions(+), 3

Re: [patch 2/4] mm: vmscan: rework compaction-ready signaling in direct reclaim

2014-06-23 Thread Michal Hocko
On Fri 20-06-14 16:24:49, Johannes Weiner wrote: [...] > From cd48b73fdca9e23aa21f65e9af1f850dbac5ab8e Mon Sep 17 00:00:00 2001 > From: Johannes Weiner > Date: Wed, 11 Jun 2014 12:53:59 -0400 > Subject: [patch] mm: vmscan: rework compaction-ready signaling in direct > reclaim > > Page reclaim

Re: [PATCH V3 16/16] irqchip: crossbar: allow for quirky hardware with direct hardwiring of GIC

2014-06-23 Thread Sricharan R
Hi Jason, On Saturday 21 June 2014 08:27 AM, Jason Cooper wrote: > On Mon, Jun 16, 2014 at 04:53:16PM +0530, Sricharan R wrote: >> From: Nishanth Menon >> >> On certain platforms such as DRA7, SPIs 0, 1, 2, 3, 5, 6, 10, 131, >> 132, 133 are direct wired to hardware blocks bypassing crossbar. >>

Re: [PATCH V3 03/16] irqchip: crossbar: introduce ti,irqs-skip to skip

2014-06-23 Thread Sricharan R
On Saturday 21 June 2014 08:03 AM, Jason Cooper wrote: > Sricharan, > > Your subject line seems truncated: > > "irqchip: crossbar: introduce ti,irqs-skip to skip" > > maybe "... Introduce DT property to skip hardwired irqs" ? > > Also note that you need to correct the subject line for

Re: [PATCH v6 1/9] efi: Use early_mem*() instead of early_io*()

2014-06-23 Thread Jan Beulich
>>> On 20.06.14 at 23:29, wrote: > --- a/drivers/firmware/efi/efi.c > +++ b/drivers/firmware/efi/efi.c > @@ -298,7 +298,7 @@ int __init efi_config_init(efi_config_table_type_t > *arch_tables) > if (table64 >> 32) { > pr_cont("\n"); >

Re: [PATCH 1/2] perf/x86: update Haswell PEBS event constraints

2014-06-23 Thread Peter Zijlstra
On Thu, Jun 19, 2014 at 11:00:28AM -0700, Andi Kleen wrote: > However these days I'm actually thinking of just getting > rid of the detailed table except for PREC_DIST. All the PEBS > controls should be noops if the event does not support PEBS I had something like the below stuck on the 'look

Re: [PATCH] arch,locking: Ciao arch_mutex_cpu_relax()

2014-06-23 Thread Vineet Gupta
Hi Peter, On Monday 23 June 2014 12:24 PM, Peter Zijlstra wrote: > On Fri, Jun 20, 2014 at 11:21:13AM -0700, Davidlohr Bueso wrote: >> diff --git a/arch/arc/include/asm/processor.h >> b/arch/arc/include/asm/processor.h >> index d99f9b3..8e1bf6b 100644 >> --- a/arch/arc/include/asm/processor.h >>

[PATCH v2] DRBG: simplify ordering of linked list in drbg_ctr_df

2014-06-23 Thread Stephan Mueller
This patch superseeds and replaces the initial fix submitted with [1]. After careful analysis of the code, the anticipated NULL pointer deference is caught in drbg_ctr_update which only invokes drbg_ctr_df when addtl is not NULL. This patch is tested with CAVS testing and the test set provided in

Re: [PATCH 1/2] perf/x86: update Haswell PEBS event constraints

2014-06-23 Thread Peter Zijlstra
On Thu, Jun 19, 2014 at 05:58:28PM +0200, Stephane Eranian wrote: > + INTEL_EVENT_CONSTRAINT(0xd1, 0xf), /* MEM_LOAD_UOPS_RETIRED.* */ > + /* MEM_LOAD_UOPS_LLC_HIT_RETIRED.* */ > + INTEL_EVENT_CONSTRAINT(0xd2, 0xf), > + /* MEM_LOAD_UOPS_LLC_MISS_RETIRED.* */ > +

[PATCH v2] DRBG: simplify ordering of linked list in drbg_ctr_df

2014-06-23 Thread Stephan Mueller
As reported by a static code analyzer, the code for the ordering of the linked list can be simplified. Reported-by: kbuild test robot Signed-off-by: Stephan Mueller --- crypto/drbg.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crypto/drbg.c b/crypto/drbg.c

Re: scsi-mq

2014-06-23 Thread Christoph Hellwig
On Sat, Jun 21, 2014 at 12:52:22AM +, Elliott, Robert (Server Storage) wrote: > Some of those context switches might be from scsi_end_request(), > which always schedules the scsi_requeue_run_queue() function via the > requeue_work workqueue for scsi-mq. That causes lots of context >

Re: [PATCH 10/14] scsi: only maintain target_blocked if the driver has a target queue limit

2014-06-23 Thread Christoph Hellwig
On Sat, Jun 21, 2014 at 10:10:14PM +, Elliott, Robert (Server Storage) wrote: > > not_ready: > > /* > > * lock q, handle tag, requeue req, and decrement device_busy. We > > There's an extra & in that if statement. Indeed, this crept in during a rebase and a later patch fixes it.

Re: [PATCH v3] lockdep: restrict the use of recursive read_lock with qrwlock

2014-06-23 Thread Peter Zijlstra
On Fri, Jun 20, 2014 at 03:22:46PM -0400, Waiman Long wrote: > v2->v3: > - Add a new read mode (3) for rwlock (used in >lock_acquire_shared_cond_recursive()) to avoid conflict with other >use cases of lock_acquire_shared_recursive(). > > v1->v2: > - Use less conditional & make it easier

Re: [PATCH] arch,locking: Ciao arch_mutex_cpu_relax()

2014-06-23 Thread Peter Zijlstra
On Fri, Jun 20, 2014 at 11:21:13AM -0700, Davidlohr Bueso wrote: > From: Davidlohr Bueso > > The arch_mutex_cpu_relax() function, introduced by 34b133f, is > hacky and ugly. It was added a few years ago to address the fact > that common cpu_relax() calls include yielding on s390, and thus >

Re: [PATCH v3 04/13] mm, compaction: move pageblock checks up from isolate_migratepages_range()

2014-06-23 Thread Zhang Yanfei
On 06/20/2014 11:49 PM, Vlastimil Babka wrote: > isolate_migratepages_range() is the main function of the compaction scanner, > called either on a single pageblock by isolate_migratepages() during regular > compaction, or on an arbitrary range by CMA's __alloc_contig_migrate_range(). > It

[PATCH] crypto:caam - Configuration for platforms with virtualization enabled in CAAM

2014-06-23 Thread Ruchika Gupta
For platforms with virtualization enabled 1. The job ring registers can be written to only is the job ring has been started i.e STARTR bit in JRSTART register is 1 2. For DECO's under direct software control, with virtualization enabled PL, BMT, ICID and SDID values need to

Re: [PATCH] arch,locking: Ciao arch_mutex_cpu_relax()

2014-06-23 Thread Peter Zijlstra
On Fri, Jun 20, 2014 at 11:21:13AM -0700, Davidlohr Bueso wrote: > diff --git a/arch/arc/include/asm/processor.h > b/arch/arc/include/asm/processor.h > index d99f9b3..8e1bf6b 100644 > --- a/arch/arc/include/asm/processor.h > +++ b/arch/arc/include/asm/processor.h > @@ -62,6 +62,8 @@ unsigned long

Re: [patch 4/4] mm: vmscan: move swappiness out of scan_control

2014-06-23 Thread Minchan Kim
On Fri, Jun 20, 2014 at 12:33:50PM -0400, Johannes Weiner wrote: > Swappiness is determined for each scanned memcg individually in > shrink_zone() and is not a parameter that applies throughout the > reclaim scan. Move it out of struct scan_control to prevent > accidental use of a stale value. >

Re: [patch 3/4] mm: vmscan: remove all_unreclaimable()

2014-06-23 Thread Minchan Kim
On Fri, Jun 20, 2014 at 12:33:49PM -0400, Johannes Weiner wrote: > Direct reclaim currently calls shrink_zones() to reclaim all members > of a zonelist, and if that wasn't successful it does another pass > through the same zonelist to check overall reclaimability. > > Just check reclaimability in

Re: [PATCH] sched: Fix potential near-infinite distribute_cfs_runtime loop

2014-06-23 Thread Peter Zijlstra
On Fri, Jun 20, 2014 at 03:21:20PM -0700, Ben Segall wrote: > distribute_cfs_runtime intentionally only hands out enough runtime to > bring each cfs_rq to 1 ns of runtime, expecting the cfs_rqs to then take > the runtime they need only once they actually get to run. However, if > they get to run

Re: [PATCH v1 2/2] block: virtio-blk: support multi virt queues per virtio-blk device

2014-06-23 Thread Michael S. Tsirkin
On Mon, Jun 23, 2014 at 01:42:51PM +1000, Dave Chinner wrote: > On Sun, Jun 22, 2014 at 01:24:48PM +0300, Michael S. Tsirkin wrote: > > On Fri, Jun 20, 2014 at 11:29:40PM +0800, Ming Lei wrote: > > > @@ -24,8 +26,8 @@ static struct workqueue_struct *virtblk_wq; > > > struct virtio_blk > > > { >

Re: [patch 2/4] mm: vmscan: rework compaction-ready signaling in direct reclaim

2014-06-23 Thread Minchan Kim
On Fri, Jun 20, 2014 at 12:33:48PM -0400, Johannes Weiner wrote: > Page reclaim for a higher-order page runs until compaction is ready, > then aborts and signals this situation through the return value of > shrink_zones(). This is an oddly specific signal to encode in the > return value of

Re: [PATCH 1/2] slip: Fix deadlock in write_wakeup

2014-06-23 Thread Alexander Stein
On Monday 16 June 2014 19:55:04, Oliver Hartkopp wrote: > Hello Tyler, > > On 16.06.2014 04:23, Tyler Hall wrote: > > Use schedule_work() to avoid potentially taking the spinlock in > > interrupt context. > > > (..) > > > > > To deal with these issues, don't grab the lock in the wakeup

Re: [RFC PATCH 0/3] Mark literal strings in __init / __exit code

2014-06-23 Thread Joe Perches
On Mon, 2014-06-23 at 08:23 +0200, Mathias Krause wrote: > On 23 June 2014 00:56, Joe Perches wrote: > > On Mon, 2014-06-23 at 00:46 +0200, Mathias Krause wrote: > >> [...] patch 2 adds some syntactical sugar for the most popular use > >> case, by providing pr_ alike macros, namely pi_ for __init

Re: [RFC PATCH 0/3] Mark literal strings in __init / __exit code

2014-06-23 Thread Mathias Krause
On 23 June 2014 03:30, Joe Perches wrote: > On Mon, 2014-06-23 at 00:46 +0200, Mathias Krause wrote: >> This RFC series tries to address the problem of dangling strings of >> __init functions after initialization, as well as __exit strings for >> code not even included in the final kernel image.

Re: [PATCH tip/core/rcu] Reduce overhead of cond_resched() checks for RCU

2014-06-23 Thread Peter Zijlstra
On Fri, Jun 20, 2014 at 07:59:58PM -0700, Paul E. McKenney wrote: > Commit ac1bea85781e (Make cond_resched() report RCU quiescent states) > fixed a problem where a CPU looping in the kernel with but one runnable > task would give RCU CPU stall warnings, even if the in-kernel loop > contained

Re: [PATCH v3 02/13] mm, compaction: defer each zone individually instead of preferred zone

2014-06-23 Thread Zhang Yanfei
On 06/20/2014 11:49 PM, Vlastimil Babka wrote: > When direct sync compaction is often unsuccessful, it may become deferred for > some time to avoid further useless attempts, both sync and async. Successful > high-order allocations un-defer compaction, while further unsuccessful > compaction

Re: [RFC PATCH 0/3] Mark literal strings in __init / __exit code

2014-06-23 Thread Mathias Krause
On 23 June 2014 00:56, Joe Perches wrote: > On Mon, 2014-06-23 at 00:46 +0200, Mathias Krause wrote: >> [...] patch 2 adds some syntactical sugar for the most popular use >> case, by providing pr_ alike macros, namely pi_ for __init >> code and pe_ for __exit code. This hides the use of the

Re: [PATCH 1/2] ASoC: max98090: Add max98091 compatible string

2014-06-23 Thread Tushar Behera
On 06/21/2014 02:02 AM, Doug Anderson wrote: > Tushar, > > On Fri, Jun 20, 2014 at 1:03 AM, Tushar Behera wrote: >> From: Wonjoon Lee >> >> The MAX98091 CODEC is the same as MAX98090 CODEC, but with an extra >> microphone. Existing driver for MAX98090 CODEC already has support >> for MAX98091

Re: [PATCH] usb: misc: usb3503: Update error code in print message

2014-06-23 Thread Tushar Behera
On 06/17/2014 04:54 PM, Marek Szyprowski wrote: > Hello, > > On 2014-06-17 13:08, Tushar Behera wrote: >> 'err' is uninitialized, rather print the error code directly. >> >> This also fixes following warning. >> drivers/usb/misc/usb3503.c: In function ‘usb3503_probe’: >>

Re: [patch 12/13] mm: memcontrol: rewrite charge API

2014-06-23 Thread Uwe Kleine-König
operated on. Worse, > uncharge has to happen from a context that is still type-specific, > rather than at the end of the page's lifetime with exclusive access, > and so requires a lot of synchronization. > ... this patch made it into next-20140623 as 5e49555277df (mm: memcontrol: r

Re: [patch 1/4] mm: vmscan: remove remains of kswapd-managed zone->all_unreclaimable

2014-06-23 Thread Minchan Kim
On Fri, Jun 20, 2014 at 12:33:47PM -0400, Johannes Weiner wrote: > shrink_zones() has a special branch to skip the all_unreclaimable() > check during hibernation, because a frozen kswapd can't mark a zone > unreclaimable. > > But ever since 6e543d5780e3 ("mm: vmscan: fix do_try_to_free_pages() >

Re: [RFC][PATCH 3/3] x86: make MP a required-feature on 64-bit

2014-06-23 Thread Andi Kleen
> We probably should just the cpu_has_mp macro entirely. All it is used > for is printing a warning in amd_k7_smp_check(). > > Andi, Borislav -- as far as I can tell, we have *never* enforced this on > the 64-bit kernel, although we have enforced it on 64-bit processors > running the 32-bit

Re: [PATCH] serial: samsung: Remove redundant label

2014-06-23 Thread Sachin Kamat
On Mon, Jun 23, 2014 at 11:32 AM, Tushar Behera wrote: > probe_err label only returns the error code. This label can be removed > and the error code can be returned directly. > > Signed-off-by: Tushar Behera > --- > drivers/tty/serial/samsung.c |5 + > 1 file changed, 1 insertion(+), 4

Re: [PATCH] usb: gadget: add claimed field in struct usb_ep

2014-06-23 Thread Robert Baldyga
On 06/19/2014 05:08 PM, Felipe Balbi wrote: > On Mon, Jun 16, 2014 at 10:20:36AM +0200, Robert Baldyga wrote: >> This field allows to mark ep as claimed in more clear way. Claiming >> endpoint by setting driver_data to non-null value is leaky solution >> and makes code unreadable. > > how come ?

[PATCH] serial: samsung: Remove redundant label

2014-06-23 Thread Tushar Behera
probe_err label only returns the error code. This label can be removed and the error code can be returned directly. Signed-off-by: Tushar Behera --- drivers/tty/serial/samsung.c |5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/tty/serial/samsung.c

[PATCH 0/2] serial: amba-pl01x: Clean up patches

2014-06-23 Thread Tushar Behera
The patches are based next-20140620 and they have only been build tested. Tushar Behera (2): serial: amba-pl011: Simplify goto statements serial: amba-pl010: Use devres APIs drivers/tty/serial/amba-pl010.c | 46 ++- drivers/tty/serial/amba-pl011.c |

[PATCH 2/2] serial: amba-pl010: Use devres APIs

2014-06-23 Thread Tushar Behera
Migrating to use devres managed APIs devm_kzalloc, devm_ioremap and devm_clk_get. Signed-off-by: Tushar Behera --- drivers/tty/serial/amba-pl010.c | 46 ++- 1 file changed, 16 insertions(+), 30 deletions(-) diff --git a/drivers/tty/serial/amba-pl010.c

[PATCH 1/2] serial: amba-pl011: Remove redundant label

2014-06-23 Thread Tushar Behera
The label 'out' is only used to return the error code. We can return the error code directly and remove 'out' label. Signed-off-by: Tushar Behera --- drivers/tty/serial/amba-pl011.c | 30 ++ 1 file changed, 10 insertions(+), 20 deletions(-) diff --git

[PATCH 3.11 15/93] drm/radeon: avoid segfault on device open when accel is not working.

2014-06-23 Thread Luis Henriques
3.11.10.12 -stable review patch. If anyone has any objections, please let me know. -- From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= jgli...@redhat.com commit 24f47acc78b0ab5e2201f859fe1f693ae90c7c83 upstream. When accel is not working on device with virtual address space radeon

[PATCH 3.11 18/93] nfsd4: warn on finding lockowner without stateid's

2014-06-23 Thread Luis Henriques
3.11.10.12 -stable review patch. If anyone has any objections, please let me know. -- From: J. Bruce Fields bfie...@redhat.com commit 27b11428b7de097c42f205beabb1764f4365443b upstream. The current code assumes a one-to-one lockowner-lock stateid correspondance.

Re: unparseable, undocumented /sys/class/drm/.../pstate

2014-06-23 Thread Ilia Mirkin
On Mon, Jun 23, 2014 at 9:02 AM, Pavel Machek pa...@ucw.cz wrote: On Sun 2014-06-22 22:12:14, Ilia Mirkin wrote: On Sat, Jun 21, 2014 at 3:45 PM, Greg KH g...@kroah.com wrote: On Sat, Jun 21, 2014 at 02:22:59PM -0400, Ilia Mirkin wrote: On Sat, Jun 21, 2014 at 2:02 PM, Pavel Machek

[PATCH 02/21] ftrace: Make ftrace_is_dead available globally

2014-06-23 Thread Jiri Slaby
Kgr wants to test whether ftrace is OK with patching. If not, we just bail out and will not initialize at all. Signed-off-by: Jiri Slaby jsl...@suse.cz Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi...@redhat.com --- include/linux/ftrace.h |

[PATCH 16/21] kgr: add support for missing functions

2014-06-23 Thread Jiri Slaby
Sometimes we want to patch a function which is in a module that is not currently loaded. In that case, patching would fail completely. So let the user decide whether it is fatal when the function to be patched is not found. If it is not, it is just skipped. Other functions in the patch (if any)

[PATCH 13/21] kgr: x86: refuse to build without fentry support

2014-06-23 Thread Jiri Slaby
From: Jiri Kosina jkos...@suse.cz The only reliable way for function redirection through ftrace_ops (when modifying pt_regs-rip in the handler) is fentry. The alternative -- mcount -- is problematic in several ways. Namely the caller's function prologue (that has already been executed by the

[PATCH 06/21] kgr: add Documentation

2014-06-23 Thread Jiri Slaby
This is a text provided by Udo and polished. Signed-off-by: Jiri Slaby jsl...@suse.cz Cc: Udo Seidel udosei...@gmx.de --- Documentation/kgraft.txt | 44 1 file changed, 44 insertions(+) create mode 100644 Documentation/kgraft.txt diff --git

[PATCH 03/21] kgr: initial code

2014-06-23 Thread Jiri Slaby
From: Jiri Kosina jkos...@suse.cz Provide initial implementation. We are now able to do ftrace-based runtime patching of the kernel code. In addition to that, we will provide a kgr_patcher module in the next patch to test the functionality. Note that the per-process flag dismisses in later

[PATCH 11/21] kgr: handle irqs

2014-06-23 Thread Jiri Slaby
Introduce a per-cpu flag to check whether we should use the old or new function in the slow stub. The new function starts being used on a processor only after a scheduled function sets the flag via schedule_on_each_cpu. Presumably this happens in the process context, no irq is running. And protect

[PATCH 09/21] kgr: mark task_safe in some kthreads

2014-06-23 Thread Jiri Slaby
Before we enable a kthread support in kGraft, we must make sure all kthreads mark themselves as kGraft-safe at some point explicitly. We do this by injecting kgr_task_safe to the freezer test. There, we assume that kthreads are in some predefined state and can expect something bad to happen.

[PATCH 21/21] kgr: x86: optimize handling of CPU-bound tasks

2014-06-23 Thread Jiri Slaby
From: Jiri Kosina jkos...@suse.cz Processes which are running in userspace at the time of patching can be immediately marked as migrated to the new universe, as they are provably outside the kernel and would have their 'in_progress' flag cleared upon (eventual) kernel entry anyway. This

Re: [PATCH v2] ns: introduce getnspid syscall

2014-06-23 Thread Serge E. Hallyn
Quoting chenhanx...@cn.fujitsu.com (chenhanx...@cn.fujitsu.com): Hi -Original Message- From: Richard Weinberger [mailto:rich...@nod.at] Sent: Friday, June 20, 2014 7:02 PM To: Chen, Hanxiao/陈 晗霄; contain...@lists.linux-foundation.org; linux-kernel@vger.kernel.org Cc: Eric W.

[PATCH 05/21] kgr: update Kconfig documentation

2014-06-23 Thread Jiri Slaby
This is based on Udo's text which was augmented in this patch. Signed-off-by: Jiri Slaby jsl...@suse.cz Cc: Udo Seidel udosei...@gmx.de Cc: Vojtech Pavlik vojt...@suse.cz --- kernel/Kconfig.kgraft | 3 +++ samples/Kconfig | 4 2 files changed, 7 insertions(+) diff --git

[PATCH 07/21] kgr: trigger the first check earlier

2014-06-23 Thread Jiri Slaby
In 10 seconds, not 30. This speeds up the whole process in most scenarios. Signed-off-by: Jiri Slaby jsl...@suse.cz Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi...@redhat.com --- kernel/kgraft.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 18/21] kgr: fix race of stub and patching

2014-06-23 Thread Jiri Slaby
While we are patching, we set up a stub which refers to kgr_in_progress of a process. The stub can be called immediately when set up, but we set the flag even after done with patching in kgr_handle_processes. This is obviously too late, so set the flag before we start patching, but after we check

[PATCH 01/21] ftrace: Add function to find fentry of function

2014-06-23 Thread Jiri Slaby
This is needed for kGraft to find a fentry location to be ftraced. We use this to find a place where to jump to a new/old code location. Note that we use a O(n) algorithm to assert correctness (and simplicity). This algorithm can be further optimized to be O(log(n)) using binary search, but care

Re: [patch 3/4] mm: vmscan: remove all_unreclaimable()

2014-06-23 Thread Mel Gorman
On Fri, Jun 20, 2014 at 12:33:49PM -0400, Johannes Weiner wrote: Direct reclaim currently calls shrink_zones() to reclaim all members of a zonelist, and if that wasn't successful it does another pass through the same zonelist to check overall reclaimability. Just check reclaimability in

[PATCH 08/21] kgr: sched.h, introduce kgr_task_safe helper

2014-06-23 Thread Jiri Slaby
To be used from some kthreads. Signed-off-by: Jiri Slaby jsl...@suse.cz Cc: Steven Rostedt rost...@goodmis.org Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi...@redhat.com --- include/linux/sched.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/linux/sched.h

[PATCH 10/21] kgr: kthreads support

2014-06-23 Thread Jiri Slaby
Wake up kthreads so that they cycle through kgr_task_safe either by an explicit call to it or implicitly via try_to_freeze. This ensures nobody should use the old version of the code and kgraft core can push everybody to use the new version by switching to the fast path. Signed-off-by: Jiri Slaby

[PATCH 17/21] kgr: exercise non-present function

2014-06-23 Thread Jiri Slaby
This is to test the newly added functionality: non-fatal patching of yet unknown functions. Signed-off-by: Jiri Slaby jsl...@suse.cz --- samples/kgraft/kgraft_patcher.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/samples/kgraft/kgraft_patcher.c b/samples/kgraft/kgraft_patcher.c

[PATCH 14/21] kgr: add procfs interface for per-process 'kgr_in_progress'

2014-06-23 Thread Jiri Slaby
From: Jiri Kosina jkos...@suse.cz Instead of flooding dmesg with data about tasks which haven't yet been migrated to the new universe, create a 'kgr_in_progress' in /proc/pid/ so that it's possible to easily script the checks/actions in userspace. js: use the kgr helper Signed-off-by: Jiri

[PATCH 12/21] kgr: add MAINTAINERS entry

2014-06-23 Thread Jiri Slaby
Signed-off-by: Jiri Slaby jsl...@suse.cz Cc: Jiri Kosina jkos...@suse.cz Cc: Vojtech Pavlik vojt...@suse.cz --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3f2e171047b9..73733eb50bb3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5239,6

[PATCH 15/21] kgr: make a per-process 'in progress' flag a single bit

2014-06-23 Thread Jiri Slaby
From: Jiri Kosina jkos...@suse.cz Having the per-task 'kgr_in_progress' flag stored as long is a waste of space. And manipulating it is likely slower than just performing single bit operations. Convert the flag to a thread info flag. Additionally, making the KGR TI_flag part of _TIF_ALLWORK_MASK

[PATCH 19/21] kgr: expose global 'in_progress' state through procfs

2014-06-23 Thread Jiri Slaby
From: Jiri Kosina jkos...@suse.cz In addition to having a per-process flag that shows which processess have already been migrated, it's useful to have a global-wide flag that will show whether the patching operation is currently undergoing without having to traverse all /proc entries. js: handle

[PATCH 3.11 14/93] drm/radeon: fix register typo on si

2014-06-23 Thread Luis Henriques
3.11.10.12 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher alexdeuc...@gmail.com commit 4955bb073f1be6dd884b5d10041ba4bade6495bf upstream. Probably a copy paste typo. Signed-off-by: Alex Deucher alexander.deuc...@amd.com

[PATCH 04/21] kgr: add testing kgraft patch

2014-06-23 Thread Jiri Slaby
This is intended to be a presentation of the kGraft engine, so it is placed into samples/ directory. It patches two chosen functions sys_iopl() and sys_capable() to print a message in addition to the original functionality. js: fix filename in Makefile (thanks mmarek) Signed-off-by: Jiri Kosina

[PATCH 20/21] kgr: rephrase the kGraft failed message

2014-06-23 Thread Jiri Slaby
From: Libor Pechacek lpecha...@suse.cz kGraft not succeeding on the first attempt can hardly be called a failure. kGraft is merely waiting for sleeping processes to wake up and get out of the way. Signed-off-by: Libor Pechacek lpecha...@suse.cz Signed-off-by: Jiri Slaby jsl...@suse.cz ---

[PATCH 3.11 13/93] drm/radeon: handle non-VGA class pci devices with ATRM

2014-06-23 Thread Luis Henriques
3.11.10.12 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher alexdeuc...@gmail.com commit d8ade3526b2aa0505132c404c05a38b73ea15490 upstream. Newer PX systems have non-VGA pci class dGPUs. Update the ATRM fetch method to handle

[PATCH 3.11 11/93] drm/gf119-/disp: fix nasty bug which can clobber SOR0's clock setup

2014-06-23 Thread Luis Henriques
3.11.10.12 -stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs bske...@redhat.com commit 0f1d360b2ee3a2a0f510d3f1bcd3f5ebe5d41265 upstream. Fixes a LVDS bleed issue on Lenovo W530 that can occur under a number of circumstances.

[PATCH 3.11 07/93] af_iucv: wrong mapping of sent and confirmed skbs

2014-06-23 Thread Luis Henriques
3.11.10.12 -stable review patch. If anyone has any objections, please let me know. -- From: Ursula Braun ursula.br...@de.ibm.com commit f5738e2ef88070ef1372e6e718124d88e9abe4ac upstream. When sending data through IUCV a MESSAGE COMPLETE interrupt signals that sent data memory

[PATCH 3.11 09/93] perf: Limit perf_event_attr::sample_period to 63 bits

2014-06-23 Thread Luis Henriques
3.11.10.12 -stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra pet...@infradead.org commit 0819b2e30ccb93edf04876237b6205eef84ec8d2 upstream. Vince reported that using a large sample_period (one with bit 63 set) results in wreckage

[PATCH 3.11 08/93] net: filter: s390: fix JIT address randomization

2014-06-23 Thread Luis Henriques
3.11.10.12 -stable review patch. If anyone has any objections, please let me know. -- From: Heiko Carstens heiko.carst...@de.ibm.com commit e84d2f8d2ae33c8215429824e1ecf24cbca9645e upstream. This is the s390 variant of Alexei's JIT bug fix. (patch description below stolen

[PATCH 3.11 04/93] net: cpsw: fix null dereference at probe

2014-06-23 Thread Luis Henriques
3.11.10.12 -stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold jhov...@gmail.com commit 6954cc1f238199e971ec905c5cc87120806ac981 upstream. Fix null-pointer dereference at probe when the mdio platform device is missing (e.g. when it

[PATCH 3.11 06/93] mac80211: fix on-channel remain-on-channel

2014-06-23 Thread Luis Henriques
3.11.10.12 -stable review patch. If anyone has any objections, please let me know. -- From: Johannes Berg johannes.b...@intel.com commit b4b177a5556a686909e643f1e9b6434c10de079f upstream. Jouni reported that if a remain-on-channel was active on the same channel as the current

[PATCH 3.11 01/93] cfg80211: free sme on connection failures

2014-06-23 Thread Luis Henriques
3.11.10.12 -stable review patch. If anyone has any objections, please let me know. -- From: Eliad Peller el...@wizery.com commit c1fbb258846dfc425507a093922d2d001e54c3ea upstream. cfg80211 is notified about connection failures by __cfg80211_connect_result() call. However,

[PATCH 3.11 03/93] sched: Use CPUPRI_NR_PRIORITIES instead of MAX_RT_PRIO in cpupri check

2014-06-23 Thread Luis Henriques
3.11.10.12 -stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt (Red Hat) rost...@goodmis.org commit 6227cb00cc120f9a43ce8313bb0475ddabcb7d01 upstream. The check at the beginning of cpupri_find() makes sure that the task_pri variable

[PATCH] staging: lirc: fix coding style problems

2014-06-23 Thread Raphael Poggi
This patch fix some coding style problems. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- drivers/staging/media/lirc/lirc_imon.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/staging/media/lirc/lirc_imon.c

[PATCH v7 2/7] Documentation: bindings: add the Berlin SATA PHY

2014-06-23 Thread Antoine Ténart
The Berlin SATA PHY drives the PHY related to the SATA interface. Add the corresponding documentation. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- .../devicetree/bindings/phy/berlin-sata-phy.txt | 16 1 file changed, 16 insertions(+) create mode

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