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

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.

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

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

[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

[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

[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

[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

[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

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.

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

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:

[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

[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

[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

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 >

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.

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

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

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

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,

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

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

[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

[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

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

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

[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

[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

[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

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

[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

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

[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

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

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

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

[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

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]

[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

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:

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

[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

[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

[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

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

[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

[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

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

[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

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

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]

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

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

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)

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

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

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

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.

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

2015-03-30 Thread Bryan Wu
On Mon, Mar 30, 2015 at 1:55 AM, Ricardo Ribalda Delgado wrote: > Fix errors reported by Geert Uytterhoeven. > > I didn't have the chance to test the changes it in real hardware. > > Thanks, Geert and Ricardo. Ricardo, do you mind folding your fixing patches with original one together and send

RE: [PATCH 0/7] staging: comedi: comedi_fops: some runflag and event handling changes

2015-03-30 Thread Hartley Sweeten
On Friday, March 27, 2015 8:13 AM, Ian Abbott wrote: > Various changes to the core comedi code, mostly to do with spin-lock > usage for the comedi subdevice runflags and event handling. > > 1) staging: comedi: comedi_fops: rename comedi_set_subdevice_runflags() > 2) staging: comedi: comedi_fops:

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

2015-03-30 Thread David Ahern
On 3/30/15 2:24 AM, Peter Zijlstra wrote: I am clearly missing some kernel patch to try out this perf patch. I have the 4 timekeeper ones; none of those modify perf_event code. What other patches are needed? Was this one (or some variant) accepted: https://lkml.org/lkml/2015/2/20/236

Re: NMI watchdog

2015-03-30 Thread Michal Hocko
On Mon 30-03-15 08:14:45, Justin Keller wrote: > Hello, > Although not running a vanilla kernel on this machine, I have reported > the issue to the distribution's bug tracking system. It has been > almost a week with no response, so I am sending this email. > > Multiple times, when I return to my

RE: [V7 PATCH 1/3] ACPICA: Add ACPI _CLS processing

2015-03-30 Thread Moore, Robert
AE_AML_OPERAND_TYPE -- used to indicate an exception raised by a type issue related to the AML code. Used to differentiate between a programmer error (AE_TYPE). > -Original Message- > From: Suravee Suthikulanit [mailto:suravee.suthikulpa...@amd.com] > Sent: Monday, March 30, 2015 7:17

Re: [PATCH] debugfs: allow bad parent pointers to be passed in

2015-03-30 Thread Alex Elder
On 03/30/2015 07:59 AM, Greg KH wrote: > If something went wrong with creating a debugfs file/symlink/directory, > that value could be passed down into debugfs again as a parent dentry. > To make caller code simpler, just error out if this happens, and don't > crash the kernel. > > Reported-by:

Re: [PATCH 01/11] IB/Verbs: Use helpers to check transport and link layer

2015-03-30 Thread Michael Wang
On 03/30/2015 06:22 PM, Doug Ledford wrote: > On Mon, 2015-03-30 at 18:14 +0200, Michael Wang wrote: >> [snip] > There is no "gradually eliminate them" to the suggestion I made. > Remember, my suggestion was to remove the transport and link_layer items > from the port settings and replace it with

Re: [PATCH 4/6] of: add API for changing parameters of fixed link

2015-03-30 Thread Stas Sergeev
30.03.2015 19:06, Florian Fainelli пишет: > So yes, it is a bug in the sense that it is not transparently handled, > but at the same time, the PHY library has no way to know whether a > fixed_link_update callback is being invoked since it is not poking > into the fixed PHY driver. Maybe then it

Re: [RFC PATCH 2/2] Kbuild: avoid partial linking of drivers/built-in.o

2015-03-30 Thread Ard Biesheuvel
On 30 March 2015 at 16:13, Michal Marek wrote: > On 2015-03-30 15:31, Ard Biesheuvel wrote: >> On 30 March 2015 at 15:26, Russell King - ARM Linux >> wrote: >>> On Mon, Mar 30, 2015 at 02:38:35PM +0200, Michal Marek wrote: Is this a limitation of a particular ARM ABI or a limitation of a

Re: [RFC PATCH 06/11] IB/Verbs: Use management helper has_sa() and cap_sa(), for sa-check

2015-03-30 Thread Doug Ledford
On Mon, 2015-03-30 at 18:42 +0200, Michael Wang wrote: > On 03/30/2015 06:16 PM, Doug Ledford wrote: > > On Fri, 2015-03-27 at 16:46 +0100, Michael Wang wrote: > >> Introduce helper has_sa() and cap_sa() to help us check if an IB device > >> or it's port support Subnet Administrator. > > There's

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

2015-03-30 Thread Borislav Petkov
On Mon, Mar 30, 2015 at 09:57:14AM -0700, Dave Hansen wrote: > > + if (is_64bit_mm(mm)) > > + return user_atomic_cmpxchg_inatomic(actual_old_val_ptr, > > + bd_entry_addr, > > + expected_old_val, >

Re: [v3, 1/3] powerpc: Fix cpu_online_cores_map to return only online threads mask

2015-03-30 Thread Shreyas B Prabhu
On Monday 30 March 2015 03:06 PM, Michael Ellerman wrote: > On Sun, 2015-22-03 at 04:42:57 UTC, "Shreyas B. Prabhu" wrote: >> Currently, cpu_online_cores_map returns a mask, which for every core >> that has atleast one online thread, has the first-cpu-of-that-core's bit >> set. > > ... which

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: > - if (is_64bit_mm(mm)) { > - ret = user_atomic_cmpxchg_inatomic(actual_old_val_ptr, > - bd_entry_addr, expected_old_val, new_bd_entry); > - } else { > - u32

Re: [PATCH v4 00/14] Add kdbus implementation

2015-03-30 Thread David Herrmann
Hi On Wed, Mar 25, 2015 at 7:12 PM, Andy Lutomirski wrote: > On Wed, Mar 25, 2015 at 10:29 AM, David Herrmann > wrote: [...] >>> I could be wrong about the lack of use cases. If so, please enlighten me. >> >> We have several dbus APIs that allow clients to register as a special >>

Re: [patch v11 00/23] Introduce ACPI for ARM64 based on ACPI 5.1

2015-03-30 Thread Timur Tabi
On 03/24/2015 09:02 AM, Hanjun Guo wrote: Some fixes since last version: - Add a patch 19/23 for disabling ACPI for Xen on ARM64 for now to fix compile errors on XEN ACPI, Stefano and Julien are ok with this temporary solution. - Add patch "ARM64 / ACPI: Don't unflatten device tree

RE: [PATCH 7/7] staging: comedi: comedi_fops: extend spin-lock scope in comedi_event()

2015-03-30 Thread Hartley Sweeten
On Friday, March 27, 2015 8:13 AM, Ian Abbott wrote: > `comedi_event()` is called from low-level drivers to handle comedi > asynchronous command event flags. As a safety check, it checks the > subdevice's "run" flags to make sure an asynchronous command is running. > It can also change the run

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

2015-03-30 Thread Jassi Brar
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 Jui > Reviewed-by: Arun Parameswaran > Reviewed-by: Scott Branden >

Re: [PATCH 3/4] nohz: add tick_nohz_full_clear_cpus() API

2015-03-30 Thread Chris Metcalf
On 03/30/2015 12:41 PM, Rik van Riel wrote: On 03/30/2015 12:20 PM, Chris Metcalf wrote: I wanted to ping the patch below again, since I haven't heard any feedback. I note that Rik van Riel's change posted this weekend offers similar functionality for userspace. My change offers a convenient

Re: [PATCH 0/9] qspinlock stuff -v15

2015-03-30 Thread Waiman Long
On 03/30/2015 12:29 PM, Peter Zijlstra wrote: On Mon, Mar 30, 2015 at 12:25:12PM -0400, Waiman Long wrote: I did it differently in my PV portion of the qspinlock patch. Instead of just waking up the CPU, the new lock holder will check if the new queue head has been halted. If so, it will set

Re: [RFC PATCH 06/11] IB/Verbs: Use management helper has_sa() and cap_sa(), for sa-check

2015-03-30 Thread Michael Wang
On 03/30/2015 06:16 PM, Doug Ledford wrote: > On Fri, 2015-03-27 at 16:46 +0100, Michael Wang wrote: >> Introduce helper has_sa() and cap_sa() to help us check if an IB device >> or it's port support Subnet Administrator. > There's no functional reason to have both rdma_transport_is_ib and >

Re: [PATCH 3/4] nohz: add tick_nohz_full_clear_cpus() API

2015-03-30 Thread Rik van Riel
On 03/30/2015 12:20 PM, Chris Metcalf wrote: > I wanted to ping the patch below again, since I haven't heard any > feedback. > > I note that Rik van Riel's change posted this weekend offers similar > functionality for userspace. My change offers a convenient API > for, e.g., kernel drivers

Re: [PATCH 0/9] qspinlock stuff -v15

2015-03-30 Thread Waiman Long
On 03/27/2015 10:07 AM, Konrad Rzeszutek Wilk wrote: On Thu, Mar 26, 2015 at 09:21:53PM +0100, Peter Zijlstra wrote: On Wed, Mar 25, 2015 at 03:47:39PM -0400, Konrad Rzeszutek Wilk wrote: Ah nice. That could be spun out as a seperate patch to optimize the existing ticket locks I presume. Yes

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