[GIT PULL] ARC urgent fixes for 4.4-rc1

2015-11-13 Thread Vineet Gupta
Hi Linus, Found a couple of brown paper bag bugs with the prev pull request (including a SMP build breakage report from Guenter). Since these are urgent I also decided to send over a bunch of other pending fixes which could have otherwise waited an rc or two. Please pull. Thx, -Vineet -

Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs

2015-11-13 Thread Pavel Machek
On Fri 2015-11-13 22:53:55, Mark Brown wrote: > On Fri, Nov 13, 2015 at 10:58:12PM +0100, Pavel Machek wrote: > > On Tue 2015-10-13 12:53:55, Mark Brown wrote: > > > On Mon, Oct 12, 2015 at 10:11:38PM +0200, Pavel Machek wrote: > > > > > > No, you definitely shouldn't be doing this - the regulato

Re: Build failure in -next: Building arc:vdk_hs38_smp_defconfig ... failed

2015-11-13 Thread Vineet Gupta
On Friday 13 November 2015 11:31 AM, Guenter Roeck wrote: > Seen since next-20151105. > > Building arc:vdk_hs38_smp_defconfig ... failed > -- > Error log: > In file included from ./arch/arc/include/asm/irqflags-arcv2.h:12:0, > from ./arch/arc/include/asm/irqflags.h:16,

Re: [PATCH v2 1/3] usb: core: lpm: fix usb3_hardware_lpm sysfs node

2015-11-13 Thread Lu Baolu
On 11/13/2015 11:28 PM, Alan Stern wrote: On Fri, 13 Nov 2015, Lu, Baolu wrote: On 11/13/2015 12:20 AM, Alan Stern wrote: On Thu, 12 Nov 2015, Lu Baolu wrote: Commit 655fe4effe0f ("usbcore: add sysfs support to xHCI usb3 hardware LPM") introduced usb3_hardware_lpm sysfs node. This doesn't

Re: [PATCH 2/9] IB: add a proper completion queue abstraction

2015-11-13 Thread Christoph Hellwig
On Fri, Nov 13, 2015 at 03:06:36PM -0700, Jason Gunthorpe wrote: > Looking at that thread and then at the patch a bit more.. > > +void ib_process_cq_direct(struct ib_cq *cq) > [..] > + __ib_process_cq(cq, INT_MAX); > > INT_MAX is not enough, it needs to loop. > This is missing a ib_req_notify

Re: [PATCH 2/9] IB: add a proper completion queue abstraction

