[PATCH 0/9] x86, mpx: Support 32-bit binaries on 64-bit kernels

2015-02-02 Thread Dave Hansen
The MPX hardware structures differ in layout in 32 and 64-bit mode. A 32-bit binary running on a 64-bit kernel needs the 32-bit structures, so we need code which switches between the two modes. x86: make is_64bit_mm() widely available x86: make __VIRTUAL_MASK safe to use on 32 bit

Re: [GIT PULL]: clockevents: new material for 3.20

2015-02-02 Thread Daniel Lezcano
Hi Thomas, just a gentle reminder ;) Thanks -- Daniel On 01/29/2015 02:06 PM, Daniel Lezcano wrote: this pull request contains the following changes: * Barry Song renamed the marco timer to atlas7 * Baruch Siach provided a new driver for the Conexant Digicolor SoCs * Daniel Lezcan

[PATCH 3/9] x86, mpx: we do not allocate the bounds directory

2015-02-02 Thread Dave Hansen
From: Dave Hansen The comment and code here are confusing. We do not currently allocate the bounds directory in the kernel. Signed-off-by: Dave Hansen --- b/arch/x86/mm/mpx.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN arch/x86/mm/mpx.c~x86-mpx-we-do-not-allocate

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-02-02 Thread Russell King - ARM Linux
On Mon, Feb 02, 2015 at 03:30:21PM -0500, Rob Clark wrote: > On Mon, Feb 2, 2015 at 11:54 AM, Daniel Vetter wrote: > >> My initial thought is for dma-buf to not try to prevent something than > >> an exporter can actually do.. I think the scenario you describe could > >> be handled by two sg-lists,

Re: [PATCH v3 02/24] vfio: powerpc/iommu: Check that TCE page size is equal to it_page_size

2015-02-02 Thread Alex Williamson
On Thu, 2015-01-29 at 20:21 +1100, Alexey Kardashevskiy wrote: > This checks that the TCE table page size is not bigger that the size of > a page we just pinned and going to put its physical address to the table. > > Otherwise the hardware gets unwanted access to physical memory between > the end

Re: [PATCH 2/4] Input - synaptics: do not release extra buttons once they are pressed

2015-02-02 Thread Dmitry Torokhov
On Wed, Jan 28, 2015 at 03:10:05PM -0500, Benjamin Tissoires wrote: > The current code releases the extra buttons right after they are pressed. > As soon as a new serio report comes in, the hw state is reset to 0 > and so the buttons are released. > > Check for the report type before acting on the

[PATCH 3/5] i8042: Add OF match table

2015-02-02 Thread Roman Volkov
The OF device table allows the platform_driver_probe() function to automatically match device and parse the DT node. Signed-off-by: Tony Prisk Signed-off-by: Roman Volkov --- drivers/input/serio/i8042.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/input/serio/i8042.c

[PATCH 2/5] i8042: Kernel configuration handling for DT support

2015-02-02 Thread Roman Volkov
i8042_dt.h should be included when CONFIG_ARCH_MIGHT_HAVE_PC_SERIO and CONFIG_USE_OF are selected. It should be not necessary to create additional options in the kernel config. Signed-off-by: Roman Volkov --- drivers/input/serio/i8042.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driv

[PATCH 1/5] i8042: intel-8042 DT documentation

2015-02-02 Thread Roman Volkov
Documentation for 'intel,8042' DT compatible node. Signed-off-by: Tony Prisk Signed-off-by: Roman Volkov --- .../devicetree/bindings/input/intel-8042.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/intel-8042.tx

[PATCH 4/5] i8042: Prepare i8042 driver for DT support

2015-02-02 Thread Roman Volkov
Use platform_device_probe() instead of platform_create_bundle() when compiled with DT support, since the latter function is not suitable for handling the OF device tree. The order of initialization is changed, since i8042_platform_init() for DT requires initialized platform_device structure. To av

[PATCH 5/5] i8042: Add i8042_dt.h glue for DT support

2015-02-02 Thread Roman Volkov
This header file designed to be similar to other glue layers found for i8042. The difference is that interrupt numbers, device address, and other information should be retrieved from the device tree. Signed-off-by: Tony Prisk Signed-off-by: Roman Volkov --- drivers/input/serio/i8042-dt.h | 112

Re: [PATCH v8 02/21] acpi: fix acpi_os_ioremap for arm64

2015-02-02 Thread Rafael J. Wysocki
On Monday, February 02, 2015 08:45:30 PM Hanjun Guo wrote: > From: Mark Salter > > The acpi_os_ioremap() function may be used to map normal RAM or IO > regions. The current implementation simply uses ioremap_cache(). This > will work for some architectures, but arm64 ioremap_cache() cannot be > u

Re: [PATCH v8 05/21] ACPI / sleep: Introduce sleep_arm.c

2015-02-02 Thread Rafael J. Wysocki
On Monday, February 02, 2015 08:45:33 PM Hanjun Guo wrote: > From: Graeme Gregory > > ACPI 5.1 does not currently support S states for ARM64 hardware but > ACPI code will call acpi_target_system_state() for device power > managment, so introduce sleep_arm.c to allow other drivers to function > un

[PATCH 0/2] mutex: Modifications to mutex_spin_on_owner

