Re: [PATCH] watchdog: nohz: don't run watchdog on nohz_full cores

2015-03-30 Thread Don Zickus
On Mon, Mar 30, 2015 at 02:51:05PM -0400, cmetc...@ezchip.com wrote: > From: Chris Metcalf > > Running watchdog can be a helpful debugging feature on regular > cores, but it's incompatible with nohz_full, since it forces > regular scheduling events. Accordingly, just exit out immediately > from

Re: [PATCH][ASoC]Add ability to remove rate constraints from generic ASoC AC'97 CODEC driver

2015-03-30 Thread Mark Brown
On Sun, Mar 29, 2015 at 06:00:33PM +0200, Maciej S. Szmigiero wrote: > W dniu 22.03.2015 19:27, Mark Brown pisze: > > Please use subject lines matching the style for the subsystem. This is > > helpful for identifying relevant patches and not getting your messages > > deleted unread... > I assume

Re: [PATCH 56/86] intel/ixgb: use uapi/linux/pci_ids.h directly

2015-03-30 Thread Jeff Kirsher
On Sun, 2015-03-29 at 22:30 -0700, Stephen Hemminger wrote: > Patch was rejected upstream by Greg Thanks for the update Stephen, I will drop the patch. > On Sun, Mar 29, 2015 at 4:55 PM, Jeff Kirsher > wrote: > On Sun, 2015-03-29 at 15:41 +0200, Michael S. Tsirkin wrote: > > Head

[PATCH v2 2/2] clk: fractional-divider: fix sparse warnings

2015-03-30 Thread Andy Shevchenko
Sparse complains about possible imbalance in locking. drivers/clk/clk-fractional-divider.c:37:9: warning: context imbalance in 'clk_fd_recalc_rate' - different lock contexts for basic block drivers/clk/clk-fractional-divider.c:61:12: warning: context imbalance in 'clk_fd_set_rate' - different lo

[PATCH v2 1/2] clk: fractional-divider: switch to rational best approximation

2015-03-30 Thread Andy Shevchenko
This patch converts the code to use rational best approximation algorithm which is more precise. Suggested-by: Stephen Boyd Signed-off-by: Andy Shevchenko --- drivers/clk/Kconfig | 3 +-- drivers/clk/clk-fractional-divider.c | 39 ++-- 2 files c

Re: [PATCH 15/17] x86, mpx: do 32-bit-only cmpxchg for 32-bit apps

2015-03-30 Thread Dave Hansen
On 03/28/2015 01:39 AM, Borislav Petkov wrote: > AFAICT, in this case, we return only a 32-bit value and don't touch > the upper 32 bits of actual_old_val which might be a problem if the > assumptions of the callers is that the whole unsigned long is being > changed. The suggestion to just drop in

[PATCH v2 0/2] clk: fractional-divider: do a clean up

2015-03-30 Thread Andy Shevchenko
Patches are self-explanatory I think. So, just changelog is provided here. It would be really nice to queue them to v4.1. Changelog v2: - move to rational_best_approximation() and mult_frac() - add patch 2/2 Andy Shevchenko (2): clk: fractional-divider: switch to rational best approximation

sched: Improve load balancing in the presence of idle CPUs

2015-03-30 Thread Jason Low
Hi Preeti, I noticed that another commit 4a725627f21d converted the check in nohz_kick_needed() from idle_cpu() to rq->idle_balance, causing a potentially outdated value to be used if this cpu is able to pull tasks using rebalance_domains(), and nohz_kick_needed() directly returning false. Would

[PATCH v2] Input - mt: Fix input_mt_get_slot_by_key

2015-03-30 Thread Benjamin Tissoires
The case occurred recently with a touchscreen using twice a slot during a single EV_SYN event: E: 0.288415 # SYN_REPORT (0) -- E: 0.296207 0003 002f # EV_ABS / ABS_MT_SLOT 0 E: 0.296207 0003 0039 -001 # EV_ABS / ABS_MT_TRACKING_ID

Re: [PATCH v7 0/5] vfs: Non-blockling buffered fs read (page cache only)

2015-03-30 Thread Andrew Morton
On Mon, 30 Mar 2015 00:40:20 -0700 Christoph Hellwig wrote: > On Fri, Mar 27, 2015 at 10:04:11AM -0700, Andrew Morton wrote: > > mm... I don't think we should be adding placeholders to the kernel API > > to support code which hasn't been written, tested, reviewed, merged, > > etc. It's possible

[PATCH] watchdog: nohz: don't run watchdog on nohz_full cores

2015-03-30 Thread cmetcalf
From: Chris Metcalf Running watchdog can be a helpful debugging feature on regular cores, but it's incompatible with nohz_full, since it forces regular scheduling events. Accordingly, just exit out immediately from any nohz_full core. An alternate approach would be to add a flags field or funct

Re: [PATCH v3] cpufreq: powernv: Report cpu frequency throttling

2015-03-30 Thread Rafael J. Wysocki
On Friday, March 27, 2015 01:10:46 PM Viresh Kumar wrote: > On 27 March 2015 at 13:02, Shilpasri G Bhat > wrote: > > The power and thermal safety of the system is taken care by an > > On-Chip-Controller (OCC) which is real-time subsystem embedded within > > the POWER8 processor. OCC continuously m

Re: [PATCH] Btrfs: prevent deletion of mounted subvolumes

