[PATCH 3.12 062/122] MIPS: Fix kernel lockup or crash after CPU offline/online

2015-02-17 Thread Jiri Slaby
From: Hemmo Nieminen 3.12-stable review patch. If anyone has any objections, please let me know. === commit c7754e75100ed5e3068ac5085747f2bfc386c8d6 upstream. As printk() invocation can cause e.g. a TLB miss, printk() cannot be called before the exception handlers have been proper

[PATCH 3.12 052/122] pstore: clarify clearing of _read_cnt in ramoops_context

2015-02-17 Thread Jiri Slaby
From: Liu ShuoX 3.12-stable review patch. If anyone has any objections, please let me know. === commit 57fd835385a043577457a385f28c08be693991bf upstream. *_read_cnt in ramoops_context need to be cleared during pstore ->open to support mutli times getting the records. The patch ad

[PATCH 3.12 098/122] KVM: x86: Distinguish between stack operation and near branches

2015-02-17 Thread Jiri Slaby
From: Nadav Amit 3.12-stable review patch. If anyone has any objections, please let me know. === commit 58b7075d059f7d37ca86c76fb1446fa3447b9f4f upstream. In 64-bit, stack operations default to 64-bits, but can be overriden (to 16-bit) using opsize override prefix. In contrast, ne

[PATCH 3.12 087/122] bridge: dont send notification when skb->len == 0 in rtnl_bridge_notify

2015-02-17 Thread Jiri Slaby
From: Roopa Prabhu 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 59cc49b5b096cdc1f16706a9f931416b2332 ] Reported in: https://bugzilla.kernel.org/show_bug.cgi?id=92081 This patch avoids calling rtnl_notify if the device ndo_b

[PATCH 3.12 110/122] SUNRPC: Ensure that we handle ENOBUFS errors correctly.

2015-02-17 Thread Jiri Slaby
From: Trond Myklebust 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3601c4a91ebbbf1cf69f66a2abeffc6c64a4fe64 upstream. Currently, an ENOBUFS error will result in a fatal error for the RPC call. Normally, we will just want to wait and then r

[PATCH 3.12 108/122] SUNRPC: Ensure that call_connect times out correctly

2015-02-17 Thread Jiri Slaby
From: Trond Myklebust 3.12-stable review patch. If anyone has any objections, please let me know. === commit 485f2251782f7c44299c491d4676a8a01428d191 upstream. When the server is unavailable due to a networking error, etc, we want the RPC client to respect the timeout delays when

[PATCH 3.12 037/122] rbd: drop parent_ref in rbd_dev_unprobe() unconditionally

2015-02-17 Thread Jiri Slaby
From: Ilya Dryomov 3.12-stable review patch. If anyone has any objections, please let me know. === commit e69b8d414f948c242ad9f3eb2b7e24fba783dbbd upstream. This effectively reverts the last hunk of 392a9dad7e77 ("rbd: detect when clone image is flattened"). The problem with pare

[PATCH 3.12 007/122] asus-nb-wmi: Add wapf4 quirk for the U32U

2015-02-17 Thread Jiri Slaby
From: Hans de Goede 3.12-stable review patch. If anyone has any objections, please let me know. === commit 831a444ea6f8f25fd1a9cc9d7651bc18b5a1f755 upstream. As reported here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1173681 the U32U needs wapf=4 too. Signed-off-by: H

[PATCH 3.12 079/122] netxen: fix netxen_nic_poll() logic

2015-02-17 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 6088beef3f7517717bd21d90b379714dd0837079 ] NAPI poll logic now enforces that a poller returns exactly the budget when it wants to be called again. If a driver limi

[PATCH 1/1] ARM: exynos_defconfig: Disable IOMMU support

2015-02-17 Thread Javier Martinez Canillas
Enabling Exynos DRM IOMMU support for Exynos is currently broken and causes a BUG on exynos-iommu driver. This was not an issue since the options was disabled in exynos_defconfig but after commit 8dcc14f82f06 ("drm/exynos: IOMMU support should not be selectable by user"), it is selected if EXYNOS_I

[PATCH 3.12 117/122] parport: parport_pc, do not remove parent devices early

2015-02-17 Thread Jiri Slaby
3.12-stable review patch. If anyone has any objections, please let me know. === commit 91905b6f4afe51e23a3f58df93e4cdc5e49cf40c upstream. When the parport_pc module is removed from the system, all parport devices are iterated in parport_pc_exit and removed by a call to parport_pc_un

[PATCH 3.12 091/122] net: sctp: fix passing wrong parameter header to param_type2af in sctp_process_param

2015-02-17 Thread Jiri Slaby
From: Saran Maruti Ramanara 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit cfbf654efc6d78dc9812e030673b86f235bf677d ] When making use of RFC5061, section 4.2.4. for setting the primary IP address, we're passing a wrong parameter h

[PATCH 3.12 122/122] iscsi_ibft: Fix finding Broadcom specific ibft sign

2015-02-17 Thread Jiri Slaby
From: Vikas Chaudhary 3.12-stable review patch. If anyone has any objections, please let me know. === commit 629c27aa0c930b9c67188cfc625bf6cdd2af6764 upstream. Search for Broadcom specific ibft sign "BIFT" along with other possible values on UEFI This patch is fix for regression

[PATCH 3.12 113/122] udf: Verify i_size when loading inode

2015-02-17 Thread Jiri Slaby
From: Jan Kara 3.12-stable review patch. If anyone has any objections, please let me know. === commit e159332b9af4b04d882dbcfe1bb0117f0a6d4b58 upstream. Verify that inode size is sane when loading inode with data stored in ICB. Otherwise we may get confused later when working with

