Re: [GIT] Networking

2014-06-16 Thread Dave Jones
On Sun, Jun 15, 2014 at 07:33:12PM -0700, David Miller wrote: 1) Fix checksumming regressions, from Tom Herbert. Something still not right for me here. After about 5 minutes, I get an oops and then instant reboot/lock up. I haven't managed to get a trace over usb-serial because it seems to

Re: [PATCH] mm: page_alloc: simplify drain_zone_pages by using min()

2014-06-16 Thread David Rientjes
On Mon, 16 Jun 2014, Michal Nazarewicz wrote: Instead of open-coding getting minimal value of two, just use min macro. That is why it is there for. While changing the function also change type of batch local variable to match type of per_cpu_pages::batch (which is int). Signed-off-by:

Re: [RFC PATCH 02/11] coresight: add CoreSight TMC driver

2014-06-16 Thread Mathieu Poirier
Thanks for the review - please see comments in-lined. Mathieu On 3 June 2014 03:09, Linus Walleij linus.wall...@linaro.org wrote: On Fri, May 30, 2014 at 3:43 PM, mathieu.poir...@linaro.org wrote: +#define tmc_writel(drvdata, val, off) __raw_writel((val), drvdata-base + off) +#define

Re: [PATCH] mm: page_alloc: simplify drain_zone_pages by using min()

2014-06-16 Thread Andrew Morton
On Mon, 16 Jun 2014 23:08:14 +0200 Michal Nazarewicz min...@mina86.com wrote: Instead of open-coding getting minimal value of two, just use min macro. That is why it is there for. While changing the function also change type of batch local variable to match type of per_cpu_pages::batch

Re: [PATCH] include: kernel.h: rewrite min3, max3 and clamp using min and max

2014-06-16 Thread Andrew Morton
On Mon, 16 Jun 2014 23:07:22 +0200 Michal Nazarewicz min...@mina86.com wrote: It appears that gcc is better at optimising a double call to min and max rather than open coded min3 and max3. This can be observed here: ... Furthermore, after ___make allmodconfig make bzImage modules___

Re: [PATCH] include: kernel.h: rewrite min3, max3 and clamp using min and max

2014-06-16 Thread David Rientjes
On Mon, 16 Jun 2014, Andrew Morton wrote: It appears that gcc is better at optimising a double call to min and max rather than open coded min3 and max3. This can be observed here: ... Furthermore, after ___make allmodconfig make bzImage modules___ this is the comparison of

Re: linux-next: build failure after merge of the akpm-current tree

2014-06-16 Thread Andrew Morton
On Fri, 13 Jun 2014 15:16:52 +1000 Stephen Rothwell s...@canb.auug.org.au wrote: At this point I got fed up and just dropped the akpm trees completely for today. Was this stuff really meant for v3.16? 3.14 actually. Then 3.15. Now 3.16. It's been quiet a burden and seems to have been

Re: [PATCH] include: kernel.h: rewrite min3, max3 and clamp using min and max

2014-06-16 Thread Andrew Morton
On Mon, 16 Jun 2014 16:25:15 -0700 (PDT) David Rientjes rient...@google.com wrote: On Mon, 16 Jun 2014, Andrew Morton wrote: It appears that gcc is better at optimising a double call to min and max rather than open coded min3 and max3. This can be observed here: ...

Re: [PATCH] mm/vmscan.c: avoid recording the original scan targets in shrink_lruvec()

2014-06-16 Thread Andrew Morton
On Mon, 16 Jun 2014 20:57:54 +0800 Chen Yucong sla...@gmail.com wrote: On Mon, 2014-06-09 at 21:27 +0800, Chen Yucong wrote: Via https://lkml.org/lkml/2013/4/10/334 , we can find that recording the original scan targets introduces extra 40 bytes on the stack. This patch is able to avoid

Re: [PATCHv5 2/3] regulator: s2mps11: Add support S2MPU02 regulator device

2014-06-16 Thread Chanwoo Choi
Hi Lee, On 06/16/2014 10:19 PM, Lee Jones wrote: On Mon, 16 Jun 2014, Chanwoo Choi wrote: This patch add S2MPU02 regulator device to existing S2MPS11 device driver because of little difference between S2MPS1x and S2MPU02. The S2MPU02 regulator device includes LDO[1-28] and BUCK[1-7].

Re: [GIT] Networking

2014-06-16 Thread Dave Jones
On Mon, Jun 16, 2014 at 07:04:50PM -0400, Dave Jones wrote: On Sun, Jun 15, 2014 at 07:33:12PM -0700, David Miller wrote: 1) Fix checksumming regressions, from Tom Herbert. Something still not right for me here. After about 5 minutes, I get an oops and then instant reboot/lock up.

Re: [PATCH] infiniband: Fixes memory leak in send_flowc

2014-06-16 Thread David Rientjes
On Mon, 16 Jun 2014, Steve Wise wrote: On 6/16/2014 12:49 PM, Nicholas Krause wrote: Signed-off-by: Nicholas Krause xerofo...@gmail.com --- drivers/infiniband/hw/cxgb4/cm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c

Re: [PATCH] mm/vmscan.c: avoid recording the original scan targets in shrink_lruvec()