2015-11-13 Thread Christoph Hellwig
On Fri, Nov 13, 2015 at 11:25:13AM -0700, Jason Gunthorpe wrote: > For instance, like this, not fulling draining the cq and then doing: > > > + completed = __ib_process_cq(cq, budget); > > + if (completed < budget) { > > + irq_poll_complete(&cq->iop); > > + if (ib_req_notif

Re: [PATCH] staging: most: aim-cdev: Used "==" instead of assignment

2015-11-13 Thread Sudip Mukherjee
On Sat, Nov 14, 2015 at 09:57:10AM +0530, Anjali Menon wrote: > Used double equal sign instead of equal to sign in the if condition > to remove the error detected by checkpatch.pl. > > ERROR: do not use assignment in if condition > > Signed-off-by: Anjali Menon > --- > drivers/staging/staging/d

Re: [PATCH 3/9] IB: add a helper to safely drain a QP

2015-11-13 Thread Christoph Hellwig
On Fri, Nov 13, 2015 at 10:16:04AM -0600, Steve Wise wrote: > So how can we do this for iwarp? It seems like all that might be needed is > to modify the QP state to idle, retrying until it succeeds: > >If the QP is transitioning to the Error state, or has not yet >finished flushing the Wo

Re: [PATCH 2/2] arm: kvm: Fix STRICT_MM_TYPECHECK errors

2015-11-13 Thread Ard Biesheuvel
On 11 November 2015 at 03:03, Laura Abbott wrote: > > PAGE_S2_DEVICE is a pgprot val and needs to be accessed using the proper > accessors. Switch to these accessors to avoid errors with > STRICT_MM_TYPECHECK. > > Signed-off-by: Laura Abbott > --- > Found in the course of other work Already fixe

Re: [PATCH 1/9] move blk_iopoll to limit and make it generally available

2015-11-13 Thread Christoph Hellwig
On Fri, Nov 13, 2015 at 11:19:24AM -0800, Bart Van Assche wrote: > On 11/13/2015 05:46 AM, Christoph Hellwig wrote: >> The new name is irq_poll as iopoll is already taken. Better suggestions >> welcome. > > Hello Christoph, > > Would it be possible to provide more background information about this

Re: [PATCH 1/9] move blk_iopoll to limit and make it generally available

2015-11-13 Thread Christoph Hellwig
On Fri, Nov 13, 2015 at 05:23:39PM +0200, Or Gerlitz wrote: > On Fri, Nov 13, 2015 at 3:46 PM, Christoph Hellwig wrote: > > The new name is irq_poll as iopoll is already taken. Better suggestions > > welcome. > > Sagi (or Christoph if you can address that), > > @ some pointer over the last 18 m

Re: [PATCH v2 4/5] Staging: dgnc: dgnc_neo.c Braces {} should be used on all arms of this statement

2015-11-13 Thread Sudip Mukherjee
On Fri, Nov 13, 2015 at 09:03:56PM +0530, Nizam Haider wrote: > Fix Checlpatch warning > HECK: braces {} should be used on all arms of this statement > > Signed-off-by: Nizam Haider > --- > drivers/staging/dgnc/dgnc_neo.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --g

Re: [PATCH v4 00/10] Better compatible for the rockchip thermal and support RK3368 SoCs

2015-11-13 Thread Caesar Wang
在 2015年11月13日 06:14, Heiko Stuebner 写道: Hi Eduardo, Am Donnerstag, 12. November 2015, 10:29:52 schrieb Eduardo Valentin: On Mon, Nov 09, 2015 at 12:48:52PM +0800, Caesar Wang wrote: Thank you all for providing inputs and comments on previous versions of this patchset. Especially thanks to th

Re: [PATCH v4 00/10] Better compatible for the rockchip thermal and support RK3368 SoCs

2015-11-13 Thread Caesar Wang
Eduardo, 在 2015年11月13日 02:29, Eduardo Valentin 写道: On Mon, Nov 09, 2015 at 12:48:52PM +0800, Caesar Wang wrote: Thank you all for providing inputs and comments on previous versions of this patchset. Especially thanks to the (Eduardo, Dmitry, Heiko,). This series patchs are working for RK33

[GIT PULL] platform/chrome: Changes for 4.4

2015-11-13 Thread Olof Johansson
Hi Linus, Chrome hardware platform changes for 4.4. Please merge. Thanks! -Olof The following changes since commit 049e6dde7e57f0054fdc49102e7ef4830c698b46: Linux 4.3-rc4 (2015-10-04 16:57:17 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/o

Re: [PATCH] platform/chrome: Fix i2c-designware adapter name

2015-11-13 Thread Olof Johansson
On Tue, Nov 03, 2015 at 10:49:59AM -0800, Jeremiah Mahler wrote: > Jarkko, > > On Tue, Nov 03, 2015 at 01:09:00PM +0200, Jarkko Nikula wrote: > > Commit d80d134182ba ("i2c: designware: Move common probe code into > > i2c_dw_probe()") caused the I2C adapter lookup code here to fail for PCI > > enum

Re: [RT PATCH] sched: rt: fix two possible deadlocks in push_irq_work_func

2015-11-13 Thread yjin
On 2015年11月14日 12:25, Steven Rostedt wrote: On Sat, 14 Nov 2015 10:53:18 +0800 wrote: From: Yanjiang Jin This can only happen in RT kernel due to run_timer_softirq() calls irq_work_tick() when CONFIG_PREEMPT_RT_FULL is enabled as below: static void run_timer_softirq(struct softirq_action *

RE: Re: [PATCH perf/core ] [BUGFIX] perf probe: Fix memory leaking on faiulre by clearing all probe_trace_events

2015-11-13 Thread 平松雅巳 / HIRAMATU,MASAMI
From: Wangnan (F) [mailto:wangn...@huawei.com] > >Hi Masami, > >Today I remember the reason why I introduced patch [1]. Although your >patch is correct, >either [1] or [2] is still required, but they are both need to be fixed. > >Here is a bug: > >A segfault raises if use glob matching and argument

[PATCH] staging: most: aim-cdev: Used "==" instead of assignment

2015-11-13 Thread Anjali Menon
Used double equal sign instead of equal to sign in the if condition to remove the error detected by checkpatch.pl. ERROR: do not use assignment in if condition Signed-off-by: Anjali Menon --- drivers/staging/staging/drivers/staging/most/aim-cdev/cdev.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [RT PATCH] sched: rt: fix two possible deadlocks in push_irq_work_func

2015-11-13 Thread Steven Rostedt
On Sat, 14 Nov 2015 10:53:18 +0800 wrote: > From: Yanjiang Jin > > This can only happen in RT kernel due to run_timer_softirq() calls > irq_work_tick() when CONFIG_PREEMPT_RT_FULL is enabled as below: > > static void run_timer_softirq(struct softirq_action *h) > { > > if defined(CONFI

RE: [PATCH] perf probe: Clear probe_trace_event when add_probe_trace_event() fails

2015-11-13 Thread 平松雅巳 / HIRAMATU,MASAMI
>From: Wang Nan [mailto:wangn...@huawei.com] > >When probe with glob, error in add_probe_trace_event() won't be passed >to debuginfo__find_trace_events() because it whould be modified by >probe_point_search_cb(). It causes segfault if perf failed to find >argument for one probing point matched by t

[PATCH 1/2] KVM: kvm_is_visible_gfn can be boolean

2015-11-13 Thread Yaowei Bai
This patch makes kvm_is_visible_gfn return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- include/linux/kvm_host.h | 2 +- virt/kvm/kvm_main.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deleti

[PATCH 2/2] KVM: kvm_para_has_feature can be boolean

2015-11-13 Thread Yaowei Bai
This patch makes kvm_para_has_feature return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- include/linux/kvm_para.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/lin

[PATCH v5 00/10] xen-block: multi hardware-queues/rings support

2015-11-13 Thread Bob Liu
Note: These patches were based on original work of Arianna's internship for GNOME's Outreach Program for Women. After using blk-mq api, a guest has more than one(nr_vpus) software request queues associated with each block front. These queues can be mapped over several rings(hardware queues) to the

[PATCH v5 03/10] xen/blkfront: pseudo support for multi hardware queues/rings

2015-11-13 Thread Bob Liu
Preparatory patch for multiple hardware queues (rings). The number of rings is unconditionally set to 1, larger number will be enabled in next patch("xen/blkfront: negotiate number of queues/rings to be used with backend") so as to make every single patch small and readable. Signed-off-by: Bob Liu

[PATCH v5 06/10] xen/blkback: separate ring information out of struct xen_blkif

2015-11-13 Thread Bob Liu
Split per ring information to an new structure "xen_blkif_ring", so that one vbd device can be associated with one or more rings/hardware queues. Introduce 'pers_gnts_lock' to protect the pool of persistent grants since we may have multi backend threads. This patch is a preparation for supporting

[PATCH v5 02/10] xen/blkfront: separate per ring information out of device info

2015-11-13 Thread Bob Liu
Split per ring information to an new structure "blkfront_ring_info". A ring is the representation of a hardware queue, every vbd device can associate with one or more rings depending on how many hardware queues/rings to be used. This patch is a preparation for supporting real multi hardware queue

[PATCH v5 08/10] xen/blkback: get the number of hardware queues/rings from blkfront

2015-11-13 Thread Bob Liu
Backend advertises "multi-queue-max-queues" to front, also get the negotiated number from "multi-queue-num-queues" written by blkfront. Signed-off-by: Bob Liu --- drivers/block/xen-blkback/blkback.c | 12 drivers/block/xen-blkback/common.h |1 + drivers/block/xen-blkback/xenb

[PATCH v5 10/10] xen/blkback: make pool of persistent grants and free pages per-queue

2015-11-13 Thread Bob Liu
Make pool of persistent grants and free pages per-queue/ring instead of per-device to get better scalability. Test was done based on null_blk driver: dom0: v4.2-rc8 16vcpus 10GB "modprobe null_blk" domu: v4.2-rc8 16vcpus 10GB [test] rw=read direct=1 ioengine=libaio bs=4k time_based runtime=30 fil

[PATCH v5 04/10] xen/blkfront: split per device io_lock

2015-11-13 Thread Bob Liu
After commit "xen/blkfront: separate per ring information out of device info", per-ring data is protected by a per-device lock('io_lock'). This is not a good way and will effect the scalability, so introduces a per-ring lock('ring_lock'). The old 'io_lock' is renamed to 'dev_lock' which protects

[PATCH v5 09/10] xen/blkfront: make persistent grants pool per-queue

2015-11-13 Thread Bob Liu
Make persistent grants per-queue/ring instead of per-device, so that we can drop the 'dev_lock' and get better scalability. Test was done based on null_blk driver: dom0: v4.2-rc8 16vcpus 10GB "modprobe null_blk" domu: v4.2-rc8 16vcpus 10GB [test] rw=read direct=1 ioengine=libaio bs=4k time_based

[PATCH v5 05/10] xen/blkfront: negotiate number of queues/rings to be used with backend

2015-11-13 Thread Bob Liu
The max number of hardware queues for xen/blkfront is set by parameter 'max_queues'(default 4), while it is also capped by the max value that the xen/blkback exposes through XenStore key 'multi-queue-max-queues'. The negotiated number is the smaller one and would be written back to xenstore as "mu

[PATCH v5 07/10] xen/blkback: pseudo support for multi hardware queues/rings

2015-11-13 Thread Bob Liu
Preparatory patch for multiple hardware queues (rings). The number of rings is unconditionally set to 1, larger number will be enabled in next patch("xen/blkback: get the number of hardware queues/rings from blkfront") so as to make every single patch small and readable. Signed-off-by: Arianna Ava

[PATCH v5 01/10] xen/blkif: document blkif multi-queue/ring extension

2015-11-13 Thread Bob Liu
Document the multi-queue/ring feature in terms of XenStore keys to be written by the backend and by the frontend. Signed-off-by: Bob Liu --- v2: Add descriptions together with multi-page ring buffer. --- include/xen/interface/io/blkif.h | 48 ++ 1 file chang

[PATCH v4 0/4] SysFS driver for QEMU fw_cfg device

2015-11-13 Thread Gabriel L. Somlo
From: "Gabriel Somlo" Allow access to QEMU firmware blobs, passed into the guest VM via the fw_cfg device, through SysFS entries. Blob meta-data (e.g. name, size, and fw_cfg key), as well as the raw binary blob data may be accessed. The SysFS access location is /sys/firmware/qemu_fw_cfg/... and

[PATCH v4 3/4] firmware: create directory hierarchy for sysfs fw_cfg entries

2015-11-13 Thread Gabriel L. Somlo
From: Gabriel Somlo Each fw_cfg entry of type "file" has an associated 56-char, nul-terminated ASCII string which represents its name. While the fw_cfg device doesn't itself impose any specific naming convention, QEMU developers have traditionally used path name semantics (i.e. "etc/acpi/rsdp") t

[PATCH v4 4/4] devicetree: update documentation for fw_cfg ARM bindings

2015-11-13 Thread Gabriel L. Somlo
From: Gabriel Somlo Remove redundant details from Documentation/devicetree/bindings/arm/fw-cfg.txt, and replace them with a pointer to the more comprehensive fw_cfg documentation privided by Documentation/ABI/testing/sysfs-firmware-qemu_fw_cfg, leaving the specific ARM DTB node description in pla

[PATCH v4 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2015-11-13 Thread Gabriel L. Somlo
From: Gabriel Somlo Make fw_cfg entries of type "file" available via sysfs. Entries are listed under /sys/firmware/qemu_fw_cfg/by_key, in folders named after each entry's selector key. Filename, selector value, and size read-only attributes are included for each entry. Also, a "raw" attribute all

[PATCH v4 2/4] kobject: export kset_find_obj() for module use

2015-11-13 Thread Gabriel L. Somlo
From: Gabriel Somlo Signed-off-by: Gabriel Somlo --- lib/kobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/kobject.c b/lib/kobject.c index 7cbccd2..90d1be6 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@ -861,6 +861,7 @@ struct kobject *kset_find_obj(struct kset *kset, const c

[PATCH 1/2] fs/stat.c: drop the last new_valid_dev check

2015-11-13 Thread Yaowei Bai
New_valid_dev() always returns true, so that's unnecessary to perform new_valid_dev() checks in some filesystems. Most checks of new_valid_dev() have been removed so let's drop this last one and then we can remove new_valid_dev() from the source code. No functional change. Signed-off-by: Yaowei B

[PATCH 2/2] include/linux/kdev_t.h: remove new_valid_dev()

2015-11-13 Thread Yaowei Bai
As all new_valid_dev() checks have been removed it's time to drop new_valid_dev() itself. No functional change. Signed-off-by: Yaowei Bai --- include/linux/kdev_t.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/linux/kdev_t.h b/include/linux/kdev_t.h index 052c7b3..8e9e288b 10

[RT PATCH] sched: rt: fix two possible deadlocks in push_irq_work_func

2015-11-13 Thread yanjiang.jin
From: Yanjiang Jin This can only happen in RT kernel due to run_timer_softirq() calls irq_work_tick() when CONFIG_PREEMPT_RT_FULL is enabled as below: static void run_timer_softirq(struct softirq_action *h) { if defined(CONFIG_IRQ_WORK) && defined(CONFIG_PREEMPT_RT_FULL) irq_wor

[PATCH] Staging: iio: iio_simple_dummy_buffer: Typo in comments area

2015-11-13 Thread Nizam Haider
Fix simple typo in comments Signed-off-by: Nizam Haider --- drivers/staging/iio/iio_simple_dummy_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/iio_simple_dummy_buffer.c b/drivers/staging/iio/iio_simple_dummy_buffer.c index cf44a6f..c8f889b 1006

Re: [PATCH V3 2/2] arm64: bpf: make BPF prologue and epilogue align with ARM64 AAPCS

2015-11-13 Thread Z Lim
Yang, I noticed another thing... On Fri, Nov 13, 2015 at 10:09 AM, Yang Shi wrote: > Save and restore FP/LR in BPF prog prologue and epilogue, save SP to FP > in prologue in order to get the correct stack backtrace. > > However, ARM64 JIT used FP (x29) as eBPF fp register, FP is subjected to > ch

Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling

2015-11-13 Thread Dan Williams
On Fri, Nov 13, 2015 at 4:43 PM, Andreas Dilger wrote: > On Nov 13, 2015, at 5:20 PM, Dan Williams wrote: >> >> On Fri, Nov 13, 2015 at 4:06 PM, Ross Zwisler >> wrote: >>> Currently the PMEM driver doesn't accept REQ_FLUSH or REQ_FUA bios. These >>> are sent down via blkdev_issue_flush() in res

Test. Please ignore

2015-11-13 Thread team
Test message. Please ignore. -- 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 v2] spi: mediatek: single device does not require cs_gpios

2015-11-13 Thread lei liu
On Mon, 2015-11-09 at 12:14 +0800, Nicolas Boichat wrote: > When only one device is present, it is not necessary to specify > cs_gpios, as the CS line can be controlled by the hardware > module. > > Without this patch, older device tree bindings used before > 37457607 "spi: mediatek: mt8173 spi mu

Re: module: save load_info for livepatch modules

2015-11-13 Thread Jessica Yu
+++ Miroslav Benes [13/11/15 13:56 +0100]: On Fri, 13 Nov 2015, Miroslav Benes wrote: I agree this seems like the best approach. So if we preserve mod_arch_syminfo (in case of s390) we should free it not in module_finalize, but somewhere in free_module... where module_arch_cleanup() is called..

Removal of wchan and top

2015-11-13 Thread Raymond Jennings
Hey, don't know if this is important enough, but could I request that the removal of wchan be reverted, or at least wrapped in an optional config setting? I happen to enjoy monitoring this information with a secure top, and it's useful for understanding how my system works and I've used it a

Re: [PATCH] xen/x86: Adjust stack pointer in xen_sysexit

2015-11-13 Thread Boris Ostrovsky
On 11/13/2015 06:26 PM, Andy Lutomirski wrote: On Fri, Nov 13, 2015 at 3:18 PM, Boris Ostrovsky wrote: After 32-bit syscall rewrite, and specifically after commit 5f310f739b4c ("x86/entry/32: Re-implement SYSENTER using the new C path"), the stack frame that is passed to xen_sysexit is no lon

Endless getdents() in vfat filesystem

2015-11-13 Thread Vegard Nossum
Hi, Using the attached disk image I observe that getdents() never returns the end of the directory, i.e. mounting the disk image on a loopback device and running 'ls' under strace shows an endless stream of: getdents(3, /* 2 entries */, 32768) = 48 getdents(3, /* 2 entries */, 32768) = 4

Re: [PATCH v2 02/11] mm: add pmd_mkclean()

2015-11-13 Thread Dave Hansen
On 11/13/2015 04:06 PM, Ross Zwisler wrote: > +static inline pmd_t pmd_mkclean(pmd_t pmd) > +{ > + return pmd_clear_flags(pmd, _PAGE_DIRTY | _PAGE_SOFT_DIRTY); > +} pte_mkclean() doesn't clear _PAGE_SOFT_DIRTY. What the thought behind doing it here? -- To unsubscribe from this list: send the

[git pull] Input updates for 4.4-rc0 (round 2)

2015-11-13 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. You will get an update to tsc2005 driver that allows it to support tsc2004 (basically the same controller, but uses i2c instead of spi bus), and

Re: [PATCH] tmpfs: avoid a little creat and stat slowdown

2015-11-13 Thread Hugh Dickins
On Fri, 13 Nov 2015, Huang, Ying wrote: > > c435a390574d is the direct parent of afa2db2fb6f1 in its original git. > 43819159da2b is your patch applied on top of v4.3-rc7. The comparison > of 43819159da2b with v4.3-rc7 is as follow: ... > So you patch improved 11.9% from its base v4.3-rc7. I thi

[PATCH] pinctrl: mediatek: Add get_direction support.

2015-11-13 Thread Hongzhou Yang
Since Linux gpio framework return 0 for output, 1 for input. But HW use 0 stands for input, and 1 stands for output. So use negative to correct it. And gpio_chip.get is used to get input value, no need to get output value, so removing it. Signed-off-by: Hongzhou Yang --- Add get direction suppo

Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling

2015-11-13 Thread Andreas Dilger
On Nov 13, 2015, at 5:20 PM, Dan Williams wrote: > > On Fri, Nov 13, 2015 at 4:06 PM, Ross Zwisler > wrote: >> Currently the PMEM driver doesn't accept REQ_FLUSH or REQ_FUA bios. These >> are sent down via blkdev_issue_flush() in response to a fsync() or msync() >> and are used by filesystems t

Re: [PATCH v3] mm/hugetlbfs Fix bugs in fallocate hole punch of areas with holes

2015-11-13 Thread Hugh Dickins
On Tue, 10 Nov 2015, Mike Kravetz wrote: > Hugh Dickins pointed out problems with the new hugetlbfs fallocate > hole punch code. These problems are in the routine remove_inode_hugepages > and mostly occur in the case where there are holes in the range of > pages to be removed. These holes could

Re: [PATCH] mm/hugetlb: Unmap pages if page fault raced with hole punch

2015-11-13 Thread Hugh Dickins
On Tue, 10 Nov 2015, Mike Kravetz wrote: > On 11/09/2015 02:55 PM, Mike Kravetz wrote: > > On 11/08/2015 11:42 PM, Hugh Dickins wrote: > >> On Fri, 30 Oct 2015, Mike Kravetz wrote: > >>> > >>> The 'next = start' code is actually from the original truncate_hugepages > >>> routine. This functionalit

Re: module: save load_info for livepatch modules

2015-11-13 Thread Jessica Yu
+++ Miroslav Benes [13/11/15 13:46 +0100]: On Fri, 13 Nov 2015, Miroslav Benes wrote: As for load_info, I don't have a strong opinion whether to keep it for all modules or for livepatch modules only. I have. We cannot keep it, even for livepatch modules... In info->hdr there is a temporary c

[GIT PULL] platform-drivers-x86 for 4.4-2

2015-11-13 Thread Darren Hart
Hi Linus, The following changes since commit d2f20619942fe4618160a7fa3dbdcbac335cff59: toshiba_acpi: Initialize hotkey_event_type variable (2015-11-05 16:09:24 -0800) are available in the git repository at: git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git tags/platform-

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-13 Thread Doug Anderson
John, On Thu, Nov 12, 2015 at 9:05 PM, John Youn wrote: > It seems to be an issue with single TT hubs. I've tried several > multi-TT hubs with no issues. Agreed. > With a single TT hub I do see a problem though not the exact one > described. I see corrupted and dropped packets on the FS side o

Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling

2015-11-13 Thread Dan Williams
On Fri, Nov 13, 2015 at 4:06 PM, Ross Zwisler wrote: > Currently the PMEM driver doesn't accept REQ_FLUSH or REQ_FUA bios. These > are sent down via blkdev_issue_flush() in response to a fsync() or msync() > and are used by filesystems to order their metadata, among other things. > > When we get

[PATCH v2 04/11] dax: support dirty DAX entries in radix tree

2015-11-13 Thread Ross Zwisler
Add support for tracking dirty DAX entries in the struct address_space radix tree. This tree is already used for dirty page writeback, and it already supports the use of exceptional (non struct page*) entries. In order to properly track dirty DAX pages we will insert new exceptional entries into

[PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling

2015-11-13 Thread Ross Zwisler
Currently the PMEM driver doesn't accept REQ_FLUSH or REQ_FUA bios. These are sent down via blkdev_issue_flush() in response to a fsync() or msync() and are used by filesystems to order their metadata, among other things. When we get an msync() or fsync() it is the responsibility of the DAX code

[PATCH v2 05/11] mm: add follow_pte_pmd()

2015-11-13 Thread Ross Zwisler
Similar to follow_pte(), follow_pte_pmd() allows either a PTE leaf or a huge page PMD leaf to be found and returned. Signed-off-by: Ross Zwisler Suggested-by: Dave Hansen --- include/linux/mm.h | 2 ++ mm/memory.c| 38 ++ 2 files changed, 32 insertio

[PATCH v2 02/11] mm: add pmd_mkclean()

2015-11-13 Thread Ross Zwisler
Currently PMD pages can be dirtied via pmd_mkdirty(), but cannot be cleaned. For DAX mmap dirty page tracking we need to be able to clean PMD pages when we flush them to media so that we get a new write fault the next time the are written to. Signed-off-by: Ross Zwisler --- arch/x86/include/asm

[PATCH v2 01/11] pmem: add wb_cache_pmem() to the PMEM API

2015-11-13 Thread Ross Zwisler
The function __arch_wb_cache_pmem() was already an internal implementation detail of the x86 PMEM API, but this functionality needs to be exported as part of the general PMEM API to handle the fsync/msync case for DAX mmaps. One thing worth noting is that we really do want this to be part of the P

[PATCH v2 06/11] mm: add pgoff_mkclean()

2015-11-13 Thread Ross Zwisler
Introduce pgoff_mkclean() which conceptually is similar to page_mkclean() except it works in the absence of struct page and it can also be used to clean PMDs. This is needed for DAX's dirty page handling. pgoff_mkclean() doesn't return an error for a missing PTE/PMD when looping through the VMAs

[PATCH v2 08/11] dax: add support for fsync/sync

2015-11-13 Thread Ross Zwisler
To properly handle fsync/msync in an efficient way DAX needs to track dirty pages so it is able to flush them durably to media on demand. The tracking of dirty pages is done via the radix tree in struct address_space. This radix tree is already used by the page writeback infrastructure for tracki

[PATCH v2 09/11] ext2: add support for DAX fsync/msync

2015-11-13 Thread Ross Zwisler
To properly support the new DAX fsync/msync infrastructure filesystems need to call dax_pfn_mkwrite() so that DAX can properly track when a user write faults on a previously cleaned address. They also need to call dax_fsync() in the filesystem fsync() path. This dax_fsync() call uses addresses re

[PATCH v2 11/11] xfs: add support for DAX fsync/msync

2015-11-13 Thread Ross Zwisler
To properly support the new DAX fsync/msync infrastructure filesystems need to call dax_pfn_mkwrite() so that DAX can properly track when a user write faults on a previously cleaned address. They also need to call dax_fsync() in the filesystem fsync() path. This dax_fsync() call uses addresses re

[PATCH v2 10/11] ext4: add support for DAX fsync/msync

2015-11-13 Thread Ross Zwisler
To properly support the new DAX fsync/msync infrastructure filesystems need to call dax_pfn_mkwrite() so that DAX can properly track when a user write faults on a previously cleaned address. They also need to call dax_fsync() in the filesystem fsync() path. This dax_fsync() call uses addresses re

[PATCH v2 07/11] mm: add find_get_entries_tag()

2015-11-13 Thread Ross Zwisler
Add find_get_entries_tag() to the family of functions that include find_get_entries(), find_get_pages() and find_get_pages_tag(). This is needed for DAX dirty page handling because we need a list of both page offsets and radix tree entries ('indices' and 'entries' in this function) that are marked

[PATCH v2 00/11] DAX fsynx/msync support

2015-11-13 Thread Ross Zwisler
This patch series adds support for fsync/msync to DAX. Patches 1 through 7 add various utilities that the DAX code will eventually need, and the DAX code itself is added by patch 8. Patches 9-11 update the three filesystems that currently support DAX, ext2, ext4 and XFS, to use the new DAX fsync/

[GIT PULL] final round of SCSI updates for the 4.3+ merge window

2015-11-13 Thread James Bottomley
Sorry for the delay in this patch which was mostly caused by getting the merger of the mpt2/mpt3sas driver, which was seen as an essential item of maintenance work to do before the drivers diverge too much. Unfortunately, this caused a compile failure (detected by linux-next), which then had to be

Re: spi: OF module autoloading is still broken (was: Re: m25p80: Commit "allow arbitrary OF matching for "jedec,spi-nor"" breaks module autoloading)

2015-11-13 Thread Brian Norris
Hi, On Fri, Nov 13, 2015 at 11:14:10PM +, Mark Brown wrote: > On Fri, Nov 13, 2015 at 02:51:13PM -0800, Brian Norris wrote: > > > General problem: > > > > > The SPI core doesn't use the OF compatible property for generating > > uevent/modalias, and therefore can't autoload m

Re: [PATCH] pstore: add support for 64 Bit address space

2015-11-13 Thread Kees Cook
On Fri, Nov 13, 2015 at 4:10 AM, Wiebe, Wladislav (Nokia - DE/Ulm) wrote: > Some architectures has there reserved RAM in 64 Bit address space. > Therefore converting mem_address module parameter to ullong. > > Signed-off-by: Wladislav Wiebe If this works correctly, I have no objection. :) Acked

[PATCH net-next] Driver: Vmxnet3: Fix use of mfTableLen for big endian architectures

2015-11-13 Thread Shrikrishna Khare
Signed-off-by: Shrikrishna Khare Reported-by: Masao Uebayashi Signed-off-by: Bhavesh Davda --- drivers/net/vmxnet3/vmxnet3_drv.c | 7 --- drivers/net/vmxnet3/vmxnet3_int.h | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/n

Re: [PATCH] PM / wakeirq: check that wake IRQ is valid before accepting it

2015-11-13 Thread Rafael J. Wysocki
On Thursday, November 12, 2015 10:52:11 AM Dmitry Torokhov wrote: > On Thu, Nov 12, 2015 at 08:41:55PM +0200, Grygorii Strashko wrote: > > On 11/12/2015 08:26 PM, Dmitry Torokhov wrote: > > >Check that IRQ number passed to dev_pm_set_wake_irq and > > >dev_pm_set_dedicated_wake_irq is valid (not neg

Re: [PATCH] xen/x86: Adjust stack pointer in xen_sysexit

2015-11-13 Thread Andy Lutomirski
On Fri, Nov 13, 2015 at 3:18 PM, Boris Ostrovsky wrote: > After 32-bit syscall rewrite, and specifically after commit 5f310f739b4c > ("x86/entry/32: Re-implement SYSENTER using the new C path"), the stack > frame that is passed to xen_sysexit is no longer a "standard" one (i.e. > it's not pt_regs)

[PATCH] xen/x86: Adjust stack pointer in xen_sysexit

2015-11-13 Thread Boris Ostrovsky
After 32-bit syscall rewrite, and specifically after commit 5f310f739b4c ("x86/entry/32: Re-implement SYSENTER using the new C path"), the stack frame that is passed to xen_sysexit is no longer a "standard" one (i.e. it's not pt_regs). We need to adjust it so that subsequent xen_iret can use it.

Re: spi: OF module autoloading is still broken (was: Re: m25p80: Commit "allow arbitrary OF matching for "jedec,spi-nor"" breaks module autoloading)

2015-11-13 Thread Mark Brown
On Fri, Nov 13, 2015 at 02:51:13PM -0800, Brian Norris wrote: > On Fri, Nov 13, 2015 at 10:12:28PM +, Mark Brown wrote: > > On Fri, Nov 13, 2015 at 11:40:31AM -0800, Brian Norris wrote: > > > (Changing subject line, because apparently some people ignore mail if it > > > doesn't have 'SPI' in t

Re: [PATCH] drivers: staging: vme: Fixed code style issues

2015-11-13 Thread Martyn Welch
On 13/11/15 20:01, Egor Uleyskiy wrote: From: Egor Uleyskiy * Fixed indention * Deleted extra empty lines * Constructions that looks like card = kzalloc(sizeof(struct pio2_card), GFP_KERNEL); are changed to card = kzalloc(sizeof(*card), GFP_KERNEL); Also: * Removing extra brac

Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs

2015-11-13 Thread Mark Brown
On Fri, Nov 13, 2015 at 10:58:12PM +0100, Pavel Machek wrote: > On Tue 2015-10-13 12:53:55, Mark Brown wrote: > > On Mon, Oct 12, 2015 at 10:11:38PM +0200, Pavel Machek wrote: > > > > No, you definitely shouldn't be doing this - the regulator names should > > > > reflect the names the device has i

Re: spi: OF module autoloading is still broken (was: Re: m25p80: Commit "allow arbitrary OF matching for "jedec,spi-nor"" breaks module autoloading)

2015-11-13 Thread Brian Norris
Hi Mark, On Fri, Nov 13, 2015 at 10:12:28PM +, Mark Brown wrote: > On Fri, Nov 13, 2015 at 11:40:31AM -0800, Brian Norris wrote: > > > (Changing subject line, because apparently some people ignore mail if it > > doesn't have 'SPI' in the subject line) > > Well, if you mean me I'm getting CCe

Re: [PATCH 2/3] mm/page_isolation: add new tracepoint, test_pages_isolated

2015-11-13 Thread David Rientjes
On Fri, 13 Nov 2015, Joonsoo Kim wrote: > cma allocation should be guranteeded to succeed, but, sometimes, > it could be failed in current implementation. To track down > the problem, we need to know which page is problematic and > this new tracepoint will report it. > > Acked-by: Michal Nazarewi

Re: [PATCH 1/4] ktime: add a roundup function

2015-11-13 Thread Jacob Pan
On Fri, 13 Nov 2015 15:13:45 -0500 (EST) Thomas Gleixner wrote: > > > > +static inline ktime_t ktime_roundup(ktime_t x, ktime_t y) > > Kerneldoc comment of this function would be appreciated. will do. Plan to reuse John's comment. Thanks, Jacob -- To unsubscribe from this list: send the lin

Re: [PATCH 1/4] ktime: add a roundup function

2015-11-13 Thread Jacob Pan
On Fri, 13 Nov 2015 12:11:01 -0800 John Stultz wrote: > Could you add a comment as to what the function does, and use some > better variable names here to make it more immediately obvious what is > being done here? > > Something like: > /** > * ktime_roundup - Rounds value up to interval chunk

Re: [PATCH V6] mm: fix kernel crash in khugepaged thread

2015-11-13 Thread David Rientjes
On Fri, 13 Nov 2015, yalin wang wrote: > This crash is caused by NULL pointer deference, in page_to_pfn() marco, > when page == NULL : > > [ 182.639154 ] Unable to handle kernel NULL pointer dereference at virtual > address > [ 182.639491 ] pgd = ffc00077a000 > [ 182.639761 ] [00

Re: [PATCH v2 net-next] net/core: ensure features get disabled on new lower devs

2015-11-13 Thread Laura Abbott
On 11/13/2015 02:51 AM, Nikolay Aleksandrov wrote: On 11/13/2015 11:29 AM, Jiri Pirko wrote: Fri, Nov 13, 2015 at 01:26:18AM CET, f.faine...@gmail.com wrote: On 04/11/15 18:56, David Miller wrote: Fixes: fd867d51f889 ("net/core: generic support for disabling netdev features down stack") ..

Re: [PATCH] mm: get rid of __alloc_pages_high_priority

2015-11-13 Thread David Rientjes
On Fri, 13 Nov 2015, Michal Hocko wrote: > > > Hi, > > > I think that this is more a cleanup than any functional change. We > > > are rarely screwed so much that __alloc_pages_high_priority would > > > fail. Yet I think that __alloc_pages_high_priority is obscuring the > > > overal intention more

Re: [PATCH v2 5/8] drivers:input:ads7846(+tsc2046): add new common binding names, pre-calibration and flipping

2015-11-13 Thread Sebastian Reichel
Hi, On Fri, Nov 13, 2015 at 09:35:56PM +0100, H. Nikolaus Schaller wrote: > commit b98abe52fa8e ("Input: add common DT binding for touchscreens") > introduced common DT bindings for touchscreens [1] and a helper function to > parse the DT. > > This has been integrated and interpretation of the in

Re: [PATCH 2/4] timer: relax tick stop in idle entry

2015-11-13 Thread Jacob Pan
On Fri, 13 Nov 2015 15:22:16 -0500 (EST) Thomas Gleixner wrote: > > > On Fri, 13 Nov 2015, Jacob Pan wrote: > > > Upon entering idle, we can turn off tick if the next timeout > > is exactly one tick away. Otherwise, we could enter inner idle loop > > with tick still enabled, without resched se

Re: [PATCH 6/6] Documentation/x86: Update EFI memory region description

2015-11-13 Thread Matt Fleming
On Fri, 13 Nov, at 08:42:54AM, Linus Torvalds wrote: > On Fri, Nov 13, 2015 at 1:29 AM, Matt Fleming > wrote: > > On Fri, 13 Nov, at 10:22:10AM, Ingo Molnar wrote: > > > > You've snipped the patch hunk that gives the address range used, > > I'm actually wondering if we should strive to make the

[PATCH 3.13.y-ckt 07/96] perf tools: Fix copying of /proc/kcore

2015-11-13 Thread Kamal Mostafa
3.13.11-ckt30 -stable review patch. If anyone has any objections, please let me know. -- From: Adrian Hunter commit b5cabbcbd157a4bf5a92dfc85134999a3b55342d upstream. A copy of /proc/kcore containing the kernel text can be made to the buildid cache. e.g. perf buildid

[PATCH 3.13.y-ckt 08/96] ASoC: db1200: Fix DAI link format for db1300 and db1550

2015-11-13 Thread Kamal Mostafa
3.13.11-ckt30 -stable review patch. If anyone has any objections, please let me know. -- From: Lars-Peter Clausen commit e74679b38c9417c1c524081121cdcdb36f82264d upstream. Commit b4508d0f95fa ("ASoC: db1200: Use static DAI format setup") switched the db1200 driver over to usi

[PATCH 3.13.y-ckt 05/96] regmap: debugfs: Don't bother actually printing when calculating max length

2015-11-13 Thread Kamal Mostafa
3.13.11-ckt30 -stable review patch. If anyone has any objections, please let me know. -- From: Mark Brown commit 176fc2d5770a0990eebff903ba680d2edd32e718 upstream. The in kernel snprintf() will conveniently return the actual length of the printed string even if not given an o

[PATCH 3.13.y-ckt 09/96] m68k: Define asmlinkage_protect

2015-11-13 Thread Kamal Mostafa
3.13.11-ckt30 -stable review patch. If anyone has any objections, please let me know. -- From: Andreas Schwab commit 8474ba74193d302e83401e16c85cc4b98caf upstream. Make sure the compiler does not modify arguments of syscall functions. This can happen if the compiler gener

[PATCH 3.13.y-ckt 02/96] ppp, slip: Validate VJ compression slot parameters completely

2015-11-13 Thread Kamal Mostafa
3.13.11-ckt30 -stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit 4ab42d78e37a294ac7bc56901d563c642e03c4ae upstream. Currently slhc_init() treats out-of-range values of rslots and tslots as equivalent to 0, except that if tslo

[PATCH 3.13.y-ckt 04/96] regmap: debugfs: Ensure we don't underflow when printing access masks

2015-11-13 Thread Kamal Mostafa
3.13.11-ckt30 -stable review patch. If anyone has any objections, please let me know. -- From: Mark Brown commit b763ec17ac762470eec5be8ebcc43e4f8b2c2b82 upstream. If a read is attempted which is smaller than the line length then we may underflow the subtraction we're doing w

  1   2   3   4   5   6   7   8   >