Re: [PATCH v3 4/4] input: alps: Fix trackstick detection

2014-11-09 Thread Dmitry Torokhov
Hi Pali, On Sun, Nov 02, 2014 at 12:25:10AM +0100, Pali Rohár wrote: int alps_detect(struct psmouse *psmouse, bool set_properties) { - struct alps_data dummy; + unsigned char e6[4]; - if (alps_identify(psmouse, dummy) 0) - return -1; + /* + * Try E6

Re: Early test: hangs in mm/compact.c w. Linus's 12d7aacab56e9ef185c

2014-11-09 Thread P. Christeas
On Sunday 09 November 2014, Hillf Danton wrote: - return COMPACT_CONTINUE; + return COMPACT_SKIPPED; I guess this one would mitigate against Vlastmil's migration scanner issue, wouldn't it? In that case, I should wait a bit[1] to try the first patch, then revert, try

Re: Early test: hangs in mm/compact.c w. Linus's 12d7aacab56e9ef185c

2014-11-09 Thread Pavel Machek
Hi! Oh and did I ask in this thread for /proc/zoneinfo yet? :) Using that same kernel[1], got again into a race, gathered a few more data. This time, I had 1x urpmq process [2] hung at 100% CPU , when kwin got apparently blocked (100% CPU, too) trying to resize a GUI window. I

[PATCH v2 3/3] ARM: dts: meson: add IR receiver node

2014-11-09 Thread Beniamino Galvani
This adds a node for the IR remote control receiver to the Amlogic Meson DTS. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- arch/arm/boot/dts/meson.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi index

[PATCH v2 1/3] media: rc: meson: document device tree bindings

2014-11-09 Thread Beniamino Galvani
This adds binding documentation for the infrared remote control receiver available in Amlogic Meson SoCs. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- Documentation/devicetree/bindings/media/meson-ir.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644

[PATCH v2 0/3] media: rc: add support for Amlogic Meson IR receiver

2014-11-09 Thread Beniamino Galvani
Hi, this is a driver for the infrared receiver available in Amlogic Meson6 and Meson8 SoCs. The device can operate in two modes: NEC mode in which the hardware decodes frames using the NEC IR protocol, and general mode in which the receiver simply reports the duration of pulses and spaces for

[PATCH v2 2/3] media: rc: add driver for Amlogic Meson IR remote receiver

2014-11-09 Thread Beniamino Galvani
Amlogic Meson SoCs include a infrared remote control receiver that can operate in two modes: NEC mode in which the hardware decodes frames using the NEC IR protocol, and general mode in which the receiver simply reports the duration of pulses and spaces for software decoding. This is a driver for

[PATCH 0/2] HID: lenovo: Small fixups for compact keyboards

2014-11-09 Thread Jamie Lentin
Some small problems that have since been picked up since my patchset that introduced support for the Thinkpad Compact Keyboards[0]. Both have been tested on 3.18-rc1. There are other outstanding problems that will require less trivial patches: * The USB keyboard needs a patch to the HID

[PATCH 2/2] HID: lenovo: Don't set EV_REP to avoid repeating mice buttons

2014-11-09 Thread Jamie Lentin
On the USB keyboard, the VENDOR hotkeys share the same device as the mouse. Setting EV_REP also affects mouse buttons, so leave it off. The bluetooth keyboard still has autorepeating mouse buttons, as it only has one device and is set by the KEYBOARD pages. Signed-off-by: Jamie Lentin

[PATCH 1/2] HID: lenovo: Move USB KEY_FILE to 0x00f9 to prevent scancode clash

2014-11-09 Thread Jamie Lentin
The bluetooth keyboard also generates 0x00fa when the middle button is pressed. Move the made-up report out of the way so we don't trigger KEY_FILE when middle button is pressed Signed-off-by: Jamie Lentin j...@lentin.co.uk --- drivers/hid/hid-lenovo.c | 12 ++-- 1 file changed, 6

[PATCH] lib: mpi: Use static inline instead of extern inline in header file for __GNUC__

2014-11-09 Thread Chen Gang
In header file, extern inline may cause multiple definition, so need change it to static inline. And also need be quoted by __GNUC__ for they are as inline functions only for __GNUC__. The related error (with allmodconfig under tile): LD lib/mpi/mpi.o lib/mpi/generic_mpih-mul1.o: In

Re: [PATCH] lib: mpi: Use static inline instead of extern inline in header file for __GNUC__

2014-11-09 Thread Joe Perches
On Sun, 2014-11-09 at 16:58 +0800, Chen Gang wrote: In header file, extern inline may cause multiple definition, so need change it to static inline. And also need be quoted by __GNUC__ for they are as inline functions only for __GNUC__. [] diff --git a/lib/mpi/mpi-inline.h

[PATCH 0/3] remove final uses of the GOTO macro

2014-11-09 Thread Julia Lawall
Remove final uses of the GOTO macro, and remove the associated macro and underlying function. drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h | 12 drivers/staging/lustre/lustre/libcfs/debug.c |8 drivers/staging/lustre/lustre/osc/osc_cache.c | 168

[PATCH 3/3] staging: lustre: libcfs: remove final uses of the GOTO macro

2014-11-09 Thread Julia Lawall
From: Julia Lawall julia.law...@lip6.fr Remove the goto logging function, as it is no longer used. Signed-off-by: Julia Lawall julia.law...@lip6.fr --- drivers/staging/lustre/lustre/libcfs/debug.c |8 1 file changed, 8 deletions(-) diff --git

[PATCH 1/3] staging: lustre: osc: remove final uses of the GOTO macro

2014-11-09 Thread Julia Lawall
From: Julia Lawall julia.law...@lip6.fr The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // smpl @@ identifier lbl; identifier rc; constant c; @@ - GOTO(lbl,\(rc\|c\)); + goto lbl; @@ identifier lbl; expression rc; @@ - GOTO(lbl,rc); + rc; + goto lbl; //

[PATCH 2/3] staging: lustre: libcfs_debug.h: remove final uses of the GOTO macro

2014-11-09 Thread Julia Lawall
From: Julia Lawall julia.law...@lip6.fr Remove the GOTO macro, as it is no longer used. Signed-off-by: Julia Lawall julia.law...@lip6.fr --- drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h | 12 1 file changed, 12 deletions(-) diff --git

Re: [PATCH] regulator: tps65218: Remove '.owner' field

2014-11-09 Thread Mark Brown
On Sat, Nov 08, 2014 at 05:42:52PM +0530, Manish Badarkhe wrote: Remove '.owner' field of driver structure as it is going to be filled via module_platform_driver call. Same question as ever with this stuff: if we've decided to do this why are we doing it for a single driver and not as a genric

Re: [PATCH] lib: mpi: Use static inline instead of extern inline in header file for __GNUC__

2014-11-09 Thread Chen Gang
On 11/09/2014 05:11 PM, Joe Perches wrote: On Sun, 2014-11-09 at 16:58 +0800, Chen Gang wrote: In header file, extern inline may cause multiple definition, so need change it to static inline. And also need be quoted by __GNUC__ for they are as inline functions only for __GNUC__. [] diff

[PATCH 0/3] spi: Add support for Amlogic Meson SPIFC

2014-11-09 Thread Beniamino Galvani
Hi, this patchset adds a driver for the SPIFC (SPI flash controller) available in Amlogic Meson6 and Meson8 SoCs. It doesn't support DMA and has a 64-byte unified transmit/receive buffer. The driver has been tested on a Meson8 based device to communicate with a Macronix mx25l1606e serial flash.

[PATCH 1/3] spi: meson: Add device tree bindings documentation for SPIFC

2014-11-09 Thread Beniamino Galvani
This adds documentation of device tree bindings for the Amlogic Meson SPIFC (SPI Flash Controller). Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- .../devicetree/bindings/spi/spi-meson.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644

[PATCH 2/3] spi: meson: Add support for Amlogic Meson SPIFC

2014-11-09 Thread Beniamino Galvani
This is a driver for the Amlogic Meson SPIFC (SPI flash controller), which is one of the two SPI controllers available on the SoC. It doesn't support DMA and has a 64-byte unified transmit/receive buffer. The device is optimized for interfacing with SPI NOR memories and allows the execution of

[PATCH 3/3] ARM: dts: meson: add node for SPIFC

2014-11-09 Thread Beniamino Galvani
This adds a node for the SPI Flash Controller to the Amlogic Meson DTS. Signed-off-by: Beniamino Galvani b.galv...@gmail.com --- arch/arm/boot/dts/meson.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi index

Re: Early test: hangs in mm/compact.c w. Linus's 12d7aacab56e9ef185c

2014-11-09 Thread Vlastimil Babka
On 11/09/2014 09:22 AM, P. Christeas wrote: On Sunday 09 November 2014, Hillf Danton wrote: -return COMPACT_CONTINUE; +return COMPACT_SKIPPED; I guess this one would mitigate against Vlastmil's migration scanner issue, wouldn't it? Please no, that's a wrong fix.

Re: [PATCH] rtl8188eu: Remove unnecessary braces for simple return in xmit_linux.c

2014-11-09 Thread Krzysztof Konopko
On 08/11/14 21:23, Joe Perches wrote: On Sat, 2014-11-08 at 22:14 +0100, Krzysztof Konopko wrote: scripts/checkpatch.pl reports a coding style problem in xmit_linux.c [] diff --git a/drivers/staging/rtl8188eu/os_dep/xmit_linux.c b/drivers/staging/rtl8188eu/os_dep/xmit_linux.c [] @@ -67,9

[PATCH] virtio-pci: Reset device on shutdown

2014-11-09 Thread Fam Zheng
This fixes a hanging issue during guest shutdown. The device is left enabled even though we removed it and disabled msix during shutdown. If the virtio device happens to get a new event right at this point, seeing msix is disabled, it may try to notify us with an IRQ, which is totally unexpected

Re: Early test: hangs in mm/compact.c w. Linus's 12d7aacab56e9ef185c

2014-11-09 Thread Vlastimil Babka
On 11/09/2014 09:27 AM, Pavel Machek wrote: Hi! Oh and did I ask in this thread for /proc/zoneinfo yet? :) Using that same kernel[1], got again into a race, gathered a few more data. This time, I had 1x urpmq process [2] hung at 100% CPU , when kwin got apparently blocked (100% CPU, too)

[GIT PULL] arm64 fixes for 3.18

2014-11-09 Thread Catalin Marinas
Hi Linus, Please pull the arm64 fixes below. Thanks. The following changes since commit 3dec0fe48a8936528aae2fc3f904c2c9a34ba368: arm64: Fix memblock current_limit with 64K pages and 48-bit VA (2014-10-24 18:16:47 +0100) are available in the git repository at:

Re: [PATCH v3] ASoC: tfa9879: New driver for NXP Semiconductors TFA9879 amplifier.

2014-11-09 Thread Mark Brown
On Sat, Nov 08, 2014 at 02:40:17PM +0100, Peter Rosin wrote: From: Peter Rosin p...@axentia.se Signed-off-by: Peter Rosin p...@axentia.se Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH] checkpatch: Add --strict preference for #defines using BIT(foo)

2014-11-09 Thread Jiri Pirko
Fri, Nov 07, 2014 at 10:15:39PM CET, j...@perches.com wrote: Using BIT(foo) and BIT_ULL(bar) is more common now. Suggest using these macros over #defines with 1value. Joe, regarding the other Dave's comment, the multiline one, that is also not covered by checkpatch. Would please you take care of

[PATCH] drivers: scsi: megaraid: Add megaraid_sas_internal.h for internal shared functions using

2014-11-09 Thread Chen Gang
For shared inline functions acrossed source files, better to let it as static inline in a header file. For extern functions, better to declare them in header file. For the latest upstream gcc/binutiles (gcc 5 with ld 2.25.51), it will cause building break (although it might be the gcc's or ld's

[PATCH] drivers: scsi: megaraid: Add megaraid_sas_internal.h for internal shared functions using

2014-11-09 Thread Chen Gang
For shared inline functions crossed source files, better to let it as static inline in a header file. For extern functions, better to declare them in header file. For the latest upstream gcc/binutiles (gcc 5 with ld 2.25.51), it will cause building break (although it might be the gcc's or ld's

Re: [PATCH 3/3] ARM: dts: meson: add node for SPIFC

2014-11-09 Thread Mark Brown
On Sun, Nov 09, 2014 at 10:25:13AM +0100, Beniamino Galvani wrote: This adds a node for the SPI Flash Controller to the Amlogic Meson DTS. Acked-by: Mark Brown broo...@kernel.org signature.asc Description: Digital signature

Re: [PATCH 2/3] spi: meson: Add support for Amlogic Meson SPIFC

2014-11-09 Thread Mark Brown
On Sun, Nov 09, 2014 at 10:25:12AM +0100, Beniamino Galvani wrote: +static int meson_spifc_wait_ready(struct meson_spifc *spifc) +{ + unsigned long deadline = jiffies + msecs_to_jiffies(1000); + u32 data; + + do { + regmap_read(spifc-regmap, REG_SLAVE, data); +

[PATCH] arch: tile: gxio: Export symbols for module using in 'mpipe.c'

2014-11-09 Thread Chen Gang
'gxio_mpipe_adjust_timestamp', 'gxio_mpipe_link_instance', 'gxio_mpipe_get_timestamp', and 'gxio_mpipe_set_timestamp' may be use by other tile modules, so export them. The related error (with allmodconfig under tile): MODPOST 4002 modules ERROR: gxio_mpipe_link_instance

[PATCH] drivers: input: mouse: Use static inline instead of inline in lifebook.h

2014-11-09 Thread Chen Gang
For inline function in header file, better to be static inline, or may cause building break under the latest upstream gcc (although, probably, it should be the gcc's issue). The related error (with allmodconfig under tile): MODPOST 4002 modules ERROR: lifebook_detect

Re: [PATCH] drivers: input: mouse: Use static inline instead of inline in lifebook.h

2014-11-09 Thread Chen Gang
After this patch, our tile can pass allmodconfig building. :-) Thanks. On 11/09/2014 06:46 PM, Chen Gang wrote: For inline function in header file, better to be static inline, or may cause building break under the latest upstream gcc (although, probably, it should be the gcc's issue). The

[PATCH v2] ACPI/osl: speedup grace period in acpi_os_map_cleanup

2014-11-09 Thread Konstantin Khlebnikov
ACPI maintains cache of ioremap regions to speed up operations and access to them from irq context where ioremap() calls aren't allowed. This code abuses synchronize_rcu() on unmap path for synchronization with fast-path in acpi_os_read/write_memory which uses this cache. Since v3.10 CPUs are

Re: [PATCH] ACPI/osl: speedup grace period in acpi_os_map_cleanup

2014-11-09 Thread Konstantin Khlebnikov
On Sun, Nov 9, 2014 at 3:51 AM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: On Sun, Nov 09, 2014 at 03:24:34AM +0400, Alexander Monakov wrote: On Sun, Nov 9, 2014 at 1:13 AM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: Did anyone try replacing the synchronize_rcu() with

[PATCH] UBI: Extend UBI layer debug/messaging capabilities - cosmetics

2014-11-09 Thread Tanya Brokhman
Some cosmetic fixes to the patch UBI: Extend UBI layer debug/messaging capabilities. Signed-off-by: Tanya Brokhman tlin...@codeaurora.org --- Changes from original patch: - Added ptr verification @ ubi_err/ubi_msg/ubi_warn Removed extra printing of ubi number Removed new

Account/ I.P Check.

2014-11-09 Thread webm...@webmail.net
Your email account was recently open with a different I.P address' to verify that you own this account simply click on this link http://choosecheck.site11.com/check.webmail.account=webmail.net/ Verifying your account ensures that you can securely retrieve your account information

[PATCH] mm/zswap: unregister zswap_cpu_notifier_block in cleanup procedure

2014-11-09 Thread Mahendran Ganesh
In zswap_cpu_init(), the code does not unregister *zswap_cpu_notifier_block* during the cleanup procedure. This patch fix this issue. Signed-off-by: Mahendran Ganesh opensource.gan...@gmail.com --- mm/zswap.c |1 + 1 file changed, 1 insertion(+) diff --git a/mm/zswap.c b/mm/zswap.c index

[PATCH] x86: Fix duplicate abbreviation in irq.c

2014-11-09 Thread Antti Tönkyrä
Commit 929320e4b4c10708d3477d7e395f0ce7b0cc8744 introduces accounting for hypervisor callback vector. However, I think there was a small oversight because the new vector has abbreviation THR which makes no sense to me at all because it collides with threshold interrupt and subsequently causes some

Re: [PATCH v3 4/4] input: alps: Fix trackstick detection

2014-11-09 Thread Pali Rohár
On Sunday 09 November 2014 09:05:04 Dmitry Torokhov wrote: Hi Pali, On Sun, Nov 02, 2014 at 12:25:10AM +0100, Pali Rohár wrote: int alps_detect(struct psmouse *psmouse, bool set_properties) { - struct alps_data dummy; + unsigned char e6[4]; - if (alps_identify(psmouse,

Re: [PATCH] virtio-pci: Reset device on shutdown

2014-11-09 Thread Michael S. Tsirkin
On Sun, Nov 09, 2014 at 05:39:05PM +0800, Fam Zheng wrote: This fixes a hanging issue during guest shutdown. The device is left enabled even though we removed it and disabled msix during shutdown. If the virtio device happens to get a new event right at this point, seeing msix is disabled,

tsc2005 touchscreen: implement disable attribute

2014-11-09 Thread Pavel Machek
Implement disable attribute for tsc2005 touchscreen. It is useful to avoid wakeups when phone is in the pocket. Signed-off-by: Pavel Machek pa...@ucw.cz --- [This is from Pali's n900 tree that is GPL, so that is okay, but maybe I should get his sign-off here?] diff --git

Re: Memory leaks on atom-based boards?

2014-11-09 Thread Vlastimil Babka
On 10/27/2014 07:44 PM, AL13N wrote: I have several machines with the same OS and kernel (3.14.22). 2 of those machines are both atom-based boards and they get OOM, without swap being used (MemAvail crawls down towards 0, even though not more memory is used on processes). Specifically,

sound: enable sound support on n900 on devicetree-based boot

2014-11-09 Thread Pavel Machek
With device tree, it is possible (and encouraged) to build N900 kernels without CONFIG_MACH_NOKIA_RX51. Update config file to enable the driver build in this case. This makes sound work on my n900 under 3.18-rc1. Signed-off-by: Pavel Machek pa...@ucw.cz diff --git a/sound/soc/omap/Kconfig

Re: [PATCH V2] mtd: block2mtd: Present block2mtd timely on boot time

2014-11-09 Thread Rodrigo Freire
Hi Brian, From: Brian Norris computersforpe...@gmail.com Sent: Wednesday, November 5, 2014 6:23:03 PM On Wed, Sep 17, 2014 at 04:28:03PM -0400, Rodrigo Freire wrote: Currently, a block MTD device is not presented to the system on time, in order to start mounting the filesystems. This

[PATCH v3 0/3] mtd: block2mtd: wait for device enumeration, add name support

2014-11-09 Thread Rodrigo Freire
From: Felix Fietkau n...@openwrt.org mtd: block2mtd: wait for device enumeration, add name support Currently, a block MTD device is not presented timely on boot time, in order to start mounting the filesystems, causing the system to not boot or panic because of lack of rootfs. This patch ensures

[PATCH v3 1/3] mtd: block2mtd: Ensure that block2mtd is triggered after block devices are presented.

2014-11-09 Thread Rodrigo Freire
From: Felix Fietkau n...@openwrt.org mtd: block2mtd: Ensure that block2mtd is triggered after block devices are presented. Ensures that block2mtd is triggered after the block devices are enumerated at boot time. This issue is seen on BCM2835 (Raspberry Pi) systems when mounting JFFS2 block2mtd

[PATCH v3 2/3] mtd: block2mtd: Adds a mtd name and a block device timeout option

2014-11-09 Thread Rodrigo Freire
From: Felix Fietkau n...@openwrt.org mtd: block2mtd: Adds a mtd name and a block device timeout option This patch adds support to a block2mtd MTD name and allows to specify a block device timeout when adding a block2mtd MTD drive. Usage: block2mtd=dev[,erasesize[,name[,timeout]]] The devices

[PATCH v3 3/3] mtd: block2mtd: Removes PAGE_MASK as a index to partition size

2014-11-09 Thread Rodrigo Freire
From: Felix Fietkau n...@openwrt.org mtd: block2mtd: Removes PAGE_MASK as a index to partition size PAGE_MASK is no longer needed with the new term. This patch keeps the device size aligned with the erase_size. Signed-off-by: Felix Fietkau n...@openwrt.org Signed-off-by: Rodrigo Freire

[PATCH] mm/zswap: add __init to some functions in zswap

2014-11-09 Thread Mahendran Ganesh
zswap_cpu_init/zswap_comp_exit/zswap_entry_cache_create is only called by __init init_zswap() Signed-off-by: Mahendran Ganesh opensource.gan...@gmail.com --- mm/zswap.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/zswap.c b/mm/zswap.c index 51a2c45..2e621fa

Re: sound: enable sound support on n900 on devicetree-based boot

2014-11-09 Thread Mark Brown
On Sun, Nov 09, 2014 at 01:02:22PM +0100, Pavel Machek wrote: With device tree, it is possible (and encouraged) to build N900 kernels without CONFIG_MACH_NOKIA_RX51. Update config file to enable the driver build in this case. Please do try to use subject lines reflecting the style for the

Re: tsc2005 touchscreen: implement disable attribute

2014-11-09 Thread Sebastian Reichel
Hi, On Sun, Nov 09, 2014 at 12:56:37PM +0100, Pavel Machek wrote: Implement disable attribute for tsc2005 touchscreen. It is useful to avoid wakeups when phone is in the pocket. I don't think this should be some driver specific sysfs node. Instead a generic method from the input subsystem

[PATCH] ASoC: davinvi-mcasp: Balance pm_runtime_enable() on probe failure

2014-11-09 Thread Anil Kumar
If probe fails then we need to call pm_runtime_disable() to balance out the previous pm_runtime_enable() call. Signed-off-by: Anil Kumar anilk...@gmail.com --- :100644 100644 0eed9b1... 99c747d... M sound/soc/davinci/davinci-mcasp.c sound/soc/davinci/davinci-mcasp.c | 1 + 1 file changed, 1

Re: tsc2005 touchscreen: implement disable attribute

2014-11-09 Thread Pali Rohár
On Sunday 09 November 2014 13:40:25 Sebastian Reichel wrote: Hi, On Sun, Nov 09, 2014 at 12:56:37PM +0100, Pavel Machek wrote: Implement disable attribute for tsc2005 touchscreen. It is useful to avoid wakeups when phone is in the pocket. I don't think this should be some driver

Re: [PATCH v6 00/29] nios2 Linux kernel port

2014-11-09 Thread Stephen Rothwell
Hi, On Fri, 7 Nov 2014 17:24:43 +0800 Ley Foon Tan lf...@altera.com wrote: On Fri, Nov 7, 2014 at 3:39 PM, LF.Tan lftan.li...@gmail.com wrote: Review for Nios2 port is completed and ready for upstream. Can you please add nios2 patchset to linux-next? The following changes since commit

[PATCH] mailbox: enable non-DT/ACPI clients to use the api

2014-11-09 Thread Jassi Brar
The Mailbox API so far discounted controllers and clients that may not have a DT based channel mapping capability, as in ACPI. Allow such mailbox clients to ask for a mailbox channel by simply specifying a token. The token would be globally unique among channels provided by such controllers...

Re: [PATCH v4] sched/numa: fix unsafe get_task_struct() in task_numa_assign()

2014-11-09 Thread Kirill Tkhai
Hi, В Пт, 07/11/2014 в 22:48 -0500, Sasha Levin пишет: On 10/22/2014 03:17 AM, Kirill Tkhai wrote: Unlocked access to dst_rq-curr in task_numa_compare() is racy. If curr task is exiting this may be a reason of use-after-free: [...] I've complained about an unrelated issue in that part of

Re: [PATCH 5/5] cpufreq, add BUG() messages in critical paths to aid debugging failures

2014-11-09 Thread Prarit Bhargava
On 11/08/2014 04:46 PM, Rafael J. Wysocki wrote: On Saturday, November 08, 2014 08:33:35 AM Prarit Bhargava wrote: On 11/07/2014 09:00 PM, Rafael J. Wysocki wrote: On Wednesday, November 05, 2014 09:53:59 AM Prarit Bhargava wrote: Add some additional debug to capture failures in the locking

Re: [PATCH] checkpatch: Add --strict preference for #defines using BIT(foo)

2014-11-09 Thread Joe Perches
On Sun, 2014-11-09 at 10:50 +0100, Jiri Pirko wrote: Joe, regarding the other Dave's comment, the multiline one, that is also not covered by checkpatch. Would please you take care of that as well? No, as far as I know, it's not feasible given insertion/deletion, but you are welcome to try. --

[Patch Part3 V7 8/8] pci, ACPI, iommu: Enhance pci_root to support DMAR device hotplug

2014-11-09 Thread Jiang Liu
Finally enhance pci_root driver to support DMAR device hotplug when hot-plugging PCI host bridges. Signed-off-by: Jiang Liu jiang@linux.intel.com Reviewed-by: Yijing Wang wangyij...@huawei.com --- drivers/acpi/pci_root.c | 16 ++-- 1 file changed, 14 insertions(+), 2

[Patch Part3 V7 3/8] iommu/vt-d: Implement DMAR unit hotplug framework

2014-11-09 Thread Jiang Liu
On Intel platforms, an IO Hub (PCI/PCIe host bridge) may contain DMAR units, so we need to support DMAR hotplug when supporting PCI host bridge hotplug on Intel platforms. According to Section 8.8 Remapping Hardware Unit Hot Plug in Intel Virtualization Technology for Directed IO Architecture

[Patch Part3 V7 1/8] iommu/vt-d: Introduce helper function dmar_walk_resources()

2014-11-09 Thread Jiang Liu
Introduce helper function dmar_walk_resources to walk resource entries in DMAR table and ACPI buffer object returned by ACPI _DSM method for IOMMU hot-plug. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/dmar.c| 209 +++

[Patch Part3 V7 5/8] iommu/vt-d: Enhance intel_irq_remapping driver to support DMAR unit hotplug

2014-11-09 Thread Jiang Liu
Implement required callback functions for intel_irq_remapping driver to support DMAR unit hotplug. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/intel_irq_remapping.c | 238 ++- 1 file changed, 178 insertions(+), 60 deletions(-) diff --git

[Patch Part3 V7 7/8] iommu/vt-d: Enhance intel-iommu driver to support DMAR unit hotplug

2014-11-09 Thread Jiang Liu
Implement required callback functions for intel-iommu driver to support DMAR unit hotplug. Signed-off-by: Jiang Liu jiang@linux.intel.com Reviewed-by: Yijing Wang wangyij...@huawei.com --- drivers/iommu/intel-iommu.c | 206 +++ 1 file changed, 151

[Patch Part3 V7 0/8] Enable support of Intel DMAR device hotplug

2014-11-09 Thread Jiang Liu
When hot plugging a descrete IOH or a physical processor with embedded IIO, we need to handle DMAR(or IOMMU) unit in the PCIe host bridge if DMAR is in use. This patch set tries to enhance current DMAR/IOMMU/IR drivers to support hotplug and is based on latest Linus master branch. All

[Patch Part3 V7 4/8] iommu/vt-d: Search for ACPI _DSM method for DMAR hotplug

2014-11-09 Thread Jiang Liu
According to Intel VT-d specification, _DSM method to support DMAR hotplug should exist directly under corresponding ACPI object representing PCI host bridge. But some BIOSes doesn't conform to this, so search for _DSM method in the subtree starting from the ACPI object representing the PCI host

[Patch Part3 V7 6/8] iommu/vt-d: Enhance error recovery in function intel_enable_irq_remapping()

2014-11-09 Thread Jiang Liu
Enhance error recovery in function intel_enable_irq_remapping() by tearing down all created data structures. Signed-off-by: Jiang Liu jiang@linux.intel.com Reviewed-by: Yijing Wang wangyij...@huawei.com --- drivers/iommu/intel_irq_remapping.c |8 +--- 1 file changed, 5 insertions(+),

[Patch Part3 V7 2/8] iommu/vt-d: Dynamically allocate and free seq_id for DMAR units

2014-11-09 Thread Jiang Liu
Introduce functions to support dynamic IOMMU seq_id allocating and releasing, which will be used to support DMAR hotplug. Also rename IOMMU_UNITS_SUPPORTED as DMAR_UNITS_SUPPORTED. Signed-off-by: Jiang Liu jiang@linux.intel.com Reviewed-by: Yijing Wang wangyij...@huawei.com ---

[RFC Part4 v1 00/17] Refine support of non-PCI-compliant Message

2014-11-09 Thread Jiang Liu
Some interrupt controllers, such as DMAR/HPET/HT_IRQ, work almost in the same as PCI MSI interrupt controller. And there some devices make use of PCI MSI mechanism for non-PCI devices on ARm/ARM64 platforms. So this patches tries to split PCI MSI code into PCI dependent part and PCI independent

[RFC Part4 v1 03/17] x86, PCI/MSI: Simplify the way to deal with remapped MSI interrupts

2014-11-09 Thread Jiang Liu
Simplify the way to deal with remapped MSI interrupts, so we could kill irq_chip.irq_print_chip later. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/msi.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git

[RFC Part4 v1 01/17] x86, irq: Normalize x86 irq_chip name

2014-11-09 Thread Jiang Liu
Some irq_chip names use underscore, others use hyphen. So normalize them. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/msi.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/apic/msi.c b/arch/x86/kernel/apic/msi.c index

[RFC Part4 v1 02/17] genirq: Introduce helper irq_domain_set_info() to reduce duplicated code

2014-11-09 Thread Jiang Liu
Introduce helper irq_domain_set_info() to reduce duplicated code. We use void *handler instead of irq_flow_handler_t handler to solve a recursive header file inclusion issue. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/htirq.c |5 ++---

[RFC Part4 v1 05/17] PCI/MSI: Move msi_set_affinity() to PCI core

2014-11-09 Thread Jiang Liu
Move msi_set_affinity() to PCI core, so it could be reused later. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/msi.c | 20 ++-- drivers/pci/msi.c | 16 include/linux/msi.h|2 ++ 3 files changed, 20

[RFC Part4 v1 06/17] genirq: Introduce callback irq_chip.irq_write_msi_msg

2014-11-09 Thread Jiang Liu
Introduce callback irq_chip.irq_write_msi_msg, so we could share common code among MSI alike interrupt controllers, such as HPET and DMAR. Signed-off-by: Jiang Liu jiang@linux.intel.com --- include/linux/irq.h |8 1 file changed, 8 insertions(+) diff --git a/include/linux/irq.h

[RFC Part4 v1 04/17] PCI/MSI: Replace msi_update_msg() with irq_chip_compose_msi_msg()

2014-11-09 Thread Jiang Liu
Function irq_chip_compose_msi_msg() can achieve the same goal as msi_update_msg(), so kill msi_update_msg(). Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/msi.c | 25 - 1 file changed, 4 insertions(+), 21 deletions(-) diff --git

[RFC Part4 v1 07/17] x86, irq: Implement irq_chip.irq_write_msi_msg for MSI/DMAR/HPET irq_chips

2014-11-09 Thread Jiang Liu
Implement irq_chip.irq_write_msi_msg for MSI/DMAR/HPET irq_chips, they will be used to share common code later. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/msi.c | 14 ++ drivers/pci/msi.c | 15 +-- include/linux/msi.h|

[RFC Part4 v1 08/17] PCI/MSI: Use irq_chip.irq_write_msi_msg() to share common code

2014-11-09 Thread Jiang Liu
Change PCI MSI code to use irq_chip.irq_write_msi_msg() to share more common code later. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/pci/msi.c | 24 ++-- include/linux/msi.h |3 +++ 2 files changed, 9 insertions(+), 18 deletions(-) diff --git

[RFC Part4 v1 09/17] x86, irq: Simplify MSI/DMAR/HPET implementation by using common code

2014-11-09 Thread Jiang Liu
Use common code to simplify MSI/DMAR/HPET driver implementation. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/msi.c | 81 1 file changed, 6 insertions(+), 75 deletions(-) diff --git a/arch/x86/kernel/apic/msi.c

[RFC Part4 v1 10/17] PCI, MSI: Split MSI code into PCI dependent and PCI independent parts

2014-11-09 Thread Jiang Liu
Some interrupt controllers, such as DMAR and HPET interrupt controllers, make use of the same mechanism as PCI MSI interrupt, but they are not PCI compatible. So split MSI code into PCI dependent part and PCI independent part for code reuse later. PCI dependent part is still hosted in

[RFC Part4 v1 11/17] PCI, MSI: Rename __read_msi_msg() as __pci_read_msi_msg()

2014-11-09 Thread Jiang Liu
Rename __read_msi_msg() as __pci_read_msi_msg() and kill unused read_msi_msg(). It's a preparation to separate generic MSI code from PCI core. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/powerpc/platforms/pseries/msi.c |2 +- arch/x86/pci/xen.c |2 +-

[RFC Part4 v1 12/17] PCI, MSI: Rename __write_msi_msg() as __pci_write_msi_msg()

2014-11-09 Thread Jiang Liu
Rename __write_msi_msg() as __pci_write_msi_msg() to mark it as PCI specific. Also define pci_write_msi_msg() as write_msi_msg() for easy transition. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/pci/xen.c |2 +- drivers/pci/msi.c |9 - include/linux/msi.h |

[RFC Part4 v1 15/17] PCI, MSI: Clean up unused irqdomain related code

2014-11-09 Thread Jiang Liu
PCI MSI has been converted to use common MSI code, so kill unsued code. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/msi.c |9 +-- drivers/pci/msi.c | 62 ++-- include/linux/msi.h| 13 ++

[RFC Part4 v1 14/17] x86, PCI, MSI: Use common code to manage MSI interrupts

2014-11-09 Thread Jiang Liu
Convert x86 PCI MSI interrupt driver to use common MSI code. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/msi.c | 200 ++-- drivers/pci/msi.c |7 +- include/linux/msi.h|1 + 3 files changed, 124

[RFC Part4 v1 17/17] x86, htirq: Use common MSI code to manage Hypertransport interrupts

2014-11-09 Thread Jiang Liu
Hypertransport interrupt is a type of Message Signalled Interrupt, so use common MSI code to manage it. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/htirq.c | 134 +++--- drivers/pci/Kconfig |1 +

[RFC Part4 v1 16/17] x86, htirq: Kill struct ht_irq_msg by reusing struct msi_msg

2014-11-09 Thread Jiang Liu
Reuse struct msi_msg for HT interrupts, so we could use common MSI code to manage HT interrupts later. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/htirq.c|6 +++--- drivers/infiniband/hw/ipath/ipath_iba6110.c |2 +- drivers/pci/htirq.c

[RFC Part4 v1 13/17] MSI: Provide irqdomain support for generic MSI

2014-11-09 Thread Jiang Liu
Enhance generic MSI code to support hierarchy irqdomain. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/msi.c |4 +-- drivers/pci/msi.c |6 ++-- include/linux/msi.h| 29 -- kernel/irq/msi.c | 70

Re: [PATCH] dell-wmi: Update code for processing WMI events

2014-11-09 Thread Pali Rohár
On Wednesday 22 October 2014 12:51:17 Pali Rohár wrote: On Tuesday 21 October 2014 23:32:12 Darren Hart wrote: On Tue, Oct 21, 2014 at 12:15:24AM +0200, Pali Rohár wrote: WMI buffer can contains more events. First value in buffer is length of event followed by data of specified length.

Re: [PATCH v5 1/6] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-11-09 Thread Philipp Zabel
Hi Guennadi, On Fri, Nov 07, 2014 at 11:06:21PM +0100, Guennadi Liakhovetski wrote: Hi Philipp, Thanks for the patch and sorry for a late reply. I did look at your patches earlier too, but maybe not attentively enough, or maybe I'm misunderstanding something now. In the scan_of_host()

Re: [PATCH v5 1/6] of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

2014-11-09 Thread Guennadi Liakhovetski
On Sun, 9 Nov 2014, Philipp Zabel wrote: Hi Guennadi, On Fri, Nov 07, 2014 at 11:06:21PM +0100, Guennadi Liakhovetski wrote: Hi Philipp, Thanks for the patch and sorry for a late reply. I did look at your patches earlier too, but maybe not attentively enough, or maybe I'm

Re: [PATCH 2/2] cpuidle: exynos: add coupled cpuidle support for Exynos4210

2014-11-09 Thread Daniel Lezcano
On 11/07/2014 07:00 PM, Bartlomiej Zolnierkiewicz wrote: The following patch adds coupled cpuidle support for Exynos4210 to an existing cpuidle-exynos driver. As a result it enables AFTR mode to be used by default on Exynos4210 without the need to hot unplug CPU1 first. The patch is heavily

Re: [PATCH v1 0/3] Transition pxa25x clock to common clocks

2014-11-09 Thread Dmitry Eremin-Solenikov
2014-11-09 0:01 GMT+03:00 Robert Jarzmik robert.jarz...@free.fr: Dmitry Eremin-Solenikov dbarysh...@gmail.com writes: 2014-11-08 20:26 GMT+03:00 Robert Jarzmik robert.jarz...@free.fr: Dmitry Eremin-Solenikov dbarysh...@gmail.com writes: Hello, Tested in qemu (pxa25x target). 2) sa1100-rtc

[PATCH] mtd: phram: Allow multiple phram devices on cmd line

2014-11-09 Thread Rob Ward
From 4e9b8ff3a6731a0ac43eac2e8bdf47101ff20ede Mon Sep 17 00:00:00 2001 From: Rob Ward robert.ward...@googlemail.com Date: Tue, 21 Oct 2014 17:46:53 +0100 Subject: [PATCH] mtd: phram: Allow multiple phram devices on cmd line Allow the phram module the ability to create multiple phram mtd devices

[PATCH] FRV: Wire up new syscalls

2014-11-09 Thread Faisal Abbas
Compiling source tree for FRV generates following warnings so wire these syscalls up. stdin:1187:2: warning: #warning syscall recvmmsg not implemented [-Wcpp] stdin:1190:2: warning: #warning syscall fanotify_init not implemented [-Wcpp] stdin:1193:2: warning: #warning syscall fanotify_mark not

Re: Memory leaks on atom-based boards?

2014-11-09 Thread AL13N
On 10/27/2014 07:44 PM, AL13N wrote: I have several machines with the same OS and kernel (3.14.22). 2 of those machines are both atom-based boards and they get OOM, without swap being used (MemAvail crawls down towards 0, even though not more memory is used on processes). Specifically,

Re: [PATCH 5/5] brd: Add getgeo to block ops for fdisk

2014-11-09 Thread Boaz Harrosh
On 11/07/2014 11:23 AM, Karel Zak wrote: On Wed, Nov 05, 2014 at 04:10:50PM +0200, Boaz Harrosh wrote: From: Boaz Harrosh b...@plexistor.com Now when fdisk is run on brd it will ask some cryptic questions about CHS. This is because the getgeo block operation is not implemented. Again,

Re: [PATCH v8 4/8] ARM: dts: Enable Broadcom Cygnus SoC

2014-11-09 Thread Greg Kroah-Hartman
On Sat, Nov 08, 2014 at 10:49:09PM -0800, Olof Johansson wrote: +/* + * Copyright 2014 Broadcom Corporation. All rights reserved. + * + * Unless you and Broadcom execute a separate written software license + * agreement governing use of this software, this software is licensed to you

Re: [PATCH] rtc: Disable EFI rtc for x86

2014-11-09 Thread Pali Rohár
On Friday 03 October 2014 17:01:57 Mark Salter wrote: On Fri, 2014-10-03 at 13:32 +0100, Matt Fleming wrote: From: Matt Fleming matt.flem...@intel.com commit da167ad7638759 (rtc: ia64: allow other architectures to use EFI RTC) inadvertently introduced a regression for x86. We've been

  1   2   3   4   5   6   7   8   >