2014-06-16 Thread Minchan Kim
On Mon, Jun 16, 2014 at 08:57:54PM +0800, Chen Yucong wrote: On Mon, 2014-06-09 at 21:27 +0800, Chen Yucong wrote: Via https://lkml.org/lkml/2013/4/10/334 , we can find that recording the original scan targets introduces extra 40 bytes on the stack. This patch is able to avoid this

Re: [PATCH] lib.c: skip --param parameters

2014-06-16 Thread David Rientjes
On Mon, 16 Jun 2014, Josh Triplett wrote: On Mon, Jun 16, 2014 at 01:43:06PM +0300, Andy Shevchenko wrote: Very dumb patch to just skip --param allow-store-data-races=0 introduced in newest Linux kernel buildsystem. Actually the option is present in few GCC versions and probably should

Re: [PATCH] mm/vmscan.c: avoid recording the original scan targets in shrink_lruvec()

2014-06-16 Thread Minchan Kim
On Mon, Jun 16, 2014 at 04:42:37PM -0700, Andrew Morton wrote: On Mon, 16 Jun 2014 20:57:54 +0800 Chen Yucong sla...@gmail.com wrote: On Mon, 2014-06-09 at 21:27 +0800, Chen Yucong wrote: Via https://lkml.org/lkml/2013/4/10/334 , we can find that recording the original scan targets

Re: [PATCH] mm/vmscan.c: avoid recording the original scan targets in shrink_lruvec()

2014-06-16 Thread Chen Yucong
On Mon, 2014-06-16 at 16:42 -0700, Andrew Morton wrote: On Mon, 16 Jun 2014 20:57:54 +0800 Chen Yucong sla...@gmail.com wrote: On Mon, 2014-06-09 at 21:27 +0800, Chen Yucong wrote: Via https://lkml.org/lkml/2013/4/10/334 , we can find that recording the original scan targets introduces

Re: [PATCH] offb: Fix little-endian support

2014-06-16 Thread Benjamin Herrenschmidt
On Mon, 2014-06-16 at 17:35 +1000, Benjamin Herrenschmidt wrote: I somewhat doubt that this (and 5:5:5) actually work, do they ? the green gets split into two separate fields, which we can't express properly here... So the conclusion of further investigation is: - The right fix is to fix

Re: [PATCH] include: kernel.h: rewrite min3, max3 and clamp using min and max

2014-06-16 Thread David Rientjes
On Mon, 16 Jun 2014, Andrew Morton wrote: On Mon, 16 Jun 2014 16:25:15 -0700 (PDT) David Rientjes rient...@google.com wrote: On Mon, 16 Jun 2014, Andrew Morton wrote: It appears that gcc is better at optimising a double call to min and max rather than open coded min3 and max3.

Re: [PATCH v4 0/2] Add test to validate udelay

2014-06-16 Thread John Stultz
Thanks for the fixups. I've requeued these for 3.17. thanks -john On Mon, Jun 16, 2014 at 2:58 PM, David Riley davidri...@chromium.org wrote: This change adds a module and a script that makes use of it to validate that udelay delays for at least as long as requested (as compared to ktime).

[PATCH] ARM64: TTY: hvc_dcc: Add support for ARM64 dcc

2014-06-16 Thread Abhimanyu Kapur
Add support for debug communications channel based hvc console for arm64 cpus. Signed-off-by: Abhimanyu Kapur abhim...@codeaurora.org --- arch/arm64/include/asm/dcc.h | 41 + drivers/tty/hvc/Kconfig | 2 +- 2 files changed, 42 insertions(+), 1

Re: [PATCH 1/1 RESEND] fs/ceph/export.c: add static to local function

2014-06-16 Thread David Rientjes
On Sun, 15 Jun 2014, Fabian Frederick wrote: ceph_get_parent is only used in fs/ceph/export.c Cc: Sage Weil s...@inktank.com Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- fs/ceph/export.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] infiniband: Fixes memory leak in send_flowc

2014-06-16 Thread David Rientjes
On Mon, 16 Jun 2014, Nick Krause wrote: If that is the case ,David I would mark bug id 44631 as closed due to no need for my if statement. You don't want to depend on the implementation of the page allocator to never return NULL for orders PAGE_ALLOC_COSTLY_ORDER with GFP_KERNEL, it could

Re: [PATCHv5 1/3] mfd: sec-core: Add support for S2MPU02 device

2014-06-16 Thread Chanwoo Choi
Hi Lee, On 06/16/2014 10:03 PM, Lee Jones wrote: On Mon, 16 Jun 2014, Chanwoo Choi wrote: Add support for Samsung S2MPU02 PMIC device to the MFD sec-core driver. The S2MPU02 device includes PMIC/RTC/Clock devices. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Reviewed-by: Krzysztof

Re: [PATCH] gpio-pxa: gpio0 and gpio1 support on dt

2014-06-16 Thread Haojian Zhuang
On Thu, Jun 12, 2014 at 4:43 PM, Linus Walleij linus.wall...@linaro.org wrote: On Thu, Jun 5, 2014 at 9:13 PM, Andrew Ruder andrew.ru...@elecsyscorp.com wrote: pxa_gpio_probe() has some issues supporting the gpio0 and gpio1 interrupts under device-tree - it never actually sets up the chain

[PATCH v6 3/4] dts: Add bindings for APM X-Gene SoC ethernet driver