2015-03-30 Thread Omar Sandoval
On Mon, Mar 30, 2015 at 02:30:34PM +0200, David Sterba wrote: > On Mon, Mar 30, 2015 at 02:02:17AM -0700, Omar Sandoval wrote: > > Before commit bafc9b754f75 ("vfs: More precise tests in d_invalidate"), > > d_invalidate() could return -EBUSY when a dentry for a directory had > > more than one refer

Re: [PATCH 5/7] ssb: Use bool function return values of true/false not 1/0

2015-03-30 Thread Kalle Valo
Michael Büsch writes: > On Mon, 30 Mar 2015 10:43:21 -0700 > Joe Perches wrote: > >> Use the normal return values for bool functions >> >> Signed-off-by: Joe Perches >> --- >> drivers/ssb/driver_gige.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/ssb/dr

[PATCH] Document interaction between compaction and the unevictable LRU

2015-03-30 Thread Eric B Munson
The memory compaction code uses the migration code to do most of the work in compaction. However, the compaction code interacts with the unevictable LRU differently than migration code and this difference should be noted in the documentation. Signed-off-by: Eric B Munson Cc: linux-...@vger.kerne

Re: [PATCH 1/6] clk: make strings in parent name arrays const

2015-03-30 Thread Sascha Hauer
On Mon, Mar 30, 2015 at 11:20:31AM -0700, Joe Perches wrote: > On Mon, 2015-03-30 at 20:16 +0200, Sascha Hauer wrote: > > On Mon, Mar 30, 2015 at 10:55:19AM -0700, Joe Perches wrote: > > > On Mon, 2015-03-30 at 19:40 +0200, Sascha Hauer wrote: > > > > The clk functions and structs declare the paren

Re: [PATCH 2/6] clk: mediatek: Add initial common clock support for Mediatek SoCs.

2015-03-30 Thread Sascha Hauer
On Mon, Mar 30, 2015 at 10:55:46AM -0700, Joe Perches wrote: > On Mon, 2015-03-30 at 19:40 +0200, Sascha Hauer wrote: > > This patch adds common clock support for Mediatek SoCs, including plls, > > muxes and clock gates. > > trivia: > > > diff --git a/drivers/clk/mediatek/clk-gate.c > > b/driver

[PATCH v2 1/1] spi: Add SPI driver for Mikrotik RB4xx series boards

2015-03-30 Thread Bert Vermeulen
This driver mediates access between the connected CPLD and other devices on the bus. The m25p80-compatible boot flash and (some models) MMC use regular SPI, bitbanged as required by the SoC. However the SPI-connected CPLD has a "fast write" mode, in which two bits are transferred by SPI clock cycl

[PATCH v2 0/1] spi: Add driver for Routerboard RB4xx boards

2015-03-30 Thread Bert Vermeulen
Changes in v2: This is a near complete rewrite of the original OpenWrt driver. All comments were taken into account, and the spi_transfer.fast_write flag is gone. Instead, the cs_change flag is used. It's not too bad a hack, as it really does use CS. The CPLD module will be submitted as an MFD dri

Re: [PATCH 5/5] x86/asm/entry/64: drop exit_intr label

2015-03-30 Thread Linus Torvalds
On Mon, Mar 30, 2015 at 11:09 AM, Denys Vlasenko wrote: > - cmpl$0,PER_CPU_VAR(__preempt_count) > - jnz 1f > - bt $9,EFLAGS(%rsp) /* interrupts were off? */ > + bt $X86_EFLAGS_IF_BIT,EFLAGS(%rsp) /* interrupts were off? */ Since you're changing this anywa

[PATCH v2 2/2] perf tool: Fix ppid for synthesized fork events

2015-03-30 Thread David Ahern
363b785f38 added synthesized fork events and set a thread's parent id to itself. Since we are already processing /proc//status the ppid can be determined properly. Make it so. Signed-off-by: David Ahern Cc: Don Zickus Cc: Joe Mario Cc: Jiri Olsa --- v2: - removed changes to function signature

Re: [PATCH 1/6] clk: make strings in parent name arrays const

2015-03-30 Thread Joe Perches
On Mon, 2015-03-30 at 20:16 +0200, Sascha Hauer wrote: > On Mon, Mar 30, 2015 at 10:55:19AM -0700, Joe Perches wrote: > > On Mon, 2015-03-30 at 19:40 +0200, Sascha Hauer wrote: > > > The clk functions and structs declare the parent_name arrays as > > > 'const char **parent_names' which means the pa

Re: [PATCH 2/5] x86/asm/entry/64: simplify retint_kernel label usage, make retint_restore_args label local

2015-03-30 Thread Linus Torvalds
On Mon, Mar 30, 2015 at 11:09 AM, Denys Vlasenko wrote: > > Strip retint_kernel of .global-ness (ENTRY macro) - it has no users > outside of this file. The reason for the ENTRY is to get it aligned, not because it's globally visible. It doesn't have any fallthroughs, and some cpu's care more than

Re: [PATCH 1/6] clk: make strings in parent name arrays const

2015-03-30 Thread Sascha Hauer
On Mon, Mar 30, 2015 at 10:55:19AM -0700, Joe Perches wrote: > On Mon, 2015-03-30 at 19:40 +0200, Sascha Hauer wrote: > > The clk functions and structs declare the parent_name arrays as > > 'const char **parent_names' which means the parent name strings > > are const, but the array itself is not. U

