Re: [PATCH v3 2/3] i2c: iproc: Add Broadcom iProc I2C Driver

2015-01-13 Thread Uwe Kleine-König
Hello, On Tue, Dec 09, 2014 at 07:57:11PM -0800, Ray Jui wrote: > Add initial support to the Broadcom iProc I2C controller found in the > iProc family of SoCs. > > The iProc I2C controller has separate internal TX and RX FIFOs, each has > a size of 64 bytes. The iProc I2C controller supports two

Re: fs: locks: WARNING: CPU: 16 PID: 4296 at fs/locks.c:236 locks_free_lock_context+0x10d/0x240()

2015-01-13 Thread Sasha Levin
On 01/13/2015 04:44 PM, Jeff Layton wrote: > On Tue, 13 Jan 2015 00:11:37 -0500 > Sasha Levin wrote: > >> Hey Jeff, >> >> While fuzzing with trinity inside a KVM tools guest running the latest -next >> kernel, I've stumbled on the following spew: >> >> [ 887.078606] WARNING: CPU: 16 PID: 4296 at

Re: [PATCH] gpu: drm: nouveau: nvif: device: Remove unused function

2015-01-13 Thread Rickard Strandqvist
2015-01-12 0:13 GMT+01:00 Ben Skeggs : > On Sun, Jan 11, 2015 at 11:53 PM, Rickard Strandqvist > wrote: > > Hey Rickard, > >> Remove the function nvif_device_new() that is not used anywhere. > It's used, just not by the kernel. All the code under core/ and nvif/ > is also built into a userspace l

Re: [PATCH v3 4/6] ARM: at91/dt: add SRAM nodes

2015-01-13 Thread Alexandre Belloni
Hi, On 13/01/2015 at 19:12:24 +0100, Alexandre Belloni wrote : > diff --git a/arch/arm/boot/dts/at91sam9rl.dtsi > b/arch/arm/boot/dts/at91sam9rl.dtsi > index 72424371413e..c055da2f151f 100644 > --- a/arch/arm/boot/dts/at91sam9rl.dtsi > +++ b/arch/arm/boot/dts/at91sam9rl.dtsi > @@ -70,6 +70,11 @@

[PATCH] ftrace: don't allow IPMODIFY without proper compiler support (was Re: Re: livepatching tree for linux-next)

2015-01-13 Thread Jiri Kosina
On Mon, 12 Jan 2015, Masami Hiramatsu wrote: > > In any case, Masami, I really think you would like to do something > > like that for IPMODIFY as well ... or are you deliberately defering > > the responsibility to handle the possible mcount fallout to the > > ftrace_ops owner? > > Ah, good poi

Re: [PATCH v12 08/20] dax,ext2: Replace the XIP page fault handler with the DAX page fault handler

