Re: [PATCH] drm/sun4i: add COMMON_CLK dependency

2016-05-04 Thread Maxime Ripard
Hi, On Mon, May 02, 2016 at 12:59:48PM +0200, Arnd Bergmann wrote: > The sun4i drm driver uses the clk-provider interfaces, which are not available > when CONFIG_COMMON_CLK is disabled: > > drivers/gpu/drm/sun4i/sun4i_dotclock.c:19:16: error: field 'hw' has > incomplete type > struct clk_hw hw

[PATCH 1/4] rpmsg: add THIS_MODULE to rpmsg_driver in rpmsg core

2016-05-04 Thread Andrew F. Davis
Add register_rpmsg_driver helper macro that adds THIS_MODULE to rpmsg_driver for the registering driver. We rename and modify the existing register_rpmsg_driver to enable this. Signed-off-by: Andrew F. Davis --- drivers/rpmsg/virtio_rpmsg_bus.c | 8 +--- include/linux/rpmsg.h| 8

Re: [PATCH] drm: sun4i: print DMA address correctly

2016-05-04 Thread Maxime Ripard
On Tue, May 03, 2016 at 05:23:28PM +0200, Arnd Bergmann wrote: > The newly added sun4i drm driver prints a dma address using the %x > format string, which cannot work when dma_addr_t is 64 bit, > and gcc warns about this configuration: > > drm/sun4i/sun4i_backend.c: In function 'sun4i_backend_upda

Re: [PATCH 04/13] iio: health/afe440x: Always use separate gain values

2016-05-04 Thread Jonathan Cameron
On 4 May 2016 16:13:29 BST, "Andrew F. Davis" wrote: >On 05/04/2016 05:02 AM, Jonathan Cameron wrote: >> On 01/05/16 21:36, Andrew F. Davis wrote: >>> Locking the two gain stages to the same setting adds no value for >us, >>> so initialize them as unlocked and remove the sysfs for unlocking >the

Re: [PATCHv3] ARM: dts: sunxi: Add a olinuxino-lime2-emmc

2016-05-04 Thread Maxime Ripard
On Wed, May 04, 2016 at 03:17:33PM +0200, Olliver Schinagl wrote: > There are 3 kinds of OLinuXino Lime2 boards. > One without any on board storage, one with NAND storage and one with > eMMC storage. This patch adds the eMMC variant of boards. > > eMMC storage is different from a regular SD card i

[PATCH v2 1/2] mtd: nand: omap2: Support parsing dma channel information from DT

2016-05-04 Thread Franklin S Cooper Jr
Switch from dma_request_channel to allow passing dma channel information from DT rather than hardcoding a value. Also provide a handle to the GPMC's dev so it can be used to parse the DMA channel information within the GPMC's DT node. Performance Numbers via mtd_speedtest now that EDMA based pref

[PATCH v2 0/2] mtd: nand: omap2: Add EDMA support for NAND DMA prefetch

2016-05-04 Thread Franklin S Cooper Jr
This patchset includes the required patches to enable NAND DMA prefetch support when using the EDMA. This patchset depends on my previous patchset to enable NAND DMA prefetch using the SDMA and Roger's GPMC and NAND rework. Both of these patchsets are apart of Boris' NAND next patch. Therefore, th

[PATCH v2 2/2] ARM: OMAP2+: Update GPMC and NAND DT binding documentation

2016-05-04 Thread Franklin S Cooper Jr
Add additional details to the GPMC NAND documentation to clarify what is needed to enable NAND DMA prefetch. Signed-off-by: Franklin S Cooper Jr Acked-by: Rob Herring --- Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt | 7 ++- Documentation/devicetree/bindings/mtd/gpmc-n

[PATCH 3/4] rpmsg: add helper macro module_rpmsg_driver

2016-05-04 Thread Andrew F. Davis
This patch introduces the module_rpmsg_driver macro which is a convenience macro for rpmsg driver modules similar to module_platform_driver. It is intended to be used by drivers which init/exit section does nothing but register/unregister the rpmsg driver. By using this macro it is possible to elim

Re: [RFC PATCH 0/0] VFS:userns: support portable root filesystems

2016-05-04 Thread Djalal Harouni
Hi, On Wed, May 04, 2016 at 08:34:04AM -0500, Seth Forshee wrote: > On Wed, May 04, 2016 at 01:21:46AM +0200, Djalal Harouni wrote: > > This RFC tries to explore how to support filesystem operations inside > > user namespace using only VFS and a per mount namespace solution. This > > allows to tak

[PATCH 2/4] rpmsg: drop owner assignment from spi_drivers

2016-05-04 Thread Andrew F. Davis
An rpmsg_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: Andrew F. Davis --- Documentation/rpmsg.txt | 1 - samples/rpmsg/rpmsg_client_sample.c | 1 - 2 files changed, 2 deletions(-) diff --git a/Documentation/rpmsg.txt b/Documentation/r

Re: [PATCH v4 3/7] phy: Add set_mode callback