Re: [PATCH v4 02/10] mtd: st_spi_fsm: Fetch boot device locations from DT match tables

2015-03-30 Thread Brian Norris
On Mon, Mar 16, 2015 at 08:13:06AM +, Lee Jones wrote: > So when you said "we have consistently agreed that we aren't going to > work around that in Linux", who has agreed this. Would you be kind > enough to point me in the direction of that conversation please? A few pointers from recent his

Re: [PATCH 0/3] leds/class: Fix string handling

2015-03-30 Thread Bryan Wu
On Mon, Mar 30, 2015 at 10:46 AM, Ricardo Ribalda Delgado wrote: > Hello Bryan > > On Mon, Mar 30, 2015 at 7:15 PM, Bryan Wu wrote: >> Thanks, Geert and Ricardo. >> Ricardo, do you mind folding your fixing patches with original one >> together and send it out again? I will use the new one to repl

[PATCH 4/5] x86/asm/entry/64: do not GET_THREAD_INFO() too early

2015-03-30 Thread Denys Vlasenko
At exit_intr, we GET_THREAD_INFO(%rcx) and then jump to retint_kernel if saved CS was from kernel. But code at retint_kernel doesn't need %rcx. Move GET_THREAD_INFO(%rcx) down, after CS check and branch. While at it, remove "has a correct top of stack" comment. After recent changes which eliminat

[PATCH 5/5] x86/asm/entry/64: drop exit_intr label

2015-03-30 Thread Denys Vlasenko
At this label, we test whether interrupt/exception was in kernel. If it did, we jump to preemption check. If preemption does happen (IOW if we call preempt_schedule_irq), we go back to exit_intr. But it's pointless, we already know that test succeeded last time, preemption doesn't change the fact

[PATCH 3/5] x86/asm/entry/64: remove redundant DISABLE_INTERRUPTS

2015-03-30 Thread Denys Vlasenko
At this location, we already have interrupts off, always. To be more specific, we already disabled them here: ret_from_intr: DISABLE_INTERRUPTS(CLBR_NONE) Signed-off-by: Denys Vlasenko CC: Linus Torvalds CC: Steven Rostedt CC: Ingo Molnar CC: Borislav Petkov CC: "H. Peter Anv

[PATCH 0/5] x86/asm/entry/64: simplifications

2015-03-30 Thread Denys Vlasenko
This patchset simplifies jump maze in entry_64.S a bit by moving "retint_kernel" code block, and follows up with simplifications which become obvious after the move. Two labels and one define is gone One label is no longer .global One redundand DISABLE_INTERRUPTS is gone A few jump and test instru

[PATCH 1/5] x86/asm/entry/64: move retint_kernel code block closer to its user

2015-03-30 Thread Denys Vlasenko
"retint_kernel" code block is misplaced. Since its logical continuation is "retint_restore_args", it is more natural to place it above that label. This also makes two jumps "short". This change only moves code block around, without changing logic. This enables the next simplification: making "ret

[PATCH 2/5] x86/asm/entry/64: simplify retint_kernel label usage, make retint_restore_args label local

2015-03-30 Thread Denys Vlasenko
Get rid of #define obfuscation of retint_kernel in CONFIG_PREEMPT case by defining retint_kernel label always, not only for CONFIG_PREEMPT. Strip retint_kernel of .global-ness (ENTRY macro) - it has no users outside of this file. This looks like cosmetics, but it is not: "je LABEL" can be optimiz

Re: [PATCH] genirq: provide dummy set_irq_wake()

2015-03-30 Thread Felipe Balbi
On Mon, Mar 30, 2015 at 01:06:24PM -0500, Felipe Balbi wrote: > On Mon, Mar 30, 2015 at 04:15:45PM +0300, Roger Quadros wrote: > > Without this system suspend is broken on systems that have > > drivers calling enable/disable_irq_wake() for interrupts based off > > the dummy irq hook. > > (e.g. driv

Re: [PATCH] genirq: provide dummy set_irq_wake()

2015-03-30 Thread Felipe Balbi
On Mon, Mar 30, 2015 at 04:15:45PM +0300, Roger Quadros wrote: > Without this system suspend is broken on systems that have > drivers calling enable/disable_irq_wake() for interrupts based off > the dummy irq hook. > (e.g. drivers/gpio/gpio-pcf857x.c) > > http://article.gmane.org/gmane.linux.kerne

RE: [PATCH 00/60] staging: comedi: "comedi_fc.h" removal

2015-03-30 Thread Hartley Sweeten
On Friday, March 27, 2015 12:14 PM, Ian Abbott wrote: > This series migrates the `cfc_check_trigger_...()` functions out of > "comedi_fc.h" and into "comedidev.h", and renames them to start with > `comedi_` instead of `cfc_`. Finally, "comedi_fc.h" is removed. > > 01) staging: comedi: comedi_fc.h:

[PATCH v2 1/2] spi: fsl-dspi: Fix clock rate scale values

2015-03-30 Thread Aaron Brice
Previous algorithm had an outer loop with the values {2,3,5,7} and an inner loop with {2,4,6,8,16,32,...,32768}, and would pick the first value over the required scaling value (where the total scale was the two numbers multiplied). Since the inner loop went up to 32768 it would always pick a value