2015-01-13 Thread Andrew Morton
On Tue, 13 Jan 2015 16:53:34 -0500 Matthew Wilcox wrote: > /* > * Lock ordering in mm: > * > * inode->i_mutex (while writing or truncating, not reading or faulting) > * mm->mmap_sem > > > > In the worst case, the file still has blocks > > > + * allocated past the end of the fil

Re: [PATCH] selinux: ss: mls: Remove unused function

2015-01-13 Thread Rickard Strandqvist
2015-01-12 21:29 GMT+01:00 Paul Moore : > On Sunday, January 11, 2015 11:44:30 PM Rickard Strandqvist wrote: >> Remove the function mls_import_netlbl_cat() that is not used anywhere. >> >> This was partially found by using a static code analysis program called >> cppcheck. >> >> Signed-off-by: Rick

[PATCH] tracing: Allow raw_syscall tracepoints to work from boot

2015-01-13 Thread Michael Ellerman
In commit 5f893b2639b2 "tracing: Move enabling tracepoints to just after rcu_init()", tracing was enabled earlier in boot. This broke tracing of the raw_syscall tracepoints from boot using the trace_event kernel parameter. When the registration function for the raw_syscall tracepoints runs, it it

[PATCH 3/5] pstore: handle zero-sized prz in series

2015-01-13 Thread Mark Salyzyn
ramoops_pstore_read fails to return the next in a prz series after first zero-sized entry, not venturing to the next non-zero entry. Signed-off-by: Mark Salyzyn --- fs/pstore/ram.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c

[PATCH v3 4/5] pstore: add pmsg

2015-01-13 Thread Mark Salyzyn
A secured user-space accessible pstore object. Writes to /dev/pmsg0 are appended to the buffer, on reboot the persistent contents are available in /sys/fs/pstore/pmsg-ramoops-[ID]. One possible use is syslogd, or other daemon, can write messages, then on reboot provides a means to triage user-spac

[PATCH 5/5] pstore: selinux: add security in-core xattr support for pstore and debugfs

2015-01-13 Thread Mark Salyzyn
- add "pstore" and "debugfs" to list of in-core exceptions - change fstype checks to boolean equation - change from strncmp to strcmp for checking Signed-off-by: Mark Salyzyn --- security/selinux/hooks.c | 25 - 1 file changed, 8 insertions(+), 17 deletions(-) diff --git

[PATCH v2 2/5] pstore: remove superfluous memory size check

2015-01-13 Thread Mark Salyzyn
All previous checks will fail with error if memory size is not sufficient to register a zone, so this legacy check has become redundant. Signed-off-by: Mark Salyzyn Acked-by: Kees Cook --- v2: renumber pmsg series dependencies fs/pstore/ram.c | 9 - 1 file changed, 9 deletions(-) diff

[PATCH v4 1/5] pstore: use scnprintf

2015-01-13 Thread Mark Salyzyn
No guarantees that the names will not exceed the name buffer with future adjustments. Signed-off-by: Mark Salyzyn Acked-by: Joe Perches --- v2: switch from snprintf to scnprintf v3: remove embedded space v4: renumber pmsg series dependencies fs/pstore/inode.c | 23 +-- 1 fi

[PATCH 0/2] Add support for dm81xx to omap intc, remove unused legacy support

2015-01-13 Thread Tony Lindgren
Hi, Here's a patch to get the ti81xx interrupt support working properly, and to remove some unused legacy code. Regards, Tony clone of "xxx-81xx-mainline" Tony Lindgren (2): irqchip: omap-intc: Fix support for dm814 and dm816 irqchip: omap-intc: Remove unused legacy interface for omap2 .

Re: [PATCH 2/2] tile: enable sparse checks for get/put_user

2015-01-13 Thread Michael S. Tsirkin
On Tue, Jan 13, 2015 at 02:41:20PM -0500, Chris Metcalf wrote: > Add an extra intermediate variable to __get_user and __put_user > to give sparse an opportunity to detect mismatches. > > Signed-off-by: Chris Metcalf Reviewed-by: Michael S. Tsirkin > --- > arch/tile/include/asm/uaccess.h | 19

Re: [PATCH 1/2] tile: fix put_user sparse errors

2015-01-13 Thread Michael S. Tsirkin
On Tue, Jan 13, 2015 at 02:39:05PM -0500, Chris Metcalf wrote: > Use x86's __inttype macro instead of using the typeof(x-x) trick to > generate a suitable integer size type. This avoids a sparse warning > when examining the x-x type with a bitwise type. > > Signed-off-by: Chris Metcalf Reviewed

Re: [PATCH] tipc: link: Remove unused function

2015-01-13 Thread David Miller
From: Rickard Strandqvist Date: Tue, 13 Jan 2015 19:24:58 +0100 > Remove the function tipc_link_get_max_pkt() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist This does not apply to net-n

[PATCH 2/2] irqchip: omap-intc: Remove unused legacy interface for omap2

2015-01-13 Thread Tony Lindgren
Nowadays omap2 is booting in device tree only mode so there is no need to keep the legacy interface around for omap2_init_irq(). Cc: Felipe Balbi Signed-off-by: Tony Lindgren --- drivers/irqchip/irq-omap-intc.c | 8 include/linux/irqchip/irq-omap-intc.h | 1 - 2 files changed, 9

Re: [PATCH] atm: lanai: Remove unused function

2015-01-13 Thread David Miller
From: Rickard Strandqvist Date: Tue, 13 Jan 2015 19:45:19 +0100 > Remove the function aal5_spacefor() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist Applied. -- To unsubscribe from this

Re: [RFC PATCH 2/3] core: platform: fix an invalid kfree during of_platform_depopulate

2015-01-13 Thread Rob Herring
On Wed, Jan 7, 2015 at 11:30 AM, Suman Anna wrote: > Drivers can use of_platform_populate() to create platform devices > for children of the device main node, and a complementary API > of_platform_depopulate() is provided to delete these child devices. > Any platform_data supplied for the OF devic

Re: [PATCH] atm: horizon: Remove some unused functions

2015-01-13 Thread David Miller
From: Rickard Strandqvist Date: Tue, 13 Jan 2015 19:50:21 +0100 > Removes some functions that are not used anywhere: > channel_to_vpivci() query_tx_channel_config() rx_disabled_handler() > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by:

[PATCH 1/2] irqchip: omap-intc: Fix support for dm814 and dm816

2015-01-13 Thread Tony Lindgren
On dm81xx we have 128 interrupts like am33xx has. Let's add compatible flags for dm814x and dm816x, and document the existing binding. As the dm81xx are booting in device tree only mode, we can now also remove ti81xx_init_irq() legacy function. Cc: Brian Hutchinson Cc: Felipe Balbi Signed-off-b

Re: [PATCH 4/4] x86: entry_64.S: fold SAVE_ARGS_IRQ macro into its sole user

2015-01-13 Thread Andy Lutomirski
On Sat, Jan 10, 2015 at 2:00 PM, Denys Vlasenko wrote: > No code changes. > > This is a preparatory patch for change in "struct pt_regs" handling. > > Signed-off-by: Denys Vlasenko > CC: Linus Torvalds > CC: Oleg Nesterov > CC: "H. Peter Anvin" > CC: Borislav Petkov > CC: Andy Lutomirski > C

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-13 Thread Jason Gunthorpe
On Tue, Jan 13, 2015 at 03:37:14PM -0600, atull wrote: > > I do agree with this, and I think this is where this patch set goes so > > wrong. > > > > Just exposing all sorts of controls to userspace and having a way for > > the kernel to load/unload a bitstream compleletely misses the point that >

Re: [PATCH] hostfs: Use noop_fsync for directories

2015-01-13 Thread Richard Weinberger
Am 13.01.2015 um 23:19 schrieb Christoph Hellwig: > On Tue, Jan 13, 2015 at 11:15:58PM +0100, Richard Weinberger wrote: >> Daniel reported that dpkg(1) dies if the root filesystem is a hostfs >> because it does not expect fsync(2) to fail with EINVAL on directories. >> While fsync(2) is allowed to

Re: [PATCH] tipc: correctly handle releasing a not fully initialized sock

2015-01-13 Thread David Miller
From: Sasha Levin Date: Tue, 13 Jan 2015 12:46:41 -0500 > Commit "tipc: make tipc node table aware of net namespace" has added a > dereference of sock->sk before making sure it's not NULL, which makes > releasing a tipc socket NULL pointer dereference for sockets that are > not fully initialized.

Re: [PATCH] coresight: fix the link between orphan connection and newly added device

2015-01-13 Thread Mathieu Poirier
On 13 January 2015 at 04:23, Kaixu Xia wrote: > When found a component that has one orphan connection, we should > validate if it match the newly added device. If it does not match, > this component still has an orphan connection(still_orphan = true). > The process should be like this. The origina

Re: [PATCH] hostfs: Use noop_fsync for directories

2015-01-13 Thread Christoph Hellwig
On Tue, Jan 13, 2015 at 11:15:58PM +0100, Richard Weinberger wrote: > Daniel reported that dpkg(1) dies if the root filesystem is a hostfs > because it does not expect fsync(2) to fail with EINVAL on directories. > While fsync(2) is allowed to fail with EINVAL if the filesystem does not > support i

[PATCH 2/2] drm/msm/mdp5: Add hardware cursor support

2015-01-13 Thread Stephane Viau
From: Beeresh Gopal This patch implements the hardware accelarated cursor support for MDP5 platforms. Signed-off-by: Beeresh Gopal Signed-off-by: Wentao Xu Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 164 +++ 1 file changed, 164 ins

[PATCH 0/2] drm/msm/mdp5: hardware cursor support

2015-01-13 Thread Stephane Viau
This patch set contains the hardware cursor changes. Split into two, as usual, in order to separate header file generation from the rest of the code. Beeresh Gopal (1): drm/msm/mdp5: Add hardware cursor support Stephane Viau (1): drm/msm/mdp5: add register description for HW Cursor support

[PATCH 1/2] drm/msm/mdp5: add register description for HW Cursor support

2015-01-13 Thread Stephane Viau
Update generated headers, in particular pick up the definitions for Hardware Cursor support (MDP5). Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 79 + 1 file changed, 79 insertions(+) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5.xm

[GIT PULL] LED fix for 3.19

2015-01-13 Thread Bryan Wu
Hi Linus, Please consider the following changes since commit eaa27f34e91a14cdceed26ed6c6793ec1d186115: linux 3.19-rc4 (2015-01-11 12:44:53 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds.git leds-fixes-for-3.19 for you to fet

[PATCH 2/2] net/macb: improved ethtool statistics support

2015-01-13 Thread Xander Huff
Currently `ethtool -S` simply returns "no stats available". It would be more useful to see what the various ethtool statistics registers' values are. This change implements get_ethtool_stats, get_strings, and get_sset_count functions to accomplish this. Read all GEM statistics registers and sum th

[PATCH] hostfs: Use noop_fsync for directories

2015-01-13 Thread Richard Weinberger
Daniel reported that dpkg(1) dies if the root filesystem is a hostfs because it does not expect fsync(2) to fail with EINVAL on directories. While fsync(2) is allowed to fail with EINVAL if the filesystem does not support it we can do better and use noop_fsync() to not confuse userspace further. C

[PATCH 1/2] net/macb: Adding comments to various #defs to make interpretation easier

2015-01-13 Thread Xander Huff
This change is to help improve at-a-glace knowledge of the purpose of the various Cadence MACB/GEM registers. Comments are more helpful for human readability than short acronyms. Describe various #define varibles Cadence MACB/GEM registers as documented in Xilinix's "Zynq-7000 All Programmable SoC

Re: [PATCH 2/4] x86: ia32entry.S: fix wrong symbolic constant usage: R11->ARGOFFSET

2015-01-13 Thread Andy Lutomirski
On Sat, Jan 10, 2015 at 2:00 PM, Denys Vlasenko wrote: > The values of these two constants are the same, the meaning is different. > > Signed-off-by: Denys Vlasenko > Acked-by: Borislav Petkov > CC: Linus Torvalds > CC: Oleg Nesterov > CC: "H. Peter Anvin" > CC: Borislav Petkov > CC: Andy Lu

Re: [PATCH] mISDN: avoid arch specific __builtin_return_address call

2015-01-13 Thread David Miller
From: Arnd Bergmann Date: Tue, 13 Jan 2015 17:10:58 +0100 > Not all architectures are able to call __builtin_return_address(). > On ARM, the mISDN code produces this warning: > > hardware/mISDN/w6692.c: In function 'w6692_dctrl': > hardware/mISDN/w6692.c:1181:75: warning: unsupported argument to

Re: [PATCH] tcp: Fix RFC reference in comment

2015-01-13 Thread John Heffner
On Tue, Jan 13, 2015 at 4:42 PM, Banerjee, Debabrata wrote: > On 1/13/15, 4:36 PM, "Yuchung Cheng" wrote: > >>On Tue, Jan 13, 2015 at 1:10 PM, Debabrata Banerjee >>wrote: >>> >>> -/* RFC2861. Reset CWND after idle period longer RTO to "restart >>>window". >>> +/* RFC2581 4.1. Reset CWND after id

Re: [PATCH 1/4] x86: entry_64.S: delete unused code

2015-01-13 Thread Andy Lutomirski
On Thu, Jan 8, 2015 at 10:16 AM, Borislav Petkov wrote: > On Thu, Jan 08, 2015 at 05:25:12PM +0100, Denys Vlasenko wrote: >> A define, two macros and an unreferenced bit of assembly are gone. >> >> Signed-off-by: Denys Vlasenko >> CC: Linus Torvalds >> CC: Oleg Nesterov >> CC: "H. Peter Anvin"

Re: [RFC PATCH 1/3] of/device: manage resources similar to platform_device_add

2015-01-13 Thread Rob Herring
On Tue, Jan 13, 2015 at 3:25 PM, Suman Anna wrote: > Hi Rob, > > On 01/13/2015 02:38 PM, Rob Herring wrote: >> On Wed, Jan 7, 2015 at 11:30 AM, Suman Anna wrote: >>> Drivers can use of_platform_populate() to create platform devices >>> for children of the device main node, and a complementary API

[PATCH] tty/isicom: fix big-endian compile warning

2015-01-13 Thread Arnd Bergmann
Building an arm allmodconfig kernel triggers a lengthy but harmless warning in the isicom driver: drvers/tty/isicom.c: In function 'isicom_send_break': uapi/linux/swab.h:13:15: warning: integer overflow in expression [-Woverflow] (((__u16)(x) & (__u16)0x00ffU) << 8) | \ ^ uapi/l

Re: [PATCH v12 09/20] dax,ext2: Replace xip_truncate_page with dax_truncate_page

2015-01-13 Thread Matthew Wilcox
On Mon, Jan 12, 2015 at 03:09:58PM -0800, Andrew Morton wrote: > > + * Similar to block_truncate_page(), this function can be called by a > > + * filesystem when it is truncating an DAX file to handle the partial page. > > + * > > + * We work in terms of PAGE_CACHE_SIZE here for commonality with >

Re: [alsa-devel] unload Audio drivers while playback stream is active case kernel crash

2015-01-13 Thread Mark Brown
On Tue, Jan 13, 2015 at 06:24:44PM +0100, Takashi Iwai wrote: > Wang, Jiada (ESD) wrote: > > I am using i.MX6Q sabreSD board, which have imx_wm892 machine driver, > > wm8962 codec and SSI CPU DAI, > > I got Kernel crash when unloading audio drivers (playback stream is active) > > modprobe -r snd

Re: [PATCH v12 08/20] dax,ext2: Replace the XIP page fault handler with the DAX page fault handler

2015-01-13 Thread Matthew Wilcox
On Mon, Jan 12, 2015 at 03:09:52PM -0800, Andrew Morton wrote: > On Fri, 24 Oct 2014 17:20:40 -0400 Matthew Wilcox > wrote: > > > Instead of calling aops->get_xip_mem from the fault handler, the > > filesystem passes a get_block_t that is used to find the appropriate > > blocks. > > > > ... > >

Re: [v3] gpio_wdt: Add "always_running" feature to GPIO watchdog

2015-01-13 Thread Guenter Roeck
On Fri, Nov 21, 2014 at 10:40:28AM +0100, Mike Looijmans wrote: > On some chips, like the TPS386000, the trigger cannot be disabled > and the CPU must keep toggling the line at all times. Add a switch > "always_running" to keep toggling the GPIO line regardless of the > state of the soft part of th

[PATCH 3.19 v4 0/2] x86, mpx: Instruction decoder fixes and hardening

2015-01-13 Thread Andy Lutomirski
Hi all- Ingo and Thomas, I think this is in decent shape for x86/urgent now if you think it's appropriate to apply at this point in the cycle. Changes from v3: - Replaced MAX_INSN_SIZE with 15 in the decoder change. (Masami) I'll send the patch for 3.20 to fix MAX_INSN_SIZE separately. Chan

Re: [PATCH 1/2] mm: rename mm->nr_ptes to mm->nr_pgtables

2015-01-13 Thread Dave Hansen
On 01/13/2015 01:43 PM, Cyrill Gorcunov wrote: > On Tue, Jan 13, 2015 at 09:14:15PM +0200, Kirill A. Shutemov wrote: >> We're going to account pmd page tables too. Let's rename mm->nr_pgtables >> to something more generic. >> >> Signed-off-by: Kirill A. Shutemov >> --- a/fs/proc/task_mmu.c >> +++

[PATCH 3.19 v4 1/2] x86, mpx: Short-circuit the instruction decoder for unexpected opcodes

2015-01-13 Thread Andy Lutomirski
This reduces the degree to which we're exposing the instruction decoder to malicious user code at very little complexity cost. Signed-off-by: Andy Lutomirski --- arch/x86/mm/mpx.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/arch/x86/mm/mpx.c b/a

[PATCH 3.19 v4 2/2] x86: Enforce maximum instruction size in the instruction decoder

2015-01-13 Thread Andy Lutomirski
x86 instructions cannot exceed 15 bytes, and the instruction decoder should enforce that. Prior to 6ba48ff46f76, the instruction length limit was implicitly set to 16, which was an approximation of 15, but there is currently no limit at all. Fix the decoder to reject instructions that exceed 15 b

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-13 Thread atull
On Tue, 13 Jan 2015, Jason Gunthorpe wrote: > On Tue, Jan 13, 2015 at 04:28:47PM +, One Thousand Gnomes wrote: > > > There is a lot of code overlap in things like loading the bitstreams, > > there is also some overlap because you want to be able to assign FPGA > > resources. For example if yo

Re: [patch 2/2] mm: memcontrol: default hierarchy interface for memory

2015-01-13 Thread Johannes Weiner
On Tue, Jan 13, 2015 at 12:52:58PM -0800, Andrew Morton wrote: > On Tue, 13 Jan 2015 10:50:40 -0500 Johannes Weiner wrote: > > > On Mon, Jan 12, 2015 at 03:37:16PM -0800, Andrew Morton wrote: > > > This all sounds pretty major. How much trouble is this change likely to > > > cause existing memcg

Re: fs: locks: WARNING: CPU: 16 PID: 4296 at fs/locks.c:236 locks_free_lock_context+0x10d/0x240()

2015-01-13 Thread Jeff Layton
On Tue, 13 Jan 2015 00:11:37 -0500 Sasha Levin wrote: > Hey Jeff, > > While fuzzing with trinity inside a KVM tools guest running the latest -next > kernel, I've stumbled on the following spew: > > [ 887.078606] WARNING: CPU: 16 PID: 4296 at fs/locks.c:236 > locks_free_lock_context+0x10d/0x24

Re: [PATCH 1/2] mm: rename mm->nr_ptes to mm->nr_pgtables

2015-01-13 Thread Cyrill Gorcunov
On Tue, Jan 13, 2015 at 09:14:15PM +0200, Kirill A. Shutemov wrote: > We're going to account pmd page tables too. Let's rename mm->nr_pgtables > to something more generic. > > Signed-off-by: Kirill A. Shutemov > --- a/fs/proc/task_mmu.c > +++ b/fs/proc/task_mmu.c > @@ -64,7 +64,7 @@ void task_mem

Re: [PATCH] tcp: Fix RFC reference in comment

2015-01-13 Thread Banerjee, Debabrata
On 1/13/15, 4:36 PM, "Yuchung Cheng" wrote: >On Tue, Jan 13, 2015 at 1:10 PM, Debabrata Banerjee >wrote: >> >> -/* RFC2861. Reset CWND after idle period longer RTO to "restart >>window". >> +/* RFC2581 4.1. Reset CWND after idle period longer RTO to "restart >>window". >> * This is the first p

Re: [RFC][PATCH 6/9] gen_initramfs_list.sh: include xattrs

2015-01-13 Thread Rob Landley
On 01/13/2015 02:20 PM, Mimi Zohar wrote: > On Tue, 2015-01-13 at 12:48 -0600, Rob Landley wrote: >> I note that there are two data formats of interest here: >> >> 1) the cpio file layout. >> >> 2) the list of files generated by gen_initramfs_list.sh and consumed by >> gen_init_cpio. >> >> The f

Re: [PATCH v12 07/20] dax,ext2: Replace ext2_clear_xip_target with dax_clear_blocks

2015-01-13 Thread Matthew Wilcox
On Mon, Jan 12, 2015 at 03:09:47PM -0800, Andrew Morton wrote: > > +int dax_clear_blocks(struct inode *inode, sector_t block, long size) > > +{ ... > > + if (pgsz < PAGE_SIZE) > > + memset(addr, 0, pgsz); > > + else > > +

Re: [PATCH] tcp: Fix RFC reference in comment

2015-01-13 Thread Yuchung Cheng
On Tue, Jan 13, 2015 at 1:10 PM, Debabrata Banerjee wrote: > > Comment in tcp_cwnd_restart() was referencing the wrong RFC for the algorithm > it's implementing. > > Signed-off-by: Debabrata Banerjee > --- > net/ipv4/tcp_output.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff -

[PATCH v2 ] staging: ft1000: fix else style error

2015-01-13 Thread Bilel DRIRA
This patch fix the checkpatch.pl error: ERROR: else should follow close brace '}' Signed-off-by: Bilel DRIRA --- v2: remove braces instead of just putting else after close brace. (suggested by Joe Perches). drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c | 29 --

Re: [PATCH] coresight: remove the unnecessary replicator property

2015-01-13 Thread Mathieu Poirier
On 12 January 2015 at 02:29, Kaixu Xia wrote: > Now we use the device name to identify replicator instead > of a unique number, so just remove it. > > Signed-off-by: Kaixu Xia > --- > Documentation/devicetree/bindings/arm/coresight.txt | 4 > 1 file changed, 4 deletions(-) > > diff --git a/

Re: [PATCH 1/2] mm: rename mm->nr_ptes to mm->nr_pgtables

2015-01-13 Thread Dave Hansen
On 01/13/2015 12:41 PM, Kirill A. Shutemov wrote: > On Tue, Jan 13, 2015 at 12:36:23PM -0800, Dave Hansen wrote: >> On 01/13/2015 11:14 AM, Kirill A. Shutemov wrote: >>> pgd_t * pgd; >>> atomic_t mm_users; /* How many users with user >>> space? */ >>> atomic_t mm_c

