[PATCH] Input - synaptics: use dmax in input_mt_assign_slots

2015-02-02 Thread Benjamin Tissoires
When tapping a clickpad with two fingers, there is a chance that the sensor sees first only one finger, and at the next scan only the second one. In this case, the sensors says that there has been only one finger on the clickpad, which moved really fast between two scans. We can try to counter thi

Re: [PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Richard Weinberger
On Mon, Feb 2, 2015 at 5:22 PM, Ricardo Ribalda Delgado wrote: > Currently, there is no way to find out the offset of an mtd partition by > a driver. This might be needed by external hardware. > > For example, a flash containing the firmware of an external device that > is also accessible by the m

Re: [PATCH 5/6] x86,fpu: also check fpu_lazy_restore when use_eager_fpu

2015-02-02 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/02/2015 01:55 PM, Oleg Nesterov wrote: > On 02/02, r...@redhat.com wrote: >> >> From: Rik van Riel >> >> With Oleg's patch "x86, fpu: don't abuse FPU in kernel threads >> if use_eager_fpu()", kernel threads no longer have an FPU state >> even

Re: [PATCH v2] tpm: fix suspend/resume paths for TPM 2.0

2015-02-02 Thread Jarkko Sakkinen
Are we good with this? /Jarkko On Thu, Jan 29, 2015 at 06:43:12PM +, Scot Doyle wrote: > On Thu, 29 Jan 2015, Jarkko Sakkinen wrote: > > Fixed suspend/resume paths for TPM 2.0 and consolidated all the > > associated code to the tpm_pm_suspend() and tpm_pm_resume() > > functions. Resume path s

Re: [PATCH 4/6] x86,fpu: use disable_task_lazy_fpu_restore helper

2015-02-02 Thread Oleg Nesterov
I'll try to read this patch tomorrow. Too late for me. I think it is fine, but On 02/02, r...@redhat.com wrote: > > This also fixes the lazy FPU restore disabling in drop_fpu, which > only really works when !use_eager_fpu(). > ... > > --- a/arch/x86/include/asm/fpu-internal.h > +++ b/arch/x86/inc

[PATCH] staging: lustre: osc: Make osc_init() static

2015-02-02 Thread Andreas Ruprecht
osc_init() is marked as the module_init function in osc_request.c and is never used anywhere else. Hence, it can (and should) be declared static. sparse also complained about this with the following warning, which is fixed by this patch. andreas@workbox:~/linux-next$ make C=1 M=drivers/staging/lu

Re: [PATCH v13 4/6] clk: Add rate constraints to clocks

2015-02-02 Thread Tony Lindgren
linked in: > > [ 10.568237] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W > > 3.19.0-rc6-next-20150202 #2037 > > [ 10.568237] Hardware name: Generic OMAP4 (Flattened Device Tree) > > [ 10.568267] [] (unwind_backtrace) from [] > > (show_stack+0x10/0x

[PATCH v3] x86/devicetree: Fix build for amd64

2015-02-02 Thread Ricardo Ribalda Delgado
apic_force_enable is not defined for amd64. Without this patch: LD init/built-in.o arch/x86/built-in.o: In function `dtb_lapic_setup': kernel/devicetree.c:155: undefined reference to `apic_force_enable' Makefile:923: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 1 Signed-off-

Re: [RFC] Making memcg track ownership per address_space or anon_vma

2015-02-02 Thread Konstantin Khlebnikov
On 30.01.2015 19:07, Tejun Heo wrote: Hey, again. On Fri, Jan 30, 2015 at 01:27:37AM -0500, Tejun Heo wrote: The previous behavior was pretty unpredictable in terms of shared file ownership too. I wonder whether the better thing to do here is either charging cases like this to the common ances

[GIT PULL] at91: cleanup/soc for 3.20 #4 (bis)

2015-02-02 Thread Nicolas Ferre
Arnd, Olof, Kevin, As advised by Olof, here is a second attempt with this pull-request but this time with the at91-3.19-fixes branch as a base. Here is how I did it: - took v3.19-rc4 - merged my at91-3.19-fixes branch that is now in Linus' tree - merged my at91-cleanup3 tag that you already have i

Re: [RFC] change non-atomic bitops method

2015-02-02 Thread Uwe Kleine-König
On Mon, Feb 02, 2015 at 11:55:03AM +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

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

2015-02-02 Thread Tero Kristo
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 clk, which is the implementation's per-user clk instance, for backward

Re: Linux 3.19-rc3

2015-02-02 Thread Paul E. McKenney
On Mon, Feb 02, 2015 at 02:03:33PM -0500, Peter Hurley wrote: > On 02/02/2015 11:11 AM, Paul E. McKenney wrote: > > On Tue, Jan 20, 2015 at 09:03:12AM -0500, Peter Hurley wrote: > >> On 01/19/2015 07:30 PM, Paul E. McKenney wrote: > >>> On Tue, Jan 06, 2015 at 12:47:53PM -0800, Paul E. McKenney wro

Re: How to fix CDROM/DVD eject mess?

2015-02-02 Thread Maciej W. Rozycki
On Mon, 2 Feb 2015, Kay Sievers wrote: > > I thought that fixing the udev behavior would solve the problem. But > > it turned out that I was too naive. A bigger problem is that all > > user-space stuff misinterprets DISK_EVENT_EJECT_REQUEST event: they > > see this as if the disk is *ready* to b

Re: [PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Ricardo Ribalda Delgado
Hello On Mon, Feb 2, 2015 at 8:17 PM, Richard Weinberger wrote: > On Mon, Feb 2, 2015 at 5:22 PM, Ricardo Ribalda Delgado > > Can you please also send a patch which shows the usage of this new function > by a driver? It is currently out of tree, but here you can see the relevant code: mtd_offse

[PATCH 3/6 v2] tools lib api fs: Add tracefs mount helper functions

2015-02-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Since tracefs will now hold the event directory for perf, and even though by default, debugfs still mounts tracefs on the debugfs/tracing directory, the system admin may now choose to not mount debugfs and instead just mount tracefs instead. Having tracefs helper

[PATCH 2/6 v2] tools lib fs: Add helper to find mounted file systems

2015-02-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" In preparation for adding tracefs for perf to use, create a findfs helper utility that find_debugfs uses instead of hard coding the search in the code. This will allow for a find_tracefs to be used as well. Signed-off-by: Steven Rostedt --- tools/lib/api/Makefi

[PATCH 4/6 v2] tools lib api fs: Add DEBUGFS_DEFAULT_PATH macro

2015-02-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Instead of hard coding "/sys/kernel/debug" everywhere, create a macro to hold where the default path exists. Signed-off-by: Steven Rostedt --- tools/lib/api/fs/debugfs.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/lib/ap

[PATCH 0/6 v2] perf: Have perf become tracefs aware

2015-02-02 Thread Steven Rostedt
As I'm trying to move the tracing directory from debugfs, perf needs to be aware of this as system admins will now be able to mount the tracing directory without needing to mount debugfs. This patch series addresses this and makes perf aware of tracefs. I based this series on a recent tip branch:

[PATCH 1/6 v2] perf: Do not check debugfs MAGIC for tracing files

2015-02-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" It's rather strange to be checking the debugfs MAGIC number for the tracing directory. A system admin may want to have a custom set of events to trace and it should be allowed to let the admin make a temp file (even for tracing virtual boxes, this is useful). Als

[PATCH 6/6 v2] perf: Make perf aware of tracefs

2015-02-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" As tracefs may be mounted instead of debugfs to get to the event directories, have perf know about tracefs, and use that file system over debugfs if it is present. Signed-off-by: Steven Rostedt --- tools/perf/tests/open-syscall-all-cpus.c | 7 +++- tools/perf/

Re: [PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Richard Weinberger
Hi! Am 02.02.2015 um 20:33 schrieb Ricardo Ribalda Delgado: > Hello > > On Mon, Feb 2, 2015 at 8:17 PM, Richard Weinberger > wrote: >> On Mon, Feb 2, 2015 at 5:22 PM, Ricardo Ribalda Delgado >> >> Can you please also send a patch which shows the usage of this new function >> by a driver? > > It

[PATCH 5/6 v2] tools lib api fs: Add {tracefs,debugfs}_configured() functions

2015-02-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add tracefs_configured() to return true if tracefs is configured in the kernel (succeeds to find tracefs), and debugfs_configured() if debugfs is configured in the kernel (succeeds to find debugfs). Signed-off-by: Steven Rostedt --- tools/lib/api/fs/debugfs.c |

Re: [PATCH] lib/int_sqrt.c: Optimize square root function

2015-02-02 Thread Linus Torvalds
On Mon, Feb 2, 2015 at 11:10 AM, Joe Perches wrote: > > Perhaps removing the while and using fls(x) would be better. No. fls is often slow, and you then do have to also round it down to an even bit number etc, so it gets somewhat complex too. We *probably* have some argument range that we care m

Re: [PATCH] clk: Add tracepoints for hardware operations

2015-02-02 Thread Stephen Boyd
On 02/02/15 08:00, Steven Rostedt wrote: > On Fri, 30 Jan 2015 16:16:11 -0800 > Stephen Boyd wrote: > >> 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:

Re: [PATCH] clk: fractional-divider: support for divider bypassing

2015-02-02 Thread Stephen Boyd
On 02/02/15 05:37, Heikki Krogerus wrote: > If the divider or multiplier values values are 0 in the s/values// > register, bypassing the divider and returning the parent > clock rate in clk_fd_recalc_rate(). > > Signed-off-by: Heikki Krogerus > --- Reviewed-by: Stephen Boyd > drivers/clk/clk

Re: [PATCH 4/6] x86,fpu: use disable_task_lazy_fpu_restore helper

2015-02-02 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/02/2015 02:21 PM, Oleg Nesterov wrote: > I'll try to read this patch tomorrow. Too late for me. > > I think it is fine, but > > On 02/02, r...@redhat.com wrote: >> >> This also fixes the lazy FPU restore disabling in drop_fpu, >> which only re

Re: How to fix CDROM/DVD eject mess?

2015-02-02 Thread Kay Sievers
On Mon, Feb 2, 2015 at 8:34 PM, Maciej W. Rozycki wrote: > On Mon, 2 Feb 2015, Kay Sievers wrote: > >> > I thought that fixing the udev behavior would solve the problem. But >> > it turned out that I was too naive. A bigger problem is that all >> > user-space stuff misinterprets DISK_EVENT_EJECT

Re: [RFC] Making memcg track ownership per address_space or anon_vma

2015-02-02 Thread Tejun Heo
Hey, On Mon, Feb 02, 2015 at 10:26:44PM +0300, Konstantin Khlebnikov wrote: > Removing memcg pointer from struct page might be tricky. > It's not clear what to do with truncated pages: either link them > with lru differently or remove from lru right at truncate. > Swap cache pages have the same pr

Re: [PATCH 2/3] md/bitmap: Delete an unnecessary check before the function call "kfree"

2015-02-02 Thread NeilBrown
On Mon, 02 Feb 2015 16:20:42 +0100 SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 2 Feb 2015 15:10:57 +0100 > > The kfree() 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 us

Re: [PATCH] clk: pxa: fix pxa27x_clocks_init scope

2015-02-02 Thread Stephen Boyd
On 01/31/15 14:37, Robert Jarzmik wrote: > As pxa27x_clocks_init() is called from early boot stage, it has to be > reachable from pxa architecture code, as are pxa25x_clocks_init() and > pxa2xx_clock_init(). > > Remove the static declaration, which was introduced before the order > issue between cl

Re: [PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Ricardo Ribalda Delgado
Hello Richard > > Hmm, will we ever need the new function for in-tree drivers? > In general we add new functions only if they have an in-tree user > for it. It is part of a driver for a camera at qtec.com . The policy so far has been that we offer the code to our clients but we cannot afford to

[PATCH RFC] Make rcu_dereference_raw() safe for NMI etc.

2015-02-02 Thread Paul E. McKenney
As promised/threatened on IRC. Thanx, Paul rcu: Reverse rcu_dereference_check() conditions The rcu_dereference_check() family of primitives evaluates the RCU lockdep

Re: [PATCH] spi: spidev: Convert buf pointers for 32-bit compat SPI_IOC_MESSAGE(n)

2015-02-02 Thread Mark Brown
On Fri, Jan 30, 2015 at 06:43:33PM +, Ian Abbott wrote: > The SPI_IOC_MESSAGE(n) ioctl commands' argument points to an array of n > struct spi_ioc_transfer elements. The spidev's compat_ioctl handler > just converts this pointer and passes it on to the unlocked_ioctl > handler to process it.

Re: [PATCH] clk: Add tracepoints for hardware operations

2015-02-02 Thread Steven Rostedt
On Mon, 02 Feb 2015 11:41:40 -0800 Stephen Boyd wrote: + trace_clk_unprepare_complete(clk); > >>clk_core_unprepare(clk->parent); > > I guess you do not care about the clk_core_unprepare time. > > Function trace will handle that? > If gcc doesn't inline it. -- Steve -- To unsubscribe

Re: How to fix CDROM/DVD eject mess?

2015-02-02 Thread Austin S Hemmelgarn
On 2015-02-02 14:34, Maciej W. Rozycki wrote: On Mon, 2 Feb 2015, Kay Sievers wrote: I thought that fixing the udev behavior would solve the problem. But it turned out that I was too naive. A bigger problem is that all user-space stuff misinterprets DISK_EVENT_EJECT_REQUEST event: they see th

Re: [PATCH] regulator: Build sysfs entries with static attribute groups

2015-02-02 Thread Mark Brown
On Fri, Jan 30, 2015 at 08:29:31PM +0100, Takashi Iwai wrote: > Instead of calling device_create_file() manually after the device > registration, put all in attribute groups and filter the unwanted ones > via is_visible callback. This not only simplifies the code but also > avoids the possible rac

Re: [RFC 1/2] clocksource: track usage

2015-02-02 Thread Kevin Hilman
Alexandre Belloni writes: > Track whether the clocksource is enabled or disabled. > > Signed-off-by: Alexandre Belloni > --- > include/linux/clocksource.h | 4 > kernel/time/clocksource.c | 26 ++ > kernel/time/timekeeping.c | 8 +++- > 3 files changed, 33

Re: [PATCH] Add ARCH_MIGHT_HAVE_VGA_CONSOLE

2015-02-02 Thread Arnd Bergmann
On Tuesday 03 February 2015 00:48:20 Yoshinori Sato wrote: > At Mon, 2 Feb 2015 09:10:06 +0100, > Geert Uytterhoeven wrote: > > > > Hi Sato-san, > > > > > > On Mon, Feb 2, 2015 at 8:24 AM, Yoshinori Sato > > wrote: > > > The dependence of VGA_CONSOLE is complicated. > > > We need clean up. > >

Re: [PATCH 01/13] kdbus: add documentation

2015-02-02 Thread Andy Lutomirski
On Feb 2, 2015 1:34 AM, "Daniel Mack" wrote: > > Hi Andy, > > On 01/29/2015 01:09 PM, Andy Lutomirski wrote: > > On Jan 29, 2015 6:42 AM, "Daniel Mack" wrote: > > >> As we explained before, currently, D-Bus peers do collect the same > >> information already if they need to have them, but they hav

Re: [PATCH] 3.19-rc7: add quirk for 1c28:0122 (rev 14) SATA controller

2015-02-02 Thread Tim Sander
Hi Bjorn Am Montag 02 Februar 2015, 08:55:33 schrieb Bjorn Helgaas: > [+cc Alex] > > On Mon, Feb 2, 2015 at 5:29 AM, Tim Sander wrote: > > The long name for this device is > > Lite-On IT Corp. / Plextor M6e PCI Express SSD [Marvell 88SS9183] (rev 14) > > > > Background: the error description on

Re: [RFC][PATCH v2] procfs: Always expose /proc//map_files/ and make it readable

2015-02-02 Thread Andy Lutomirski
On Fri, Jan 30, 2015 at 5:58 PM, Calvin Owens wrote: > On Thursday 01/29 at 17:30 -0800, Kees Cook wrote: >> On Tue, Jan 27, 2015 at 8:38 PM, Calvin Owens wrote: >> > On Monday 01/26 at 15:43 -0800, Andrew Morton wrote: >> >> On Tue, 27 Jan 2015 00:00:54 +0300 Cyrill Gorcunov >> >> wrote: >> >>

Re: [PATCH] clk: pxa: fix pxa27x_clocks_init scope

2015-02-02 Thread Robert Jarzmik
Stephen Boyd writes: > On 01/31/15 14:37, Robert Jarzmik wrote: >> As pxa27x_clocks_init() is called from early boot stage, it has to be >> reachable from pxa architecture code, as are pxa25x_clocks_init() and >> pxa2xx_clock_init(). >> >> Remove the static declaration, which was introduced befor

Re: [PATCH v2] ARM: pxa: fix pxa interrupts handling in DT

2015-02-02 Thread Robert Jarzmik
Robert Jarzmik writes: > @@ -66,18 +67,20 @@ static inline void __iomem *irq_base(int i) > void pxa_mask_irq(struct irq_data *d) > { > void __iomem *base = irq_data_get_irq_chip_data(d); > + irq_hw_number_t irq = irqd_to_hwirq(d); > uint32_t icmr = __raw_readl(base + ICMR); >

Re: [PATCH] spi: fsl-dspi: Remove possible memory leak of 'chip'

2015-02-02 Thread Mark Brown
On Sat, Jan 31, 2015 at 07:46:48PM +0300, Dan Carpenter wrote: > On Sat, Jan 31, 2015 at 10:03:25PM +0530, Bhuvanchandra DV wrote: > > Move the check for spi->bits_per_word > > before allocation, to avoid memory leak. > > Signed-off-by: Dan Carpenter > Normally, you would give me a Reported-by:

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

2015-02-02 Thread Oleg Drokin
Hello! On Feb 2, 2015, at 10:44 AM, Greg Kroah-Hartman wrote: > On Mon, Feb 02, 2015 at 04:02:31PM +0300, Dan Carpenter wrote: >> On Sun, Feb 01, 2015 at 09:52:05PM -0500, gr...@linuxhacker.ru wrote: >>> From: Dmitry Eremin >>> >>> Expression if (size != (ssize_t)size) is always false. >>> Ther

Re: [PATCH v3 00/13] locks: saner method for managing file locks

2015-02-02 Thread Mike Marshall
I applied Jeff's patch to my orangefs-3.19-rc5 tree. Orangefs doesn't yet support the lock callout for file_operations, but we have been experimenting with some ideas that would allow Orangefs to honor locks in our distributed environment: basically posix locks for each kernel client plus meta data

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 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, if the exporter was clever enough. > > That's already needed, each

Re: [capabilities] Allow normal inheritance for a configurable set of capabilities

2015-02-02 Thread Casey Schaufler
On 2/2/2015 11:05 AM, Austin S Hemmelgarn wrote: > On 2015-02-02 13:47, Mimi Zohar wrote: >> On Mon, 2015-02-02 at 18:08 +, Serge Hallyn wrote: >>> Quoting Casey Schaufler (ca...@schaufler-ca.com): I'm game to participate in such an effort. The POSIX scheme is workable, but given that

Re: [capabilities] Allow normal inheritance for a configurable set of capabilities

2015-02-02 Thread Andy Lutomirski
On Mon, Feb 2, 2015 at 10:08 AM, Serge Hallyn wrote: > Quoting Casey Schaufler (ca...@schaufler-ca.com): >> I'm game to participate in such an effort. The POSIX scheme >> is workable, but given that it's 20 years old and hasn't >> developed real traction it's hard to call it successful. > > Over t

Re: [PATCH v3 00/13] locks: saner method for managing file locks

2015-02-02 Thread Jeff Layton
On Mon, 2 Feb 2015 15:29:33 -0500 Mike Marshall wrote: > I applied Jeff's patch to my orangefs-3.19-rc5 tree. Orangefs > doesn't yet support the lock callout for file_operations, but > we have been experimenting with some ideas that would allow > Orangefs to honor locks in our distributed environ

Re: [PATCH 0/6] PCI: MMCONFIG clean up

2015-02-02 Thread Bjorn Helgaas
On Wed, Nov 19, 2014 at 05:04:45PM +0100, Tomasz Nowicki wrote: > MMCFG ACPI table has no arch dependencies so it can be used across all > architectures. Currently MMCONFIG related code resides in arch/x86 > directories. > This patch set is goint to isolate non-architecure specific code and make >

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

2015-02-02 Thread Stephen Boyd
On 02/01/15 13:24, 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 clk, which is the >> implementation's per-user clk instance,

Re: [PATCH] 3.19-rc7: add quirk for 1c28:0122 (rev 14) SATA controller

2015-02-02 Thread Bjorn Helgaas
On Mon, Feb 2, 2015 at 2:15 PM, Tim Sander wrote: > Hi Bjorn > > Am Montag 02 Februar 2015, 08:55:33 schrieb Bjorn Helgaas: >> [+cc Alex] >> >> On Mon, Feb 2, 2015 at 5:29 AM, Tim Sander wrote: >> > The long name for this device is >> > Lite-On IT Corp. / Plextor M6e PCI Express SSD [Marvell 88SS

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

2015-02-02 Thread Tony Lindgren
* 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 correct fix is to replace clk_bypass and clk_ref pointers > >wi

Re: [RFC PATCH v4] audit: move the tree pruning to a dedicated thread

2015-02-02 Thread Paul Moore
On Friday, January 30, 2015 03:05:59 PM Imre Palik wrote: > From: "Palik, Imre" > > When file auditing is enabled, during a low memory situation, a memory > allocation with __GFP_FS can lead to pruning the inode cache. Which can, > in turn lead to audit_tree_freeing_mark() being called. This ca

[PATCH] serial: 8250: Fix UART_BUG_TXEN workaround

2015-02-02 Thread Peter Hurley
UARTs which do not trigger THRE interrupt if the fifo is already empty when the interrupt is enabled need tx primed manually. These UARTs are identified by the UART_BUG_TXEN flag to enable the required workaround. However, the current workaround is broken; if the fifo is already empty but the shif

Re: [PATCH v13 4/6] clk: Add rate constraints to clocks

2015-02-02 Thread Tony Lindgren
k.c:925 > > > clk_disable+0x28/0x34() > > > [ 10.568237] Modules linked in: > > > [ 10.568237] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GW > > > 3.19.0-rc6-next-20150202 #2037 > > > [ 10.568237] Hardware name: Generic OMAP4 (Flattened Device Tree

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

2015-02-02 Thread Greg Kroah-Hartman
On Mon, Feb 02, 2015 at 03:25:58PM -0500, Oleg Drokin wrote: > Hello! > > On Feb 2, 2015, at 10:44 AM, Greg Kroah-Hartman wrote: > > > On Mon, Feb 02, 2015 at 04:02:31PM +0300, Dan Carpenter wrote: > >> On Sun, Feb 01, 2015 at 09:52:05PM -0500, gr...@linuxhacker.ru wrote: > >>> From: Dmitry Eremi

Altera FPGA programming

2015-02-02 Thread Ran Shalit
Hello, I have found the following link for altera fpga programming driver: http://lwn.net/Articles/421434/ Is there any example or readme how to use the Altera FPGA or how to access it ? Is it the best way for jtag programming available in linux ? I try to use it with some GPIO in chip (not jtag

Re: [capabilities] Allow normal inheritance for a configurable set of capabilities

2015-02-02 Thread Casey Schaufler
On 2/2/2015 12:37 PM, Andy Lutomirski wrote: > On Mon, Feb 2, 2015 at 10:08 AM, Serge Hallyn wrote: >> Quoting Casey Schaufler (ca...@schaufler-ca.com): >>> I'm game to participate in such an effort. The POSIX scheme >>> is workable, but given that it's 20 years old and hasn't >>> developed real t

Re: How to fix CDROM/DVD eject mess?

2015-02-02 Thread Ondrej Zary
On Monday 02 February 2015 21:02:23 Austin S Hemmelgarn wrote: > On 2015-02-02 14:34, Maciej W. Rozycki wrote: > > On Mon, 2 Feb 2015, Kay Sievers wrote: > >>> I thought that fixing the udev behavior would solve the problem. But > >>> it turned out that I was too naive. A bigger problem is that a

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

2015-02-02 Thread Brandt, Todd E
Hi Dmitry and Sebastian, can we get this driver included for 3.20? Regards Todd Brandt From: Todd Brandt [todd.e.bra...@linux.intel.com] Sent: Monday, February 02, 2015 12:44 PM To: s...@kernel.org; dbarysh...@gmail.com; Woodhouse, David Cc: linux...@vger.

[PATCH 01/14] cpufreq: exynos4210: properly put of node

2015-02-02 Thread Eduardo Valentin
Call of_node_put when necessary during init. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/cpufreq

[PATCH 03/14] cpufreq: exynos4210: use devm_clk_get

2015-02-02 Thread Eduardo Valentin
Switch to managed clk_get to properly release resources when they are not needed. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: E

[PATCH 06/14] cpufreq: exynos4x12: use devm_clk_get

2015-02-02 Thread Eduardo Valentin
Switch to managed clk_get to properly release resources when they are not needed. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: E

[PATCH 08/14] cpufreq: exynos5250: iounmap in error path

2015-02-02 Thread Eduardo Valentin
When error occurs, allow systems to release iomapped area. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- d

[PATCH 09/14] cpufreq: exynos5250: use devm_clk_get

2015-02-02 Thread Eduardo Valentin
Switch to managed clk_get to properly release resources when they are not needed. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: E

[PATCH 11/14] cpufreq: exynos4210: remove unused symbol cpufreq

2015-02-02 Thread Eduardo Valentin
Now that the set_freq call back receives the intended data struct, the global cpufreq variable may be removed. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vge

[PATCH 14/14] cpufreq: exynos-cpufreq: release resources by using managed allocation

2015-02-02 Thread Eduardo Valentin
This change allows the proper resource release used by this driver. The resources are now allocated using managed allocation by means of the devm_* helper functions. Those resources that cannot be managed are properly released during the device removal time. The global variables have been removed

[PATCH 13/14] cpufreq: exynos5250: remove unused symbol cpufreq

2015-02-02 Thread Eduardo Valentin
Now that the set_freq call back receives the intended data struct, the global cpufreq variable may be removed. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vge

[PATCH] net: usb: sr9700: Use 'SR_' prefix for the common register macros

2015-02-02 Thread Chen Gang S
The commone register macors (e.g. RSR) is too commont to drivers, it may be conflict with the architectures (e.g. xtensa, sh). The related warnings (with allmodconfig under xtensa): CC [M] drivers/net/usb/sr9700.o In file included from drivers/net/usb/sr9700.c:24:0: drivers/net/usb/sr970

[PATCH 02/14] cpufreq: exynos4210: iounmap in error path

2015-02-02 Thread Eduardo Valentin
When error occurs, allow systems to release iomapped area. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- d

[PATCH 04/14] cpufreq: exynos4x12: properly put of node

2015-02-02 Thread Eduardo Valentin
Call of_node_put when necessary during init. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/cpufreq

[PATCH 10/14] cpufreq: exynox-cpufreq: pass exynos_dvfs_info to .set_freq callback

2015-02-02 Thread Eduardo Valentin
This change passes the exynos_dvfs_info to the .set_freq callback to avoid using local static variables. Now, the core can use same allocated data structure and child code can work on same data structure. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: l

Re: [PATCH] Add ARCH_MIGHT_HAVE_VGA_CONSOLE

2015-02-02 Thread Geert Uytterhoeven
Hi Sato-san, Your second version looks fine to me, except for this part: On Mon, Feb 2, 2015 at 4:48 PM, Yoshinori Sato wrote: > --- a/arch/um/Kconfig.common > +++ b/arch/um/Kconfig.common > @@ -9,6 +9,7 @@ config UML > select GENERIC_IO > select GENERIC_CLOCKEVENTS > sel

[PATCH v2] net: bluetooth: hci_sock: Use 'const void *' instead of 'void *' for 2nd parameter of hci_test_bit()

2015-02-02 Thread Chen Gang S
hci_test_bit() does not modify 2nd parameter, so it is better to let it be constant, or may cause build warning. The related warning (with allmodconfig under xtensa): net/bluetooth/hci_sock.c: In function 'hci_sock_sendmsg': net/bluetooth/hci_sock.c:955:8: warning: passing argument 2 of 'hci_t

Re: [PATCH v7 1/4] Documentation: dt: add common bindings for hwspinlock

2015-02-02 Thread Suman Anna
On 02/01/2015 11:55 AM, Bjorn Andersson wrote: > On Fri, Jan 30, 2015 at 9:41 PM, Ohad Ben-Cohen wrote: >> On Sat, Jan 31, 2015 at 1:29 AM, Bjorn Andersson wrote: >>> In a system where you have two hwlock blocks lckA and lckB, each >>> consisting of 8 locks and you have dspB that can only access

Re: [PATCH v3 01/10] ARM: tegra: Set the sound card model that alsaucm expects

2015-02-02 Thread Stephen Warren
On 01/28/2015 03:50 AM, Tomeu Vizoso wrote: Patches are on its way to add a config file to alsaucm for the Nyan boards. Use the same card ID that alsaucm will expect. diff --git a/arch/arm/boot/dts/tegra124-nyan-big.dts b/arch/arm/boot/dts/tegra124-nyan-big.dts sound { -

Re: How to fix CDROM/DVD eject mess?

2015-02-02 Thread Maciej W. Rozycki
On Mon, 2 Feb 2015, Kay Sievers wrote: > > All the technical details aside, this is a bold statement -- how do you > > know what the user actually wants? > > By working with people who spent a lot of time with the questions what > the default behavior of user interfaces should be. Buttons, espec

Re: [PATCH v3 0/2] x86/arm64: add xenconfig

2015-02-02 Thread Michal Marek
Dne 30.1.2015 v 19:25 Luis R. Rodriguez napsal(a): > On Fri, Jan 30, 2015 at 2:49 AM, Michal Marek wrote: >> On 2015-01-29 21:47, Paul Bolle wrote: >>> [Added Michal. Removed Yann.] >>> >>> On Thu, 2015-01-29 at 12:38 -0800, Luis R. Rodriguez wrote: On Tue, Jan 27, 2015 at 12:00 PM, Luis R. R

Re: [PATCH v7 1/4] Documentation: dt: add common bindings for hwspinlock

2015-02-02 Thread Suman Anna
On 02/01/2015 05:00 AM, Ohad Ben-Cohen wrote: > On Sat, Jan 31, 2015 at 7:41 AM, Ohad Ben-Cohen wrote: >> On Sat, Jan 31, 2015 at 1:29 AM, Bjorn Andersson wrote: >>> In a system where you have two hwlock blocks lckA and lckB, each >>> consisting of 8 locks and you have dspB that can only access l

Re: [PATCH] drm: Kconfig: Let all DRM_GEM_CMA_HELPER related macros depend on HAVE_DMA_ATTRS

2015-02-02 Thread Chen Gang S
After this fixing building patch, xtensa can pass allmodconfig. - There are still several warnings for it (I sent several patches for them, but not for all). - Xtensa gcc5 cross compiler has issues: it causes more than 10 broken areas with allmodconfig (but no issues with defconfig).

Re: [PATCH 1/2] arm64: adding cpu lookup functionality

2015-02-02 Thread Mathieu Poirier
On 2 February 2015 at 06:50, Will Deacon wrote: > On Fri, Jan 30, 2015 at 10:54:25PM +, mathieu.poir...@linaro.org wrote: >> From: Mathieu Poirier >> >> Adding a lookup function allowing for quick and easy mapping >> between processor HWID (as found, for example) in DT specifications >> and t

Re: [PATCH v2] net: bluetooth: hci_sock: Use 'const void *' instead of 'void *' for 2nd parameter of hci_test_bit()

2015-02-02 Thread Joe Perches
On Tue, 2015-02-03 at 05:14 +0800, Chen Gang S wrote: > hci_test_bit() does not modify 2nd parameter, so it is better to let it > be constant, or may cause build warning. The related warning (with > allmodconfig under xtensa): [] > diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c []

Re: [PATCH 3/3] dt: paz00: define nvec as child of i2c bus

2015-02-02 Thread Stephen Warren
On 01/29/2015 12:20 AM, Andrey Danin wrote: NVEC driver was reimplemented to use tegra i2c. Use common i2c bindings for NVEC node. diff --git a/Documentation/devicetree/bindings/nvec/nvidia,nvec.txt b/Documentation/devicetree/bindings/nvec/nvidia,nvec.txt The changes to this file make more

[PATCH] ata: Delete unnecessary checks before the function call "pci_dev_put"

2015-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 2 Feb 2015 22:08:29 +0100 The pci_dev_put() 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 Coccinelle software. Signed-off-by: Markus Elfring --- driver

[PATCH] Documentation: Fix trivial typo in comment.

2015-02-02 Thread Sharon Dvir
Changed 'typee' to 'type' Signed-off-by: Sharon Dvir --- diff --git a/include/linux/debugobjects.h b/include/linux/debugobjects.h index 98ffcbd..0e93996 100644 --- a/include/linux/debugobjects.h +++ b/include/linux/debugobjects.h @@ -35,7 +35,7 @@ struct debug_obj { /** * struct debug_obj_desc

[PATCH 7/9] x86, mpx: do 32-bit-only cmpxchg for 32-bit apps

2015-02-02 Thread Dave Hansen
From: Dave Hansen user_atomic_cmpxchg_inatomic() actually looks at sizeof(*ptr) to figure out how many bytes to copy. If we run it on a 64-bit kernel with a 64-bit pointer, it will copy a 64-bit bounds directory entry. That's fine, except when we have 32-bit programs with 32-bit bounds directo

[PATCH 1/9] x86: make is_64bit_mm() widely available

2015-02-02 Thread Dave Hansen
From: Dave Hansen The uprobes code has a nice helper, is_64bit_mm(), that consults both the runtime and compile-time flags for 32-bit support. Instead of reinventing the wheel, pull it in to an x86 header so we can use it for MPX. I prefer passing the mm around to test_thread_flag(TIF_IA32) be

[PATCH 5/9] x86, mpx: Add temporary variable to reduce masking

2015-02-02 Thread Dave Hansen
From: Dave Hansen When we allocate a bounds table, we call mmap(), then add a "valid" bit to the value before storing it in to the bounds directory. If we fail along the way, we go and mask that valid bit _back_ out. That seems a little silly, and this makes it much more clear when we have a p

Re: [PATCH 2/2] user_namespaces.7: Update the documention to reflect the fixes for negative groups

2015-02-02 Thread Alban Crequy
Hello, Thanks for updating the man page. On 12 December 2014 at 22:54, Eric W. Biederman wrote: (...) > Furthermore to preserve in some form the useful applications that have > been setting gid_map without privilege the file /proc/[pid]/setgroups > was added to allow disabling setgroups. With t

gzip initramfs while only lz4/lzop selected

2015-02-02 Thread Stefan Agner
Hi all, Configuring the kernel without gzip support for initramfs but with LZO/LZ4, while not having LZ4 on the build system, leads to a kernel which is not bootable: ... [0.488232] RPC: Registered udp transport module. [0.493437] RPC: Registered tcp transport module. [0.498693] RPC:

Re: [PATCH v3 0/2] x86/arm64: add xenconfig

2015-02-02 Thread Luis R. Rodriguez
On Mon, Feb 2, 2015 at 1:13 PM, Michal Marek wrote: > Dne 30.1.2015 v 19:25 Luis R. Rodriguez napsal(a): >> On Fri, Jan 30, 2015 at 2:49 AM, Michal Marek wrote: >>> On 2015-01-29 21:47, Paul Bolle wrote: [Added Michal. Removed Yann.] On Thu, 2015-01-29 at 12:38 -0800, Luis R. Rodri

[PATCH 9/9] x86, mpx: allow mixed binaries again

2015-02-02 Thread Dave Hansen
From: Dave Hansen We explicitly disable allowing 32-bit binaries to enable MPX on 64-bit kernels. Re-allow that. Signed-off-by: Dave Hansen --- b/arch/x86/mm/mpx.c |6 -- 1 file changed, 6 deletions(-) diff -puN arch/x86/mm/mpx.c~x86-mpx-allow-mixed-binaries-again arch/x86/mm/mpx.c

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

2015-02-02 Thread Julia Lawall
On Mon, 2 Feb 2015, Stephen Boyd wrote: > On 02/01/15 13:24, 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 clk,

[PATCH 8/9] x86, mpx: support 32bit binaries on 64bit kernel

2015-02-02 Thread Dave Hansen
From: Dave Hansen Right now, the kernel can only switch between 64-bit and 32-bit binaries at compile time. This patch adds support for 32-bit binaries on 64-bit kernels when we support ia32 emulation. We essentially choose which set of table sizes to use when doing arithmetic for the bounds ta

[PATCH 2/9] x86: make __VIRTUAL_MASK safe to use on 32 bit

2015-02-02 Thread Dave Hansen
From: Dave Hansen We are going to do some calculations in a moment that are based on the size of the virtual address space. __VIRTUAL_MASK is currently unsafe to use on 32-bit since it overflows an unsigned long with its shift. The current version will emit a warning if used at all on 32-bit k

[PATCH 6/9] x86, mpx: new directory entry to addr helper

2015-02-02 Thread Dave Hansen
From: Dave Hansen Currently, to get from a bounds directory entry to the virtual address of a bounds table, we simply mask off a few low bits. However, the set of bits we mask off is different for 32 and 64-bit binaries. This breaks the operation out in to a helper function and also adds a temp

[PATCH 4/9] x86, mpx: remove redundant MPX_BNDCFG_ADDR_MASK

2015-02-02 Thread Dave Hansen
From: Qiaowei Ren MPX_BNDCFG_ADDR_MASK is defined two times, so this patch removes redundant one. Signed-off-by: Qiaowei Ren Signed-off-by: Dave Hansen --- b/arch/x86/include/asm/mpx.h |1 - 1 file changed, 1 deletion(-) diff -puN arch/x86/include/asm/mpx.h~0001-x86-mpx-remove-redunda

<    1   2   3   4   5   6   7   8   9   >