2014-06-16 Thread Iyappan Subramanian
This patch adds bindings for APM X-Gene SoC ethernet driver. Signed-off-by: Iyappan Subramanian isubraman...@apm.com Signed-off-by: Ravi Patel rapa...@apm.com Signed-off-by: Keyur Chudgar kchud...@apm.com --- arch/arm64/boot/dts/apm-mustang.dts | 4 arch/arm64/boot/dts/apm-storm.dtsi | 30

[PATCH v6 1/4] MAINTAINERS: Add entry for APM X-Gene SoC ethernet driver

2014-06-16 Thread Iyappan Subramanian
This patch adds a MAINTAINERS entry for APM X-Gene SoC ethernet driver. Signed-off-by: Iyappan Subramanian isubraman...@apm.com Signed-off-by: Ravi Patel rapa...@apm.com Signed-off-by: Keyur Chudgar kchud...@apm.com --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git

Re: [PATCH] include: kernel.h: rewrite min3, max3 and clamp using min and max

2014-06-16 Thread Steven Rostedt
On Mon, 16 Jun 2014 16:54:32 -0700 (PDT) David Rientjes rient...@google.com wrote: On linux-next, allyesconfig has a 0.0001% savings as a result of the patch, but I'd be worried about the extra temp variable it allocates on the stack that is evident in the mm/slab.c disassembly unless

[PATCH v6 0/4] net: Add APM X-Gene SoC Ethernet driver support

2014-06-16 Thread Iyappan Subramanian
Adding APM X-Gene SoC Ethernet driver. v6: Address comments from v5 review * added basic ethtool support * added ndo_get_stats64 call back * deleted priting Rx error messages * renamed set_bits to xgene_set_bits to fix kbuild error (make ARCH=powerpc) v5: Address comments from v4 review *

Re: [PATCH v2] mmc: Add hardware dependencies for sdhci-pxav3 and sdhci-pxav2

2014-06-16 Thread Haojian Zhuang
On Mon, Jun 16, 2014 at 8:18 PM, Jean Delvare jdelv...@suse.de wrote: I seem to understand that the sdhci-pxav3 and sdhci-pxav2 drivers are only needed on the MMP architecture. So add a hardware dependency on ARCH_MMP, so that other users don't get to build useless drivers. Signed-off-by:

[PATCH v6 2/4] Documentation: dts: Add bindings for APM X-Gene SoC ethernet driver

2014-06-16 Thread Iyappan Subramanian
This patch adds documentation for APM X-Gene SoC ethernet DTS binding. Signed-off-by: Iyappan Subramanian isubraman...@apm.com Signed-off-by: Ravi Patel rapa...@apm.com Signed-off-by: Keyur Chudgar kchud...@apm.com --- .../devicetree/bindings/net/apm-xgene-enet.txt | 72

Re: [PATCH] checkpatch: Warn on unnecessary void function return statements

2014-06-16 Thread Anish Bhatt
This seems to ignore the ability to exit from void return functions via a `return;` in case of an error or similar. Any attempt to bail out generates warnings with checkpathch.pl Perhaps it should check for returns only at the end of the function ? If not, is there a suggested way to do this ?

Re: [PATCH] ACPI: use kstrto*() instead of simple_strto*()

2014-06-16 Thread David Rientjes
On Fri, 13 Jun 2014, Christoph Jaeger wrote: simple_strto*() are obsolete; use kstrto*() instead. Add proper error checking. Signed-off-by: Christoph Jaeger christophjae...@linux.com Acked-by: David Rientjes rient...@google.com -- To unsubscribe from this list: send the line unsubscribe

[PATCHv6 3/3] dt-bindings: mfd: s2mps11: Add support S2MPU02 PMIC

2014-06-16 Thread Chanwoo Choi
This patch add documentation for S2MPU02 PMIC device. S2MPU02 has a little difference from S2MPS11/S2MPS14 PMIC and has LDO[1-28]/Buck[1-7]. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com ---

[PATCHv6 1/3] mfd: sec-core: Add support for S2MPU02 device

2014-06-16 Thread Chanwoo Choi
Add support for Samsung S2MPU02 PMIC device to the MFD sec-core driver. The S2MPU02 device includes PMIC/RTC/Clock devices. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/mfd/sec-core.c | 46 +++-

[PATCHv6 0/3] mfd: sec-core: Add support S2MPU02 PMIC device

2014-06-16 Thread Chanwoo Choi
This patchset add Samsung S2MPU02 PMIC device driver in exiting S2MPS11 PMIC driver because S2MPU02 has a little different between S2MPU02 and S2MPS1x. The S2MPU02 PMIC has LDO[1-28] and BUCK[1-7] regulators. Changes from v5: - Remove the duplicate code about mfd_add_devices() and

Re: [PATCH] checkpatch: Warn on unnecessary void function return statements

2014-06-16 Thread Joe Perches
On Mon, 2014-06-16 at 16:28 -0700, Anish Bhatt wrote: This seems to ignore the ability to exit from void return functions via a `return;` in case of an error or similar. Any attempt to bail out generates warnings with checkpathch.pl Perhaps it should check for returns only at the end of the

[PATCHv6 2/3] regulator: s2mps11: Add support S2MPU02 regulator device