Re: [PATCH 06/10] time: Cap clocksource reads to the clocksource max_cycles value

2015-01-13 Thread John Stultz
On Tue, Jan 13, 2015 at 3:11 AM, Peter Zijlstra wrote: > On Fri, Jan 09, 2015 at 04:34:24PM -0800, John Stultz wrote: >> When calculating the current delta since the last tick, we >> currently have no hard protections to prevent a multiplciation >> overflow from ocurring. >> >> This patch introduc

Re: [PATCH] coresight: fix the replicator subtype value

2015-01-13 Thread Mathieu Poirier
On 12 January 2015 at 01:32, Kaixu Xia wrote: > According to the classification, the type of replicator > is link, so the subtype should also be link_subtype. > > Signed-off-by: Kaixu Xia > --- > drivers/coresight/coresight-replicator.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [RFC PATCH 1/3] of/device: manage resources similar to platform_device_add

2015-01-13 Thread Suman Anna
Hi Rob, On 01/13/2015 02:38 PM, Rob Herring wrote: > On Wed, Jan 7, 2015 at 11:30 AM, Suman Anna wrote: >> Drivers can use of_platform_populate() to create platform devices >> for children of the device main node, and a complementary API >> of_platform_depopulate() is provided to delete these chi

[PATCH] X.509: silence asn1 compiler debug output