[PATCH 3.12 082/122] udp_diag: Fix socket skipping within chain

2015-02-17 Thread Jiri Slaby
From: Herbert Xu 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 86f3cddbc3037882414c7308973530167906b7e9 ] While working on rhashtable walking I noticed that the UDP diag dumping code is buggy. In particular, the socket skipping

[PATCH 3.12 115/122] udf: Check component length before reading it

2015-02-17 Thread Jiri Slaby
From: Jan Kara 3.12-stable review patch. If anyone has any objections, please let me know. === commit e237ec37ec154564f8690c5bd1795339955eeef9 upstream. Check that length specified in a component of a symlink fits in the input buffer we are reading. Also properly ignore component

[PATCH 3.12 114/122] udf: Check path length when reading symlink

2015-02-17 Thread Jiri Slaby
From: Jan Kara 3.12-stable review patch. If anyone has any objections, please let me know. === commit 0e5cc9a40ada6046e6bc3bdfcd0c0d7e4b706b14 upstream. Symlink reading code does not check whether the resulting path fits into the page provided by the generic code. This isn't as ea

[PATCH 3.12 118/122] dm: do not call dm_sync_table() when creating new devices

2015-02-17 Thread Jiri Slaby
From: Hannes Reinecke 3.12-stable review patch. If anyone has any objections, please let me know. === commit 41abc4e1af369bb5438eaee398e3beee690cc8ca upstream. When creating new devices dm_sync_table() calls synchronize_rcu_expedited(), causing _all_ pending RCU pointers to be flu

[PATCH 3.12 121/122] ACPI: Fix bug when ACPI reset register is implemented in system memory

2015-02-17 Thread Jiri Slaby
From: Randy Wright 3.12-stable review patch. If anyone has any objections, please let me know. === commit a4714a898e85205e1118ec923cde43d88eb105f6 upstream. Use acpi_os_map_generic_address to pre-map the reset register if it is memory mapped, thereby preventing the BUG_ON() in lin

[PATCH 3.12 119/122] SELinux: fix selinuxfs policy file on big endian systems

2015-02-17 Thread Jiri Slaby
From: Eric Paris 3.12-stable review patch. If anyone has any objections, please let me know. === commit b138004ea0382bdc6d02599c39392651b4f63889 upstream. The /sys/fs/selinux/policy file is not valid on big endian systems like ppc64 or s390. Let's see why: static int hashtab_cnt

[PATCH 3.12 107/122] SUNRPC: Handle connect errors ECONNABORTED and EHOSTUNREACH

2015-02-17 Thread Jiri Slaby
From: Trond Myklebust 3.12-stable review patch. If anyone has any objections, please let me know. === commit df2772700c6ee706be7b2fd16c6bf2c1bf63cda0 upstream. Ensure that call_bind_status, call_connect_status, call_transmit_status and call_status all are capable of handling ECONN

[PATCH 3.12 005/122] asus-nb-wmi: Add wapf4 quirk for the X550CC

2015-02-17 Thread Jiri Slaby
From: Hans de Goede 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6d6ded3bdb0ed6f65d1f58d5d84971f6b3a39b70 upstream. As reported here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1173681 the X550CC needs wapf=4 too. Signed-off-by:

[PATCH 3.12 003/122] asus-nb-wmi: Add ASUSTeK COMPUTER INC. X200CA

2015-02-17 Thread Jiri Slaby
From: AceLan Kao 3.12-stable review patch. If anyone has any objections, please let me know. === commit c66263a368490a200a65639ff826f633090936a9 upstream. BIOS won't light on the wifi-led after S3, so asus-wmi driver needs to control the wifi and wifi-led status. But, it'll lead t

Re: [PATCH 2/4] hw_random: bcm63xx-rng: move register definitions to driver

2015-02-17 Thread Sergei Shtylyov
Hello. On 2/17/2015 5:09 AM, Florian Fainelli wrote: arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h contains the register definitions for this random number generator block, incorporate these register definitions directly into the bcm63xx-rng driver so we do not rely on this header to be pro

[PATCH 3.12 055/122] rbd: fix rbd_dev_parent_get() when parent_overlap == 0

2015-02-17 Thread Jiri Slaby
From: Ilya Dryomov 3.12-stable review patch. If anyone has any objections, please let me know. === commit ae43e9d05eb4bd324155292f889fbd001c4faea8 upstream. The comment for rbd_dev_parent_get() said * We must get the reference before checking for the overlap to * coordina

[PATCH 3.12 000/122] 3.12.38-stable review

2015-02-17 Thread Jiri Slaby
This is the start of the stable review cycle for the 3.12.38 release. There are 122 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed Feb 18 16:19:34 CET 2015. Anything recei

Re: [PATCH 1/2] sched: Move __task_rq_{, un}lock() to kernel/sched/sched.h

2015-02-17 Thread Kirill Tkhai
В Вт, 17/02/2015 в 12:26 +0100, Peter Zijlstra пишет: > On Tue, Feb 17, 2015 at 12:11:16PM +0100, Peter Zijlstra wrote: > > On Tue, Feb 17, 2015 at 01:46:51PM +0300, Kirill Tkhai wrote: > > > > > > Place it in sched.h, because dl_task_timer() needs it. > > > Also remove lockdep check, which is not

Re: [PATCH] media/v4l2-ctrls: Always run s_ctrl on volatile ctrls

2015-02-17 Thread Sakari Ailus
Hi Hans, Hans Verkuil wrote: ... >> Unfortunately, it only works one time, because the next time the user writes >> a zero to the control cluster_changed returns false. >> >> I think on volatile controls it is safer to run s_ctrl twice than missing a >> valid s_ctrl. >> >> I know I am abusing a bi

