[PATCH] watchdog: imx2_wdt: adds big endianness support.

2014-05-29 Thread Xiubo Li
This watchdog driver will be working on IMX2+, Vybrid, LS1, LS2+ platforms, and will be in different endianness mode in those SoCs: SoCs CPU endian mode WDT endian mode IMX2+LELE Vybird LE

[PATCH 1/3] memory-failure: Send right signal code to correct thread

2014-05-29 Thread Naoya Horiguchi
From: Tony Luck When a thread in a multi-threaded application hits a machine check because of an uncorrectable error in memory - we want to send the SIGBUS with si.si_code = BUS_MCEERR_AR to that thread. Currently we fail to do that if the active thread is not the primary thread in the process. c

[PATCH 2/3] memory-failure: Don't let collect_procs() skip over processes for MF_ACTION_REQUIRED

2014-05-29 Thread Naoya Horiguchi
From: Tony Luck When Linux sees an "action optional" machine check (where h/w has reported an error that is not in the current execution path) we generally do not want to signal a process, since most processes do not have a SIGBUS handler - we'd just prematurely terminate the process for a proble

[PATCH 3/3] mm/memory-failure.c: support dedicated thread to handle SIGBUS(BUS_MCEERR_AO)

2014-05-29 Thread Naoya Horiguchi
Currently memory error handler handles action optional errors in the deferred manner by default. And if a recovery aware application wants to handle it immediately, it can do it by setting PF_MCE_EARLY flag. However, such signal can be sent only to the main thread, so it's problematic if the applic

[PATCH 0/3] HWPOISON: improve memory error handling for multithread process

2014-05-29 Thread Naoya Horiguchi
This patchset is the summary of recent discussion about memory error handling on multithread application. Patch 1 and 2 is for action required errors, and patch 3 is for action optional errors. This patchset is based on mmotm-2014-05-21-16-57. Patches are also available on the following tree/bran

[PATCH] drm/gk20a/fb: use dma_alloc_coherent() for VRAM

2014-05-29 Thread Alexandre Courbot
GK20A's RAM driver was using CMA functions in order to allocate VRAM. This is wrong because these functions are not exported, which causes compilation to fail when CMA is enabled and Nouveau is built as a module. On top of that the driver was leaking (or rather bleeding) memory. dma_alloc_coherent

Re: fs/dcache.c - BUG: soft lockup - CPU#5 stuck for 22s! [systemd-udevd:1667]

2014-05-29 Thread Al Viro
On Thu, May 29, 2014 at 10:00:49PM -0700, Linus Torvalds wrote: > Yeah, I think that would be good. Except I think you should create a > "dentry_is_dead()" helper function that then has that "if you hold the > dentry or parent lock, this is safe" comment, because for lockref in > general you do ne

Re: [PATCH v2 11/11] sched: replace capacity by activity