2015-01-13 Thread Arnd Bergmann
The asn1_compiler process is particularly chatty and produces about the only stdout output for an allmodconfig kernel. In order to follow the general concept of 'no news is good news' for building kernels, this hides all the existing output unless the KBUILD_VERBOSE environment variable is set. S

[PATCH] X.509: shut up about included cert for silent build

2015-01-13 Thread Arnd Bergmann
Every kernel build that includes X.509 support prints out a message like - Including cert signing_key.x509 This may be useful for some cases, but when doing automated build tests, it just means noise. To hide the message, this uses '$(kecho)' for printing the message, which means we still see i

Re: linux-next: Tree for Jan 13 (arm build failure)

2015-01-13 Thread Olof Johansson
Hi, On Tue, Jan 13, 2015 at 1:21 PM, Guenter Roeck wrote: > On Tue, Jan 13, 2015 at 05:41:28PM +1100, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20150112: >> >> The imx-mxs tree gained a conflict against the arm-soc tree. >> >> The mvebu tree gained a conflict against the arm-soc tree

Re: [PATCH] staging: ft1000: fix else style error

2015-01-13 Thread bill
On Tue, Jan 13, 2015 at 08:01:39AM -0800, Joe Perches wrote: > On Tue, 2015-01-13 at 12:57 +0100, Bilel DRIRA wrote: > > ERROR: else should follow close brace '}' > [] > > diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c > > b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c > []