[PATCH v2 2/2] spi: fsl-dspi: Add ~50ns delay between cs and sck

2015-03-30 Thread Aaron Brice
Add delay between chip select and clock signals, before clock starts and after clock stops. Signed-off-by: Aaron Brice --- drivers/spi/spi-fsl-dspi.c | 53 -- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-fsl-dspi.c b/d

[PATCH v2 0/2] spi: fsl-dspi (vf610) clock fixes

2015-03-30 Thread Aaron Brice
We were having intermittent problems writing to SRAM chip on SPI bus on vf610 SoM. Added support for CS setup and hold times to meet the SRAM spec. In the process noticed that the baud rate was a little high. Changes since v1: * More detail in commit message for clock rate fix Aaron Brice (2):

Re: [PATCH 1/6] clk: make strings in parent name arrays const

2015-03-30 Thread Joe Perches
On Mon, 2015-03-30 at 19:40 +0200, Sascha Hauer wrote: > The clk functions and structs declare the parent_name arrays as > 'const char **parent_names' which means the parent name strings > are const, but the array itself is not. Use > 'const char * const * parent_names' instead which also makes > t

Re: [PATCH 1/6] virtio_balloon: transitional interface

2015-03-30 Thread Michael S. Tsirkin
On Mon, Mar 30, 2015 at 07:37:12PM +0200, Michael S. Tsirkin wrote: > Virtio 1.0 doesn't include a modern balloon device. > But it's not a big change to support a transitional > balloon device: this has the advantage of supporting > existing drivers, transparently. > > Signed-off-by: Michael S. Ts

Re: [PATCH 2/6] clk: mediatek: Add initial common clock support for Mediatek SoCs.