2014-05-29 Thread Peter Zijlstra
On Thu, May 29, 2014 at 09:56:24PM +0200, Vincent Guittot wrote: > On 29 May 2014 16:02, Peter Zijlstra wrote: > > On Fri, May 23, 2014 at 05:53:05PM +0200, Vincent Guittot wrote: > >> @@ -6052,8 +6006,8 @@ static inline void update_sd_lb_stats(struct lb_env > >> *env, struct sd_lb_stats *sd > >>

Re: [PATCH V4 2/8] opp: call of_node_{get|put}() from of_init_opp_table()

2014-05-29 Thread Sachin Kamat
Hi Viresh, On 27 May 2014 17:20, Viresh Kumar wrote: > All callers of of_init_opp_table() are required to take reference of > dev->of_node, by initiating calls to of_node_{get|put}(), before and after > calling of_init_opp_table(). > > Its better to call these from within of_init_opp_table(), no

Re: [PATCH -tip/urgent ] [BUGFIX] perf/probe: Fix a segfault if asked for variable it doesn't find

2014-05-29 Thread Masami Hiramatsu
(2014/05/30 15:03), Namhyung Kim wrote: > Hi Masami, > > On Thu, 29 May 2014 19:52:32 +0900, Masami Hiramatsu wrote: >> Fix a segfault bug by asking for variable it doesn't find. >> Since the convert_variable() didn't handle error code returned >> from convert_variable_location(), it just passed a

Re: [PATCH v2 10/11] sched: move cfs task on a CPU with higher capacity

2014-05-29 Thread Peter Zijlstra
On Thu, May 29, 2014 at 09:37:39PM +0200, Vincent Guittot wrote: > On 29 May 2014 11:50, Peter Zijlstra wrote: > > On Fri, May 23, 2014 at 05:53:04PM +0200, Vincent Guittot wrote: > >> If the CPU is used for handling lot of IRQs, trig a load balance to check > >> if > >> it's worth moving its tas

Re: [RFC][PATCH] tracing: Print nasty banner when trace_printk() is in use

2014-05-29 Thread Olaf Titz
> * > ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE** Is it really that bad to warrant this kind of warning? Not knowing about the issue at all, I read from the original description that the wastage is four pages of memory times

[RFC v2] Bluetooth: Keep master role when SCO or eSCO is active

2014-05-29 Thread Kiran Kumar Raparthy
From: "hyungseoung.yoo" Preserve the master role when SCO or eSCO is active as this improves compatability with lots of headset and chipset combinations. This is one of the number of patches from the Android AOSP common.git tree, which is used on almost all Android devices. It looks like it woul

[PATCH] ahci: Add Device ID for HighPoint RocketRaid 642L

2014-05-29 Thread Jérôme Carretero
This device normally comes with a proprietary driver, using a web GUI to configure RAID: http://www.highpoint-tech.com/USA_new/series_rr600-download.htm But thankfully it also works out of the box with the AHCI driver, being just a Marvell 88SE9235. Devices 640L, 644L, 644LS should also be suppor

Re: [PATCH v2 04/05] staging: board: Initial board staging support

2014-05-29 Thread Magnus Damm
On Thu, May 29, 2014 at 11:03 PM, Paul Bolle wrote: > On Thu, 2014-05-29 at 22:53 +0900, Magnus Damm wrote: >> --- 0011/drivers/staging/board/Kconfig >> +++ work/drivers/staging/board/Kconfig2014-05-29 22:32:39.0 +0900 >> @@ -1,5 +1,6 @@ >> config STAGING_BOARD >> boolean "Stagin

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Minchan Kim
On Thu, May 29, 2014 at 06:24:02PM -0700, Linus Torvalds wrote: > On Thu, May 29, 2014 at 5:50 PM, Minchan Kim wrote: > >> > >> You could also try Dave's patch, and _not_ do my mm/vmscan.c part. > > > > Sure. While I write this, Rusty's test was crached so I will try Dave's > > patch, > > them yo

[PATCH V8 0/2] serial/uart/8250: Introduce tunable RX trigger I/F

2014-05-29 Thread Yoshihiro YUNOMAE
Hi Greg, This patch set introduces tunable RX interrupt trigger I/F for 8250 serials. I just split V7's patch up into 2 patches, and all functions are not changed from previous version. V6 patch was reviewed by Stephen Warren and acked, but I removed the 'Reviewed-by' for this patch set just in c

Re: [PATCH]x86 efi: do not export efi runtime map in case old map

2014-05-29 Thread Dave Young
On 05/30/14 at 03:08pm, Simon Horman wrote: > On Fri, May 30, 2014 at 01:54:47PM +0800, Dave Young wrote: > > Ccing Simon. > > > > Simon, appologize for not ccing you about this kernel patch. I see you have > > applied the userspace patch for checking sysfs runtime existance. > > > > The userspac

Re: [PATCH 2/2] serial: imx: disable the receiver ready interrupt for imx_stop_rx

2014-05-29 Thread Huang Shijie
On Fri, May 30, 2014 at 07:52:25AM +0200, Dirk Behme wrote: > On 23.05.2014 06:32, Huang Shijie wrote: > >This patch disables the receiver ready interrupt for imx_stop_rx. > >It reduces the interrupt numbers when the uart is going to close > >or suspend. > > > >Signed-off-by: Huang Shijie > >--- >

[PATCH V8 1/2] serial/uart: Introduce device specific attribute group to uart_port structure

2014-05-29 Thread Yoshihiro YUNOMAE
Current serial device driver has the common sysfs I/F for all serial devices, but it does not have device specific sysfs I/F. To make device specific sysfs I/F, this patch introduces device specific attribute group to uart_port structure. Changes in V8: - Divide this patch from V7's patch based o

[PATCH V8 2/2] serial/uart/8250: Add tunable RX interrupt trigger I/F of FIFO buffers

2014-05-29 Thread Yoshihiro YUNOMAE
Add tunable RX interrupt trigger I/F of FIFO buffers. Serial devices are used as not only message communication devices but control or sending communication devices. For the latter uses, normally small data will be exchanged, so user applications want to receive data unit as soon as possible for r

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Minchan Kim
Final result, I tested the machine below patch (Dave suggested + some part I modified) and I couldn't see the problem any more(tested 4hr, I will queue it into the machine during weekend for long running test if I don't get more enhanced version before leaving the office today) but as I reported i

linux-next: build failure after merge of the pinctrl tree

2014-05-29 Thread Stephen Rothwell
irst use in this function) Caused by commit 294d1351ff47 ("pinctrl: sirf: switch to using allocated state container"). I have used the pinctrl tree from next-20140529 for today. -- Cheers, Stephen Rothwells...@canb.auug.org.au signature.asc Description: PGP signature

Re: [PATCH]x86 efi: do not export efi runtime map in case old map

2014-05-29 Thread Simon Horman
On Fri, May 30, 2014 at 01:54:47PM +0800, Dave Young wrote: > Ccing Simon. > > Simon, appologize for not ccing you about this kernel patch. I see you have > applied the userspace patch for checking sysfs runtime existance. > > The userspace patch depends on this patch but it is not harmful even w

Re: [PATCH] CMA: correct unlock target

2014-05-29 Thread Marek Szyprowski
Hello, On 2014-05-29 16:56, Laura Abbott wrote: On 5/29/2014 12:34 AM, Marek Szyprowski wrote: > Hello, > > On 2014-05-29 08:29, Joonsoo Kim wrote: >> 'cma: Remove potential deadlock situation' introduces per cma area mutex >> for bitmap management. It is good, but there is one mistake. When we

Re: [PATCH v2] arm64: kernel: initialize broadcast hrtimer based clock event device

2014-05-29 Thread Preeti U Murthy
On 05/29/2014 10:46 PM, Lorenzo Pieralisi wrote: > On platforms implementing CPU power management, the CPUidle subsystem > can allow CPUs to enter idle states where local timers logic is lost on power > down. To keep the software timers functional the kernel relies on an > always-on broadcast timer

Re: [PATCH -tip/urgent ] [BUGFIX] perf/probe: Fix a segfault if asked for variable it doesn't find