2015-02-02 Thread Jason Low
This patchset contains a few modifications to mutex_spin_on_owner(). The first patch makes the optimistic spinner continue spinning whenever the owner changes, and the second patch refactors mutex_spin_on_owner() to micro optimize the code as well as make it simpler. Jason Low (2): mutex: In mut

[PATCH 1/2] mutex: In mutex_spin_on_owner(), return true when owner changes

2015-02-02 Thread Jason Low
In the mutex_spin_on_owner(), we return true only if lock->owner == NULL. This was beneficial in situations where there were multiple threads simultaneously spinning for the mutex. If another thread got the lock while other spinner(s) were also doing mutex_spin_on_owner(), then the other spinners w

[PATCH 2/2] mutex: Refactor mutex_spin_on_owner

2015-02-02 Thread Jason Low
As suggested by Davidlohr, we could refactor mutex_spin_on_owner(). Currently, we split up owner_running() with mutex_spin_on_owner(). When the owner changes, we make duplicate owner checks which are not necessary. It also makes the code a bit obscure as we are using a second check to figure out

Re: [PATCH 3/4] Input - synaptics: remove TOPBUTTONPAD property for Lenovos 2015

2015-02-02 Thread Dmitry Torokhov
On Wed, Jan 28, 2015 at 03:10:06PM -0500, Benjamin Tissoires wrote: > The 2015 series of the Lenovo thinkpads added back the hardware buttons > on top of the touchpad for the trackstick. > > Unfortunately, they are wired to the touchpad, and not the trackstick. > Thus, they are seen as extra butto

Re: [PATCH v8 16/21] irqchip: Add GICv2 specific ACPI boot support