Re: linux-next: Tree for Jan 13 (arm build failure)

2015-01-13 Thread Guenter Roeck
jobs make: *** [dtbs] Error 2 Bisect points to commit 6f1650f15bc ("ARM: dts: Only build dtb if associated Arch and/or SoC is enabled"). Bisect log: # bad: [8fb4ab29bd8400e0060662208573d26b9d91656d] Add linux-next specific files for 20150113 # good: [eaa27f

Re: [Xen-devel] [PATCH v2 2/2] x86/xen: allow privcmd hypercalls to be preempted

2015-01-13 Thread Luis R. Rodriguez
On Thu, Dec 18, 2014 at 02:23:14PM -0500, Konrad Rzeszutek Wilk wrote: > > index 000..b5a3e98 > > --- /dev/null > > +++ b/drivers/xen/preempt.c > > @@ -0,0 +1,17 @@ > > +/* > > + * Preemptible hypercalls > > + * > > + * Copyright (C) 2014 Citrix Systems R&D ltd. > > + * > > + * This source code

[PATCH] ksoftirqd: Enable IRQs and call cond_resched() before poking RCU

2015-01-13 Thread Calvin Owens
While debugging an issue with excessive softirq usage, I encountered the following note in commit 3e339b5dae24a706 ("softirq: Use hotplug thread infrastructure"): [ paulmck: Call rcu_note_context_switch() with interrupts enabled. ] ...but despite this note, the patch still calls RCU with IRQs

[PATCH] dma: coh901318: fix function return types build warnings

2015-01-13 Thread Arnd Bergmann
A recent patch that removed coh901318_control() replaced it with a number of pointers to existing functions, but those unfortunately have the wrong return type and need to be changed to return an 'int' with an error value rather than a 'void' to avoid these build warnings: drivers/dma/coh901318.c

[PATCH] SCSI: initio: remove duplicate module device table

2015-01-13 Thread Arnd Bergmann
The initio driver has for many years had two copies of the same module device table. One of them is also used for registering the other driver, the other one is entirely useless after the large scale cleanup that Alan Cox did back in 2007. The compiler warns about this whenever the driver is built

[PATCH] SCSI: ips: remove pointless #warning

2015-01-13 Thread Arnd Bergmann
The ips driver contains #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" which gets printed by the compiler every time this driver gets build for something other than those three architectures. The same is true for most other drivers, but none of them prints a warning

Re: [PATCH 1/3] module_arch_freeing_init(): new hook for archs before module->module_init freed.

2015-01-13 Thread Helge Deller
On 08.01.2015 01:58, Rusty Russell wrote: Archs have been abusing module_free() to clean up their arch-specific allocations. Since module_free() is also (ab)used by BPF and trace code, let's keep it to simple allocations, and provide a hook called before that. This means that avr32, ia64, paris

RE: [PATCH] usb: dwc2: call dwc2_is_controller_alive() under spinlock

2015-01-13 Thread Paul Zimmerman
> From: Robert Baldyga [mailto:r.bald...@samsung.com] > Sent: Tuesday, January 13, 2015 2:58 AM > > This patch fixes bug described here: > https://lkml.org/lkml/2014/12/22/185 > > Signed-off-by: Robert Baldyga > --- > drivers/usb/dwc2/core_intr.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 d

[PATCH] tcp: Fix RFC reference in comment

2015-01-13 Thread Debabrata Banerjee
Comment in tcp_cwnd_restart() was referencing the wrong RFC for the algorithm it's implementing. Signed-off-by: Debabrata Banerjee --- net/ipv4/tcp_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 65caf8b..0c13f88 10

Re: [v3] gpio_wdt: Add "always_running" feature to GPIO watchdog

2015-01-13 Thread Guenter Roeck
On Fri, Nov 21, 2014 at 10:40:28AM +0100, Mike Looijmans wrote: > On some chips, like the TPS386000, the trigger cannot be disabled > and the CPU must keep toggling the line at all times. Add a switch > "always_running" to keep toggling the GPIO line regardless of the > state of the soft part of th

Re: [PATCH] headers_check: don't warn about kexec.h

2015-01-13 Thread Paul Bolle
[Dragging Andrew, Linus, and Maximilian into this thread.] On Tue, 2015-01-13 at 21:27 +0100, Arnd Bergmann wrote: > On Tuesday 13 January 2015 18:13:32 Paul Bolle wrote: > > The last time that Geoff has been trying to get that patch applied > > should be > > http://lkml.kernel.org/r/b0702fc4186db

Re: [PATCH v12 06/20] dax,ext2: Replace XIP read and write with DAX I/O

2015-01-13 Thread Matthew Wilcox
On Mon, Jan 12, 2015 at 03:09:41PM -0800, Andrew Morton wrote: > On Fri, 24 Oct 2014 17:20:38 -0400 Matthew Wilcox > wrote: > > +/* > > + * When ext4 encounters a hole, it returns without modifying the > > buffer_head > > + * which means that we can't trust b_size. To cope with this, we set >

Re: [PATCH v2 1/5] irqchip: add dumb demultiplexer implementation

2015-01-13 Thread Thomas Gleixner
On Tue, 13 Jan 2015, Boris Brezillon wrote: > + ret = irq_set_handler_data(irq, demux); > + if (ret) { > + pr_err("Failed to assign handler data\n"); > + goto err_free_domain; > + } > + > + irq_set_chained_handler(irq, irq_dumb_demux_handler); > + > + /*

Re: [PATCH 08/10] PCI, parisc: clip firmware assigned resource under parent bridge's

2015-01-13 Thread Helge Deller
On 12.01.2015 20:23, Yinghai Lu wrote: Some bios put range that is not fully coverred by root bus resources. Try to clip them and update them in pci bridge bars. We'd like to fix other arches instead of just x86. Link: https://bugzilla.kernel.org/show_bug.cgi?id=85491 Reported-by: Marek Kordik

Re: [PATCH] ata: pata_at91: depend on !ARCH_MULTIPLATFORM

2015-01-13 Thread Tejun Heo
On Tue, Jan 13, 2015 at 07:25:17PM +0100, Alexandre Belloni wrote: > Until the driver is corrected to stop using mach/at91isam9_smc.h, it won't > compile in a ARCH_MULTIPLATFORM configuration. > > Suggested-by: Arnd Bergmann > Signed-off-by: Alexandre Belloni Applied to libata/for-3.19-fixes.

[PATCH] nfsd: nfs4state: Remove unused function

2015-01-13 Thread Rickard Strandqvist
Remove the function renew_client() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- fs/nfsd/nfs4state.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/fs/nfsd/nfs4state.c b/fs/n

Re: [patch 2/2] mm: memcontrol: default hierarchy interface for memory

2015-01-13 Thread Andrew Morton
On Tue, 13 Jan 2015 10:50:40 -0500 Johannes Weiner wrote: > On Mon, Jan 12, 2015 at 03:37:16PM -0800, Andrew Morton wrote: > > On Thu, 8 Jan 2015 23:15:04 -0500 Johannes Weiner > > wrote: > > > > > Introduce the basic control files to account, partition, and limit > > > memory using cgroups i

Re: [PATCH v2 2/5] irqchip: Add DT binding doc for dumb demuxer chips

2015-01-13 Thread Boris Brezillon
Hi Jason, On Tue, 13 Jan 2015 14:00:50 -0500 Jason Cooper wrote: > Boris, > > On Tue, Jan 13, 2015 at 07:46:18PM +0100, Boris Brezillon wrote: > > Add documentation for the dumb demuxer. > > > > Signed-off-by: Boris Brezillon > > --- > > .../bindings/interrupt-controller/dumb-demux.txt | 3

Re: [PATCH 1/2] drivers: pwm: core: Add pwmchip_add_inversed

2015-01-13 Thread Scott Branden
Patchset looks good. On 15-01-04 05:12 PM, Tim Kryger wrote: Add a new function to register a PWM chip with channels that have their initial polarity as inversed. This benefits drivers of controllers that by default operate with inversed polarity by removing the need to modify the polarity duri

[PATCH 2/2] drm/msm/hdmi: add hdmi hdcp support (V2)

2015-01-13 Thread Jilai Wang
Add HDMI HDCP support including HDCP PartI/II/III authentication. V1: Initial Change V2: Address Bjorn&Rob's comments Refactor the authentication process to use single work instead of multiple work for different authentication stages. Signed-off-by: Jilai Wang --- drivers/gpu/drm/msm/Mak

Re: [RFC PATCH 06/11] x86,fpu: lazily skip fpu restore with eager fpu mode, too

2015-01-13 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/13/2015 12:11 PM, Andy Lutomirski wrote: > On Sun, Jan 11, 2015 at 1:46 PM, wrote: >> diff --git a/arch/x86/include/asm/fpu-internal.h >> b/arch/x86/include/asm/fpu-internal.h index 4db8781..a5a40c7 >> 100644 --- a/arch/x86/include/asm/fpu-int

Re: [RFC PATCH v2 2/9] time: Provide y2106 safe get_seconds() replacement

2015-01-13 Thread Thomas Gleixner
On Tue, 13 Jan 2015, Xunlei Pang wrote: > From: Xunlei Pang > > As part of addressing "y2038 problem" for in-kernel uses, this > patch adds safe get_seconds64() using time64_t. > > After this patch, get_seconds() is deprecated and all its call sites > will be fixed using get_seconds64(), after

Re: [PATCH 1/2] mm: rename mm->nr_ptes to mm->nr_pgtables

2015-01-13 Thread Kirill A. Shutemov
On Tue, Jan 13, 2015 at 12:36:23PM -0800, Dave Hansen wrote: > On 01/13/2015 11:14 AM, Kirill A. Shutemov wrote: > > pgd_t * pgd; > > atomic_t mm_users; /* How many users with user > > space? */ > > atomic_t mm_count; /* How many references to

[PATCH 1/2] drm/msm/hdmi: add register description for HDMI HDCP support (V2)

2015-01-13 Thread Jilai Wang
Add HDCP related register description. V1: Initial Change V2: Add register bit description. Signed-off-by: Jiali Wang --- drivers/gpu/drm/msm/hdmi/hdmi.xml.h | 42 +++-- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.

Re: [RFC PATCH 1/3] of/device: manage resources similar to platform_device_add

2015-01-13 Thread Rob Herring
On Wed, Jan 7, 2015 at 11:30 AM, Suman Anna wrote: > Drivers can use of_platform_populate() to create platform devices > for children of the device main node, and a complementary API > of_platform_depopulate() is provided to delete these child platform > devices. The of_platform_depopulate() lever

Re: [PATCH] dma-mapping: limit dma_mask in arch_setup_dma_ops()

2015-01-13 Thread Murali Karicheri
On 12/24/2014 04:55 PM, Murali Karicheri wrote: dma_mask should be limited to minimum of the default dma mask and dma-range size configured in DT for proper operation. Signed-off-by: Murali Karicheri Reviewed-by: Arnd Bergmann --- arch/arm/mm/dma-mapping.c |1 + 1 file changed, 1 insertio

Re: [PATCH 1/2] mm: rename mm->nr_ptes to mm->nr_pgtables

2015-01-13 Thread Dave Hansen
On 01/13/2015 11:14 AM, Kirill A. Shutemov wrote: > pgd_t * pgd; > atomic_t mm_users; /* How many users with user > space? */ > atomic_t mm_count; /* How many references to > "struct mm_struct" (users count as 1) */ > - atomic_long_t