2014-05-29 Thread Namhyung Kim
Hi Masami, On Thu, 29 May 2014 19:52:32 +0900, Masami Hiramatsu wrote: > Fix a segfault bug by asking for variable it doesn't find. > Since the convert_variable() didn't handle error code returned > from convert_variable_location(), it just passed an incomplete > variable field and then a segfault

Re: [PATCH 4/4] virtio_ring: unify direct/indirect code paths.

2014-05-29 Thread Rusty Russell
"Michael S. Tsirkin" writes: > On Thu, May 29, 2014 at 04:56:45PM +0930, Rusty Russell wrote: >> virtqueue_add() populates the virtqueue descriptor table from the sgs >> given. If it uses an indirect descriptor table, then it puts a single >> descriptor in the descriptor table pointing to the kma

Re: [Patch V3 0/5] I2C ACPI operation region handler

2014-05-29 Thread Lan Tianyu
On 05/20/2014 08:59 PM, Lan Tianyu wrote: ACPI 5.0 spec(5.5.2.4.5) defines GenericSerialBus(i2c, spi, uart) operation region. It allows ACPI aml code able to access such kind of devices to implement some ACPI standard method. On the Asus T100TA, Bios use GenericSerialBus operation region to acce

Re: [PATCH] arm64: kernel: initialize broadcast hrtimer based clock event device

2014-05-29 Thread Preeti U Murthy
On 05/29/2014 06:09 PM, Mark Rutland wrote: > Hi Preeti, > > On Thu, May 29, 2014 at 12:04:36PM +0100, Preeti U Murthy wrote: >> Hi Lorenzo, >> >> On 05/29/2014 02:53 PM, Lorenzo Pieralisi wrote: >>> On platforms implementing CPU power management, the CPUidle subsystem >>> can allow CPUs to enter

Re: [PATCH] block: virtio_blk: don't hold spin lock during world switch

2014-05-29 Thread Ming Lei
On Fri, May 30, 2014 at 11:35 AM, Jens Axboe wrote: > On 2014-05-29 21:34, Ming Lei wrote: >> >> On Fri, May 30, 2014 at 11:19 AM, Jens Axboe wrote: >>> >>> On 2014-05-29 20:49, Ming Lei wrote: Firstly, it isn't necessary to hold lock of vblk->vq_lock when notifying hypervisor

Re: [PATCH] staging: android: fix Missing a blank line after declarations warnings

2014-05-29 Thread Scott Weir
On Wed, May 28, 2014 at 02:30:27PM -0700, Greg KH wrote: > On Wed, May 28, 2014 at 06:52:51PM +1000, Scott Weir wrote: > > This patch corrects coding style issue: > > WARNING: Missing a black line after declarations > > > > Signed-off-by: Scott Weir > > --- > > drivers/staging/android/sync_debug

Re: [PATCH]x86 efi: do not export efi runtime map in case old map

2014-05-29 Thread Dave Young
Ccing Simon. Simon, appologize for not ccing you about this kernel patch. I see you have applied the userspace patch for checking sysfs runtime existance. The userspace patch depends on this patch but it is not harmful even without this kernel patch. So applying the userspace patch before this on

Re: [PATCH 2/2] serial: imx: disable the receiver ready interrupt for imx_stop_rx

2014-05-29 Thread Dirk Behme
On 23.05.2014 06:32, Huang Shijie wrote: This patch disables the receiver ready interrupt for imx_stop_rx. It reduces the interrupt numbers when the uart is going to close or suspend. Signed-off-by: Huang Shijie --- drivers/tty/serial/imx.c |4 1 files changed, 4 insertions(+), 0 de

Re: [RFC/PATCH 0/2] perf tools: Factor sort elide

2014-05-29 Thread Namhyung Kim
On Fri, 23 May 2014 17:15:45 +0200, Jiri Olsa wrote: > hi, > factoring the elide code to make perf_hpp__should_skip > function cheap call/check again. Both look good to me! Acked-by: Namhyung Kim > > Also I was wondering.. do we want to get rid of sort_entry > structs in favor of perf_hpp__* s

Re: [PATCH 0/2] x86,vdso: vdso build fixes and improvements

2014-05-29 Thread Stephen Rothwell
Hi Andy, On Thu, 29 May 2014 15:49:52 -0700 Andy Lutomirski wrote: > > On Thu, May 29, 2014 at 3:41 PM, Paul Gortmaker > wrote: > > On 14-05-29 05:57 PM, Andy Lutomirski wrote: > >> Patch 1 causes make;make to behave similarly to make if vdso2c fails. > >> Patch 2 hopefully fixes x86 crossbuilds

[PATCH 3/3] lib: crc32: Add some additional __pure annotations

2014-05-29 Thread George Spelvin
In case they help the compiler. Signed-off-by: George Spelvin --- As long as I'm messing with it. I also have a large patch to do this to a number of lib/ headers if anyone wants. Redundant "extern" removed to keep things within 80 columns. include/linux/crc32.h | 6 +++--- lib/crc32.c

[PATCH 2/3] lib: crc32: mark test data __initconst

2014-05-29 Thread George Spelvin
>From 1ecab5281e3cfc8c2a61648410c8b25ba2654fcb Mon Sep 17 00:00:00 2001 From: George Spelvin Date: Thu, 29 May 2014 00:08:03 -0400 Subject: [PATCH 2/3] lib: crc32: mark test data __initconst So it gets discarded after the selftest. Signed-off-by: George Spelvin --- This is the patch I started w

[PATCH 1/3] lib: crc32: Greatly shrink CRC combining code