2015-02-02 Thread Rafael J. Wysocki
On Monday, February 02, 2015 08:45:44 PM Hanjun Guo wrote: > From: Tomasz Nowicki > > ACPI kernel uses MADT table for proper GIC initialization. It needs to > parse GIC related subtables, collect CPU interface and distributor > addresses and call driver initialization function (which is hardware

Re: [PATCH v8 17/21] clocksource / arch_timer: Parse GTDT to initialize arch timer

2015-02-02 Thread Rafael J. Wysocki
On Monday, February 02, 2015 08:45:45 PM Hanjun Guo wrote: > Using the information presented by GTDT (Generic Timer Description Table) > to initialize the arch timer (not memory-mapped). > > CC: Daniel Lezcano > Originally-by: Amit Daniel Kachhap > Tested-by: Suravee Suthikulpanit > Tested-by:

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Andrew Morton
On Mon, 2 Feb 2015 16:55:25 + Mel Gorman wrote: > glibc malloc changed behaviour in glibc 2.10 to have per-thread arenas > instead of creating new areans if the existing ones were contended. > The decision appears to have been made so the allocator scales better but the > downside is that mad

Re: [PATCH 2/2] coresight: Adding coresight support to arm64

2015-02-02 Thread Mathieu Poirier
On 2 February 2015 at 06:45, Will Deacon wrote: > On Fri, Jan 30, 2015 at 10:54:26PM +, mathieu.poir...@linaro.org wrote: >> From: Mathieu Poirier >> >> Aside from tracers, all currently supported coresight IP blocks >> are 64 bit ready. As such add the required symbol definition to >> compi

Re: [PATCH] staging/fwserial: use correct vendor/version IDs

2015-02-02 Thread Peter Hurley
On 01/28/2015 03:07 PM, Clemens Ladisch wrote: > The driver was using the vendor ID 0xd00d1e from the FireWire core. > However, this ID was not registered, and invalid. > > Instead, use the vendor/version IDs that now are officially assigned to > firewire-serial: > https://ieee1394.wiki.kernel.org

[PATCH] clk: Missing set_phase op is an error

2015-02-02 Thread Stephen Boyd
If a clock's clk_ops doesn't have the set_phase op set we should return an error from clk_set_phase(). This way clock consumers know that when they tried to set a phase it didn't work, as opposed to the current behavior where the return value is 0 meaning success. Signed-off-by: Stephen Boyd ---

[PATCH] clk: clk_set_parent() with current parent shouldn't fail

2015-02-02 Thread Stephen Boyd
If a driver calls clk_set_parent(clk, parent) and parent is the current parent of clk we shouldn't fail in any case. Unfortunately if clk is a read-only mux we return -ENOSYS because we think we can't change the parent, except for in this special case where we don't actually need to change the pare

Re: [PATCH 1/5] i8042: intel-8042 DT documentation

2015-02-02 Thread Roman Volkov
В Tue, 3 Feb 2015 00:48:46 +0300 Roman Volkov пишет: > Documentation for 'intel,8042' DT compatible node. > > Signed-off-by: Tony Prisk > Signed-off-by: Roman Volkov > --- > .../devicetree/bindings/input/intel-8042.txt | 29 > ++ 1 file changed, 29 insertions(+) > c

Re: [PATCH] Remove might_sleep from wait_event_cmd

2015-02-02 Thread NeilBrown
On Mon, 2 Feb 2015 09:39:02 -0500 (EST) Mikulas Patocka wrote: > Hi > > Please apply this before 3.19 is released. > > Mikulas > > > The patch e22b886a8a43b147e1994a9f970f678fc0df2033 introduced a bug in the > raid5 subsystem. > > The function raid5_quiesce (and resize_stripes) calls > lock

Re: [PATCH 2/4] Input - synaptics: do not release extra buttons once they are pressed

2015-02-02 Thread Benjamin Tissoires
On Mon, Feb 2, 2015 at 4:46 PM, Dmitry Torokhov wrote: > On Wed, Jan 28, 2015 at 03:10:05PM -0500, Benjamin Tissoires wrote: >> The current code releases the extra buttons right after they are pressed. >> As soon as a new serio report comes in, the hw state is reset to 0 >> and so the buttons are

Re: [PATCH 4/6] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-02-02 Thread Feng Kan
On Thu, Jan 29, 2015 at 10:11 PM, Wolfram Sang wrote: > >> > ctx->dev is probably the wrong device here. The i2c controller is not >> > DMA capable itself, you need to have a pointer to the device that actually >> > performs the DMA here. >> >> Arnd, I do agree this may not be the best identificat

Re: v3.19: Nokia N900 - usb nokia gadget crash

2015-02-02 Thread Felipe Balbi
On Sat, Jan 31, 2015 at 10:25:09AM +0100, Pali Rohár wrote: > On Saturday 31 January 2015 10:06:11 Pali Rohár wrote: > > Hello, > > > > when I try to modprobe g_nokia.ko gadget module on n900 > > device, it produce tons on lines to display and then crash > > and reboot device. So its not working a

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Mel Gorman
On Mon, Feb 02, 2015 at 02:05:06PM -0800, Andrew Morton wrote: > On Mon, 2 Feb 2015 16:55:25 + Mel Gorman wrote: > > > glibc malloc changed behaviour in glibc 2.10 to have per-thread arenas > > instead of creating new areans if the existing ones were contended. > > The decision appears to hav

[PATCH v4 4/5] ARM: sunxi_defconfig: Enable CONFIG_PHY_SUN9I_USB

2015-02-02 Thread Chen-Yu Tsai
On sun9i we have a new PHY driver for USB. Signed-off-by: Chen-Yu Tsai --- arch/arm/configs/sunxi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index 38840a812924..6b271645eb43 100644 --- a/arch/arm/configs/sunxi

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Dave Hansen
On 02/02/2015 08:55 AM, Mel Gorman wrote: > This patch identifies when a thread is frequently calling MADV_DONTNEED > on the same region of memory and starts ignoring the hint. On an 8-core > single-socket machine this was the impact on ebizzy using glibc 2.19. The manpage, at least, claims that w

[PATCH v4 5/5] ARM: multi_v7_defconfig: Enable CONFIG_PHY_SUN9I_USB

2015-02-02 Thread Chen-Yu Tsai
On sun9i we have a new PHY driver for USB. Signed-off-by: Chen-Yu Tsai --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index eec304487e6d..63fcc5522393 100644 --- a/arch/arm/con

[PATCH v4 3/5] ARM: dts: sun9i: Enable USB support on A80 Optimus board

2015-02-02 Thread Chen-Yu Tsai
On the Optimus board, all three USB hosts can be used. HCI0 and HCI2 are available through the USB connector. HCI1 is available with HSIC through 2 pins on the GPIO expansion header. This patch also adds a regulator for HCI2/USB3's VBUS. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun9i-a

[PATCH v4 0/5] ARM: sun9i: Add USB host controller support for A80

2015-02-02 Thread Chen-Yu Tsai
Hi everyone, This is v4 of the sun9i A80 USB host support series. Changes since v3: - Dropped patches merged. - Moved reg_usb3_vbus into the optimus board dts - Dropped ohci1 from A80 dtsi. Cover letter from v3: This series adds USB host controller (EHCI/OHCI) support for the Allwinner

[PATCH v4 2/5] ARM: dts: sun9i: Add USB host controller nodes to a80 dtsi

2015-02-02 Thread Chen-Yu Tsai
The A80 has 3 EHCI/OHCI USB controllers. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun9i-a80.dtsi | 55 1 file changed, 55 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi index d7ebd9390b01..17fcf57d

[PATCH v4 1/5] phy: Add driver to support individual USB PHYs on sun9i

2015-02-02 Thread Chen-Yu Tsai
Unlike previous Allwinner SoCs, there is no central PHY control block on the A80. Also, OTG support is completely split off into a different controller. This adds a new driver to support the regular USB PHYs. Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- .../devicetree/bindings/phy/s

Re: [PATCH] IRQ: don't suspend nested_thread irqs over system suspend.

2015-02-02 Thread Rafael J. Wysocki
On Saturday, January 31, 2015 02:37:47 PM NeilBrown wrote: > On Sat, 31 Jan 2015 00:51:17 +0100 "Rafael J. Wysocki" > wrote: > > > On Saturday, January 31, 2015 12:06:37 AM Rafael J. Wysocki wrote: > > > On Saturday, January 31, 2015 09:25:45 AM NeilBrown wrote: > > > > > > > > Nested IRQs can o

Re: v3.19: Nokia N900 - usb nokia gadget crash

2015-02-02 Thread Felipe Balbi
On Mon, Feb 02, 2015 at 04:17:13PM -0600, Felipe Balbi wrote: > On Sat, Jan 31, 2015 at 10:25:09AM +0100, Pali Rohár wrote: > > On Saturday 31 January 2015 10:06:11 Pali Rohár wrote: > > > Hello, > > > > > > when I try to modprobe g_nokia.ko gadget module on n900 > > > device, it produce tons on l

Re: [PATCH linux-next] lib: Kconfig: use bool instead of boolean

2015-02-02 Thread Andrew Morton
On Mon, 2 Feb 2015 09:59:16 -0500 Christoph Jaeger wrote: > Keyword 'boolean' for type definition attributes is considered > deprecated and, therefore, should not be used anymore. > > See http://lkml.kernel.org/r/cover.1418003065.git...@linux.com > See http://lkml.kernel.org/r/1419108071-11607-

Re: [PATCH] jfs: Deletion of an unnecessary check before the function call "unload_nls"

2015-02-02 Thread Dave Kleikamp
On 02/01/2015 10:15 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 1 Feb 2015 17:00:24 +0100 > > The unload_nls() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Co

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Andrew Morton
On Mon, 2 Feb 2015 22:18:24 + Mel Gorman wrote: > > Is there something > > preventing this from being addressed within glibc? > > I doubt it other than I expect they'll punt it back and blame either the > application for being stupid or the kernel for being slow. *Is* the application being

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Stephen Boyd
On 02/02/15 13:31, Julia Lawall wrote: > > On Mon, 2 Feb 2015, Stephen Boyd wrote: > >> Julia, >> >> Is there a way we can write a coccinelle script to check for this? The >> goal being to find all drivers that are comparing struct clk pointers or >> attempting to dereference them. There are probab

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-02-02 Thread Rob Clark
On Mon, Feb 2, 2015 at 4:46 PM, Russell King - ARM Linux wrote: > On Mon, Feb 02, 2015 at 03:30:21PM -0500, Rob Clark wrote: >> On Mon, Feb 2, 2015 at 11:54 AM, Daniel Vetter wrote: >> >> My initial thought is for dma-buf to not try to prevent something than >> >> an exporter can actually do.. I

[PATCH v2] clk: Add tracepoints for hardware operations

2015-02-02 Thread Stephen Boyd
It's useful to have tracepoints around operations that change the hardware state so that we can debug clock hardware performance and operations. Four basic types of events are supported: on/off events for enable, disable, prepare, unprepare that only record an event and a clock name, rate changing

Re: [PATCH linux-next] lib: Kconfig: use bool instead of boolean

2015-02-02 Thread Paul Bolle
On Mon, 2015-02-02 at 14:27 -0800, Andrew Morton wrote: > There are many uses of "boolean" in lib/Kconfig. Converting just one > of them is inefficient and odd. $ git grep -n "^\s*boolean\b" next-20150202 -- "*Kconfig*" next-20150202:drivers/usb/gadge

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Mike Turquette
Quoting Tero Kristo (2015-02-02 11:32:01) > On 02/01/2015 11:24 PM, Mike Turquette wrote: > > Quoting Tomeu Vizoso (2015-01-23 03:03:30) > >> Moves clock state to struct clk_core, but takes care to change as little > >> API as > >> possible. > >> > >> struct clk_hw still has a pointer to a struct

Re: [PATCH] leds: leds-gpio: Pass on error codes unmodified

2015-02-02 Thread Bryan Wu
On Sun, Feb 1, 2015 at 8:59 AM, Sören Brinkmann wrote: > + Andreas who actually reported this issue and also tested the patch. > > On Sat, 2015-01-31 at 07:15PM -0800, Soren Brinkmann wrote: >> Instead of overriding error codes, pass them on unmodified. This >> way a EPROBE_DEFER is correctly pass

Re: [PATCH linux-next] lib: Kconfig: use bool instead of boolean

2015-02-02 Thread Andrew Morton
On Mon, 02 Feb 2015 23:37:54 +0100 Paul Bolle wrote: > On Mon, 2015-02-02 at 14:27 -0800, Andrew Morton wrote: > > There are many uses of "boolean" in lib/Kconfig. Converting just one > > of them is inefficient and odd. > > $ git grep -n "^\s*b

Re: v3.19: Nokia N900 - usb nokia gadget crash

2015-02-02 Thread Pali Rohár
On Monday 02 February 2015 23:27:27 Felipe Balbi wrote: > On Mon, Feb 02, 2015 at 04:17:13PM -0600, Felipe Balbi wrote: > > On Sat, Jan 31, 2015 at 10:25:09AM +0100, Pali Rohár wrote: > > > On Saturday 31 January 2015 10:06:11 Pali Rohár wrote: > > > > Hello, > > > > > > > > when I try to modprobe

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Mike Turquette
Quoting Tony Lindgren (2015-02-02 12:44:02) > * Tero Kristo [150202 11:35]: > > On 02/01/2015 11:24 PM, Mike Turquette wrote: > > >Quoting Tomeu Vizoso (2015-01-23 03:03:30) > > > > > >AFAICT this doesn't break anything, but booting on OMAP3+ results in > > >noisy WARNs. > > > > > >I think the cor

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Mike Turquette
Quoting Stephen Boyd (2015-02-02 14:35:59) > On 02/02/15 13:31, Julia Lawall wrote: > > > > On Mon, 2 Feb 2015, Stephen Boyd wrote: > > > >> Julia, > >> > >> Is there a way we can write a coccinelle script to check for this? The > >> goal being to find all drivers that are comparing struct clk poin

Re: [f2fs-dev] [PATCH v2 06/10] f2fs: add core functions for rb-tree extent cache

2015-02-02 Thread Jaegeuk Kim
On Mon, Feb 02, 2015 at 10:59:28AM +0800, Chao Yu wrote: > Hi all, > > > -Original Message- > > From: Chao Yu [mailto:chao2...@samsung.com] > > Sent: Monday, January 26, 2015 1:52 PM > > To: Jaegeuk Kim; Changman Lee > > Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.

[PATCH 1/2] f2fs: keep PagePrivate during releasepage

2015-02-02 Thread Jaegeuk Kim
If PagePrivate is removed by releasepage, f2fs loses counting dirty pages. e.g., try_to_release_page will not release page when the page is dirty, but our releasepage removes PagePrivate. [] try_to_release_page+0x35/0x50 [] invalidate_inode_pages2_range+0x2f9/0x3b0 [] ? truncate_block

[PATCH 2/2] f2fs: show the number of writeback pages in stat

2015-02-02 Thread Jaegeuk Kim
This patch adds the # of writeback pages in stat info. Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 5 +++-- fs/f2fs/f2fs.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index 0f721f6..ac2bd8e 100644 --- a/fs/f2fs/debug.c +++ b/fs/f

Re: [PATCH linux-next] lib: Kconfig: use bool instead of boolean

2015-02-02 Thread Paul Bolle
; > of them is inefficient and odd. > > > > $ git grep -n "^\s*boolean\b" next-20150202 -- "*Kconfig*" > > next-20150202:drivers/usb/gadget/Kconfig:427: boolean "USB Webcam > > function" > > next-20150202:lib/Kconfig:17: boolean >

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Stephen Boyd
On 02/02/15 14:41, Mike Turquette wrote: > Quoting Tero Kristo (2015-02-02 11:32:01) >> On 02/01/2015 11:24 PM, Mike Turquette wrote: >>> >>> AFAICT this doesn't break anything, but booting on OMAP3+ results in >>> noisy WARNs. >>> >>> I think the correct fix is to replace clk_bypass and clk_ref po

Re: [PATCH linux-next] lib: Kconfig: use bool instead of boolean

2015-02-02 Thread Randy Dunlap
nt and odd. >> >> $ git grep -n "^\s*boolean\b" next-20150202 -- "*Kconfig*" >> next-20150202:drivers/usb/gadget/Kconfig:427: boolean "USB Webcam >> function" >> next-20150202:lib/Kconfig:17: boolean >> >> What ar

Re: [PATCH 1/4] Input - synaptics: fix middle button on Lenovo 2015 products

2015-02-02 Thread Dmitry Torokhov
On Wed, Jan 28, 2015 at 03:10:04PM -0500, Benjamin Tissoires wrote: > On the X1 Carbon 3rd gen (with a 2015 broadwell cpu), the physical middle > button of the trackstick (attached to the touchpad serio device, of course) > seems to get lost. > > Actually, the touchpads reports 3 extra buttons, wh

Re: [Patch] sunrpc: NULL utsname dereference on NFS umount during namespace cleanup

2015-02-02 Thread Trond Myklebust
On Mon, Feb 2, 2015 at 12:41 PM, Nix wrote: > On 31 Jan 2015, n...@esperi.org.uk told this: >> I'll let it run overnight and give it a reboot in the morning. > > Alas, my latest reboot hit: > > [ 215.245158] BUG: unable to handle kernel NULL pointer dereference at > 0004 > [ 215.251602] IP:

Re: [PATCH] watchdog: imx2: Constify struct regmap_config and watchdog_ops

2015-02-02 Thread Wim Van Sebroeck
Hi Krzysztof, > The regmap_config struct may be const because it is not modified by the > driver and regmap_init() accepts pointer to const. Make struct > watchdog_ops const as well. > > Signed-off-by: Krzysztof Kozlowski Patch added to linux-watchdog-next. Kind regards, Wim. -- To unsubscrib

Re: [PATCH linux-next] lib: Kconfig: use bool instead of boolean

2015-02-02 Thread Stephen Rothwell
e > > > of them is inefficient and odd. > > > > $ git grep -n "^\s*boolean\b" next-20150202 -- "*Kconfig*" > > next-20150202:drivers/usb/gadget/Kconfig:427: boolean "USB Webcam > > function" > > next-20150202:lib/K

Re: [PATCH linux-next] lib: Kconfig: use bool instead of boolean

2015-02-02 Thread Russell King - ARM Linux
On Mon, Feb 02, 2015 at 02:27:32PM -0800, Andrew Morton wrote: > On Mon, 2 Feb 2015 09:59:16 -0500 Christoph Jaeger wrote: > > > Keyword 'boolean' for type definition attributes is considered > > deprecated and, therefore, should not be used anymore. > > > > See http://lkml.kernel.org/r/cover.1

Re: [PATCH v2 0/2] Quieten softlockup detector on virtualised kernels

2015-02-02 Thread Andrew Morton
On Mon, 02 Feb 2015 15:58:38 +1100 Cyril Bur wrote: > On Fri, 2015-01-09 at 14:34 +1100, Cyril Bur wrote: > > When the hypervisor pauses a virtualised kernel the kernel will observe a > > jump > > in timebase, this can cause spurious messages from the softlockup detector. > > > > Whilst these m

Re: [PATCH linux-next] lib: Kconfig: use bool instead of boolean

2015-02-02 Thread Christoph Jaeger
On Mon, Feb 02, 2015 at 02:27:32PM -0800, Andrew Morton wrote: > On Mon, 2 Feb 2015 09:59:16 -0500 Christoph Jaeger wrote: > > > Keyword 'boolean' for type definition attributes is considered > > deprecated and, therefore, should not be used anymore. > > > > See http://lkml.kernel.org/r/cover.1

Re: v3.19: Nokia N900 - usb nokia gadget crash

2015-02-02 Thread Felipe Balbi
On Mon, Feb 02, 2015 at 11:47:26PM +0100, Pali Rohár wrote: > On Monday 02 February 2015 23:27:27 Felipe Balbi wrote: > > On Mon, Feb 02, 2015 at 04:17:13PM -0600, Felipe Balbi wrote: > > > On Sat, Jan 31, 2015 at 10:25:09AM +0100, Pali Rohár wrote: > > > > On Saturday 31 January 2015 10:06:11 Pali

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Tony Lindgren
* Mike Turquette [150202 14:51]: > Quoting Tony Lindgren (2015-02-02 12:44:02) > > > > Thanks Tero, looks like your fix fixes all the issues I'm seeing with > > commit 59cf3fcf9baf. That is noisy dmesg, dpll_abe_ck not locking > > on 4430sdp, and off-idle not working for omap3. > > > > I could n

Re: [PATCH] watchdog: hpwdt: Fix initialization message in hpwdt.c

2015-02-02 Thread Wim Van Sebroeck
Hi Masanari, > allow_kdump was enabled as default since following commit. > > commit a089361cf5f1d6a5295aa5385238bd044998e1e9, > watchdog: hpwdt: Unregister NMI events on exit. > > But the initialization message was not modified. > So it still shows > > HP Watchdog Timer Driver: NMI decoding

Re: [PATCH 06/20] staging/lustre: fix comparison between signed and unsigned

2015-02-02 Thread Oleg Drokin
On Feb 2, 2015, at 3:51 PM, Greg Kroah-Hartman wrote: > On Mon, Feb 02, 2015 at 03:25:58PM -0500, Oleg Drokin wrote: >>> What is this code supposed to be protecting from? And -1? That should >>> never be a return value… >> >> Why is -1 a bad return value if all callsites check for that as an >>

Re: [PATCH 4/6] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-02-02 Thread Wolfram Sang
On Mon, Feb 02, 2015 at 02:15:44PM -0800, Feng Kan wrote: > On Thu, Jan 29, 2015 at 10:11 PM, Wolfram Sang wrote: > > > >> > ctx->dev is probably the wrong device here. The i2c controller is not > >> > DMA capable itself, you need to have a pointer to the device that > >> > actually > >> > perfor

Re: [PATCH linux-next] lib: Kconfig: use bool instead of boolean

2015-02-02 Thread Andrew Morton
On Mon, 2 Feb 2015 23:05:48 + Russell King - ARM Linux wrote: > On Mon, Feb 02, 2015 at 02:27:32PM -0800, Andrew Morton wrote: > > On Mon, 2 Feb 2015 09:59:16 -0500 Christoph Jaeger wrote: > > > > > Keyword 'boolean' for type definition attributes is considered > > > deprecated and, there

Re: [PATCH linux-next] lib: Kconfig: use bool instead of boolean

2015-02-02 Thread Andrew Morton
On Mon, 2 Feb 2015 18:12:13 -0500 Christoph Jaeger wrote: > > Your patch patches 556d2f055bf6d ("ARM: 8187/1: add > > CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction") which appears > > in linux-next via the ARM tree. > > Oh, sorry, yes; it should be applied by the ARM folks to their tre

Re: [RFC] change non-atomic bitops method

2015-02-02 Thread Andrew Morton
On Mon, 2 Feb 2015 11:55:03 +0800 "Wang, Yalin" wrote: > This patch change non-atomic bitops, > add a if() condition to test it, before set/clear the bit. > so that we don't need dirty the cache line, if this bit > have been set or clear. On SMP system, dirty cache line will > need invalidate ot

Re: [PATCH 5/5 v2] f2fs: introduce a batched trim

2015-02-02 Thread Jaegeuk Kim
Change long from v1: o add description o change the # of batched segments suggested by Chao o make consistent for # of batched segments This patch introduces a batched trimming feature, which submits split discard commands. This patch introduces a batched trimming feature, which submits split

Re: [PATCH linux-next] lib: Kconfig: use bool instead of boolean

2015-02-02 Thread Russell King - ARM Linux
On Mon, Feb 02, 2015 at 03:18:24PM -0800, Andrew Morton wrote: > I'm a bit surprised that nobody helped out with the Kconfig text. > I queued the below. Looks OK? > > --- a/lib/Kconfig~a > +++ a/lib/Kconfig > @@ -18,9 +18,8 @@ config HAVE_ARCH_BITREVERSE > default n > depends on BITR

Re: [PATCH 1/2] f2fs: don't trigger recovery for normal umount image

2015-02-02 Thread Jaegeuk Kim
Hi Chao, On Sat, Jan 31, 2015 at 04:59:49PM +0800, Chao Yu wrote: > Our recovery option is on by default, so we will try to recover data for > a normally umounted image when mounting it, but no data will be recovered. > > So it'd be better to skip the recovery for above condition. No. We should

Re: [RFC] change non-atomic bitops method

2015-02-02 Thread Russell King - ARM Linux
On Mon, Feb 02, 2015 at 03:29:09PM -0800, Andrew Morton wrote: > On Mon, 2 Feb 2015 11:55:03 +0800 "Wang, Yalin" > wrote: > > > This patch change non-atomic bitops, > > add a if() condition to test it, before set/clear the bit. > > so that we don't need dirty the cache line, if this bit > > have

Re: [PATCH 2/2] f2fs: don't discard next free dnode page for an umount checkpoint

2015-02-02 Thread Jaegeuk Kim
Hi Chao, On Sat, Jan 31, 2015 at 05:06:59PM +0800, Chao Yu wrote: > Previously, discard_next_dnode is added before a checkpoint to prevent that we > may meet a garbage dnode page readed from next free blkaddr in recover flow. > > Since f2fs will skip recovery flow for a clean umount image, this c

Re: [PATCH linux-next] lib: Kconfig: use bool instead of boolean

2015-02-02 Thread Andrew Morton
On Mon, 2 Feb 2015 23:30:00 + Russell King - ARM Linux wrote: > On Mon, Feb 02, 2015 at 03:18:24PM -0800, Andrew Morton wrote: > > I'm a bit surprised that nobody helped out with the Kconfig text. > > I queued the below. Looks OK? > > > > --- a/lib/Kconfig~a > > +++ a/lib/Kconfig > > @@ -

[PATCH RESEND v3 0/3] X-Power AXP288 PMIC Fuel Gauge Driver

2015-02-02 Thread Todd Brandt
New power_supply driver at driver/power which interfaces with the axp20x mfd driver as a cell. Provides battery info, monitors for changes, and generates alerts on temperature and capacity issues Todd Brandt (3): mfd/axp20x: change battery cell name to fuel gauge mfd/axp20x: add support for fu

[PATCH RESEND v3 3/3] X-Power AXP288 PMIC Fuel Gauge Driver

2015-02-02 Thread Todd Brandt
New power_supply driver at driver/power which interfaces with the axp20x mfd driver as a cell. Provides battery info, monitors for changes, and generates alerts on temperature and capacity issues Signed-off-by: Todd Brandt Acked-by: Jacob Pan --- drivers/power/Kconfig |9 + dri

[PATCH RESEND v3 1/3] mfd/axp20x: change battery cell name to fuel gauge

2015-02-02 Thread Todd Brandt
Name changes to the battery cell structure to a more generic cell type: fuel gauge. Signed-off-by: Todd Brandt Acked-By: Sebastian Reichel Acked-by: Jacob Pan --- drivers/mfd/axp20x.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) v1: 01/07/14 v2: 01/22/14 - replaced the const