2014-06-16 Thread Chanwoo Choi
This patch add S2MPU02 regulator device to existing S2MPS11 device driver because of little difference between S2MPS1x and S2MPU02. The S2MPU02 regulator device includes LDO[1-28] and BUCK[1-7]. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com [Add missing linear_min_sel of S2MPU02 LDO

Re: [PATCH -next 24/26] usb: Use dma_zalloc_coherent

2014-06-16 Thread Joe Perches
On Mon, 2014-06-16 at 22:00 +, Paul Zimmerman wrote: From: Joe Perches [mailto:j...@perches.com] Sent: Sunday, June 15, 2014 1:38 PM Use the zeroing function instead of dma_alloc_coherent memset(,0,) Signed-off-by: Joe Perches j...@perches.com ---

Re: [PATCH] infiniband: Fixes memory leak in send_flowc

2014-06-16 Thread David Rientjes
On Mon, 16 Jun 2014, Nick Krause wrote: That's true David, I will resend this parch without the use of the pr_warn. There's no patch to resend if you don't use pr_warn(). kfree_skb(skb) is unnecessary if !skb, look at the first thing it checks: void kfree_skb(struct sk_buff *skb) {

[RFT v5h printk: allow increasing the ring buffer depending on the number of CPUs

2014-06-16 Thread Luis R. Rodriguez
From: Luis R. Rodriguez mcg...@suse.com The default size of the ring buffer is too small for machines with a large amount of CPUs under heavy load. What ends up happening when debugging is the ring buffer overlaps and chews up old messages making debugging impossible unless the size is passed as

[PATCH] V4L: uvcvideo: Add support for relative pan/tilt controls

2014-06-16 Thread Vincent Palatin
Map V4L2_CID_TILT_RELATIVE and V4L2_CID_PAN_RELATIVE to the standard UVC CT_PANTILT_ABSOLUTE_CONTROL terminal control request. Tested by plugging a Logitech ConferenceCam C3000e USB camera and controlling pan/tilt from the userspace using the VIDIOC_S_CTRL ioctl. Verified that it can pan and tilt

Re: [PATCHv2 0/2] regulator: of: Add support for pasing regulator suspend state

2014-06-16 Thread Chanwoo Choi
Hi Mark, Could you please review this patchset? Best Regards, Chanwoo Choi On 06/11/2014 09:41 AM, Chanwoo Choi wrote: The regulators would set different state/mode according to the kind of suspend state. So regulation_constraints structure has already regulator suspend state filed. This

Re: [PATCH] checkpatch: Warn on unnecessary void function return statements

2014-06-16 Thread Anish Bhatt
My code has multiple exit lables: void function(void) { ... if (err1) goto exit1; ... if (err2) goto exit2; ... return; /* Good return, no errors */ exit1: printk(err1); return; exit2:

Re: [RFC PATCH 2/2] block: virtio-blk: support multi virt queues per virtio-blk device

2014-06-16 Thread Rusty Russell
Ming Lei ming@canonical.com writes: + if (virtio_has_feature(vdev, VIRTIO_BLK_F_MQ)) + err = virtio_cread_feature(vdev, VIRTIO_BLK_F_MQ, +struct virtio_blk_config, num_queues, +num_vqs); + else +

Re: [RFC PATCH 1/2] include/uapi/linux/virtio_blk.h: introduce feature of VIRTIO_BLK_F_MQ

2014-06-16 Thread Rusty Russell
Ming Lei ming@canonical.com writes: Current virtio-blk spec only supports one virtual queue for transfering data between VM and host, and inside VM all kinds of operations on the virtual queue needs to hold one lock, so cause below problems: - no scalability - bad throughput

Re: [PATCH 10/11] qspinlock: Paravirt support

2014-06-16 Thread Waiman Long
I am resending it as my original reply has some HTML code hence rejected by the mailing lists. On 06/15/2014 08:47 AM, Peter Zijlstra wrote: +#ifdef CONFIG_PARAVIRT_SPINLOCKS + +/* + * Write a comment about how all this works... + */ + +#define _Q_LOCKED_SLOW (2U _Q_LOCKED_OFFSET) +

Re: [PATCH 2/2] mmc: rtsx: add support for async request

2014-06-16 Thread micky
On 06/16/2014 08:40 PM, Ulf Hansson wrote: On 16 June 2014 11:09, micky micky_ch...@realsil.com.cn wrote: On 06/16/2014 04:42 PM, Ulf Hansson wrote: @@ -36,7 +37,10 @@ struct realtek_pci_sdmmc { struct rtsx_pcr *pcr; struct mmc_host *mmc; struct

Re: [PATCH] hugetlb: fix copy_hugetlb_page_range() to handle migration/hwpoisoned entry

2014-06-16 Thread Hugh Dickins
On Mon, 16 Jun 2014, Naoya Horiguchi wrote: On Sun, Jun 15, 2014 at 05:19:29PM -0700, Hugh Dickins wrote: Hold on, that restriction of hugepage migration was marked for stable 3.12+, whereas this is marked for stable 2.6.36+ (a glance at my old trees suggests 2.6.37+, but you may know

Re: [PATCH 1/2] mfd: rtsx: add dma transfer function

2014-06-16 Thread micky
On 06/16/2014 08:20 PM, Lee Jones wrote: I don't see any glaring issues with this patch. Does it rely on the first patch, or vise versa, or can it just be applied? Hi Jones, [PATCH 2/2] need function defined in [PATCH 1/2], so we provide interface in [mfd] and called in [mmc]. Best Regards.

[PATCH] slab: fix oops when reading /proc/slab_allocators

2014-06-16 Thread Joonsoo Kim
commit 'b1cb098: change the management method of free objects of the slab' introduces bug on slab leak detector('/proc/slab_allocators'). This detector works like as following decription. 1. traverse all objects on all the slabs. 2. determine whether it is active or not. 3. if active, print who

[no subject]

2014-06-16 Thread Georgina Hope Rinehart
-- Greetings in the Name of Our Lord, I have a charity proposal for you, reply back for more information. Thanks and God bless, Gina Rinehart -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH v3 -next 0/9] CMA: generalize CMA reserved area management code

2014-06-16 Thread Joonsoo Kim
On Mon, Jun 16, 2014 at 11:11:35AM +0200, Marek Szyprowski wrote: Hello, On 2014-06-16 07:40, Joonsoo Kim wrote: Currently, there are two users on CMA functionality, one is the DMA subsystem and the other is the KVM on powerpc. They have their own code to manage CMA reserved area even if

Re: [PATCH] spin_lock_*(): Always evaluate second argument

2014-06-16 Thread David Rientjes
On Mon, 16 Jun 2014, Bart Van Assche wrote: Evaluating a macro argument only if certain configuration options have been selected is confusing and error-prone. Hence always evaluate the second argument of spin_lock_nested() and spin_lock_nest_lock(). This patch has the intentional side

Re: [PATCH 8/8] doc: update Documentation/sysctl/vm.txt

2014-06-16 Thread Xishi Qiu
On 2014/6/17 0:57, Randy Dunlap wrote: On 06/16/14 02:25, Xishi Qiu wrote: Update the doc. Signed-off-by: Xishi Qiu qiuxi...@huawei.com --- Documentation/sysctl/vm.txt | 43 +++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git

Re: [PATCH] Check for Null return from logfs_readpage_nolock in btree_write_block

2014-06-16 Thread Jörn Engel
On Mon, 16 June 2014 20:46:32 -0400, Nick Krause wrote: You are right about the compile errors it compiles but with warning. I am curious since the function is void how do you want me to give the error back to logfs and in turn the other subsystems of the kernel. My first question would be:

Re: [PATCH] powerpc: Fix build warning

2014-06-16 Thread David Rientjes
On Fri, 13 Jun 2014, Guenter Roeck wrote: If compiled with W=1, the following warning is seen in powerpc builds. arch/powerpc/kernel/smp.c:750:18: warning: type qualifiers ignored on function return type static const int powerpc_smt_flags(void) ^ This is caused by

Re: [PATCH] arm: Fix build warning

2014-06-16 Thread David Rientjes
On Fri, 13 Jun 2014, Guenter Roeck wrote: If compiled with W=1, the following warning is seen in arm builds. arch/arm/kernel/topology.c:278:25: warning: type qualifiers ignored on function return type This is caused by a function returning 'const int', which doesn't make sense to

Re: [PATCH] ARM: Thumb-2: Fix out-of-range offset for Thumb-2 in, proc-macros.S

2014-06-16 Thread Wang Weidong
On 2014/6/16 21:49, Will Deacon wrote: On Tue, Jun 10, 2014 at 08:00:01AM +0100, Wang Weidong wrote: The STR Instruction Encoding T4 points that the imm is in the range 0-255.So split the instruction into two for Thumb-2. Just like commit 874d5d3ccc(ARM: 6623/1: Thumb-2: Fix out-of-range

linux-next: build warning after merge of the nfs tree

2014-06-16 Thread Stephen Rothwell
Hi Trond, After merging the nfs tree, today's linux-next build (powerpc ppc44x_defconfig and probably others) produced this warning: fs/nfs/pagelist.c: In function 'nfs_initiate_pgio': fs/nfs/pagelist.c:555:16: warning: unused variable 'inode' [-Wunused-variable] struct inode *inode =

Re: [PATCH] workqueue: use pool-cpu 0 to stand for an unbound pool

2014-06-16 Thread Lai Jiangshan
Hi, Tejun 3.16-rc1 came out. Could you review the patches? Thanks, Lai On 06/03/2014 03:31 PM, Lai Jiangshan wrote: There is a piece of sanity checks code in the put_unbound_pool(). The meaning of this code is if it is not an unbound pool, it will complain and return IIUC. But the code uses

Re: [PATCH v4] lib: add size unit t/p/e to memparse

2014-06-16 Thread Gui Hecheng
On Fri, 2014-06-13 at 14:58 -0700, David Rientjes wrote: On Fri, 13 Jun 2014, Gui Hecheng wrote: diff --git a/lib/cmdline.c b/lib/cmdline.c index d4932f7..76a712e 100644 --- a/lib/cmdline.c +++ b/lib/cmdline.c @@ -121,11 +121,7 @@ EXPORT_SYMBOL(get_options); * @retptr: (output)

Re: [PATCH] ACPI/Battery: Retry to get Battery information if failed during probing

2014-06-16 Thread Lan Tianyu
On 2014年06月17日 09:27, David Rientjes wrote: On Mon, 16 Jun 2014, Lan Tianyu wrote: How about this? - result = acpi_battery_update(battery, false); - if (result) + + /* +* Some machines'(E,G Lenovo Z480) ECs are not stable +* during boot up and this

Re: [PATCH] ACPI/Battery: Retry to get Battery information if failed during probing

2014-06-16 Thread David Rientjes
On Mon, 16 Jun 2014, Lan Tianyu wrote: How about this? - result = acpi_battery_update(battery, false); - if (result) + + /* +* Some machines'(E,G Lenovo Z480) ECs are not stable +* during boot up and this causes battery driver fails to be +

Re: [PATCH v3 -next 1/9] DMA, CMA: fix possible memory leak

2014-06-16 Thread Joonsoo Kim
On Mon, Jun 16, 2014 at 03:27:19PM +0900, Minchan Kim wrote: Hi, Joonsoo On Mon, Jun 16, 2014 at 02:40:43PM +0900, Joonsoo Kim wrote: We should free memory for bitmap when we find zone mis-match, otherwise this memory will leak. Additionally, I copy code comment from PPC KVM's CMA

Re: [PATCH v4] lib: add size unit t/p/e to memparse

2014-06-16 Thread David Rientjes
On Tue, 17 Jun 2014, Gui Hecheng wrote: diff --git a/lib/cmdline.c b/lib/cmdline.c index d4932f7..76a712e 100644 --- a/lib/cmdline.c +++ b/lib/cmdline.c @@ -121,11 +121,7 @@ EXPORT_SYMBOL(get_options); * @retptr: (output) Optional pointer to next char after parse

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Xishi Qiu
On 2014/6/16 20:50, Rafael Aquini wrote: On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko wrote: On Mon 16-06-14 17:24:38, Xishi Qiu wrote: When system(e.g. smart phone) running for a long time, the cache often takes a large memory, maybe the free memory is less than 50M, then OOM will

[PATCHv3 0/5] Atomic pool for arm64

2014-06-16 Thread Laura Abbott
Hi, This is a series to add a pool for atomic allocations for arm64. It was previously suggested to try and share more code with arm. I did some refactoring to have arm use genalloc and pull out some of the remapping code. The end result is a negative diffstat overall for arm dma-mapping.c.

[PATCHv3 2/5] lib/genalloc.c: Add genpool range check function

2014-06-16 Thread Laura Abbott
After allocating an address from a particular genpool, there is no good way to verify if that address actually belongs to a genpool. Introduce addr_in_gen_pool which will return if an address plus size falls completely within the genpool range. Signed-off-by: Laura Abbott lau...@codeaurora.org

[PATCHv3 5/5] arm64: Add atomic pool for non-coherent and CMA allocations.

2014-06-16 Thread Laura Abbott
Neither CMA nor noncoherent allocations support atomic allocations. Add a dedicated atomic pool to support this. Signed-off-by: Laura Abbott lau...@codeaurora.org --- arch/arm64/Kconfig | 1 + arch/arm64/mm/dma-mapping.c | 155 +++- 2 files

[PATCHv3 1/5] lib/genalloc.c: Add power aligned algorithm

2014-06-16 Thread Laura Abbott
One of the more common algorithms used for allocation is to align the start address of the allocation to the order of size requested. Add this as an algorithm option for genalloc. Signed-off-by: Laura Abbott lau...@codeaurora.org --- include/linux/genalloc.h | 4 lib/genalloc.c |

[PATCHv3 4/5] arm: use genalloc for the atomic pool

2014-06-16 Thread Laura Abbott
ARM currently uses a bitmap for tracking atomic allocations. genalloc already handles this type of memory pool allocation so switch to using that instead. Signed-off-by: Laura Abbott lau...@codeaurora.org --- arch/arm/Kconfig | 1 + arch/arm/mm/dma-mapping.c | 144

[PATCHv3 3/5] common: dma-mapping: Introduce common remapping functions

2014-06-16 Thread Laura Abbott
For architectures without coherent DMA, memory for DMA may need to be remapped with coherent attributes. Factor out the the remapping code from arm and put it in a common location to reduced code duplication. Signed-off-by: Laura Abbott lau...@codeaurora.org --- arch/arm/mm/dma-mapping.c

Re: [PATCH] checkpatch: Warn on unnecessary void function return statements

2014-06-16 Thread Joe Perches
On Mon, 2014-06-16 at 17:44 -0700, Anish Bhatt wrote: My code has multiple exit lables: void function(void) { ... if (err1) goto exit1; ... if (err2) goto exit2; ... return; /* Good return, no errors */ exit1:

Re: [PATCH] powerpc: Fix build warning

2014-06-16 Thread Guenter Roeck
On 06/16/2014 06:25 PM, David Rientjes wrote: On Fri, 13 Jun 2014, Guenter Roeck wrote: If compiled with W=1, the following warning is seen in powerpc builds. arch/powerpc/kernel/smp.c:750:18: warning: type qualifiers ignored on function return type static const int

RE: Disable bus's drivers_autoprobe before rootfs has mounted

2014-06-16 Thread Peter Chen
Yes, otherwise, the device which the udc is probed deferral and the gadget driver is build-in will never work. If we skip fixing it, this problem will exist for more than 2 years, it is too long. I have a support request from android team that usb peripheral function never works from

Re: [PATCH v5 7/8] staging: lustre: lclient: lcommon_cl.c fixing coding style issues

2014-06-16 Thread Drokin, Oleg
On Jun 16, 2014, at 12:22 PM, Anil Belur wrote: From: Anil Belur ask...@gmail.com fixed: WARNING: line over 80 characters, used a new variable 'size_index' to store the offset. Replace unsigned long with u64 type for Apparently you forgot to update the comment. 'cur_index'

[PATCHv2] x86: new Intel Atom SoC power management controller driver

2014-06-16 Thread Li, Aubrey
The Power Management Controller (PMC) controls many of the power management features present in the SoC. This driver provides interface to configure the Power Management Controller (PMC). This driver exposes PMC device state and sleep state residency via debugfs:

[PATCH 6/8] x86_64: Move getcpu code from vsyscall_64.c to vdso/vma.c

2014-06-16 Thread Andy Lutomirski
This is pure cut-and-paste. At this point, vsyscall_64.c contains only code needed for vsyscall emulation, but some of the comments and function names are still confused. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/kernel/vsyscall_64.c | 57

[PATCH 0/8] x86: vdso and vsyscall round 1 for 3.17

2014-06-16 Thread Andy Lutomirski
This is mostly cleanups. Patch 1 fixes a minor bug; it might make sense to backport it. Patch 3 removes the vsyscall mapping when vsyscall=none. Patches 4 and 5 remove everything except gtod from the vvar page; the other vvars weren't really necessary. Patch 2, 6, 7, and 8 are pure cleanups.

[PATCH 8/8] x86_64,vdso: Clean up vgetcpu init and merge the vdso initcalls

2014-06-16 Thread Andy Lutomirski
Now vdso/vma.c has a single initcall and no references to vsyscall. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/vdso/vma.c | 61 +++-- 1 file changed, 22 insertions(+), 39 deletions(-) diff --git a/arch/x86/vdso/vma.c

[PATCH 5/8] x86,vdso: Replace vgetcpu_mode with static_cpu_has

2014-06-16 Thread Andy Lutomirski
The vdso has supported alternatives for a while; use them instead of a vvar to select the vgetcpu mode. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/include/asm/vgtod.h| 21 + arch/x86/include/asm/vsyscall.h | 29 -

[PATCH 3/8] x86_64,vsyscall: Turn vsyscalls all the way off when vsyscall=none

2014-06-16 Thread Andy Lutomirski
I see no point in having an unusable read-only page sitting at 0xff60 when vsyscall=none. Instead, skip mapping it and remove it from /proc/PID/maps. I kept the ratelimited warning when programs try to use a vsyscall in this mode, since it may help admins avoid confusion.

mips:allmodconfig build failure in 3.16-rc1 due to bpf_jit code

2014-06-16 Thread Guenter Roeck
mips:allmodconfig fails in 3.16-rc1 with lots of undefined symbols. arch/mips/net/bpf_jit.c: In function 'is_load_to_a': arch/mips/net/bpf_jit.c:559:7: error: 'BPF_S_LD_W_LEN' undeclared (first use in this function) arch/mips/net/bpf_jit.c:559:7: note: each undeclared identifier is reported

[PATCH 4/8] x86_64,vdso: Remove jiffies from the vvar page

2014-06-16 Thread Andy Lutomirski
I think that the jiffies vvar was once used for the vgetcpu cache. That code is long gone, so let's just make jiffies be a normal variable. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/include/asm/vvar.h | 1 - arch/x86/kernel/time.c | 2 +- arch/x86/vdso/vgetcpu.c |

[PATCH 1/8] x86_64,vsyscall: Fix warn_bad_vsyscall log output

2014-06-16 Thread Andy Lutomirski
This commit in Linux 3.6: commit c767a54ba0657e52e6edaa97cbe0b0a8bf1c1655 Author: Joe Perches j...@perches.com Date: Mon May 21 19:50:07 2012 -0700 x86/debug: Add KERN_LEVEL to bare printks, convert printks to pr_level caused warn_bad_vsyscall to output garbage in the

[PATCH 7/8] x86_64,vsyscall: Rewrite comment and clean up headers in vsyscall code

2014-06-16 Thread Andy Lutomirski
vsyscall_64.c is just vsyscall emulation. Tidy it up accordingly. If my comment editing offends anyone, let me know and I can fix it. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/kernel/vsyscall_64.c | 51 +++ 1 file changed, 18

[PATCH 2/8] x86_64,vsyscall: Move all of the gate_area code to vsyscall_64.c

2014-06-16 Thread Andy Lutomirski
This code exists for the sole purpose of making the vsyscall page look sort of like real userspace memory. Move it so that it lives with the rest of the vsyscall code. Signed-off-by: Andy Lutomirski l...@amacapital.net --- arch/x86/kernel/vsyscall_64.c | 49

RE: [f2fs-dev] [PATCH] f2fs: refactor flush_nat_entries codes for reducing NAT writes

2014-06-16 Thread Chao Yu
Hi all, There are problem in this patch, please ignore this patch, sorry for the noise. I will resend later. -Original Message- From: Chao Yu [mailto:chao2...@samsung.com] Sent: Saturday, June 14, 2014 7:48 PM To: Jaegeuk Kim Cc: linux-fsde...@vger.kernel.org;

Re: [PATCH] lib.c: skip --param parameters

2014-06-16 Thread Josh Triplett
On Mon, Jun 16, 2014 at 04:48:51PM -0700, David Rientjes wrote: On Mon, 16 Jun 2014, Josh Triplett wrote: On Mon, Jun 16, 2014 at 01:43:06PM +0300, Andy Shevchenko wrote: Very dumb patch to just skip --param allow-store-data-races=0 introduced in newest Linux kernel buildsystem.

Re: [PATCH] net/cadence/macb: clear interrupts simply and correctly

2014-06-16 Thread Jongsung Kim
On 06/16/2014 11:56 PM, Sören Brinkmann wrote: On Mon, 2014-06-16 at 02:00PM +0900, Jongsung Kim wrote: On 06/13/2014 12:44 AM, Sören Brinkmann wrote: This is now clearing all IRQ flags which is probably not what we want here. This is handling RX only. We still want the non-RX interrupts to go

Re: [RFC PATCH 2/2] block: virtio-blk: support multi virt queues per virtio-blk device

2014-06-16 Thread Stefan Hajnoczi
On Sat, Jun 14, 2014 at 1:29 AM, Ming Lei ming@canonical.com wrote: Firstly this patch supports more than one virtual queues for virtio-blk device. Secondly this patch maps the virtual queue to blk-mq's hardware queue. With this approach, both scalability and performance problem can be

Re: [RFD] sched/deadline: EDF dynamic quota design

2014-06-16 Thread xiaofeng.yan
On 2014/5/21 20:45, Luca Abeni wrote: Hi, first of all, sorry for the ultra-delayed reply: I've been busy, and I did not notice this email... Anyway, some comments are below On 05/16/2014 09:11 AM, Henrik Austad wrote: [...] This can also be implemented in user-space (without modifying the

Re: [PATCH] deb-pkg: Fix for relative paths

2014-06-16 Thread Alexei Starovoitov
On Mon, Jun 16, 2014 at 7:18 AM, Michal Marek mma...@suse.cz wrote: When $srctree or $objtree are relative paths, we cannot change directory and refer to them in the same subshell. Do the redirection outside of the subshell to fix this. Reported-by: Ilya Dryomov idryo...@gmail.com

[RFC PATCH 1/1] kernel/rcu/tree.c: simplify force_quiescent_state()

2014-06-16 Thread Pranith Kumar
This might sound really naive, but please bear with me. force_quiescent_state() used to do a lot of things in the past in addition to forcing a quiescent state. (In my reading of the mailing list I found state transitions for one). Now according to the code, what is being done is multiple

[PATCH] epoll: fix use-after-free in eventpoll_release_file

2014-06-16 Thread Konstantin Khlebnikov
This fixes use-after-free of epi-fllink.next inside list loop macro. This loop actually releases elements in the body. List is rcu-protected but here we cannot hold rcu_read_lock because we need to lock mutex inside. Obvious solution is to use list_for_each_entry_safe(). RCU-ness isn't essential

linux-next: Tree for Jun 17

2014-06-16 Thread Stephen Rothwell
Hi all, The powerpc allyesconfig is again broken more than usual. Changes since 20140616: Non-merge commits (relative to Linus' tree): 713 923 files changed, 20546 insertions(+), 12891 deletions(-) I have created

Re: [PATCH] epoll: fix use-after-free in eventpoll_release_file

2014-06-16 Thread Konstantin Khlebnikov
On Tue, Jun 17, 2014 at 6:58 AM, Konstantin Khlebnikov koc...@gmail.com wrote: This fixes use-after-free of epi-fllink.next inside list loop macro. This loop actually releases elements in the body. List is rcu-protected but here we cannot hold rcu_read_lock because we need to lock mutex inside.

Re: [PATCH] ALSA: compress: Fix the mismatch size of struc between share lib(32bit) and kernel(64bit)

2014-06-16 Thread Vinod Koul
On Fri, Jun 13, 2014 at 04:19:32PM +0200, Arnd Bergmann wrote: On Monday 09 June 2014, Vinod Koul wrote: On Mon, Jun 09, 2014 at 09:24:53AM +0200, Takashi Iwai wrote: At Mon, 09 Jun 2014 16:46:32 -0400, Wang, Xiaoming wrote: The size of struct snd_compr_avail is 0x1c in

Re: [PATCH] checkpatch: Warn on unnecessary void function return statements

2014-06-16 Thread Sachin Kamat
On Tue, Jun 17, 2014 at 7:30 AM, Joe Perches j...@perches.com wrote: On Mon, 2014-06-16 at 17:44 -0700, Anish Bhatt wrote: My code has multiple exit lables: void function(void) { ... if (err1) goto exit1; ... if (err2) goto exit2;

Re: mm/sched/net: BUG when running simple code

2014-06-16 Thread Sasha Levin
On 06/13/2014 12:13 AM, Dave Jones wrote: On Fri, Jun 13, 2014 at 12:01:37AM -0400, Sasha Levin wrote: On 06/12/2014 11:27 PM, Dan Aloni wrote: On Thu, Jun 12, 2014 at 10:56:16PM -0400, Sasha Levin wrote: Hi all, Okay, I'm really lost. I got the following when fuzzing, and

<    3   4   5   6   7   8   9   10   11   12   >