Re: [PATCH] media/v4l2-ctrls: Always run s_ctrl on volatile ctrls

2015-02-17 Thread Ricardo Ribalda Delgado
Hello Hans I need to figure out how can you reply that fast. Thanks a lot! On Tue, Feb 17, 2015 at 12:17 PM, Hans Verkuil wrote: >> I have a control that tells the user when there has been a external trigger >> overrun. (Trigger while processing old image). This is a volatile control. > > Does

Re: [PATCH 1/2] sched: Move __task_rq_{, un}lock() to kernel/sched/sched.h

2015-02-17 Thread Peter Zijlstra
On Tue, Feb 17, 2015 at 12:11:16PM +0100, Peter Zijlstra wrote: > On Tue, Feb 17, 2015 at 01:46:51PM +0300, Kirill Tkhai wrote: > > > > Place it in sched.h, because dl_task_timer() needs it. > > Also remove lockdep check, which is not fit to this > > function. > > No, that lockdep check is valid

Re: [PATCH 1/2] sched: Move __task_rq_{, un}lock() to kernel/sched/sched.h

2015-02-17 Thread Kirill Tkhai
В Вт, 17/02/2015 в 12:11 +0100, Peter Zijlstra пишет: > On Tue, Feb 17, 2015 at 01:46:51PM +0300, Kirill Tkhai wrote: > > > > Place it in sched.h, because dl_task_timer() needs it. > > Also remove lockdep check, which is not fit to this > > function. > > No, that lockdep check is valid for all cu

Re: [PATCH] media/v4l2-ctrls: Always run s_ctrl on volatile ctrls

2015-02-17 Thread Hans Verkuil
Hi Ricardo, On 02/17/15 12:02, Ricardo Ribalda Delgado wrote: > Volatile controls can change their value outside the v4l-ctrl framework. > > We should ignore the cached written value of the ctrl when evaluating if > we should run s_ctrl. > > Signed-off-by: Ricardo Ribalda Delgado > --- > > I h

Re: [PATCH 1/2] sched: Move __task_rq_{, un}lock() to kernel/sched/sched.h

2015-02-17 Thread Peter Zijlstra
On Tue, Feb 17, 2015 at 01:46:51PM +0300, Kirill Tkhai wrote: > > Place it in sched.h, because dl_task_timer() needs it. > Also remove lockdep check, which is not fit to this > function. No, that lockdep check is valid for all current sites. -- To unsubscribe from this list: send the line "unsubs

Re: [PATCH v2 5/6] irqchip: gicv3-its: add support for power down

2015-02-17 Thread Marc Zyngier
On Tue, 17 Feb 2015 10:15:15 + "Yun Wu (Abel)" wrote: > On 2015/2/17 17:29, Marc Zyngier wrote: > > > On Sun, 15 Feb 2015 09:32:02 + > > Yun Wu wrote: > > > >> It's unsafe to change the configurations of an activated ITS > >> directly since this will lead to unpredictable results. This

Re: [PATCH 7/8] x86,fpu: use disable_task_lazy_fpu_restore helper

2015-02-17 Thread Oleg Nesterov
On 02/17, Borislav Petkov wrote: > > On Fri, Feb 06, 2015 at 03:02:04PM -0500, r...@redhat.com wrote: > > From: Rik van Riel > > > > Replace magic assignments of fpu.last_cpu = ~0 with more explicit > > disable_task_lazy_fpu_restore calls. > > > > This also fixes the lazy FPU restore disabling in

[PATCH] media/v4l2-ctrls: Always run s_ctrl on volatile ctrls

2015-02-17 Thread Ricardo Ribalda Delgado
Volatile controls can change their value outside the v4l-ctrl framework. We should ignore the cached written value of the ctrl when evaluating if we should run s_ctrl. Signed-off-by: Ricardo Ribalda Delgado --- I have a control that tells the user when there has been a external trigger overrun.

Re: [PATCH 3/8] x86, fpu: kill save_init_fpu(), change math_error() to use unlazy_fpu()

2015-02-17 Thread Oleg Nesterov
On 02/16, Rik van Riel wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 02/16/2015 04:09 PM, Borislav Petkov wrote: > > On Fri, Feb 06, 2015 at 03:02:00PM -0500, r...@redhat.com wrote: > >> From: Oleg Nesterov > > >> diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c >

Re: [PATCH] vhost: support upto 509 memory regions

2015-02-17 Thread Paolo Bonzini
On 17/02/2015 10:02, Michael S. Tsirkin wrote: > > Increasing VHOST_MEMORY_MAX_NREGIONS from 65 to 509 > > to match KVM_USER_MEM_SLOTS fixes issue for vhost-net. > > > > Signed-off-by: Igor Mammedov > > This scares me a bit: each region is 32byte, we are talking > a 16K allocation that userspac

[PATCH 3/3] btrfs: check io_ctl_prepare_pages return in __btrfs_write_out_cache

2015-02-17 Thread Omar Sandoval
If io_ctl_prepare_pages fails, the pages in io_ctl.pages are not valid. When we try to access them later, things will blow up in various ways. Signed-off-by: Omar Sandoval --- fs/btrfs/free-space-cache.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/fs/btrfs/free

[PATCH 2/3] btrfs: handle race on ENOMEM in alloc_extent_buffer

2015-02-17 Thread Omar Sandoval
Consider the following interleaving of overlapping calls to alloc_extent_buffer: Call 1: - Successfully allocates a few pages with find_or_create_page - find_or_create_page fails, goto free_eb - Unlocks the allocated pages Call 2: - Calls find_or_create_page and gets a page in call 1's extent_bu