[PATCH RESEND v3 2/3] mfd/axp20x: add support for fuel gauge cell

2015-02-02 Thread Todd Brandt
Register definitions and platform data structure for fuel gauge cell devices. Signed-off-by: Todd Brandt Acked-By: Sebastian Reichel Acked-By: Jacob Pan Acked-By: Lee Jones --- include/linux/mfd/axp20x.h | 43 +-- 1 file changed, 41 insertions(+), 2 del

Re: [PATCH] tools: unbreak 'make tools/*'

2015-02-02 Thread Brian Norris
Ping? On Wed, Jan 28, 2015 at 08:47:36PM -0800, Brian Norris wrote: > The following targets should be supported from the top-level source > directory, but were broken by commit 7e1c04779efd ("kbuild: Use relative > path for $(objtree)"): > > $ make tools/ > $ make tools/perf > $ make O=$(BUILD

[PATCH v6] clk: samsung: exynos5433: Add binding document for Exynos5433 clock domains

2015-02-02 Thread Chanwoo Choi
This patch adds devicetree binding document for Exynos5433 SoC system clock controller. Cc: Sylwester Nawrocki Cc: Tomasz Figa Cc: devicet...@vger.kernel.org Signed-off-by: Chanwoo Choi Acked-by: Inki Dae --- .../devicetree/bindings/clock/exynos5433-clock.txt | 305 + 1 fi

[PATCH 3/5] mm/mm_init.c: Mark mminit_verify_zonelist as __init

2015-02-02 Thread Rasmus Villemoes
The only caller of mminit_verify_zonelist is build_all_zonelists_init, which is annotated with __init, so it should be safe to also mark the former as __init, saving ~400 bytes of .text. Signed-off-by: Rasmus Villemoes --- mm/mm_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 5/5] kernel/cpuset.c: Mark cpuset_init_current_mems_allowed as __init