[PATCH] rnndb: Add register fields for msm/hdmi HDCP support (V2)

2015-01-13 Thread Jilai Wang
This patch adds the field description for HDMI HDCP registers. V1: Initial change V2: Add register bit description. Signed-off-by: Jilai Wang --- rnndb/hdmi/hdmi.xml | 87 - 1 file changed, 79 insertions(+), 8 deletions(-) diff --git a/rnndb/h

Re: [RFC PATCH v2 2/9] time: Provide y2106 safe get_seconds() replacement

2015-01-13 Thread Arnd Bergmann
On Tuesday 13 January 2015 17:17:44 Alessandro Zummo wrote: > On Tue, 13 Jan 2015 23:44:50 +0800 > Xunlei Pang wrote: > > > -EXPORT_SYMBOL(get_seconds); > > +EXPORT_SYMBOL(get_seconds64); > > Please leave get_seconds untouched > The patch leaves it in place. However, we already have ktime_get

Re: linux-next: manual merge of the imx-mxs tree with the arm-soc tree

2015-01-13 Thread Stephen Rothwell
Hi Arnd, On Tue, 13 Jan 2015 14:18:32 +0100 Arnd Bergmann wrote: > > There is an extraneous '\' character behind imx6sx-sdb.dtb now, which caused > build errors for me. We should soon be able to merge the other branches into > arm-soc to avoid the entire set of merge conflicts, until then please