2015-03-30 Thread Joe Perches
On Mon, 2015-03-30 at 19:40 +0200, Sascha Hauer wrote: > This patch adds common clock support for Mediatek SoCs, including plls, > muxes and clock gates. trivia: > diff --git a/drivers/clk/mediatek/clk-gate.c b/drivers/clk/mediatek/clk-gate.c > +static int mtk_cg_bit_is_cleared(struct clk_hw *hw

[PATCH] ASoC: atmel-pcm-pdc: merge atmel-pcm back in

2015-03-30 Thread Alexandre Belloni
atmel-pcm.c was split into two files to create a generic framework for both PDC and DMA. atmel-pcm-dma.c is using the generic dmaengine framework since 95e0e07e710e (ASoC: atmel-pcm: use generic dmaengine framework). Merge atmel-pcm.c in atmel-pcm-pdc.c as this is now the only user. Signed-off-b

Re: [PATCH 5/5] dmaengine: moxart-dma: Fix memory leak when stopping a running transfer

2015-03-30 Thread Vinod Koul
On Fri, Mar 27, 2015 at 01:35:55PM +0200, Peter Ujfalusi wrote: > The vd->node is removed from the lists when the transfer started so the > vchan_get_all_descriptors() will not find it. This results memory leak. > > Signed-off-by: Peter Ujfalusi > CC: Jonas Jensen Applied, thanks -- ~Vinod >

Re: [PATCH 2/5] dmaengine: omap-dma: Fix memory leak when terminating running transfer

2015-03-30 Thread Vinod Koul
On Fri, Mar 27, 2015 at 01:35:52PM +0200, Peter Ujfalusi wrote: > In omap_dma_start_desc the vdesc->node is removed from the virt-dma > framework managed lists (to be precise from the desc_issued list). > If a terminate_all comes before the transfer finishes the omap_desc will > not be freed up bec

Re: [PATCH 3/5] dmaengine: bcm2835-dma: Fix memory leak when stopping a running transfer

2015-03-30 Thread Vinod Koul
On Fri, Mar 27, 2015 at 01:35:53PM +0200, Peter Ujfalusi wrote: > The vd->node is removed from the lists when the transfer started so the > vchan_get_all_descriptors() will not find it. This results memory leak. > > Signed-off-by: Peter Ujfalusi > CC: Stephen Warren > CC: Lee Jones Applied, tha

Re: [PATCH 1/5] dmaengine: edma: fix memory leak when terminating running transfers

2015-03-30 Thread Vinod Koul
On Fri, Mar 27, 2015 at 01:35:51PM +0200, Peter Ujfalusi wrote: > From: Petr Kulhavy > > If edma_terminate_all() was called while a transfer was running (i.e. after > edma_execute() but before edma_callback()) the echan->edesc was not freed. > > This was due to the fact that a running transfer i

Re: [PATCH 2/7] dm_table: Use bool function return values of true/false not 1/0

2015-03-30 Thread Mike Snitzer
On Mon, Mar 30 2015 at 1:43pm -0400, Joe Perches wrote: > Use the normal return values for bool functions > > Signed-off-by: Joe Perches Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More major

[RFC] perf probe: -x option position issue

2015-03-30 Thread Jiri Olsa
hi, Martin found out following issue.. having following ex binary: --- int main(void) { return 0; } --- following will create uprobe on main: [root@dell-per510-01 perf]# gcc -g -o ex ex.c [root@dell-per510-01 perf]# ./perf probe -x ./ex -a main Added new event: probe_ex:main

Re: [PATCH 5/7] ssb: Use bool function return values of true/false not 1/0

2015-03-30 Thread Michael Büsch
On Mon, 30 Mar 2015 10:43:21 -0700 Joe Perches wrote: > Use the normal return values for bool functions > > Signed-off-by: Joe Perches > --- > drivers/ssb/driver_gige.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ssb/driver_gige.c b/drivers/ssb/driver_gige

[PATCH 1/7] drm: Use bool function return values of true/false not 1/0

2015-03-30 Thread Joe Perches
Use the normal return values for bool functions Signed-off-by: Joe Perches --- drivers/gpu/drm/ast/ast_post.c| 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_post.c b/drivers/gpu/drm/ast/ast_post.

Re: [PATCH 0/3] leds/class: Fix string handling

2015-03-30 Thread Ricardo Ribalda Delgado
Hello Bryan On Mon, Mar 30, 2015 at 7:15 PM, Bryan Wu wrote: > Thanks, Geert and Ricardo. > Ricardo, do you mind folding your fixing patches with original one > together and send it out again? I will use the new one to replace that > one in my tree, since this patch is not merged into Linus tree

[PATCH 6/7] thermal: Use bool function return values of true/false not 1/0

2015-03-30 Thread Joe Perches
Use the normal return values for bool functions Signed-off-by: Joe Perches --- drivers/thermal/thermal_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index 9e20e4d..749d41a 100644 --- a/drivers/thermal/th

[PATCH 4/7] wmi: Use bool function return values of true/false not 1/0

2015-03-30 Thread Joe Perches
Use the normal return values for bool functions Signed-off-by: Joe Perches --- drivers/platform/x86/wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 26a0bd8..aac4757 100644 --- a/drivers/platform/x86/wmi.c

[PATCH 2/7] dm_table: Use bool function return values of true/false not 1/0

2015-03-30 Thread Joe Perches
Use the normal return values for bool functions Signed-off-by: Joe Perches --- drivers/md/dm-table.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index e0f618b..d9b00b8 100644 --- a/drivers/md/dm-table.c

[PATCH 2/3] leds: Use log level warn instead of info when telling about a name clash

2015-03-30 Thread Ricardo Ribalda Delgado
From: Sakari Ailus The LED names are expected to be unique in the system. Use KERN_WARNING log level to notify the user about the matter. Signed-off-by: Sakari Ailus Signed-off-by: Bryan Wu Signed-off-by: Ricardo Ribalda Delgado --- drivers/leds/led-class.c | 2 +- 1 file changed, 1 insertio

[PATCH 3/3] leds: Don't treat the LED name as a format string

2015-03-30 Thread Ricardo Ribalda Delgado
From: Sakari Ailus The LED name was wrongly interpreted as format string. Stop doing that. Signed-off-by: Sakari Ailus Signed-off-by: Bryan Wu Signed-off-by: Ricardo Ribalda Delgado --- drivers/leds/led-class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/

[PATCH 0/3] Handle LEDs with the same name

2015-03-30 Thread Ricardo Ribalda Delgado
This is a rework of the original patch + 3 fixup patches from me. Contains a lot of feedback from Geert Uytterhoeven Thanks! Ricardo Ribalda Delgado (1): leds/led-class: Handle LEDs with the same name Sakari Ailus (2): leds: Use log level warn instead of info when telling about a name cl

[PATCH 3/7] genwqe: Use bool function return values of true/false not 1/0

2015-03-30 Thread Joe Perches
Use the normal return values for bool functions Signed-off-by: Joe Perches --- drivers/misc/genwqe/card_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/genwqe/card_base.h b/drivers/misc/genwqe/card_base.h index e735344..2e57df1 100644 --- a/drivers/misc/ge

[PATCH 1/3] leds/led-class: Handle LEDs with the same name

2015-03-30 Thread Ricardo Ribalda Delgado
The current code expected that every LED had an unique name. This is a legit expectation when the device tree can no be modified or extended. But with device tree overlays this requirement can be easily broken. This patch finds out if the name is already in use and adds the suffix _1, _2... if not

Re: [PATCH V5 4/6] perf, x86: handle multiple records in PEBS buffer

2015-03-30 Thread Andi Kleen
> > The case you mentioned has already covered in the description. AFAIK the description was for the "two PEBS events are happening nearby, so the hardware merges them" case. That is different than what I described. Both can happen (very rarely) > I tried both multiple different events and mul

[PATCH v10]: clk: Add common clock support for Mediatek MT8135 and MT8173

2015-03-30 Thread Sascha Hauer
The following changes since commit 9eccca0843205f87c00404b663188b88eb248051: Linux 4.0-rc3 (2015-03-08 16:09:09 -0700) are available in the git repository at: git://git.pengutronix.de/git/imx/linux-2.6.git tags/v4.0-clk-mediatek-v10 for you to fetch changes up to 6c36b94751bb2830388c0cc1144

[PATCH 5/7] ssb: Use bool function return values of true/false not 1/0

2015-03-30 Thread Joe Perches
Use the normal return values for bool functions Signed-off-by: Joe Perches --- drivers/ssb/driver_gige.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ssb/driver_gige.c b/drivers/ssb/driver_gige.c index e973405..ebee6b0 100644 --- a/drivers/ssb/driver_gige.c +++ b/d

Re: [PATCH 00/16 v2] iommu: Move domain allocation into drivers

2015-03-30 Thread Will Deacon
Hi Joerg, On Thu, Mar 26, 2015 at 12:43:03PM +, Joerg Roedel wrote: > Changes v1-v2: > > * Rebased to v4.0-rc5 > * Converted domain-types to a bit-field > > Hi, > > here is patch-set to replace the existing domain_init and > domain_destroy iommu-ops with the new domain_alloc and

[PATCH 7/7] serial: kgdb_nmi: Use bool function return values of true/false not 1/0

2015-03-30 Thread Joe Perches
Use the normal return values for bool functions Signed-off-by: Joe Perches --- drivers/tty/serial/kgdb_nmi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/kgdb_nmi.c b/drivers/tty/serial/kgdb_nmi.c index 129dc5b..117df15 100644 --- a/drivers/tty/ser

[PATCH 5/6] clk: mediatek: Add basic clocks for Mediatek MT8173.

2015-03-30 Thread Sascha Hauer
From: James Liao This patch adds basic clocks for MT8173, including TOPCKGEN, PLLs, INFRA and PERI clocks. Signed-off-by: James Liao Signed-off-by: Henry Chen Signed-off-by: Sascha Hauer --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8173.c

[PATCH 0/7] drivers: Use bool function return values true/false not 1/0

2015-03-30 Thread Joe Perches
Joe Perches (7): drm: Use bool function return values of true/false not 1/0 dm_table: Use bool function return values of true/false not 1/0 genwqe: Use bool function return values of true/false not 1/0 wmi: Use bool function return values of true/false not 1/0 ssb: Use bool function retur

RE: [PATCH V5 4/6] perf, x86: handle multiple records in PEBS buffer

2015-03-30 Thread Liang, Kan
> -Original Message- > From: Andi Kleen [mailto:a...@firstfloor.org] > Sent: Monday, March 30, 2015 1:26 PM > To: Liang, Kan > Cc: Peter Zijlstra; linux-kernel@vger.kernel.org; mi...@kernel.org; > a...@infradead.org; eran...@google.com; a...@firstfloor.org > Subject: Re: [PATCH V5 4/6] pe

[PATCH 6/6] dt-bindings: ARM: Mediatek: Document devicetree bindings for clock/reset controllers

2015-03-30 Thread Sascha Hauer
This adds the binding documentation for the apmixedsys, perisys and infracfg controllers found on Mediatek SoCs. Signed-off-by: Sascha Hauer --- .../bindings/arm/mediatek/mediatek,apmixedsys.txt | 23 + .../bindings/arm/mediatek/mediatek,infracfg.txt| 30

[PATCH 1/6] clk: make strings in parent name arrays const

2015-03-30 Thread Sascha Hauer
The clk functions and structs declare the parent_name arrays as 'const char **parent_names' which means the parent name strings are const, but the array itself is not. Use 'const char * const * parent_names' instead which also makes the array const. This allows us to put the parent_name arrays into

Re: [PATCH 4/5] dmaengine: hsu: Fix memory leak when stopping a running transfer

2015-03-30 Thread Vinod Koul
On Fri, Mar 27, 2015 at 02:01:58PM +0200, Andy Shevchenko wrote: > On Fri, 2015-03-27 at 13:35 +0200, Peter Ujfalusi wrote: > > The vd->node is removed from the lists when the transfer started so the > > vchan_get_all_descriptors() will not find it. This results memory leak. > > > > Acked-by: And

[PATCH 4/6] clk: mediatek: Add basic clocks for Mediatek MT8135.

2015-03-30 Thread Sascha Hauer
From: James Liao This patch adds basic clocks for MT8135, including TOPCKGEN, PLLs, INFRA and PERI clocks. Signed-off-by: James Liao Signed-off-by: Henry Chen Signed-off-by: Sascha Hauer --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8135.c

[PATCH 2/6] clk: mediatek: Add initial common clock support for Mediatek SoCs.

2015-03-30 Thread Sascha Hauer
From: James Liao This patch adds common clock support for Mediatek SoCs, including plls, muxes and clock gates. Signed-off-by: James Liao Signed-off-by: Henry Chen Signed-off-by: Sascha Hauer --- drivers/clk/Makefile| 1 + drivers/clk/mediatek/Makefile | 1 + drivers/clk/me

[PATCH 3/6] clk: mediatek: Add reset controller support

2015-03-30 Thread Sascha Hauer
The pericfg and infracfg units also provide reset lines to several other SoC internal units. This adds a function which can be called from the pericfg and infracfg initialization functions which will register the reset controller using reset_controller_register. The reset controller will provide su

[PATCH] mfd: twl4030-power: Fix pmic for boards that need AC charger disabled

2015-03-30 Thread Tony Lindgren
I noticed the PMIC configuration on 37xx-evm won't actually shut down the voltages during off-idle. Turns out 37xx-evm needs the AC charger state transitions disabled like we are doing for SDP and LDP in the legacy booting case. Let's fix this for device tree based booting by setting up the quirk

[PATCH 2/6] virtio: balloon might not be a legacy device

2015-03-30 Thread Michael S. Tsirkin
We added transitional device support to balloon driver, so we don't need to black-list it in core anymore. Signed-off-by: Michael S. Tsirkin --- drivers/virtio/virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce

[PATCH] block: fix blk_stack_limits() regression due to lcm() change

2015-03-30 Thread Mike Snitzer
Linux 3.19 commit 69c953c ("lib/lcm.c: lcm(n,0)=lcm(0,n) is 0, not n") caused blk_stack_limits() to not properly stack queue_limits for stacked devices (e.g. DM). Fix this regression by establishing lcm_not_zero() and switching blk_stack_limits() over to using it. DM uses blk_set_stacking_limits(

[PATCH 6/6] virtio: drop virtio_device_is_legacy_only

2015-03-30 Thread Michael S. Tsirkin
virtio_device_is_legacy_only is now unused, drop it from core. Signed-off-by: Michael S. Tsirkin --- include/linux/virtio.h | 2 -- drivers/virtio/virtio.c | 6 -- 2 files changed, 8 deletions(-) diff --git a/include/linux/virtio.h b/include/linux/virtio.h index 28f0e65..8f4d4bf 100644 ---

[PATCH 3/6] virtio_ccw: support non-legacy balloon devices

2015-03-30 Thread Michael S. Tsirkin
virtio_device_is_legacy_only is always false now, drop the test from virtio ccw. Signed-off-by: Michael S. Tsirkin --- drivers/s390/kvm/virtio_ccw.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/s390/kvm/virtio_ccw.c b/drivers/s390/kvm/virtio_ccw.c index

Re: [PATCH 0/3] sysctl: detect overflows when setting integers

2015-03-30 Thread Heinrich Schuchardt
Hello Alexey, thank you for reviewing. On 30.03.2015 14:34, Alexey Dobriyan wrote: >> Unfortunately functions simple_strtoul and simple_strtoull cannot >> be replaced by kstrtoul and kstrtoull in some places, because they >> expect a zero terminated string instead of returning a pointer to >> the

[PATCH 5/6] virtio_pci: support non-legacy balloon devices

2015-03-30 Thread Michael S. Tsirkin
virtio_device_is_legacy_only is always false now, drop the test from virtio pci. Signed-off-by: Michael S. Tsirkin --- drivers/virtio/virtio_pci_modern.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/virtio/virtio_pci_modern.c b/drivers/virtio/virtio_pci_modern.c index 2aa38e5..

[PATCH 4/6] virtio_mmio: support non-legacy balloon devices

2015-03-30 Thread Michael S. Tsirkin
virtio_device_is_legacy_only is always false now, drop the test from virtio mmio. Signed-off-by: Michael S. Tsirkin --- drivers/virtio/virtio_mmio.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c index 6010d7e..7a5e60d 10064

[PATCH 1/6] virtio_balloon: transitional interface

2015-03-30 Thread Michael S. Tsirkin
Virtio 1.0 doesn't include a modern balloon device. But it's not a big change to support a transitional balloon device: this has the advantage of supporting existing drivers, transparently. Signed-off-by: Michael S. Tsirkin --- include/uapi/linux/virtio_balloon.h | 6 ++ drivers/virtio/virti

[PATCH 0/6] virtio_balloon: virtio 1 support

2015-03-30 Thread Michael S. Tsirkin
Virtio 1.0 doesn't include a modern balloon device. At some point we'll likely define an incompatible interface with a different ID. But for now, it's not a big change to support a transitional balloon device: this has the advantage of supporting existing drivers, transparently. The only issue is

Re: [PATCH] sata_mv: Manage SATA port multiplier while searching for active links

2015-03-30 Thread Tejun Heo
Hello, On Mon, Mar 30, 2015 at 07:32:45PM +0200, Gregory CLEMENT wrote: > From: Nadav Haklai > > With this patch, when searching for active link, first search through > the port multiplier links. And then fall to the default ap active_tag > only if no there is no active link in the port multipli

Re: [PATCH] perf, record: Add clockid parameter

2015-03-30 Thread David Ahern
On 3/28/15 1:55 AM, Peter Zijlstra wrote: @@ -761,6 +762,11 @@ void perf_evsel__config(struct perf_evse attr->disabled = 0; attr->enable_on_exec = 0; } + + if (opts->clockid >= 0) { + attr->use_clockid = 1; + attr->clockid

[PATCH] sata_mv: Manage SATA port multiplier while searching for active links

2015-03-30 Thread Gregory CLEMENT
From: Nadav Haklai With this patch, when searching for active link, first search through the port multiplier links. And then fall to the default ap active_tag only if no there is no active link in the port multiplier. [gregory.clem...@free-electrons.com: reword commit log and title] Signed-off-

Re: [PATCH] dmaengine: pl330: fix the race condition in pl330 driver.

2015-03-30 Thread Vinod Koul
On Mon, Mar 30, 2015 at 10:17:17PM +0530, Jassi Brar wrote: > On Fri, Mar 27, 2015 at 5:25 AM, Scott Branden wrote: > > From: ismail > > > > Update the thread running index before issuing the > > GO command to the DMAC. > > > > Tested-by: Mohamed Ismail Abdul Packir Mohamed > > Reviewed-by: Ray

RE: [PATCH 62/86] staging/comedi: use uapi/linux/pci_ids.h directly

2015-03-30 Thread Hartley Sweeten
On Sunday, March 29, 2015 10:35 AM, Ian Abbott wrote: > On 29/03/15 14:42, Michael S. Tsirkin wrote: >> Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h, >> use the new header directly so we can drop >> the wrapper in include/linux/pci_ids.h. >> >> Signed-off-by: Michael S. Tsirkin >> ---

Re: [PATCH v7 0/5] vfs: Non-blockling buffered fs read (page cache only)

2015-03-30 Thread Jeremy Allison
On Mon, Mar 30, 2015 at 12:36:04AM -0700, Christoph Hellwig wrote: > On Fri, Mar 27, 2015 at 08:58:54AM -0700, Jeremy Allison wrote: > > The problem with the above is that we can't tell the difference > > between pread2() returning a short read because the pages are not > > in cache, or because som

Re: [PATCH v5 2/3] I2C: mediatek: Add driver for MediaTek I2C controller

2015-03-30 Thread Sascha Hauer
On Mon, Mar 30, 2015 at 04:14:12PM +0800, Eddie Huang wrote: > Hi Sascha, > > > > > [...] > > > > > + if (i2c->speed_hz > 40) > > > + control_reg |= I2C_CONTROL_RS; > > > + if (i2c->op == I2C_MASTER_WRRD) > > > + control_reg |= I2C_CONTROL_DIR_CHANGE | I2C_CONTROL_RS; > > > +

Re: [Fix kernel crash in cipso_v4_sock_delattr ]

2015-03-30 Thread Casey Schaufler
On 3/30/2015 4:32 AM, Paul Moore wrote: > On Monday, March 30, 2015 11:09:00 AM Maninder Singh wrote: >> Dear All, >> we found One Kernel Crash issue in cipso_v4_sock_delattr :- >> As Cipso supports only inet sockets so cipso_v4_sock_delattr will crash when >> try to access any other socket type.

Re: [PATCH V5 4/6] perf, x86: handle multiple records in PEBS buffer

2015-03-30 Thread Andi Kleen
> > - its possible (and harmless) for the status field to contain set bits > >for !PEBS events -- the proposed code is buggy here. > I will fix it. > > - its possible to have multiple PEBS bits set even though the event > >really only was for a single event -- if you count everything with

Re: [PATCH v2 1/7] dmaengine: of_dma: Support for DMA routers

2015-03-30 Thread Vinod Koul
On Fri, Mar 27, 2015 at 02:25:29PM +0200, Peter Ujfalusi wrote: > On 03/26/2015 05:32 PM, Vinod Koul wrote: > >> I have added the DT binding document since this series adds support for > >> routers for platforms booting with DT: > >> > >> Documentation/devicetree/bindings/dma/dma.txt | 28

Re: [PATCH] perf, record: Add clockid parameter

2015-03-30 Thread David Ahern
On 3/28/15 1:55 AM, Peter Zijlstra wrote: @@ -1085,6 +1093,8 @@ static int __perf_evsel__open(struct per } fallback_missing_features: + if (perf_missing_features.clockid) + evsel->attr.use_clockid = 0; if (perf_missing_features.cloexec) flags

[GIT PULL] libata fixes for v4.0-rc6

2015-03-30 Thread Tejun Heo
Hello, Linus. Nothing exciting. Two patches to update queued trim blacklist. Thanks. The following changes since commit 5067c0469c643512f24786990e315f9c15cc7d24: ata: Add a new flag to destinguish sas controller (2015-03-19 14:14:43 -0400) are available in the git repository at: git://gi

Re: [PATCH v2] dma: vdma: Fix compilation warnings

2015-03-30 Thread Vinod Koul
On Mon, Mar 30, 2015 at 06:48:29PM +0530, Kedareswara rao Appana wrote: > This patch fixes the following compilation warnings. > In file included from drivers/dma/xilinx/xilinx_vdma.c:26:0: > include/linux/dmapool.h:18:4: warning: 'struct device' declared inside > parameter list > size_t size,

RE: [PATCH] staging: comedi: make comedi_internal.h self-reliant

2015-03-30 Thread Hartley Sweeten
On Friday, March 27, 2015 8:58 AM, Ian Abbott wrote, > Add `#include`s and declare incomplete types to "comedi_internal.h" so > that .c files still compile when it is the first file included. > > Signed-off-by: Ian Abbott > --- > drivers/staging/comedi/comedi_internal.h | 10 ++ > 1 file

RE: [PATCH V5 4/6] perf, x86: handle multiple records in PEBS buffer

2015-03-30 Thread Liang, Kan
> > One corner case needs to mention is that the PEBS hardware doesn't > > deal well with collisions, when PEBS events happen near to each other. > > The records for the events can be collapsed into a single one, and > > it's not possible to reconstruct all events that caused the PEBS > > record,

Re: [PATCH] perf, record: Add clockid parameter

2015-03-30 Thread David Ahern
On 3/30/15 3:17 AM, Peter Zijlstra wrote: I did this on top.. --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -732,13 +732,16 @@ static const struct clockid_map clockids /* available for all events, NMI safe */ CLOCKID_MAP("monotonic", CLOCK_MONOTONIC),

Re: [v3, 3/3] powerpc/powernv: Introduce sysfs control for fastsleep workaround behavior

2015-03-30 Thread Shreyas B Prabhu
On Monday 30 March 2015 03:51 PM, Michael Ellerman wrote: > On Sun, 2015-22-03 at 04:42:59 UTC, "Shreyas B. Prabhu" wrote: >> Fastsleep is one of the idle state which cpuidle subsystem currently >> uses on power8 machines. In this state L2 cache is brought down to a >> threshold voltage. Therefor

<    1   2   3   4   5   6   7   8   9   10   >