2015-02-02 Thread Rasmus Villemoes
The only caller of cpuset_init_current_mems_allowed is the __init annotated build_all_zonelists_init, so we can also make the former __init. Signed-off-by: Rasmus Villemoes --- kernel/cpuset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpuset.c b/kernel/cpuset.c i

[PATCH 4/5] mm/mm_init.c: Mark mminit_loglevel __meminitdata

2015-02-02 Thread Rasmus Villemoes
mminit_loglevel is only referenced from __init and __meminit functions, so we can mark it __meminitdata. Signed-off-by: Rasmus Villemoes --- mm/mm_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mm_init.c b/mm/mm_init.c index e17c758b27bf..5f420f7fafa1 100644 --- a/

Re: [PATCH v1 4/7] thermal: introduce the Power Allocator governor

2015-02-02 Thread Lina Iyer
On Wed, Jan 28 2015 at 14:42 -0700, Javi Merino wrote: The power allocator governor is a thermal governor that controls system and device power allocation to control temperature. Conceptually, the implementation divides the sustainable power of a thermal zone among all the heat sources in that z

[PATCH 2/5] mm/page_alloc.c: Pull out init code from build_all_zonelists

2015-02-02 Thread Rasmus Villemoes
Pulling the code protected by if (system_state == SYSTEM_BOOTING) into its own helper allows us to shrink .text a little. This relies on build_all_zonelists already having a __ref annotation. Add a comment explaining why so one doesn't have to track it down through git log. Signed-off-by: Rasmus V