Re: [PATCH] headers_check: don't warn about kexec.h

2015-01-13 Thread Arnd Bergmann
On Tuesday 13 January 2015 18:13:32 Paul Bolle wrote: > > For the seqbuf_dump() stuff there are apparently users. I forgot the > details, but the sound people wanted to keep that declaration (and some > related ancient things) in the header involved to keep some really > ancient stuff buildable. >

[GIT PULL 1/1] kernel: Change ASSIGN_ONCE(val, x) to WRITE_ONCE(x, val)

2015-01-13 Thread Christian Borntraeger
Feedback has shown that WRITE_ONCE(x, val) is easier to use than ASSIGN_ONCE(val,x). There are no in-tree users yet, so lets change it for 3.19. Signed-off-by: Christian Borntraeger Acked-by: Peter Zijlstra Acked-by: Davidlohr Bueso Acked-by: Paul E. McKenney --- include/linux/compiler.h | 12

[GIT PULL 0/1] Change ASSIGN_ONCE(val, x) to WRITE_ONCE(x, val)

2015-01-13 Thread Christian Borntraeger
Linus, The following changes since commit eaa27f34e91a14cdceed26ed6c6793ec1d186115: linux 3.19-rc4 (2015-01-11 12:44:53 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/borntraeger/linux.git tags/for-linus for you to fetch changes up to 43239cb

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