2016-05-04 Thread Bin Liu
On Wed, May 04, 2016 at 01:20:36PM -0500, David Lechner wrote: > On 05/04/2016 01:10 PM, Bin Liu wrote: > >Hi, > > > >On Thu, Apr 14, 2016 at 01:35:14PM -0500, David Lechner wrote: > >>The initial use for this is for PHYs that have a mode related to USB OTG. > >>There are several SoCs (e.g. TI OMAP

[PATCH] arm64: mm: remove unnecessary EXPORT_SYMBOL_GPL

2016-05-04 Thread Yang Shi
arch_pick_mmap_layout is only called by fs/exec.c which is always built into kernel, it looks the EXPORT_SYMBOL_GPL is pointless and no architectures export it other than ARM64. Signed-off-by: Yang Shi --- arch/arm64/mm/mmap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/mm/mm

Re: [PATCH] rlimit: locking tidy ups

2016-05-04 Thread Oleg Nesterov
On 05/04, Eric W. Biederman wrote: > > Cc'd Oleg as he tends to be deeply involved with this class of locking. > > Mateusz Guzik writes: > > > proc_pid_limits takes ->sighand lock prior to accessing rlimits, but it > > serves no purpose as it does not prevent modifications. Well. I agree this all

[RFC PATCH] x86/hweight: Get rid of the special calling convention

2016-05-04 Thread Borislav Petkov
On Thu, Apr 07, 2016 at 11:43:33AM +0200, Borislav Petkov wrote: > I guess we can do something like this: > >if (likely(static_cpu_has(X86_FEATURE_POPCNT))) >asm volatile(POPCNT32 > : "="REG_OUT (res) > : REG_IN (w));

Re: [PATCH v11 04/60] sparc/PCI: Use correct offset for bus address to resource

2016-05-04 Thread Yinghai Lu
On Wed, May 4, 2016 at 8:17 AM, Bjorn Helgaas wrote: > > What mess do you mean? The fact that you could only use > pcibios_bus_to_resource() for MEM, and something else for IO? Even > if we could only use pcibios_bus_to_resource() for MEM, that sounds > like an improvement, not a mess. I means

Re: [PATCH 0/2] drivers: i2c: qup: Some misc fixes

2016-05-04 Thread Naveen Kaje
From: Naveen Kaje Hi Sricharan, I tested these changes. They did not cause any regressions on QDF2432. Note that QDF2432 does not use DMA mode. I based my patches (http://marc.info/?l=linux-i2c&m=146231797008963&w=2 and http://marc.info/?l=linux-i2c&m=146231798708969&w=2) on top of these fixes.

Re: [PATCH] ARM: BCM5301X: Add DT for Luxul XAP-1510

2016-05-04 Thread Florian Fainelli
On 03/05/16 10:28, Dan Haab wrote: > Luxul XAP-1510 is an AP device based on BCM4708 SoC. It uses flash > memory connected to the SPI controller. Looks fine, except one nit: > diff --git a/arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts > b/arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts > new file mo

Re: [PATCH 3/4] rpmsg: add helper macro module_rpmsg_driver

2016-05-04 Thread Suman Anna
Hi Andrew, On 05/04/2016 01:34 PM, Andrew F. Davis wrote: > This patch introduces the module_rpmsg_driver macro which is a > convenience macro for rpmsg driver modules similar to > module_platform_driver. It is intended to be used by drivers which > init/exit section does nothing but register/unre

Re: [PATCH 2/4] rpmsg: drop owner assignment from spi_drivers

2016-05-04 Thread Suman Anna
On 05/04/2016 01:34 PM, Andrew F. Davis wrote: > An rpmsg_driver does not need to set an owner, it will be populated by > the driver core. spi_drivers in patch subject?? regards Suman > > Signed-off-by: Andrew F. Davis > --- > Documentation/rpmsg.txt | 1 - > samples/rpmsg/rpmsg_c

Re: [PATCH 1/4] rpmsg: add THIS_MODULE to rpmsg_driver in rpmsg core

2016-05-04 Thread Suman Anna
On 05/04/2016 01:34 PM, Andrew F. Davis wrote: > Add register_rpmsg_driver helper macro that adds THIS_MODULE to > rpmsg_driver for the registering driver. We rename and modify > the existing register_rpmsg_driver to enable this. > > Signed-off-by: Andrew F. Davis With the multi-trace comment fr

Re: [PATCH 2/4] rpmsg: drop owner assignment from spi_drivers

2016-05-04 Thread Andrew F. Davis
On 05/04/2016 01:55 PM, Suman Anna wrote: > On 05/04/2016 01:34 PM, Andrew F. Davis wrote: >> An rpmsg_driver does not need to set an owner, it will be populated by >> the driver core. > > spi_drivers in patch subject?? > copy/paste error, this is all based on my SPI patches that do this same th

Re: [PATCHv2] musb_host: fix lockup on rxcsr_h_error

2016-05-04 Thread Bin Liu
Hi, On Wed, May 04, 2016 at 04:49:50PM +0200, Yegor Yefremov wrote: > On Tue, May 3, 2016 at 4:35 PM, Bin Liu wrote: > > Hi, > > > > On Tue, May 03, 2016 at 04:25:58PM +0200, Yegor Yefremov wrote: > >> On Tue, May 3, 2016 at 3:48 PM, Bin Liu wrote: > >> > Hi, > >> > > >> > On Tue, May 03, 2016 a

Re: [PATCH 3/4] rpmsg: add helper macro module_rpmsg_driver

2016-05-04 Thread Andrew F. Davis
On 05/04/2016 01:54 PM, Suman Anna wrote: > Hi Andrew, > > On 05/04/2016 01:34 PM, Andrew F. Davis wrote: >> This patch introduces the module_rpmsg_driver macro which is a >> convenience macro for rpmsg driver modules similar to >> module_platform_driver. It is intended to be used by drivers which

Re: [PATCHv2] musb_host: fix lockup on rxcsr_h_error

2016-05-04 Thread Sergei Shtylyov
Hello. On 05/04/2016 09:56 PM, Bin Liu wrote: yes, it also works with that reset and go to finish: diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index c3d5fc9..8cd98e7 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -1599,6 +1599,10 @@

Re: [PATCH] ie31200_edac: add skylake support

2016-05-04 Thread Jason Baron
On 05/04/2016 01:44 PM, Luck, Tony wrote: I've verified that the 'ce_count' is correctly incrementing with bad dimms. Did you re-test on at least one of the previous 3 generations of CPUs supported by this driver? All would be nice, but the bulk of the opportunities for cut&paste errors seem

Re: [PATCH 1/3] random: replace non-blocking pool with a Chacha20-based CRNG

2016-05-04 Thread tytso
On Wed, May 04, 2016 at 11:29:57AM -0700, H. Peter Anvin wrote: > > We don't care about UB, we care about gcc, and to a lesser extent > LLVM and ICC. If bitops.h doesn't do the right thing, we need to > fix bitops.h. I'm going to suggest that we treat the ro[rl]{32,64}() question as separable fr

[PART1 V5 00/13] KVM: x86: Introduce SVM AVIC support

2016-05-04 Thread Suravee Suthikulpanit
CHANGES FROM RFCv4: == (https://lkml.org/lkml/2016/4/7/87) * Removing the RFC since I think this is getting ready. * Rebase to latest tip.git. * Rename vm_deinit to vm_destroy. * Replace svm_vcpu_avic_enabled() with kvm_vcpu_apicv_active(). * Fix the cluster logical APIC

[PART1 V5 02/13] KVM: x86: Rename kvm_apic_get_reg to kvm_lapic_get_reg

2016-05-04 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit Rename kvm_apic_get_reg to kvm_lapic_get_reg to be consistent with the existing kvm_lapic_set_reg counterpart. Signed-off-by: Suravee Suthikulpanit --- arch/x86/kvm/ioapic.c | 2 +- arch/x86/kvm/lapic.c | 58 +-- arc

[PART1 V5 03/13] KVM: x86: Introducing kvm_x86_ops VM init/destroy hooks

2016-05-04 Thread Suravee Suthikulpanit
Adding function pointers in struct kvm_x86_ops for processor-specific layer to provide hooks for when KVM initialize and destroy VM. Signed-off-by: Suravee Suthikulpanit --- arch/x86/include/asm/kvm_host.h | 3 +++ arch/x86/kvm/x86.c | 5 + 2 files changed, 8 insertions(+) diff

[PART1 V5 04/13] KVM: x86: Introducing kvm_x86_ops VCPU blocking/unblocking hooks

2016-05-04 Thread Suravee Suthikulpanit
Adding new function pointer in struct kvm_x86_ops, and calling them from the kvm_arch_vcpu[blocking/unblocking]. Signed-off-by: Suravee Suthikulpanit Reviewed-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --g

[PART1 V5 12/13] svm: Do not intercept CR8 when enable AVIC

2016-05-04 Thread Suravee Suthikulpanit
When enable AVIC: * Do not intercept CR8 since this should be handled by AVIC HW. * Also, we don't need to sync cr8/V_TPR and APIC backing page. Signed-off-by: Suravee Suthikulpanit --- arch/x86/kvm/svm.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git

[PART1 V5 08/13] svm: Add interrupt injection via AVIC

2016-05-04 Thread Suravee Suthikulpanit
This patch introduces a new mechanism to inject interrupt using AVIC. Since VINTR is not supported when enable AVIC, we need to inject interrupt via APIC backing page instead. This patch also adds support for AVIC doorbell, which is used by KVM to signal a running vcpu to check IRR for injected in

[PART1 V5 13/13] svm: Manage vcpu load/unload when enable AVIC

2016-05-04 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit When a vcpu is loaded/unloaded to a physical core, we need to update host physical APIC ID information in the Physical APIC-ID table accordingly. Also, when vCPU is blocking/un-blocking (due to halt instruction), we need to make sure that the is-running bit in set acc

[PART1 V5 05/13] KVM: split kvm_vcpu_wake_up from kvm_vcpu_kick

2016-05-04 Thread Suravee Suthikulpanit
From: Radim Krčmář AVIC has a use for kvm_vcpu_wake_up. Signed-off-by: Radim Krčmář Tested-by: Suravee Suthikulpanit Reviewed-by: Paolo Bonzini --- include/linux/kvm_host.h | 1 + virt/kvm/kvm_main.c | 19 +-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --gi

[PART1 V5 10/13] KVM: x86: Introducing kvm_x86_ops.apicv_post_state_restore

2016-05-04 Thread Suravee Suthikulpanit
Adding kvm_x86_ops hooks to allow APICv to do post state restore. This is required to support VM save and restore feature. Signed-off-by: Suravee Suthikulpanit --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/lapic.c| 2 ++ arch/x86/kvm/svm.c | 10 ++ 3

[PART1 V5 11/13] svm: Do not expose x2APIC when enable AVIC

2016-05-04 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit Since AVIC only virtualizes xAPIC hardware for the guest, this patch disable x2APIC support in guest CPUID. Signed-off-by: Suravee Suthikulpanit --- arch/x86/kvm/svm.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kv

[PART1 V5 01/13] KVM: x86: Misc LAPIC changes to expose helper functions

2016-05-04 Thread Suravee Suthikulpanit
Exporting LAPIC utility functions and macros for re-use in SVM code. Signed-off-by: Suravee Suthikulpanit Reviewed-by: Radim Krčmář --- arch/x86/kvm/lapic.c | 127 +-- arch/x86/kvm/lapic.h | 29 2 files changed, 82 insertions(+), 74

[PART1 V5 09/13] svm: Add VMEXIT handlers for AVIC

2016-05-04 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit This patch introduces VMEXIT handlers, avic_incomplete_ipi_interception() and avic_unaccelerated_access_interception() along with two trace points (trace_kvm_avic_incomplete_ipi and trace_kvm_avic_unaccelerated_access). Signed-off-by: Suravee Suthikulpanit --- arch/

[PART1 V5 06/13] svm: Introduce new AVIC VMCB registers

2016-05-04 Thread Suravee Suthikulpanit
Introduce new AVIC VMCB registers. Signed-off-by: Suravee Suthikulpanit Reviewed-by: Paolo Bonzini --- arch/x86/include/asm/svm.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h index 6136d99..4711fa4 100644 --

[PART1 V5 07/13] KVM: x86: Detect and Initialize AVIC support

2016-05-04 Thread Suravee Suthikulpanit
This patch introduces AVIC-related data structure, and AVIC initialization code. There are three main data structures for AVIC: * Virtual APIC (vAPIC) backing page (per-VCPU) * Physical APIC ID table (per-VM) * Logical APIC ID table (per-VM) Currently, AVIC is disabled by default. Use

Re: [PATCHv2] musb_host: fix lockup on rxcsr_h_error

2016-05-04 Thread Bin Liu
Hi, On Wed, May 04, 2016 at 10:02:16PM +0300, Sergei Shtylyov wrote: > Hello. > > On 05/04/2016 09:56 PM, Bin Liu wrote: > > yes, it also works with that reset and go to finish: > > diff --git a/drivers/usb/musb/musb_host.c > b/drivers/usb/musb/musb_host.c > >>>

ftrace use of pci_resource_to_user()

2016-05-04 Thread Bjorn Helgaas
138295373ccf ("ftrace: mmiotrace update, #2") added this use of pci_resource_to_user(): +static int mmio_print_pcidev(struct trace_seq *s, const struct pci_dev *dev) +{ ... + /* +* XXX: is pci_resource_to_user() appropriate, since we are +* supposed to interpret t

Re: kmap_atomic and preemption

2016-05-04 Thread Russell King - ARM Linux
On Wed, May 04, 2016 at 03:47:29PM +0200, Peter Zijlstra wrote: > Traditionally kmap_atomic() disables preemption; and the reason is that > the returned pointer must stay valid. This had a side effect in that it > also disabled pagefaults. A lowmem page should never change its page_address(), so t

[PATCH] ARM: dts: omap5-board-common: Describe the voltage supply mapping accurately

2016-05-04 Thread Nishanth Menon
://svtronics.com/5432 Reported-by: Tony Lindgren Signed-off-by: Nishanth Menon --- Based on next-20160504 This should fix regression reported for mmcsd such as that seen in: https://storage.kernelci.org/next/next-20160504/arm-omap2plus_defconfig/lab-baylibre-seattle/boot-omap5-uevm_rootfs:mmc.txt http

Re: [PATCH 14/14] mm, oom, compaction: prevent from should_compact_retry looping for ever for costly orders

2016-05-04 Thread Michal Hocko
On Thu 05-05-16 00:14:51, Joonsoo Kim wrote: > 2016-05-04 18:04 GMT+09:00 Michal Hocko : > > On Wed 04-05-16 15:27:48, Joonsoo Kim wrote: > >> On Wed, Apr 20, 2016 at 03:47:27PM -0400, Michal Hocko wrote: > > [...] > >> > +bool compaction_zonelist_suitable(struct alloc_context *ac, int order, > >>

Re: [PATCH 08/15] ACPICA: Dispatcher: Update thread ID for recursive method calls

2016-05-04 Thread Rafael J. Wysocki
On Wed, May 4, 2016 at 5:10 PM, Prarit Bhargava wrote: > > > On 05/04/2016 01:48 AM, Lv Zheng wrote: >> From: Prarit Bhargava >> >> ACPICA commit 7a3bd2d962f221809f25ddb826c9e551b916eb25 >> >> Set the mutex owner thread ID. >> Original patch from: Prarit Bhargava >> >> Link: https://github.com/a

[CFP] Tracing Summit 2016 Call for Presentations, October 12th, 2016, Berlin, Germany

2016-05-04 Thread Mathieu Desnoyers
Hi, This is a call for presentations for the Tracing Summit which will be held in Berlin, Germany, on October 12th, 2016, at the Maritim Hotel Berlin. This event is co-located with Embedded Linux Conference 2016. The Tracing Summit is organized by the Linux Foundation Diagnostic and Monitoring Wo

Re: [PATCH 0/3] Patches to allow consistent mmc / mmcblk numbering

2016-05-04 Thread Arnd Bergmann
On Thursday 28 April 2016 16:06:42 Douglas Anderson wrote: > This series picks patches from various different places to produce what > I consider the best solution to getting consistent mmc and mmcblk > ordering. > > Why consistent ordering and why not just use UUIDs? IMHO consistent > ordering s

[PATCH 2/4] random: make /dev/urandom scalable for silly userspace programs

2016-05-04 Thread Theodore Ts'o
On a system with a 4 socket (NUMA) system where a large number of application threads were all trying to read from /dev/urandom, this can result in the system spending 80% of its time contending on the global urandom spinlock. The application should have used its own PRNG, but let's try to help it

[PATCH 1/4] random: replace non-blocking pool with a Chacha20-based CRNG

2016-05-04 Thread Theodore Ts'o
The CRNG is faster, and we don't pretend to track entropy usage in the CRNG any more. Signed-off-by: Theodore Ts'o --- crypto/chacha20_generic.c | 61 -- drivers/char/random.c | 283 +++--- include/crypto/chacha20.h | 1 + lib/Makefile

[PATCH 3/4] random: add interrupt callback to VMBus IRQ handler

2016-05-04 Thread Theodore Ts'o
From: Stephan Mueller The Hyper-V Linux Integration Services use the VMBus implementation for communication with the Hypervisor. VMBus registers its own interrupt handler that completely bypasses the common Linux interrupt handling. This implies that the interrupt entropy collector is not trigger

[PATCH -v2 0/4] random: replace urandom pool with a CRNG

2016-05-04 Thread Theodore Ts'o
By using a CRNG to replace the urandom pool, we address a number of complaints which Stephan Mueller has been concerned about. We now use a much more aggressive interrupt sampling system to quickly initialize a CRNG which gets used in place of the original non-blocking pool. This tends to get init

[PATCH 4/4] random: add backtracking protection to the CRNG

2016-05-04 Thread Theodore Ts'o
Signed-off-by: Theodore Ts'o --- drivers/char/random.c | 35 +-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/drivers/char/random.c b/drivers/char/random.c index 897c75e..028d085 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -8

[RESEND PATCH 2/3] fs: poll/select/recvmmsg: use timespec64 for timeout events

2016-05-04 Thread Deepa Dinamani
struct timespec is not y2038 safe. Even though timespec might be sufficient to represent timeouts, use struct timespec64 here as the plan is to get rid of all timespec reference in the kernel. The patch transitions the common functions: poll_select_set_timeout() and select_estimate_accuracy() to u

Re: [GIT PULL for v4.6-rc1] media updates

2016-05-04 Thread Stefan Lippers-Hollmann
Hi On 2016-05-04, Linus Torvalds wrote: > On Tue, May 3, 2016 at 9:39 PM, Stefan Lippers-Hollmann wrote: > > > > Just as a cross-check, this (incomplete, but au0828, cx231xx and em28xx > > aren't needed/ loaded on my system) crude revert avoids the problem for > > me on v4.6-rc6-113-g83858a7. >

[PATCH v1 1/2] dmaengine: slave means at least one of DMA_SLAVE, DMA_CYCLIC

2016-05-04 Thread Andy Shevchenko
When check for capabilities recognize slave support by eother DMA_SLAVE or DMA_CYCLIC bit set. If we don't do that the user can't get a normally worked DMA support for engines that doesn't have one of the mentioned bits set. Signed-off-by: Andy Shevchenko --- drivers/dma/dmaengine.c | 4 ++-- 1

[PATCH v1 0/2] dmaengine: urgent fix to prevent regression in UART

2016-05-04 Thread Andy Shevchenko
There are two patches, first of which is an urgent fix to prevent a regression when UART driver can't acquire DMA channel due to DMA engine which doesn't support DMA_CYCLIC. Andy Shevchenko (2): dmaengine: slave means at least one of DMA_SLAVE, DMA_CYCLIC dmaengine: rename cmd_pause to cmd_sus

[PATCH v1 2/2] dmaengine: rename cmd_pause to cmd_suspend

2016-05-04 Thread Andy Shevchenko
Rename cmd_pause to cmd_suspend to be clear that latter capability reflects pause AND resume. Signed-off-by: Andy Shevchenko --- drivers/dma/dmaengine.c | 4 ++-- drivers/tty/serial/8250/8250_dma.c| 2 +- include/linux/dmaengine.h | 4 ++-- sound/soc/soc-generic-dma

Re: [RFC PATCH] x86/hweight: Get rid of the special calling convention

2016-05-04 Thread Brian Gerst
On Wed, May 4, 2016 at 2:46 PM, Borislav Petkov wrote: > On Thu, Apr 07, 2016 at 11:43:33AM +0200, Borislav Petkov wrote: >> I guess we can do something like this: >> >>if (likely(static_cpu_has(X86_FEATURE_POPCNT))) >>asm volatile(POPCNT32 >> :

Re: [RFC PATCH] x86/hweight: Get rid of the special calling convention

2016-05-04 Thread H. Peter Anvin
On 05/04/2016 12:31 PM, Brian Gerst wrote: >> >> - asm (ALTERNATIVE("call __sw_hweight32", POPCNT32, X86_FEATURE_POPCNT) >> -: "="REG_OUT (res) >> -: REG_IN (w)); >> + if (likely(static_cpu_has(X86_FEATURE_POPCNT))) { >> + asm volati

Re: ftrace use of pci_resource_to_user()

2016-05-04 Thread Steven Rostedt
On Wed, 4 May 2016 14:17:13 -0500 Bjorn Helgaas wrote: > 138295373ccf ("ftrace: mmiotrace update, #2") added this use of > pci_resource_to_user(): > > +static int mmio_print_pcidev(struct trace_seq *s, const struct pci_dev > *dev) > +{ > ... > + /* > +* XXX: is pci_resou

Re: [PATCH 2/2] pci: host: Add Broadcom STB PCIE RC controller

2016-05-04 Thread Florian Fainelli
On 03/05/16 02:57, Arnd Bergmann wrote: >> +static const struct pcie_cfg_data generic_cfg = { >> +.offsets= pcie_offsets, >> +.type = GENERIC, >> +}; > > The way you access the config space here seems very indirect. I'd > suggest instead writing two sets of pci_ops, with

Re: [PATCH 6/6] mm/page_owner: use stackdepot to store stacktrace

2016-05-04 Thread Michal Hocko
On Thu 05-05-16 00:30:35, Joonsoo Kim wrote: > 2016-05-04 18:21 GMT+09:00 Michal Hocko : [...] > > Do we really consume 512B of stack during reclaim. That sounds more than > > worrying to me. > > Hmm...I checked it by ./script/stackusage and result is as below. > > shrink_zone() 128 > shrink_zone

Re: [RFC PATCH] x86/hweight: Get rid of the special calling convention

2016-05-04 Thread Borislav Petkov
On Wed, May 04, 2016 at 12:33:24PM -0700, H. Peter Anvin wrote: > Most likely not. It would be nice to have some more uniform solution to > that. I'm wondering if we could use the -Wa option to load some kind of > macro package. Lemme try out some old compilers first, I'm guessing 3.2 won't know

Re: [PATCH 6/6] mm/page_owner: use stackdepot to store stacktrace

2016-05-04 Thread Michal Hocko
On Thu 05-05-16 00:45:45, Joonsoo Kim wrote: > 2016-05-05 0:30 GMT+09:00 Joonsoo Kim : > > 2016-05-04 18:21 GMT+09:00 Michal Hocko : > >> On Wed 04-05-16 11:14:50, Joonsoo Kim wrote: > >>> On Tue, May 03, 2016 at 10:53:56AM +0200, Michal Hocko wrote: > >>> > On Tue 03-05-16 14:23:04, Joonsoo Kim wr

RE: mm: pages are not freed from lru_add_pvecs after process termination

2016-05-04 Thread Odzioba, Lukasz
On Thu 02-05-16 03:00:00, Michal Hocko wrote: > So I have given this a try (not tested yet) and it doesn't look terribly > complicated. It is hijacking vmstat for a purpose it wasn't intended for > originally but creating a dedicated kenrnel threads/WQ sounds like an > overkill to me. Does this hel

Re: [PATCH REPOST] Extend PCIE_BUS_PEER2PEER to set MRSS=128 to fix CNS3xxx BM DMA.

2016-05-04 Thread Bjorn Helgaas
On Wed, May 04, 2016 at 03:09:27PM +0200, Krzysztof Hałasa wrote: > Bjorn Helgaas writes: > > > It looks like 498a92d42596 merely fixed a warning, at the expense of > > breaking DMA on Cavium. Reverting it would bring the warning back, but > > that's better than broken DMA. > > Perhaps we shoul

[PATCH v3] media: fix use-after-free in cdev_put() when app exits after driver unbind

2016-05-04 Thread Shuah Khan
When driver unbinds while media_ioctl is in progress, cdev_put() fails with when app exits after driver unbinds. Add devnode struct device kobj as the cdev parent kobject. cdev_add() gets a reference to it and releases it in cdev_del() ensuring that the devnode is not deallocated as long as the ap

Re: [PATCH v4 3/7] phy: Add set_mode callback

2016-05-04 Thread David Lechner
On 05/04/2016 01:39 PM, Bin Liu wrote: Have you already tested this? I never tried changing mode via sysfs, but by quickly reviewing the code, I am wondering how it works. the core only calls ops->set_mode() but nothing else. To really switch the mode, the driver has to talk to the root hub, and

Re: [PATCH 0/7] mm: Improve swap path scalability with batched operations

2016-05-04 Thread Michal Hocko
On Wed 04-05-16 10:13:06, Tim Chen wrote: > On Wed, 2016-05-04 at 14:45 +0200, Michal Hocko wrote: > > On Tue 03-05-16 14:00:39, Tim Chen wrote: > > [...] > > > > > >  include/linux/swap.h |  29 ++- > > >  mm/swap_state.c  | 253 +- > > >  mm/swapfile.c| 215

Re: [RFC PATCH] x86/hweight: Get rid of the special calling convention

2016-05-04 Thread H. Peter Anvin
On 05/04/2016 12:41 PM, Borislav Petkov wrote: > On Wed, May 04, 2016 at 12:33:24PM -0700, H. Peter Anvin wrote: >> Most likely not. It would be nice to have some more uniform solution to >> that. I'm wondering if we could use the -Wa option to load some kind of >> macro package. > > Lemme try o

Re: [PATCH] ARM: dts: omap5-board-common: Describe the voltage supply mapping accurately

2016-05-04 Thread Nishanth Menon
On 05/04/2016 02:20 PM, Nishanth Menon wrote: [...] > @@ -551,6 +590,8 @@ > > ldo9_reg: ldo9 { > /* VCC_DV_SDIO: vdds_sdcard */ > + vin-supply = <&vmmcsdio_fixed>; > + There is an extra white

Re: [PATCH 2/2] pci: host: Add Broadcom STB PCIE RC controller

2016-05-04 Thread Arnd Bergmann
On Wednesday 04 May 2016 12:36:17 Florian Fainelli wrote: > On 03/05/16 02:57, Arnd Bergmann wrote: > >> +static const struct pcie_cfg_data generic_cfg = { > >> + .offsets= pcie_offsets, > >> + .type = GENERIC, > >> +}; > > > > The way you access the config space here seems ver

Re: [RESEND PATCH 2/3] fs: poll/select/recvmmsg: use timespec64 for timeout events

2016-05-04 Thread John Stultz
On Wed, May 4, 2016 at 12:24 PM, Deepa Dinamani wrote: > struct timespec is not y2038 safe. > Even though timespec might be sufficient to represent > timeouts, use struct timespec64 here as the plan is to > get rid of all timespec reference in the kernel. > > The patch transitions the common funct

Re: [PATCH 2/2] pci: host: Add Broadcom STB PCIE RC controller

2016-05-04 Thread Florian Fainelli
On 04/05/16 12:56, Arnd Bergmann wrote: > On Wednesday 04 May 2016 12:36:17 Florian Fainelli wrote: >> On 03/05/16 02:57, Arnd Bergmann wrote: +static const struct pcie_cfg_data generic_cfg = { + .offsets= pcie_offsets, + .type = GENERIC, +}; >>> >>> The way

RE: [PATCH] kasan: improve double-free detection

2016-05-04 Thread Luruo, Kuthonuzo
> >> I missed that Alexander already landed patches that reduce header size > >> to 16 bytes. > >> It is not OK to increase them again. Please leave state as bitfield > >> and update it with CAS (if we introduce helper functions for state > >> manipulation, they will hide the CAS loop, which is nic

RE: [PATCH] ie31200_edac: add skylake support

2016-05-04 Thread Luck, Tony
> I verified that at least the memory sizes, ie the 'size_mb' files > are correct on the old h/w. I don't have bad dimms atm to test > the old h/w error paths though. That said this driver does get a > lot indirect testing here (just from being loaded), - so I would > likely find out if there were

[PATCH v9 2/9] i2c: muxes always lock the parent adapter

2016-05-04 Thread Peter Rosin
Instead of checking for i2c parent adapters for every lock/unlock, simply override the locking for muxes to always lock/unlock the parent adapter directly. Signed-off-by: Peter Rosin --- drivers/i2c/i2c-core.c | 21 +++-- drivers/i2c/i2c-mux.c | 30 ++

[PATCH v9 4/9] i2c-mux: document i2c muxes and elaborate on parent-/mux-locked muxes

2016-05-04 Thread Peter Rosin
Signed-off-by: Peter Rosin --- Documentation/i2c/i2c-topology | 370 + MAINTAINERS| 1 + 2 files changed, 371 insertions(+) create mode 100644 Documentation/i2c/i2c-topology diff --git a/Documentation/i2c/i2c-topology b/Documentation

[PATCH v9 9/9] [media] rtl2832: regmap is aware of lockdep, drop local locking hack

2016-05-04 Thread Peter Rosin
Tested-by: Antti Palosaari Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/rtl2832.c | 30 -- drivers/media/dvb-frontends/rtl2832_priv.h | 1 - 2 files changed, 31 deletions(-) diff --git a/drivers/media/dvb-frontends/rt

[PATCH v9 8/9] [media] rtl2832_sdr: get rid of empty regmap wrappers

2016-05-04 Thread Peter Rosin
Tested-by: Antti Palosaari Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/rtl2832_sdr.c | 302 +- 1 file changed, 132 insertions(+), 170 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2832_sdr.c b/drivers/media/dvb

[PATCH v9 7/9] [media] rtl2832: change the i2c gate to be mux-locked

2016-05-04 Thread Peter Rosin
The root i2c adapter lock is then no longer held by the i2c mux during accesses behind the i2c gate, and such accesses need to take that lock just like any other ordinary i2c accesses do. So, declare the i2c gate mux-locked, and zap the regmap overrides that makes the i2c accesses unlocked and use

[PATCH v9 6/9] [media] si2168: change the i2c gate to be mux-locked

2016-05-04 Thread Peter Rosin
From: Antti Palosaari The root i2c adapter lock is then no longer held by the i2c mux during accesses behind the i2c gate, and such accesses need to take that lock just like any other ordinary i2c accesses do. So, declare the i2c gate mux-locked, and zap the code that makes the i2c accesses unlo

Re: [PATCH v3 2/2] usb: host: ehci-tegra: Avoid getting the same reset twice

2016-05-04 Thread Thierry Reding
On Wed, May 04, 2016 at 07:22:54PM +0200, Philipp Zabel wrote: > Hi Thierry, > > Am Mittwoch, den 04.05.2016, 16:40 +0200 schrieb Thierry Reding: > > From: Thierry Reding > > > > Starting with commit 0b52297f2288 ("reset: Add support for shared reset > > controls") there is a reference count for

Re: [PATCHv2] musb_host: fix lockup on rxcsr_h_error

2016-05-04 Thread Greg KH
On Wed, May 04, 2016 at 02:17:15PM -0500, Bin Liu wrote: > Hi, > > On Wed, May 04, 2016 at 10:02:16PM +0300, Sergei Shtylyov wrote: > > Hello. > > > > On 05/04/2016 09:56 PM, Bin Liu wrote: > > > > yes, it also works with that reset and go to finish: > > > > diff --git a

[PATCH v9 5/9] iio: imu: inv_mpu6050: change the i2c gate to be mux-locked

2016-05-04 Thread Peter Rosin
The root i2c adapter lock is then no longer held by the i2c mux during accesses behind the i2c gate, and such accesses need to take that lock just like any other ordinary i2c accesses do. So, declare the i2c gate mux-locked, and zap the code that makes the unlocked i2c accesses and just use ordina

Re: mm: pages are not freed from lru_add_pvecs after process termination

2016-05-04 Thread Dave Hansen
On 05/04/2016 12:41 PM, Odzioba, Lukasz wrote: > Do you see any advantages of dropping THP from pagevecs over this solution? It's a more foolproof solution. Even with this patch, there might still be some corner cases where the draining doesn't occur. That "two minutes" might be come 20 or 200 u

[PATCH v9 3/9] i2c-mux: relax locking of the top i2c adapter during mux-locked muxing

2016-05-04 Thread Peter Rosin
With a i2c topology like the following GPIO ---| -- BAT1 | v / I2C -+--+ MUX | \ EEPROM -- BAT2 there is a locking problem with the GPIO controller since it i

Re: task_diag: add a new interface to get information about processes

2016-05-04 Thread Stephen Hemminger
I understand how reading /proc or /sys can be a bottleneck, but this proposed method using a system call is the wrong way to do this. Why not use netlink like other systems do which allows a message based response which allows for future changes (no fixed datastructures), and is message based. Ge

[PATCH v9 1/9] i2c: allow adapter drivers to override the adapter locking

2016-05-04 Thread Peter Rosin
Add i2c_lock_bus() and i2c_unlock_bus(), which call the new lock_bus and unlock_bus ops in the adapter. These funcs/ops take an additional flags argument that indicates for what purpose the adapter is locked. There are two flags, I2C_LOCK_ROOT_ADAPTER and I2C_LOCK_SEGMENT, but they are both implem

Re: [RFC PATCH] x86/hweight: Get rid of the special calling convention

2016-05-04 Thread Borislav Petkov
On Wed, May 04, 2016 at 12:49:17PM -0700, H. Peter Anvin wrote: > Sigh. Doesn't look like -Wa is going to help due to the lack of the > equivalent of an -include option in gas. So much for the register "freedom" - I'll resurrect the hardcoded insn bytes. :-\ Unless my gcc friends have some other

Re: [PATCH] fix infoleak in rtnetlink

2016-05-04 Thread David Miller
From: Kangjie Lu Date: Tue, 3 May 2016 16:46:24 -0400 > The stack object “map” has a total size of 32 bytes. Its last 4 > bytes are padding generated by compiler. These padding bytes are > not initialized and sent out via “nla_put”. > > Signed-off-by: Kangjie Lu Applied.

Re: [PATCH] fix infoleak in llc

2016-05-04 Thread David Miller
From: Kangjie Lu Date: Tue, 3 May 2016 16:35:05 -0400 > The stack object “info” has a total size of 12 bytes. Its last byte > is padding which is not initialized and leaked via “put_cmsg”. > > Signed-off-by: Kangjie Lu Applied.

[PATCH v9 0/9] i2c mux cleanup and locking update

2016-05-04 Thread Peter Rosin
Hi! I have a pair of boards with this i2c topology: GPIO ---| -- BAT1 | v / I2C -+--B---+ MUX | \ EEPROM -- BAT2 (B denotes the boundary between the boar

[PATCH v2] Input: CM109: Fix handling of volume and mute buttons

2016-05-04 Thread Florian Euchner
The CM109 driver reported key press events of volume up / down and record / playback mute buttons, but no release events. Report those events properly by handling volume and mute keys seperately. For the record and playback mute buttons, only presses are registered by the CM109, therefore simulate

Re: [PATCH v3 2/2] usb: host: ehci-tegra: Avoid getting the same reset twice

2016-05-04 Thread Thierry Reding
On Wed, May 04, 2016 at 11:23:20AM -0600, Stephen Warren wrote: > On 05/04/2016 08:40 AM, Thierry Reding wrote: > > From: Thierry Reding > > > > Starting with commit 0b52297f2288 ("reset: Add support for shared reset > > controls") there is a reference count for reset control assertions. The > >

Re: [PATCH 1/4] random: replace non-blocking pool with a Chacha20-based CRNG

2016-05-04 Thread Stephan Mueller
Am Mittwoch, 4. Mai 2016, 15:25:48 schrieb Theodore Ts'o: Hi Theodore, > The CRNG is faster, and we don't pretend to track entropy usage in the > CRNG any more. > > Signed-off-by: Theodore Ts'o > --- > crypto/chacha20_generic.c | 61 -- > drivers/char/random.c | 283 >

Re: [PATCH v3 1/2] usb: host: ehci-tegra: Grab the correct UTMI pads reset

2016-05-04 Thread Thierry Reding
On Wed, May 04, 2016 at 11:14:50AM -0600, Stephen Warren wrote: > On 05/04/2016 08:39 AM, Thierry Reding wrote: > > From: Thierry Reding > > > > There are three EHCI controllers on Tegra SoCs, each with its own reset > > line. However, the first controller contains a set of UTMI configuration > >

RE: [PATCH 08/15] ACPICA: Dispatcher: Update thread ID for recursive method calls

2016-05-04 Thread Mario_Limonciello
> -Original Message- > From: rjwyso...@gmail.com [mailto:rjwyso...@gmail.com] On Behalf Of > Rafael J. Wysocki > Sent: Wednesday, May 4, 2016 2:23 PM > To: Prarit Bhargava > Cc: Lv Zheng ; Rafael J. Wysocki > ; Rafael J. Wysocki ; Len > Brown ; Lv Zheng ; Linux > Kernel Mailing List ; ACPI

<    2   3   4   5   6   7   8   9   10   >