2014-05-29 Thread George Spelvin
There's no need for a full 32x32 matrix, when rows before the last are just shifted copies of the rows after them. There's still room for improvement (especially on X86 processors with CRC32 and PCLMUL instructions), but this is a large step in the right direction. The internal primitive is now c

Re: [PATCHv5 2/4] mailbox: Introduce framework for mailbox

2014-05-29 Thread Jassi Brar
On Thu, May 29, 2014 at 9:13 PM, Matt Porter wrote: > On Fri, May 16, 2014 at 07:03:25PM +0530, Jassi Brar wrote: >> On 15 May 2014 19:57, Arnd Bergmann wrote: >> > On Thursday 15 May 2014 11:41:00 Jassi Brar wrote: > > ... > >> >> +struct mbox_controller { >> >> + struct device *dev; >> >> +

Re: [PATCH v2 03/18] PCI: designware: Configuration space should be specified in 'reg'

2014-05-29 Thread Kishon Vijay Abraham I
Hi, On Thursday 29 May 2014 10:02 PM, Murali Karicheri wrote: > On 5/29/2014 2:38 AM, ABRAHAM, KISHON VIJAY wrote: >> The configuration address space has so far been specified in *ranges*, >> however it should be specified in *reg* making it a platform MEM resource. >> Hence used 'platform_get_res

Re: [PATCH v4 00/16] PCI/iommu: Fix DMA alias problems

2014-05-29 Thread Andrew Cooks
On Thu, May 29, 2014 at 4:29 AM, Bjorn Helgaas wrote: > On Thu, May 22, 2014 at 05:07:23PM -0600, Alex Williamson wrote: >> For testing, this version can be found in my git tree: >> >> git://github.com/awilliam/linux-vfio.git dma-alias-v4 >> >> Please report any issues. >> >> v4: >> - Change dma_

Re: [RFC PATCH] crypto: crc32c-pclmul - Use pmovzxdq to shrink K_table

2014-05-29 Thread George Spelvin
Olay, recompiled with the acpi-cpufreq driver, so the performance governor actually works, pegging the frequency at 3900 MHz. Existing (old) code: [ 455.641397] [ 455.641397] testing speed of crc32c [ 455.641403] test 0 ( 16 byte blocks, 16 bytes per update, 1 updates): 73 cycles/o

Re: [PATCH v11 0/3] Exynos 5410 support

2014-05-29 Thread Tomasz Figa
Hi Andreas, On 29.05.2014 20:00, Andreas Färber wrote: [snip] > Some of the low-hanging fruit like no heartbeat/SD LEDs, no RTC, no > usb3503 and thus no network I'm already looking into myself. For now I'm > putting everything into the SMDK .dts, but I guess we'll need to split > off -odroidxu.

Re: [PATCH v3 1/5] sc_phy:SmartCard(SC) PHY interface to SC controller

2014-05-29 Thread Satish Patel
On 5/29/2014 9:21 PM, Greg KH wrote: On Thu, May 29, 2014 at 02:26:55PM +0530, Satish Patel wrote: On 5/29/2014 12:14 AM, Greg KH wrote: On Wed, May 28, 2014 at 02:27:13PM +0530, Satish Patel wrote: +/** + * struct sc_phy - The basic smart card phy structure + * + * @dev: phy device + * @p

Re: [PATCH] clk: exynos5420: Keep aclk66_peric enabled during boot

2014-05-29 Thread Tomasz Figa
Hi, On 30.05.2014 00:29, Mike Turquette wrote: > Quoting Doug Anderson (2014-05-29 14:21:36) >> Right now if you've got earlyprintk enabled on exynos5420-peach-pit >> then you'll get a hang on boot. Here's why: >> >> 1. The i2c-s3c2410 driver will probe at subsys_initcall. It will >>enable i

Re: [PATCH v4 1/3] mfd: intel_soc_pmic: Core driver

2014-05-29 Thread Zhu, Lejun
On 5/29/2014 7:40 PM, Lee Jones wrote: > [...] > >> +static int intel_soc_pmic_find_gpio_irq(struct device *dev) >> +{ >> +struct gpio_desc *desc; >> +int irq; >> + >> +desc = devm_gpiod_get_index(dev, KBUILD_MODNAME, 0); > > What does "KBUILD_MODNAME" translate to? It translates i

Re: [PATCHSET 00/27] perf tools: Add support to accumulate hist periods (v11)

2014-05-29 Thread Namhyung Kim
On Thu, 29 May 2014 15:59:00 +0200, Jiri Olsa wrote: > On Thu, May 29, 2014 at 12:58:03PM +0900, Namhyung Kim wrote: >> Hello, >> >> This is a new attempt to implement cumulative hist period report. >> This work begins from Arun's SORT_INCLUSIVE patch [1] but I completely >> rewrote it from scratc

Re: fs/dcache.c - BUG: soft lockup - CPU#5 stuck for 22s! [systemd-udevd:1667]

2014-05-29 Thread Linus Torvalds
On Thu, May 29, 2014 at 9:50 PM, Al Viro wrote: > > BTW, how serious is the problem with __lockref_is_dead(&dentry->d_lockref) > with only ->d_parent->d_lock held? From my reading of lib/lockref.c it > should be safe - we only do lockref_mark_dead() with ->d_parent->d_lock > held, and it'll provi

Re: [PATCH v4 2/3] mfd: intel_soc_pmic: Crystal Cove support

2014-05-29 Thread Zhu, Lejun
On 5/29/2014 7:49 PM, Lee Jones wrote: > On Thu, 29 May 2014, Zhu, Lejun wrote: > >> This patch provides chip-specific support for Crystal Cove. Crystal >> Cove is the PMIC in Baytrail-T platform. (...) >> +enum crystal_cove_irq { >> +PWRSRC_IRQ = 0, >> +THRM_IRQ, >> +BCU_IRQ, >> +

Re: [PATCH v4 3/3] mfd: intel_soc_pmic: Build files

2014-05-29 Thread Zhu, Lejun
On 5/29/2014 7:43 PM, Lee Jones wrote: >> This patch adds Intel SoC PMIC support to the build files. > These changes shouldn't really be in a separate patch. I'll move them into the first (core.c) patch. Best Regards Lejun -- To unsubscribe from this list: send the line "unsubscribe linux-kern

Re: fs/dcache.c - BUG: soft lockup - CPU#5 stuck for 22s! [systemd-udevd:1667]

2014-05-29 Thread Al Viro
On Thu, May 29, 2014 at 12:14:51PM -0700, Linus Torvalds wrote: > Yeah, I don't think you can reproduce that, but I guess renaming > directories into each other (two renames needed) could trigger an ABBA > deadlock by changing the topological order of dentry/parent. > > I suspect there's no way in

Re: [PATCH 18/27] perf tools: Add callback function to hist_entry_iter

2014-05-29 Thread Namhyung Kim
On Thu, 29 May 2014 15:16:51 +0200, Jiri Olsa wrote: > On Thu, May 29, 2014 at 12:58:21PM +0900, Namhyung Kim wrote: >> +static int hist_iter__report_callback(struct hist_entry_iter *iter, >> + struct addr_location *al, void *arg) >> +{ >> +int err = 0; >> +

Re: [RFC PATCH 3/3] clk: tegra: Implement Tegra124 shared/cbus clks

2014-05-29 Thread Mike Turquette
Quoting Nishanth Menon (2014-05-29 16:22:45) > On 05/26/2014 08:07 AM, Thierry Reding wrote: > > On Wed, May 14, 2014 at 12:35:18PM -0700, Mike Turquette wrote: > >> Quoting Thierry Reding (2014-05-14 07:27:40) > > [...] > >>> As for shared clocks I'm only aware of one use-case, namely EMC scaling.

[PATCH 6/6] staging: comedi: addi_apci_1564: cleanup v_ADDI_Interrupt()

2014-05-29 Thread Chase Southwood
Move the function apci1564_interrupt() from hwdrv_apci1564.c to addi_apci_1564.c. On moving, for now just strip out all of the code for interrupts that the driver does not yet support at this time. Rename the variable ui_InterruptStatus_1564 to ctrl, and change the return from IRQ_RETVAL(1) to IR

Re: Unionmount and overlayfs testsuite

2014-05-29 Thread J. R. Okajima
"J. R. Okajima": > - readlink.test, > fs_op readlink $file -R $testdir/direct_dir_sym100 ${termslash:+-E > EINVAL} > It expects "$testdir/direct_dir_sym100". Does it mean UnionMount > converts the target path? > For example, > - /u = /rw + /ro > - /rw/symlinkA doesn't exist > -

[PATCH 5/6] staging: comedi: addi_apci_1564: hook-up the interrupt subdevice

2014-05-29 Thread Chase Southwood
The board supported by this driver can generate an interrupt based on the state of input channels 0-15. The apci1564_di_config() function is used to configure which inputs are used to generate the interrupt. Currently this function is broken since it does not follow the comedi API for insn_config

[PATCH 3/6] staging: comedi: addi_apci_1564: introduce apci1564_private struct

2014-05-29 Thread Chase Southwood
The addi_private struct defined in addi-data/addi_common.h is very bloated and contains many fields which addi_apci_1564 does not require. In the interest of eventually removing this driver's dependency on addi_common.h, we can create a private data struct specifically for addi_apci_1564 containin

[PATCH 4/6] staging: comedi: addi_apci_1564: add a subdevice for Change-of-State interrupt support

2014-05-29 Thread Chase Southwood
This board supports an interrupt that can be generated by an AND/OR combination of 16 of the input channels. Create a separate subdevice to handle this interrupt. Signed-off-by: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeten --- drivers/staging/comedi/drivers/addi_apci_1564.c | 16 +

[PATCH 1/6] staging: comedi: addi_apci_1564: remove send_sig() use

2014-05-29 Thread Chase Southwood
The addi-data drivers use send_sig() to let the user know when an interrupt has occurred. The "standard" way to do this in the comedi subsystem is to have a subdevice that supports asynchronous commands and use comedi_event() to signal the user. Remove the send_sig() usage in this driver. Signed-

[PATCH 2/6] staging: comedi: addi_apci_1564: remove use of devpriv->b_OutputMemoryStatus

2014-05-29 Thread Chase Southwood
This member of the private data struct is only set at one location in the entire driver, and then never even used for anything. Let's just remove its use. Signed-off-by: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeeten --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c | 5 ---

[PATCH 0/6] staging: comedi: addi_apci_1564: fix Change-of-State interrupt functionality.

2014-05-29 Thread Chase Southwood
This patchset introduces a new private data struct for this driver, adds all of the code required to support Change-of-State interrupts for the digital input subsystem, and finally focuses and fixes apci1564_interrupt() to service this type of interrupt correctly. Chase Southwood (6): staging: c

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Linus Torvalds
On Thu, May 29, 2014 at 7:12 PM, Minchan Kim wrote: > > Interim report, > > And result is as follows, It reduce about 800-byte compared to > my first report but still stack usage seems to be high. > Really needs diet of VM functions. Yes. And in this case uninlining things might actually help, be

Re: Unionmount and overlayfs testsuite

2014-05-29 Thread Sedat Dilek
On Fri, May 30, 2014 at 6:15 AM, Sedat Dilek wrote: > On Thu, May 29, 2014 at 10:59 PM, David Howells wrote: >> Sedat Dilek wrote: >> >>> "Fixable" in your testsuite? >> >> Done and pushed. >> > > Thanks. > > I still see lots of... > > umount: /mnt: not mounted > > ...and impermissible.test fail

Re: [PATCH 0/3] staging: comedi: addi_apci_1564: prepare for adding Change-of-State interrupt support

2014-05-29 Thread Chase Southwood
Hi Greg, On Sat, May 24, 2014 at 5:23 PM, Chase Southwood wrote: > This patchset adds the required subdevice for supporting DI COS interrupts, > as well as introducing a driver-specific private data struct that will > make the COS interrupt operations much more straightforward and clean. > > Chas

Re: Unionmount and overlayfs testsuite

2014-05-29 Thread Sedat Dilek
On Thu, May 29, 2014 at 10:59 PM, David Howells wrote: > Sedat Dilek wrote: > >> "Fixable" in your testsuite? > > Done and pushed. > Thanks. I still see lots of... umount: /mnt: not mounted ...and impermissible.test fails here... *** *** ./run.sh impermissible.test *** umount: /mnt: not moun

[PATCH 1/2] hugetlb: restrict hugepage_migration_support() to x86_64

2014-05-29 Thread Naoya Horiguchi
Curretly hugepage migration is available for all archs which support pmd-level hugepage, but testing is done only for x86_64 and there're bugs for other archs. So to avoid breaking such archs, this patch limits the availability strictly to x86_64 until developers of other archs get interested in en

[PATCH 2/2] hugetlb: rename hugepage_migration_support() to ..._supported()

2014-05-29 Thread Naoya Horiguchi
We already have a function named hugepage_supported(), and the similar name hugepage_migration_support() is a bit unconfortable, so let's rename it hugepage_migration_supported(). Signed-off-by: Naoya Horiguchi --- include/linux/hugetlb.h | 4 ++-- mm/hugetlb.c| 2 +- mm/migrate.c

Re: [PATCH v3 3/5] char: ti-usim: Add driver for USIM module on AM43xx

2014-05-29 Thread Satish Patel
On 5/29/2014 9:23 PM, Greg Kroah-Hartman wrote: On Thu, May 29, 2014 at 03:35:37PM +0530, Satish Patel wrote: +enum usim_card_mode { + USIM_CARD_MODE_ASYNC = 0, /* asynchronous mode */ + USIM_CARD_MODE_SYNC_TYPE1, /* synchronous mode: Type 1 */ + USIM_CARD_MODE_SYN

Re: [PATCH v3 1/5] sc_phy:SmartCard(SC) PHY interface to SC controller

2014-05-29 Thread Satish Patel
On 5/29/2014 7:17 PM, Rob Herring wrote: On Thu, May 29, 2014 at 3:34 AM, Satish Patel wrote: On 5/29/2014 12:23 AM, Greg KH wrote: On Wed, May 28, 2014 at 02:27:13PM +0530, Satish Patel wrote: SmartCard controller uses this interface to communicate with SmartCard via PHY Some SmartCar

Re: [PATCH v11 0/3] Exynos 5410 support

2014-05-29 Thread Tushar Behera
On Thu, May 29, 2014 at 11:30 PM, Andreas Färber wrote: > Hi Tarek, > > > And I reproducibly get failures for CPUs 1-3, resulting in only one CPU > in /proc/cpuinfo (compared to 4 on downstream 3.14): > > [0.045778] CPU: Testing write buffer coherency: ok > [0.045968] /cpus/cpu@0 missing c

linux-next: manual merge of the omap_dss2 tree with the arm-soc tree

2014-05-29 Thread Stephen Rothwell
Hi Tomi, Today's linux-next merge of the omap_dss2 tree got a conflict in arch/arm/boot/dts/am437x-gp-evm.dts between commit 99ffa6425f1b ("ARM: dts: am437x-gp-evm: add support for parallel NAND flash") from the arm-soc tree and commit 0186bec97131 ("ARM: dts: am437x-gp-evm: add LCD data") from th

Re: [PATCH] block: virtio_blk: don't hold spin lock during world switch

2014-05-29 Thread Ming Lei
On Fri, May 30, 2014 at 11:19 AM, Jens Axboe wrote: > On 2014-05-29 20:49, Ming Lei wrote: >> >> Firstly, it isn't necessary to hold lock of vblk->vq_lock >> when notifying hypervisor about queued I/O. >> >> Secondly, virtqueue_notify() will cause world switch and >> it may take long time on some

Re: Unionmount and overlayfs testsuite

2014-05-29 Thread J. R. Okajima
David Howells: > http://git.infradead.org/users/dhowells/unionmount-testsuite.git I've found some interesting cases. - impermissible.test, open_file_as_bin -t -w $file -E EACCES When $termslash is "/", a '/' is appended to the expanded $file, such as "/path/fileA/". If fileA is a reg

Re: [PATCH] block: virtio_blk: don't hold spin lock during world switch

2014-05-29 Thread Jens Axboe
On 2014-05-29 21:34, Ming Lei wrote: On Fri, May 30, 2014 at 11:19 AM, Jens Axboe wrote: On 2014-05-29 20:49, Ming Lei wrote: Firstly, it isn't necessary to hold lock of vblk->vq_lock when notifying hypervisor about queued I/O. Secondly, virtqueue_notify() will cause world switch and it may

Re: [PATCH 5/7 v6] trace, RAS: Add eMCA trace event interface

2014-05-29 Thread Chen, Gong
On Thu, May 29, 2014 at 09:12:51AM -0400, Steven Rostedt wrote: > What do you think gets recorded in the ring buffer? The pointer to the > string? No! You copy the entire string into the ring buffer, with > markers and all. How big is that string? 60 chars? 80? I see you > recording meta data there

linux-next: build failure after merge of the mmc tree

2014-05-29 Thread Stephen Rothwell
Hi Chris, After merging the mmc tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/mmc/host/sunxi-mmc.c:25:29: fatal error: linux/clk/sunxi.h: No such file or directory Caused by commit 19b7f796c375 ("mmc: sunxi: Add driver for SD/MMC hosts found on Allwinner sunx

[PATCH]x86 efi: do not export efi runtime map in case old map

2014-05-29 Thread Dave Young
For ioremapped efi memory aka old_map the virt addresses are not persistant across kexec reboot. kexec-tools will read the runtime maps from sysfs then pass them to 2nd kernel and assuming kexec efi boot is ok. This will cause kexec boot failure. To address this issue do not export runtime maps i

Re: [PATCH v2 2/5] clk: bcm281xx: implement prerequisite clocks

2014-05-29 Thread Alex Elder
On 05/23/2014 07:53 PM, Mike Turquette wrote: > Quoting Alex Elder (2014-05-20 05:52:39) >> @@ -743,11 +746,16 @@ struct clk *kona_clk_setup(struct kona_clk *bcm_clk) >> clk = clk_register(NULL, &bcm_clk->hw); >> if (IS_ERR(clk)) { >> pr_err("%s: error registering cl

Re: [PATCH] block: virtio_blk: don't hold spin lock during world switch

2014-05-29 Thread Jens Axboe
On 2014-05-29 20:49, Ming Lei wrote: Firstly, it isn't necessary to hold lock of vblk->vq_lock when notifying hypervisor about queued I/O. Secondly, virtqueue_notify() will cause world switch and it may take long time on some hypervisors(such as, qemu-arm), so it isn't good to hold the lock and

[RFT PATCH -next v3] [BUGFIX] kprobes: Fix "Failed to find blacklist" error on ia64 and ppc64

2014-05-29 Thread Masami Hiramatsu
On ia64 and ppc64, the function pointer does not point the entry address of the function, but the address of function discriptor (which contains the entry address and misc data.) Since the kprobes passes the function pointer stored by NOKPROBE_SYMBOL() to kallsyms_lookup_size_offset() for initalizi

Re: [PATCH V2 1/2] ftrace: Make saved_cmdlines use seq_read

2014-05-29 Thread Steven Rostedt
On Thu, 20 Feb 2014 17:44:31 +0900 Yoshihiro YUNOMAE wrote: > Current tracing_saved_cmdlines_read() implementation is naive; > simply allocate a big buffer, construct output data on the > buffer for each read operation, and then copy a portion of > the buffer to the user space buffer. This can c

Re: [PATCH 2/3] hwmon: (iManager2) Add support for IT8516/18/28

2014-05-29 Thread Guenter Roeck
On 05/28/2014 10:57 PM, Wei-Chun Pan wrote: Advantech's new module comes equipped with "iManager" - an embedded controller (EC), providing embedded features for system integrators to increase reliability and simplify integration. This patch add the MFD driver for enabling Advantech iM

Ask for help on the memory allocation for process shared mutex (resend with plain text)

2014-05-29 Thread yang ben
Dear experts, I came across a memory/mutex issue. Would you kindly shed some light on it? I use pthread_mutex_xxx API to protect processes in user space. Since it should be process shared, I allocated a shared memory to store pthread_mutex_t structure. The shared memory is allocated using vmallo

[PATCH] block: virtio_blk: don't hold spin lock during world switch

2014-05-29 Thread Ming Lei
Firstly, it isn't necessary to hold lock of vblk->vq_lock when notifying hypervisor about queued I/O. Secondly, virtqueue_notify() will cause world switch and it may take long time on some hypervisors(such as, qemu-arm), so it isn't good to hold the lock and block other vCPUs. On arm64 quad core

Re: [RFT PATCH -next v2] [BUGFIX] kprobes: Fix "Failed to find blacklist" error on ia64 and ppc64

2014-05-29 Thread Masami Hiramatsu
(2014/05/30 4:13), Suzuki K. Poulose wrote: >> @@ -2042,7 +2043,8 @@ static int __init populate_kprobe_blacklist(unsigned >> long *start, >> unsigned long offset = 0, size = 0; >> >> for (iter = start; iter < end; iter++) { >> -if (!kallsyms_lookup_size_offset(*iter, &size,

Re: [PATCH v3] pinctrl: to avoid duplicated calling enable_pinmux_setting for a pin

2014-05-29 Thread FanWu
On 05/30/2014 03:19 AM, Stephen Warren wrote: On 05/25/2014 08:43 PM, f...@marvell.com wrote: From: Fan Wu What the patch did: 1.To call pinmux_disable_setting ahead of pinmux_enable_setting in each time of calling pinctrl_select_state 2.Remove the HW disable operation in in pinmux_disable_

Re: Performance regression in v3.14

2014-05-29 Thread Greg Kroah-Hartman
On Wed, May 28, 2014 at 09:59:45AM +0200, Johan Hovold wrote: > [ +CC: Greg, Doug, Stratos, Yuyang ] > > On Wed, May 21, 2014 at 11:00:51AM +0200, Johan Hovold wrote: > > On Wed, May 07, 2014 at 07:10:49AM -0700, Dirk Brandewie wrote: > > > On 05/06/2014 10:40 PM, Viresh Kumar wrote: > > > > Cc'in

Re: [PATCH] export efi.flags to sysfs

2014-05-29 Thread Dave Young
On 05/29/14 at 08:45am, Vivek Goyal wrote: > On Thu, May 29, 2014 at 10:08:37AM +0800, Dave Young wrote: > > On 05/28/14 at 08:40am, Vivek Goyal wrote: > > > On Wed, May 28, 2014 at 10:13:59AM +0800, Dave Young wrote: > > > > On 05/27/14 at 09:34am, Vivek Goyal wrote: > > > > > On Mon, May 26, 2014

Re: [PATCH 0/5] mm: i_mmap_mutex to rwsem

2014-05-29 Thread Davidlohr Bueso
ping? Andrew any chance of getting this in -next? On Thu, 2014-05-22 at 20:33 -0700, Davidlohr Bueso wrote: > This patchset extends the work started by Ingo Molnar in late 2012, > optimizing the anon-vma mutex lock, converting it from a exclusive mutex > to a rwsem, and sharing the lock for read-o

[PATCH 9/10] ACPI / scan: always register ACPI LPSS scan handler

2014-05-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Prevent platform devices from being created for ACPI LPSS devices if CONFIG_X86_INTEL_LPSS is unset by compiling out the LPSS scan handler's callbacks only in that case and still compiling its device ID list in and registering the scan handler in either case. This change

[PATCH 8/10] ACPI / scan: always register memory hotplug scan handler

2014-05-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Prevent platform devices from being created for ACPI memory device objects if CONFIG_ACPI_HOTPLUG_MEMORY is unset by compiling out the memory hotplug scan handler's callbacks only in that case and still compiling its device ID list in and registering the scan handler in ei

[PATCH 3/10] ACPI / scan: drop IDs that do not comply with the ACPI PNP ID rule

2014-05-29 Thread Rafael J. Wysocki
From: Zhang Rui The PNP ACPI scan handler device ID list includes all the IDs from all of the struct pnp_device_id instances in the tree, but some of them do not follow the ACPI PNP ID rule (3 letters + 4 hex digits). For those IDs, the coressponding devices will never be enumerated via ACPI, so

[PATCH 6/10] ACPI / scan: Change the meaning of missing .attach() in scan handlers

2014-05-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Currently, some scan handlers can be compiled out entirely, which leaves the device objects they normally attach to without a scan handler. This isn't a problem as long as we don't have any default enumeration mechanism that applies to all devices without a scan handler.

[PATCH 4/10] ACPI / scan: drop unsupported serial IDs from PNP ACPI scan handler ID list

2014-05-29 Thread Rafael J. Wysocki
From: Zhang Rui The "serial" PNP driver supports some "unknown" PNP modems (PNPCXXX/PNPDXXX) by matching magic strings in the PNP device name or the PNP device card name. ACPI enumerated PNP devices neither are PNP cards, nor have those magic strings in device names, so this mechamism never actu

[PATCH 7/10] ACPI / scan: always register container scan handler

2014-05-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Prevent platform devices from being created for ACPI containers if CONFIG_ACPI_CONTAINER is unset by compiling out the container scan handler's callbacks only in that case and still compiling its device ID list in and registering the scan handler in either case. This chan

[PATCH 2/10] ACPI / PNP: use device ID list for PNPACPI device enumeration

2014-05-29 Thread Rafael J. Wysocki
From: Zhang Rui ACPI can be used to enumerate PNP devices, but the code does not handle this in the right way currently. Namely, if an ACPI device object 1. Has a _CRS method, 2. Has an identification of "three capital characters followed by four hex digits", 3. Is not in the excluded IDs

Re: [PATCH] gpio: Add support for Intel Crystal Cove PMIC

2014-05-29 Thread Zhu, Lejun
On 5/29/2014 9:51 PM, Linus Walleij wrote: > On Thu, May 29, 2014 at 9:21 AM, Zhu, Lejun wrote: > >> Devices based on Intel SoC products such as Baytrail have a Power >> Management IC. In the PMIC there are subsystems for voltage regulation, >> A/D conversion, GPIO and PWMs. The PMIC in Baytrai

[PATCH 5/10] ACPI / scan: introduce platform_id device PNP type flag

2014-05-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Only certain types of ACPI device objects can be enumerated as platform devices, so in order to distinguish them from the others introduce a new ACPI device PNP type flag, platform_id, and set it for devices with a valid _HID to start with. This change is based on a Zhang

[PATCH 0/10] ACPI enumeration rework (was: Re: [PATCH V7 00/11] ACPI: ACPI enumeration rework)

2014-05-29 Thread Rafael J. Wysocki
On Friday, May 23, 2014 02:02:22 AM Zhang Rui wrote: > Hi, all, > > Currently, PNP bus is used as the default bus for for enumerating ACPI > devices with _HID/_CID. > For a device that needs to be enumerated to platform bus, we need to add > its id string to the platform scan handler white list ex

  1   2   3   4   5   6   7   8   9   10   >