[PATCH 0/3] btrfs: ENOMEM bugfixes

2015-02-17 Thread Omar Sandoval
Hi, As it turns out, running with low memory is a really easy way to shake out undesirable behavior in Btrfs. This can be especially bad when considering that a memory limit is really easy to hit in a container (e.g., by using cgroup memory.limit_in_bytes). Here's a simple script that can hit seve

[PATCH 1/3] btrfs: handle ENOMEM in btrfs_alloc_tree_block

2015-02-17 Thread Omar Sandoval
This is one of the first places to go when memory is tight. Handle it properly rather than with a BUG_ON. Signed-off-by: Omar Sandoval --- fs/btrfs/extent-tree.c | 41 - 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/fs/btrfs/extent-tree.c

Re: [PATCH 2/8] x86, fpu: unlazy_fpu: don't do __thread_fpu_end() if use_eager_fpu()

2015-02-17 Thread Oleg Nesterov
On 02/16, Borislav Petkov wrote: > > On Fri, Feb 06, 2015 at 03:01:59PM -0500, r...@redhat.com wrote: > > From: Oleg Nesterov > > > > unlazy_fpu()->__thread_fpu_end() doesn't look right if use_eager_fpu(). > > Unconditional __thread_fpu_end() is only correct if we know that this > > thread can't r

[PATCH 2/2] [PATCH] sched: Add smp_rmb() in task rq locking cycles

2015-02-17 Thread Kirill Tkhai
We migrate a task using TASK_ON_RQ_MIGRATING state of on_rq: raw_spin_lock(&old_rq->lock); deactivate_task(old_rq, p, 0); p->on_rq = TASK_ON_RQ_MIGRATING; set_task_cpu(p, new_cpu); raw_spin_unlock(&rq->lock); I.e.: write TASK_ON_RQ_MIGRATING

[PATCH 1/2] sched: Move __task_rq_{, un}lock() to kernel/sched/sched.h

2015-02-17 Thread Kirill Tkhai
Place it in sched.h, because dl_task_timer() needs it. Also remove lockdep check, which is not fit to this function. Similar to idea of Josh Poimboeuf for task_rq_{,un}lock(): https://lkml.org/lkml/2015/2/9/476 Signed-off-by: Kirill Tkhai CC: Josh Poimboeuf --- kernel/sched/core.c | 28

Payment

2015-02-17 Thread Finance Department
Dear Recipient, You have been awarded the sum of 8,000,000.00 (Eight Million Pounds sterling) with reference number 77100146 by office of the ministry of finance UK.Send us your personal details to deliver your funds. Gloria Peter -- To unsubscribe from this list: send the line "unsubscribe li

Re: [PATCH v2] x86, kaslr: propagate base load address calculation

2015-02-17 Thread Borislav Petkov
On Fri, Feb 13, 2015 at 04:04:55PM +0100, Jiri Kosina wrote: > Commit e2b32e678 ("x86, kaslr: randomize module base load address") makes > the base address for module to be unconditionally randomized in case when > CONFIG_RANDOMIZE_BASE is defined and "nokaslr" option isn't present on the > comm

Re: [PATCH 32/35] clockevents: Fix cpu down race for hrtimer based broadcasting