[PATCH 0/5] mm: Some .text savings

2015-02-02 Thread Rasmus Villemoes
Only compile-tested, but I think these should be ok. Net saving aroung 450 bytes of .text. Rasmus Villemoes (5): mm/internal.h: Don't split printk call in two mm/page_alloc.c: Pull out init code from build_all_zonelists mm/mm_init.c: Mark mminit_verify_zonelist as __init mm/mm_init.c: Mark

[PATCH 1/5] mm/internal.h: Don't split printk call in two

2015-02-02 Thread Rasmus Villemoes
All users of mminit_dprintk pass a compile-time constant as level, so this just makes gcc emit a single printk call instead of two. Signed-off-by: Rasmus Villemoes --- Notes: Not a huge deal, since the only users are __init or __meminit functions, but even there saving 140 bytes may be w

Re: [PATCH 1/1 linux-next] fs/ufs/super.c: remove CONFIG_SMP/CONFIG_PREEMPT testing

2015-02-02 Thread Andrew Morton
On Sun, 1 Feb 2015 12:36:57 +0100 Fabian Frederick wrote: > Let locking subsystem decide on mutex management. > > ... > > --- a/fs/ufs/super.c > +++ b/fs/ufs/super.c > @@ -95,22 +95,18 @@ > > void lock_ufs(struct super_block *sb) > { > -#if defined(CONFIG_SMP) || defined (CONFIG_PREEMPT) >

Re: [PATCH v4 01/13] clk: samsung: exynos5433: Add binding document for Exynos5433 clock domains

2015-02-02 Thread Chanwoo Choi
Hi Sylwester, On 02/03/2015 01:44 AM, Chanwoo Choi wrote: > Hi Sylwester, > > On Tue, Feb 3, 2015 at 1:25 AM, Sylwester Nawrocki > wrote: >> Hi Chanwoo, >> >> On 02/02/15 16:51, Chanwoo Choi wrote: >>> On Mon, Feb 2, 2015 at 11:40 PM, Sylwester Nawrocki >>> wrote: > On 02/02/15 15:08, Chanw

Re: [PATCH v5 0/2] ARM: mediatek: Add watchdog driver

2015-02-02 Thread Wim Van Sebroeck
Hi Matthias, > Mediatek SoCs have a watchdog driver. This patch set adds driver and DTS > binding. The driver also implements a restart handler to reboot the SoC. > > Changes for v5: > - add newline in dev_info message > - add tested-by and reviewed-by > > Changes for v4: > - fix indentation err

Re: [PATCH] tools: unbreak 'make tools/*'

2015-02-02 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 02, 2015 at 03:43:09PM -0800, Brian Norris escreveu: > Ping? Thanks for submitting the patch, its just that I am busy at the moment, preparing for travel, I will process this patch eventually. - Arnaldo > On Wed, Jan 28, 2015 at 08:47:36PM -0800, Brian Norris wrote: > > The followin

Re: [PATCH] Add ARCH_MIGHT_HAVE_VGA_CONSOLE

2015-02-02 Thread Stephen Rothwell
Hi Arnd, On Mon, 02 Feb 2015 21:11:50 +0100 Arnd Bergmann wrote: > > On Tuesday 03 February 2015 00:48:20 Yoshinori Sato wrote: > > > --- a/arch/arm/Kconfig > > +++ b/arch/arm/Kconfig > > @@ -76,6 +76,7 @@ config ARM > >select PERF_USE_VMALLOC > >select RTC_LIB > >select

Re: [PATCH v3 14/24] vfio: powerpc/spapr: Register memory

2015-02-02 Thread Alex Williamson
On Thu, 2015-01-29 at 20:21 +1100, Alexey Kardashevskiy wrote: > The existing implementation accounts the whole DMA window in > the locked_vm counter which is going to be even worse with multiple > containers and huge DMA windows. > > This introduces 2 ioctls to register/unregister DMA memory whic

Re: [PATCH v3 05/24] vfio: powerpc/spapr: Move locked_vm accounting to helpers

2015-02-02 Thread Alex Williamson
On Thu, 2015-01-29 at 20:21 +1100, Alexey Kardashevskiy wrote: > There moves locked pages accounting to helpers. > Later they will be reused for Dynamic DMA windows (DDW). > > While we are here, update the comment explaining why RLIMIT_MEMLOCK > might be required to be bigger than the guest RAM. T

[PATCH v3 2/9] clk: samsung: exynos5433: Add clocks for CMU_ATLAS domain

2015-02-02 Thread Chanwoo Choi
This patch adds the mux/divider/gate clocks for CMU_ATLAS domain which generates the clocks for Cortex-A57 Quad-core processsor, L2 cache controller and CoreSight. Cc: Sylwester Nawrocki Cc: Tomasz Figa Signed-off-by: Chanwoo Choi Acked-by: Inki Dae --- .../devicetree/bindings/clock/exynos543

<    2   3   4   5   6   7   8   9   >