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

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

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

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 +

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

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

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); > > *

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] 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 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

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

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

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

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 >> --- >> Documentation/sysctl/vm.txt | 43 >> +++ >> 1 files changed, 43 insertions(+), 0 deletions(-) >> >> diff --git

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

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

[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

[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

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.

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

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 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 mmc_request *mrq; +

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: [RFC PATCH 2/2] block: virtio-blk: support multi virt queues per virtio-blk device

2014-06-16 Thread Rusty Russell
Ming Lei 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, > +_vqs); > + else > + num_vqs = 1;

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 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 > > So this patch

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: [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. >

[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

[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" 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 a kernel

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) {

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 > > --- > >

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

[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 [Add missing linear_min_sel of S2MPU02 LDO regulators by Jonghwa Lee]

[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 Reviewed-by: Krzysztof Kozlowski --- drivers/mfd/sec-core.c | 46 +++- drivers/mfd/sec-irq.c| 110

[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

[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 Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/mfd/s2mps11.txt | 7 +-- 1 file changed, 5

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 Acked-by: David Rientjes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

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 ?

[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 Signed-off-by: Ravi Patel Signed-off-by: Keyur Chudgar --- .../devicetree/bindings/net/apm-xgene-enet.txt | 72 ++ 1 file changed, 72 insertions(+) create mode

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 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 all cases > can

[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 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: Jean Delvare

[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 Signed-off-by: Ravi Patel Signed-off-by: Keyur Chudgar --- arch/arm64/boot/dts/apm-mustang.dts | 4 arch/arm64/boot/dts/apm-storm.dtsi | 30 +++--- 2 files changed,

[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 Signed-off-by: Ravi Patel Signed-off-by: Keyur Chudgar --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 134483f..d65a3be 100644

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 wrote: > On Thu, Jun 5, 2014 at 9:13 PM, Andrew Ruder > wrote: > >> pxa_gpio_probe() has some issues supporting the gpio0 and gpio1 >> interrupts under device-tree - it never actually sets up the chain >> handler to get interrupts on edge detect for

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 >> Reviewed-by: Krzysztof Kozlowski

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

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 > Cc: Andrew Morton > Signed-off-by: Fabian Frederick > --- > fs/ceph/export.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ceph/export.c

[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 --- arch/arm64/include/asm/dcc.h | 41 + drivers/tty/hvc/Kconfig | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode

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 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). > > Changes since v1:

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 > 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

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] 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 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

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 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] 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

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] 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 > > --- > > drivers/infiniband/hw/cxgb4/cm.c | 5 - > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/infiniband/hw/cxgb4/cm.c > >

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

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

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 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] 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 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: 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 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 hitting more

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

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 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

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 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). >

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 wrote: > On Fri, May 30, 2014 at 3:43 PM, wrote: > >> +#define tmc_writel(drvdata, val, off) __raw_writel((val), drvdata->base + >> off) >> +#define tmc_readl(drvdata, off)

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). > >

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

hi

2014-06-16 Thread laura wintour
Hello good day Did you recieve the mail i sent to y -- 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 http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 07/13] kexec: Implementation of new syscall kexec_file_load

2014-06-16 Thread H. Peter Anvin
On 06/16/2014 02:43 PM, Vivek Goyal wrote: >> >> Borislav and I talked about this briefly over IRC. A key part of that >> is that if userspace could manipulate this system call to consume an >> unreasonable amount of memory, we would have a problem, for example if >> this code used vzalloc()

Re: [patch 1/5] futex: Make unlock_pi more robust

2014-06-16 Thread Darren Hart
On Tue, 2014-06-17 at 00:28 +0200, Thomas Gleixner wrote: > On Tue, 17 Jun 2014, Thomas Gleixner wrote: > > On Mon, 16 Jun 2014, Darren Hart wrote: > > > On Wed, 2014-06-11 at 20:45 +, Thomas Gleixner wrote: > > > In wake_futex_pi we verify ownership by matching pi_state->owner == > > >

[PATCH v4] devicetree: bindings: separate CPU enable method descriptions

2014-06-16 Thread Alex Elder
The bindings for CPU enable methods are defined in ".../arm/cpus.txt". As additional 32-bit ARM CPUS are converted to use the "enable-method" CPU property to imply a particular set of SMP operations to use, the list of these methods is likely to become unwieldy. The current documentation already

Re: [patch 1/5] futex: Make unlock_pi more robust

2014-06-16 Thread Darren Hart
On Tue, 2014-06-17 at 00:15 +0200, Thomas Gleixner wrote: > On Mon, 16 Jun 2014, Darren Hart wrote: > > On Wed, 2014-06-11 at 20:45 +, Thomas Gleixner wrote: > > > static int futex_unlock_pi(u32 __user *uaddr, unsigned int flags) > > > @@ -2417,57 +2401,47 @@ retry: > > >

[PATCH v3 0/3] IIO: Add support for rotation from north usage attributes

2014-06-16 Thread Reyad Attiyat
These patches add support for rotation from north HID usage attributes to the magnetometer 3d driver. Changes from v2: Use devm_kcalloc for all dynamic allocations Cleanup formatting of if statements Scan for the usage attributes present then dynamically allocate iio

[PATCH v3 1/3] iio: documentation: Added documentation for rotation from north usage attributes

2014-06-16 Thread Reyad Attiyat
Added documentation for the sysfs attributes added by the rotation from north usage attributes. Signed-off-by: Reyad Attiyat --- Documentation/ABI/testing/sysfs-bus-iio | 79 - 1 file changed, 78 insertions(+), 1 deletion(-) diff --git

[PATCH v3 2/3] iio: types: Added support for rotation from north usage attributes

2014-06-16 Thread Reyad Attiyat
Added the rotation from north usage attributes to the iio modifier enum and to the iio modifier names array. Signed-off-by: Reyad Attiyat --- drivers/iio/industrialio-core.c | 4 include/linux/iio/types.h | 4 2 files changed, 8 insertions(+) diff --git

[PATCH v3 3/3] iio: hid-sensor-magn-3d: Add support for rotation from north usage attributes

2014-06-16 Thread Reyad Attiyat
Added the ability for this driver to scan for a range of hid usage attributes. This allows for dynamic creation of iio channels such as rotation from north and/or magnetic flux axises (X, Y, Z). Signed-off-by: Reyad Attiyat --- drivers/iio/magnetometer/hid-sensor-magn-3d.c | 394

Re: [patch 1/5] futex: Make unlock_pi more robust

2014-06-16 Thread Thomas Gleixner
On Tue, 17 Jun 2014, Thomas Gleixner wrote: > On Mon, 16 Jun 2014, Darren Hart wrote: > > On Wed, 2014-06-11 at 20:45 +, Thomas Gleixner wrote: > > In wake_futex_pi we verify ownership by matching pi_state->owner == > > current, but here the only test is the TID value, which is set by > >

Re: [PATCH 0/4] Volatile Ranges (v14 - madvise reborn edition!)

2014-06-16 Thread Andrea Arcangeli
Hello everyone, On Mon, Jun 16, 2014 at 01:12:41PM -0700, John Stultz wrote: > On Tue, Jun 3, 2014 at 7:57 AM, Johannes Weiner wrote: > > That, however, truly is a separate virtual memory feature. Would it > > be possible for you to take MADV_FREE and MADV_REVIVE as a base and > > implement an

Re: [PATCH 8/9] ata: Add support for the Tegra124 SATA controller

2014-06-16 Thread Stephen Warren
On 06/04/2014 05:32 AM, Mikko Perttunen wrote: > This adds support for the integrated AHCI-compliant Serial ATA > controller present on the NVIDIA Tegra124 system-on-chip. > diff --git a/drivers/ata/ahci_tegra.c b/drivers/ata/ahci_tegra.c > +static int tegra_ahci_controller_init(struct

Re: [patch 1/5] futex: Make unlock_pi more robust

2014-06-16 Thread Thomas Gleixner
On Mon, 16 Jun 2014, Darren Hart wrote: > On Wed, 2014-06-11 at 20:45 +, Thomas Gleixner wrote: > > static int futex_unlock_pi(u32 __user *uaddr, unsigned int flags) > > @@ -2417,57 +2401,47 @@ retry: > > return -EPERM; > > > > ret = get_futex_key(uaddr, flags &

Re: [PATCH] staging: ced1401: userspace: use1401.c: Cleaning up potential strncpy missing null-terminate

2014-06-16 Thread Rickard Strandqvist
2014-06-16 21:09 GMT+02:00 Dan Carpenter : > On Mon, Jun 16, 2014 at 10:01:14PM +0300, Dan Carpenter wrote: >> >> No one calls U14DriverName() so just delete this function. > > Oh. This is a userspace library or something? I'm not sure what to do. > > How did you compile test this? Does your

Re: [PATCH 07/13] kexec: Implementation of new syscall kexec_file_load

2014-06-16 Thread Borislav Petkov
On Mon, Jun 16, 2014 at 05:43:13PM -0400, Vivek Goyal wrote: > Actually currently I am using vzalloc() for command line buffer > allocation. > > image->cmdline_buf = vzalloc(cmdline_len); > if (!image->cmdline_buf) > goto out; > > Should I switch to using kzalloc()

Re: [PATCH] fs/cifs: fix regression in cifs_create_mf_symlink()

2014-06-16 Thread Steve French
Although I have merged this into cifs-2.6.git for-next, in my testing I am also seeing this fail with vers=3.0 (and probably 2.0 and 2.1) so I would like to fix that too (and mfsymlinks may be at least as important there) On Mon, Jun 16, 2014 at 8:49 AM, Stefan (metze) Metzmacher wrote: > Hi

Re: [PATCH 7/9] ahci: Increase AHCI_MAX_CLKS to 4

2014-06-16 Thread Stephen Warren
On 06/04/2014 05:32 AM, Mikko Perttunen wrote: > The Tegra AHCI device requires four clocks, so increase the maximum > amount of handled clocks from three to four. Tejun, The SATA driver in patch 8/9 in this series would usually be applied in your ATA tree. However, it has a lot of compile-time

[PATCH v6] leds: USB: HID: Add support for MSI GT683R led panels

2014-06-16 Thread Janne Kanniainen
This driver adds support for USB controlled led panels that exists in MSI GT683R laptop Signed-off-by: Janne Kanniainen --- Changes in v2: - sorted headers to alphabetic order - using devm_kzalloc - using BIT(n) - using usb_control_msg instead of usb_submit_urb

Re: 3.15: kernel BUG at kernel/auditsc.c:1525!

2014-06-16 Thread Andy Lutomirski
On Mon, Jun 16, 2014 at 2:58 PM, H. Peter Anvin wrote: >> >> For 64-bit, I want to do this instead: >> >> https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git/commit/?h=x86/seccomp-fastpath=a5ec2d7af2c54b55fc7201fa662138b53fbbda39 >> >> I see no reason why the 64-bit badsys code needs its

Re: [PATCH 6/9] ARM: tegra: Export tegra_powergate_power_on

2014-06-16 Thread Stephen Warren
On 06/04/2014 05:32 AM, Mikko Perttunen wrote: > This symbol needs to be exported to power on rails without using > tegra_powergate_sequence_power_up. tegra_powergate_sequence_power_up > cannot be used in situations where the driver wants to handle clocking > by itself. Thierry, are you OK with

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

2014-06-16 Thread Paul Zimmerman
> 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 > --- > drivers/usb/dwc2/hcd_ddma.c | 20 +++- > drivers/usb/host/uhci-hcd.c | 7 +++

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

2014-06-16 Thread David Riley
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). Changes since v1: - allow udelay() to be 0.5% faster than requested as per feedback Changes since v2: - fix permissions on udelay_test.sh script -

Re: 3.15: kernel BUG at kernel/auditsc.c:1525!

2014-06-16 Thread H. Peter Anvin
> > For 64-bit, I want to do this instead: > > https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git/commit/?h=x86/seccomp-fastpath=a5ec2d7af2c54b55fc7201fa662138b53fbbda39 > > I see no reason why the 64-bit badsys code needs its own code path at > all. I haven't sent it yet because

[PATCH v4 2/2] tools: add script to test udelay

2014-06-16 Thread David Riley
This script makes use of the udelay_test module to exercise udelay() and ensure that it is delaying long enough (as compared to ktime). Signed-off-by: David Riley --- tools/time/udelay_test.sh | 66 +++ 1 file changed, 66 insertions(+) create mode

[PATCH v4 1/2] kernel: time: Add udelay_test module to validate udelay

2014-06-16 Thread David Riley
Create a module that allows udelay() to be executed to ensure that it is delaying at least as long as requested (with a little bit of error allowed). There are some configurations which don't have reliably udelay due to using a loop delay with cpufreq changes which should use a counter time based

Re: [PATCH 3/9] ARM: tegra: Add SATA and SATA power to Jetson TK1 device tree

2014-06-16 Thread Stephen Warren
On 06/04/2014 05:32 AM, Mikko Perttunen wrote: > This enables the integrated SATA controller on the Tegra124 system-on-chip > on the Jetson TK1 board and adds regulators for the onboard Molex connector > commonly used to power SATA devices. The regulators are marked always-on > since they can be

Re: [PATCH 08/11] qspinlock: Revert to test-and-set on hypervisors

2014-06-16 Thread Waiman Long
On 06/15/2014 08:47 AM, Peter Zijlstra wrote: When we detect a hypervisor (!paravirt, see later patches), revert to a simple test-and-set lock to avoid the horrors of queue preemption. Signed-off-by: Peter Zijlstra --- arch/x86/include/asm/qspinlock.h | 14 ++

Re: 3.15: kernel BUG at kernel/auditsc.c:1525!

2014-06-16 Thread Andy Lutomirski
On Mon, Jun 16, 2014 at 2:48 PM, H. Peter Anvin wrote: > On 06/16/2014 02:35 PM, Andy Lutomirski wrote: >> >> To hpa, etc: It appears that entry_32.S is missing any call to the >> audit exit hook on the badsys path. If I'm diagnosing this bug report >> correctly, this causes OOPSes. >> >> The

Re: [PATCH 1/9] of: Add NVIDIA Tegra SATA controller binding

2014-06-16 Thread Stephen Warren
On 06/04/2014 05:32 AM, Mikko Perttunen wrote: > This patch adds device tree binding documentation for the SATA > controller found on NVIDIA Tegra SoCs. Just one nit below: > diff --git a/Documentation/devicetree/bindings/ata/tegra-sata.txt >

Re: 3.15: kernel BUG at kernel/auditsc.c:1525!

2014-06-16 Thread H. Peter Anvin
On 06/16/2014 02:35 PM, Andy Lutomirski wrote: > > To hpa, etc: It appears that entry_32.S is missing any call to the > audit exit hook on the badsys path. If I'm diagnosing this bug report > correctly, this causes OOPSes. > > The the world at large: it's increasingly apparent that no one

Re: [PATCH 4/9] clk: tegra: Enable hardware control of SATA PLL

2014-06-16 Thread Stephen Warren
On 06/04/2014 05:32 AM, Mikko Perttunen wrote: > This makes the SATA PLL be controlled by hardware instead of software. > This is required for working SATA support. Peter, could you please take patches 4 and 5 through the clock tree. As far as I can tell, there's no compile-time dependency in the

[PATCH 06/10] mfd: cros_ec: Use struct cros_ec_command to communicate with the EC

2014-06-16 Thread Doug Anderson
From: Bill Richardson This is some internal structure reorganization / renaming to prepare for future patches that will add a userspace API to cros_ec. There should be no visible changes. Signed-off-by: Bill Richardson Signed-off-by: Doug Anderson --- drivers/mfd/cros_ec.c | 28

[PATCH 05/10] mdf: cros_ec: Detect in-progress commands

2014-06-16 Thread Doug Anderson
From: Simon Glass Some commands take a while to execute. Use -EAGAIN to signal this to the caller. Signed-off-by: Simon Glass Signed-off-by: Doug Anderson --- drivers/mfd/cros_ec_spi.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mfd/cros_ec_spi.c

Re: [PATCH 11/13] kexec-bzImage: Support for loading bzImage using 64bit entry

2014-06-16 Thread Vivek Goyal
On Mon, Jun 16, 2014 at 11:27:20PM +0200, Borislav Petkov wrote: > On Mon, Jun 16, 2014 at 05:15:00PM -0400, Vivek Goyal wrote: > > Do we want to show all the rejection messages from bzImage64 and > > bzImage32 loaders. It might be too verbose to show users that before > > vmlinux loader accepted

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