2015-02-17 Thread Peter Zijlstra
On Tue, Feb 17, 2015 at 09:33:45AM +0530, Preeti U Murthy wrote: > On 02/16/2015 05:45 PM, Peter Zijlstra wrote: > > >> From: Thomas Gleixner > > >> @@ -428,7 +428,7 @@ static int __ref _cpu_down(unsigned int > >>__cpu_die(cpu); > >> > >>/* CPU is completely dead: tell everyone. Too lat

Re: [PATCH v3 1/2] mtd: nand: pxa3xx: Fix PIO FIFO draining

2015-02-17 Thread Maxime Ripard
On Mon, Feb 16, 2015 at 10:36:02PM +0100, Robert Jarzmik wrote: > diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c > index e512902..6e569e9 100644 > --- a/drivers/mtd/nand/pxa3xx_nand.c > +++ b/drivers/mtd/nand/pxa3xx_nand.c > @@ -576,11 +576,20 @@ static void start_data

[PATCH] ipv4: ip_check_defrag should correctly check return value of skb_copy_bits

2015-02-17 Thread Alexander Drozdov
skb_copy_bits() returns zero on success and negative value on error, so it is needed to invert the condition in ip_check_defrag(). Fixes: 1bf3751ec90c ("ipv4: ip_check_defrag must not modify skb before unsharing") Signed-off-by: Alexander Drozdov --- net/ipv4/ip_fragment.c | 2 +- 1 file change

Re: [PATCH RFC v9 01/20] clk: divider: Correct parent clk round rate if no bestdiv is normally found

2015-02-17 Thread Sascha Hauer
On Mon, Feb 16, 2015 at 01:18:13PM +0200, Tomi Valkeinen wrote: > On 13/02/15 20:57, Sascha Hauer wrote: > > On Fri, Feb 13, 2015 at 04:35:36PM +0200, Tomi Valkeinen wrote: > >> On 12/02/15 15:41, Sascha Hauer wrote: > >> > >>> Tomis patch is based on the assumption that > >>> clk_set_rate(clk_rou

Re: [PATCH v3 1/2] mtd: nand: pxa3xx: Fix PIO FIFO draining

2015-02-17 Thread Maxime Ripard
On Mon, Feb 16, 2015 at 01:57:12PM -0300, Ezequiel Garcia wrote: > On 02/16/2015 01:41 PM, Maxime Ripard wrote: > > On Mon, Feb 16, 2015 at 05:27:53PM +0100, Thomas Petazzoni wrote: > >> Dear Maxime Ripard, > >> > >> On Mon, 16 Feb 2015 13:51:11 +0100, Maxime Ripard wrote: > >> > >>> + whil

Re: [PATCH 3/3] pm: at91: flush data cache and clean, invalidate and disable the L2 cache

2015-02-17 Thread Alexandre Belloni
On 12/02/2015 at 10:52:58 +0800, Wenyou Yang wrote : > Flush data cache, and clean, invalidate and disable the L2 cache before going > to suspend. > Restore the L2 cache configuration and re-enable the L2 cache after waking up. > > Signed-off-by: Wenyou Yang Acked-by: Alexandre Belloni > --- >

Re: [PATCH 2/3] pm: at91: pm_suspend: MOR register KEY was missing

2015-02-17 Thread Alexandre Belloni
On 12/02/2015 at 10:52:13 +0800, Wenyou Yang wrote : > From: Patrice Vilchez > > Because writing the MOR register requires the PASSWD(0x37), > if missed, the write operation will be aborted. > > Signed-off-by: Patrice Vilchez Acked-by: Alexandre Belloni > --- > arch/arm/mach-at91/pm_suspend.

Re: [PATCH 1/3] pm: at91: pm_suspend: add the WFI instruction support for ARMv7

2015-02-17 Thread Alexandre Belloni
On 12/02/2015 at 10:51:26 +0800, Wenyou Yang wrote : > Add the WFI instruction to make the cpu to the idle state. > In the meanwhile, disable the processor's clock. > > Signed-off-by: Wenyou Yang Acked-by: Alexandre Belloni > --- > arch/arm/mach-at91/pm_suspend.S | 20 +++- >

Re: [PATCH v2 5/6] irqchip: gicv3-its: add support for power down

2015-02-17 Thread Yun Wu (Abel)
On 2015/2/17 17:29, Marc Zyngier wrote: > On Sun, 15 Feb 2015 09:32:02 + > Yun Wu wrote: > >> It's unsafe to change the configurations of an activated ITS directly >> since this will lead to unpredictable results. This patch guarantees >> a safe quiescent status before initializing an ITS. >

Re: [PATCHv2] perf/stat: Report unsupported events properly

2015-02-17 Thread Suzuki K. Poulose
On 13/02/15 20:50, Arnaldo Carvalho de Melo wrote: Em Fri, Feb 13, 2015 at 12:39:24PM -0700, David Ahern escreveu: On 02/13/2015 11:40 AM, Suzuki K. Poulose wrote: From: "Suzuki K. Poulose" Commit 1971f59 (perf stat: Use read_counter in read_counter_aggr ) broke the perf stat output for uns

Re: [PATCH RT] rt: add rwsem_is_contended() definition to rwsem_rt.h

2015-02-17 Thread Sebastian Andrzej Siewior
* Clark Williams | 2014-08-27 16:09:28 [-0500]: >Thomas, > >The latest btrfs code uses rwsem_is_contended() in the function >caching_thread(). On RT systems, include/linux/rwsem.h is replaced with >include/linux/rwsem_rt.h which does not provide a definition for >rwsem_is_contended(). This commit

Re: [Xen-devel] [PATCH v4] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-17 Thread Jan Beulich
>>> On 17.02.15 at 07:51, wrote: > --- a/Documentation/kernel-parameters.txt > +++ b/Documentation/kernel-parameters.txt > @@ -3438,10 +3438,12 @@ bytes respectively. Such letter suffixes can also be > entirely omitted. > it if 0 is given (See Documentation/cgroups/memory.tx

RE: [PATCH V6 03/10] USB: f81232: implement RX bulk-in ep

2015-02-17 Thread David Laight
From: Greg KH > > + for (i = 0 ; i < urb->actual_length ; i += 2) { > > + tty_flag = TTY_NORMAL; > > + > > + if (unlikely(data[i+0] & UART_LSR_BRK_ERROR_BITS)) { > > Never use unlikely() unless you can prove that it actually matters if > you use it. Hint, it's almost impossi

Re: [PATCH 33/35] tick: Make hrtimer broadcasting opt-in

2015-02-17 Thread Lorenzo Pieralisi
On Mon, Feb 16, 2015 at 12:15:08PM +, Peter Zijlstra wrote: > From: Thomas Gleixner > > We keep adding unconditional stuff to the core code which just bloats > the text and data size for no value. hrtimer based broadcasting is > currently only used on arm64 and powerpc. Make it conditional. >

Re: [RFC][PATCH] perf: Implement read_group() PMU operation

2015-02-17 Thread Peter Zijlstra
On Tue, Feb 17, 2015 at 12:33:12AM -0800, Sukadev Bhattiprolu wrote: > Peter Zijlstra [pet...@infradead.org] wrote: > | > --- a/kernel/events/core.c > | > +++ b/kernel/events/core.c > | > @@ -3549,10 +3549,43 @@ static int perf_event_read_group(struct > perf_event *event, > | > | You also want pe

Re: [Xen-devel] [PATCH V5] x86 spinlock: Fix memory corruption on completing completions

2015-02-17 Thread Raghavendra K T
On 02/16/2015 10:17 PM, David Vrabel wrote: On 15/02/15 17:30, Raghavendra K T wrote: --- a/arch/x86/xen/spinlock.c +++ b/arch/x86/xen/spinlock.c @@ -41,7 +41,7 @@ static u8 zero_stats; static inline void check_zero(void) { u8 ret; - u8 old = ACCESS_ONCE(zero_stats); + u8

Re: [PATCH v2 3/6] irqchip: gicv3-its: limit order of DT size to MAX_ORDER

2015-02-17 Thread Yun Wu (Abel)
On 2015/2/17 17:19, Marc Zyngier wrote: > On Sun, 15 Feb 2015 09:32:00 + > Yun Wu wrote: > >> When required DT size is out of the kmalloc()'s capability, the whole > > Nit: Using the DT acronym is very confusing here, as it means "Device > Tree" to most people, including me. Please use "Dev

Re: [PATCH V6 05/10] USB: f81232: implement MCR/MSR function

2015-02-17 Thread Johan Hovold
On Mon, Feb 16, 2015 at 03:57:57PM +0800, Peter Hung wrote: > This patch implement relative MCR/MSR function, such like > tiocmget()/tiocmset()/dtr_rts(). > > The f81232_set_mctrl() replace set_control_lines() to do MCR control > so we clean-up the set_control_lines() function. > > Signed-off-by:

Re: [PATCH 5/9] mtd: pxa3xx_nand: add support for the Marvell Berlin nand controller

2015-02-17 Thread Antoine Tenart
Robert, On Thu, Feb 12, 2015 at 05:26:20PM +0100, Robert Jarzmik wrote: > Antoine Tenart writes: > > >> All these ifs per variant will add complexity to the current driver, won't > >> they > >> ? > > > > Given the current state of this driver I believe this would be a better > > idea to first r

Re: [PATCH V6 08/10] USB: f81232: fix read MSR strange value

2015-02-17 Thread Johan Hovold
On Mon, Feb 16, 2015 at 03:58:00PM +0800, Peter Hung wrote: > When we use RS232 loopback, assume doing RTS change will cause > CTS change, DTR change will cause DCD/DSR change too. > > Sometimes we got 7~4 bits of MSR changed but the 3~0 bits of > MSR(delta) maybe not changed when set & get MCR fa

Re: [PATCH v3 1/2] mtd: nand: pxa3xx: Fix PIO FIFO draining

2015-02-17 Thread Maxime Ripard
On Mon, Feb 16, 2015 at 10:36:02PM +0100, Robert Jarzmik wrote: > Maxime Ripard writes: > > >> I don't think an mdelay(256) is acceptable. > > > > That's very true that this driver would need some love, but > > valentine's day was last week. > > That doesn't cope with the 256ms mdelay. And a pote

Re: [PATCH 1/2] [media] mantis: Move jump label to activate dead code

2015-02-17 Thread Silvan Jegen
Thanks for the review, Dan! On Mon, Feb 16, 2015 at 10:04 AM, Dan Carpenter wrote: > On Sun, Feb 15, 2015 at 01:11:04PM +0100, Silvan Jegen wrote: >> diff --git a/drivers/media/pci/mantis/mantis_cards.c >> b/drivers/media/pci/mantis/mantis_cards.c >> index 801fc55..e566061 100644 >> --- a/driver

Re: [PATCHv2 1/2] drm: atmel-hlcdc: Add PM suspend/resume support

2015-02-17 Thread Andrzej Hajda
Hi Sylvain, Few comments below. On 02/12/2015 09:49 PM, Sylvain Rochet wrote: > On suspend: switch off CRTC if not already suspended with runtime PM > > On resume: switch on CRTC if we were not already suspended from runtime > PM while suspending. > > Signed-off-by: Sylvain Rochet > --- > dri

Re: [PATCH v2 2/6] irqchip: gicv3-its: use 64KB page as default granule

2015-02-17 Thread Marc Zyngier
On Sun, 15 Feb 2015 09:31:59 + Yun Wu wrote: > The field of page size in register GITS_BASERn might be read-only > if an implementation only supports a single, fixed page size. But > currently the ITS driver will throw out an error when PAGE_SIZE > is less than the minimum size supported by a

Re: [PATCH v3 10/15] h8300: Build scripts

2015-02-17 Thread Paul Bolle
On Tue, 2015-02-17 at 16:39 +0900, Yoshinori Sato wrote: > At Sun, 15 Feb 2015 20:23:04 +0100, > Paul Bolle wrote: > > On Sun, 2015-02-15 at 16:49 +0900, Yoshinori Sato wrote: > > > diff --git a/arch/h8300/Kconfig.debug b/arch/h8300/Kconfig.debug > > > new file mode 100644 > > > index 000..eb72

Re: [PATCH v4 3/3] mm/compaction: enhance compaction finish condition

2015-02-17 Thread Vlastimil Babka
On 02/12/2015 08:15 AM, Joonsoo Kim wrote: Compaction has anti fragmentation algorithm. It is that freepage should be more than pageblock order to finish the compaction if we don't find any freepage in requested migratetype buddy list. This is for mitigating fragmentation, but, there is a lack of

Re: [PATCH 33/45] include/uapi/asm-generic/signal.h: include stdlib.h in userspace

2015-02-17 Thread Arnd Bergmann
On Tuesday 17 February 2015 00:05:36 Mikko Rapeli wrote: > Fixes compiler warning: > error: unknown type name ‘size_t’ > > Signed-off-by: Mikko Rapeli > --- > include/uapi/asm-generic/signal.h | 4 > 1 file changed, 4 insertions(+) > > diff --git a/include/uapi/asm-generic/signal.h > b/in

Re: [PATCH V6 07/10] USB: f81232: fix error in f81232_carrier_raised()

2015-02-17 Thread Johan Hovold
On Mon, Feb 16, 2015 at 03:57:59PM +0800, Peter Hung wrote: > It's should compared with UART_MSR_DCD, not UART_DCD. > also we clean-up some non-used define to avoid impropriety use. > > Signed-off-by: Peter Hung > --- > drivers/usb/serial/f81232.c | 16 +--- > 1 file changed, 1 inser

Re: [PATCH v4 2/3] mm/page_alloc: factor out fallback freepage checking

2015-02-17 Thread Vlastimil Babka
On 02/12/2015 08:15 AM, Joonsoo Kim wrote: This is preparation step to use page allocator's anti fragmentation logic in compaction. This patch just separates fallback freepage checking part from fallback freepage management part. Therefore, there is no functional change. Signed-off-by: Joonsoo K

Re: [PATCH 4/4] ARM OMAP2+ GPMC: add bus children

2015-02-17 Thread Roger Quadros
On 16/02/15 17:49, Robert ABEL wrote: > This patch adds support for spawning busses as children of the GPMC. > > Signed-off-by: Robert ABEL > --- > arch/arm/mach-omap2/gpmc.c | 14 +- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/mach-omap2/gpmc.c b/arc

Re: [PATCH RT] sched: Do not clear PF_NO_SETAFFINITY flag in select_fallback_rq()

2015-02-17 Thread Sebastian Andrzej Siewior
* Steven Rostedt | 2014-07-01 11:14:44 [-0400]: >I talked with Peter Zijlstra about this, and he told me that the clearing >of the PF_NO_SETAFFINITY flag was to deal with the optimization of >migrate_disable/enable() that ignores tasks that have that flag set. But >that optimization was removed wh

[PATCH v2] mm, hugetlb: set PageLRU for in-use/active hugepages

2015-02-17 Thread Naoya Horiguchi
On Tue, Feb 17, 2015 at 03:22:45AM +, Horiguchi Naoya(堀口 直也) wrote: > Currently we are not safe from concurrent calls of isolate_huge_page(), > which can make the victim hugepage in invalid state and results in BUG_ON(). > > The root problem of this is that we don't have any information on str

Re: [PATCH v2 5/6] irqchip: gicv3-its: add support for power down

2015-02-17 Thread Marc Zyngier
On Sun, 15 Feb 2015 09:32:02 + Yun Wu wrote: > It's unsafe to change the configurations of an activated ITS directly > since this will lead to unpredictable results. This patch guarantees > a safe quiescent status before initializing an ITS. Please change the title of this patch to reflect w

Re: [v3.10-rt / v3.12-rt] scheduling while atomic in cgroup code

2015-02-17 Thread Sebastian Andrzej Siewior
* Mike Galbraith | 2014-06-21 10:09:48 [+0200]: >--- a/mm/memcontrol.c >+++ b/mm/memcontrol.c >@@ -2398,16 +2398,18 @@ static bool consume_stock(struct mem_cgr > { > struct memcg_stock_pcp *stock; > bool ret = true; >+ int cpu; > > if (nr_pages > CHARGE_BATCH) >

Re: [PATCH 3/4] ARM OMAP2+ GPMC: fix WAITMONITORINGTIME divider bug

2015-02-17 Thread Roger Quadros
Robert, On 16/02/15 17:49, Robert ABEL wrote: > WAITMONITORINGTIME is expressed in GPMC_CLK cycles (even for asynchronous > accesses). > However the driver currently converts them to GPMC_FCLK cycles, thus > waitmonitoringtime in dt > had to be predivided by divider as a workaround. This patch f

Re: drm/exynos: DRM_EXYNOS7DECON?

2015-02-17 Thread Inki Dae
On 2015년 02월 17일 18:04, Paul Bolle wrote: > Your commit 96976c3d9aff ("drm/exynos: Add DECON driver") is included in > today's linux-next (ie, next-20150217). I noticed because a script I use > to check linux-next spotted a problem with it. > > It add

Re: [PATCH 1/3] sched: add sched_task_call()

2015-02-17 Thread Peter Zijlstra
On Mon, Feb 16, 2015 at 04:05:05PM -0600, Josh Poimboeuf wrote: > Yeah, I can understand that. I definitely want to avoid touching the > scheduler code. Basically I'm trying to find a way to atomically do the > following: > > if (task is sleeping) { > walk the stack > if (certain set

[PATCH v10 2/12] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-17 Thread Namjae Jeon
This patch implements fallocate's FALLOC_FL_INSERT_RANGE for XFS. 1) Make sure that both offset and len are block size aligned. 2) Update the i_size of inode by len bytes. 3) Compute the file's logical block number against offset. If the computed block number is not the starting block of the ex

[PATCH v10 11/12] xfstests: fsx: Add fallocate insert range operation

2015-02-17 Thread Namjae Jeon
This commit adds fallocate FALLOC_FL_INSERT_RANGE support for fsx. Signed-off-by: Namjae Jeon Signed-off-by: Ashish Sangwan Reviewed-by: Brian Foster --- ltp/fsx.c | 124 - 1 file changed, 114 insertions(+), 10 deletions(-) diff --g

[PATCH v10 1/12] fs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2015-02-17 Thread Namjae Jeon
FALLOC_FL_INSERT_RANGE command is the opposite command of FALLOC_FL_COLLAPSE_RANGE that is needed for advertisers or someone who want to add some data in the middle of file. FALLOC_FL_INSERT_RANGE will create space for writing new data within a file after shifting extents to right as given length.

Re: [PATCH 01/11] mfd: add the Berlin controller driver

2015-02-17 Thread Antoine Tenart
Lee, On Mon, Feb 16, 2015 at 12:48:08PM +, Lee Jones wrote: > On Wed, 11 Feb 2015, Antoine Tenart wrote: > > > --- a/drivers/mfd/Kconfig > > +++ b/drivers/mfd/Kconfig > > @@ -840,6 +840,11 @@ config STMPE_SPI > > This is used to enable SPI interface of STMPE > > endmenu > > > > +conf

Re: [PATCH v2 3/6] irqchip: gicv3-its: limit order of DT size to MAX_ORDER

2015-02-17 Thread Marc Zyngier
On Sun, 15 Feb 2015 09:32:00 + Yun Wu wrote: > When required DT size is out of the kmalloc()'s capability, the whole Nit: Using the DT acronym is very confusing here, as it means "Device Tree" to most people, including me. Please use "Device Table" instead. Also, the reference to kmalloc is

Re: [PATCH 1/1] kernel/fork.c: avoid division by zero

2015-02-17 Thread Heinrich Schuchardt
On 17.02.2015 08:56, Vladimir Davydov wrote: > On Mon, Feb 16, 2015 at 07:00:44PM +0100, Heinrich Schuchardt wrote: >> diff --git a/kernel/fork.c b/kernel/fork.c >> index cf65139..71e2583 100644 >> --- a/kernel/fork.c >> +++ b/kernel/fork.c >> @@ -273,7 +273,8 @@ void __init fork_init(unsigned long

Re: [PATCH 34/45] include/uapi/asm-generic/signal.h: hide sigset_t definition in userspace

2015-02-17 Thread Arnd Bergmann
On Tuesday 17 February 2015 00:05:37 Mikko Rapeli wrote: > +#ifdef __KERNEL__ > +/* already defined in userspace via stdlib.h */ > typedef struct { > unsigned long sig[_NSIG_WORDS]; > } sigset_t; > +#endif /* __KERNEL__ */ I'm not sure here: Is this structure always identical to the one

Re: [PATCH 37/45] include/uapi/linux/socket.h: include sys/socket.h in userspace

2015-02-17 Thread Arnd Bergmann
On Tuesday 17 February 2015 00:05:40 Mikko Rapeli wrote: > This libc header has sockaddr definition for userspace. > Fixes compilation errors like: > error: field ‘ifru_addr’ has incomplete type > struct sockaddr ifru_addr; > > Signed-off-by: Mikko Rapeli > --- > include/uapi/linux/socket.h | 4

Re: [PATCH 45/45] include/uapi/asm-generic/ucontext.h: include signal.h and sigcontext.h

2015-02-17 Thread Arnd Bergmann
On Tuesday 17 February 2015 00:05:48 Mikko Rapeli wrote: > #ifndef __ASM_GENERIC_UCONTEXT_H > #define __ASM_GENERIC_UCONTEXT_H > > +#include > +#include > + > struct ucontext { > Including another asm-generic header here is a bad idea: it breaks if an architecture overrides asm/signal.h wi

Re: [PATCH 15/45] dm-log-userspace.h: include stdint.h in userspace

2015-02-17 Thread Arnd Bergmann
On Tuesday 17 February 2015 00:05:18 Mikko Rapeli wrote: > --- a/include/uapi/linux/dm-log-userspace.h > +++ b/include/uapi/linux/dm-log-userspace.h > @@ -7,6 +7,11 @@ > #ifndef __DM_LOG_USERSPACE_H__ > #define __DM_LOG_USERSPACE_H__ > > +#ifdef __KERNEL__ > +#include > +#else > +#include > +

drm/exynos: DRM_EXYNOS7DECON?

2015-02-17 Thread Paul Bolle
Your commit 96976c3d9aff ("drm/exynos: Add DECON driver") is included in today's linux-next (ie, next-20150217). I noticed because a script I use to check linux-next spotted a problem with it. It added an (optional) dependency on DRM_EXYNOS7DECON instead of DRM_EXYNOS7_DECON (see

Re: brcmsmac: TX power blocked in BCM4313

2015-02-17 Thread Nikita N.
Hi Arend, > brcmsmac does assure tx power is within regulatory limits by enforcing a > world regulatory domain. So what is not supported is modifying tx power > settings through user-space. Yes, I believe that could be right, *a* world regulatory domain looks indeed enforced, the USA one only,

Re: [PATCH] vhost: support upto 509 memory regions

2015-02-17 Thread Michael S. Tsirkin
On Fri, Feb 13, 2015 at 03:49:59PM +, Igor Mammedov wrote: > since commit > 1d4e7e3 kvm: x86: increase user memory slots to 509 > > it became possible to use a bigger amount of memory > slots, which is used by memory hotplug for > registering hotplugged memory. > However QEMU aborts if it's u

Re: [PATCH 7/8] x86,fpu: use disable_task_lazy_fpu_restore helper

2015-02-17 Thread Borislav Petkov
On Fri, Feb 06, 2015 at 03:02:04PM -0500, r...@redhat.com wrote: > From: Rik van Riel > > Replace magic assignments of fpu.last_cpu = ~0 with more explicit > disable_task_lazy_fpu_restore calls. > > This also fixes the lazy FPU restore disabling in drop_fpu, which > only really works when !use_e

Re: [PATCH V6 04/10] USB: f81232: implement set_termios

2015-02-17 Thread Johan Hovold
On Mon, Feb 16, 2015 at 03:57:56PM +0800, Peter Hung wrote: > The original driver had do not any h/w change in driver. > This patch implements with configure H/W for > baud/parity/word length/stop bits functional. > > Some init step extract to f81232_port_init(), called once with open(). > And ref

Re: [PATCH 0/7] [RFC] kernel: add a netlink interface to get information about processes

2015-02-17 Thread Arnd Bergmann
On Tuesday 17 February 2015 11:20:19 Andrey Vagin wrote: > task_diag is based on netlink sockets and looks like socket-diag, which > is used to get information about sockets. > > A request is described by the task_diag_pid structure: > > struct task_diag_pid { >__u64 show_flags; /*

<    2   3   4   5   6   7   8   >