[PATCH 7/8] xen/pvh: PVH guests always have PV devices

2016-10-14 Thread Boris Ostrovsky
Signed-off-by: Boris Ostrovsky --- arch/x86/xen/platform-pci-unplug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/xen/platform-pci-unplug.c b/arch/x86/xen/platform-pci-unplug.c index 90d1b83..33a783c 100644 --- a/arch/x86/xen/platform-pci-unplug.c +++ b/arch/

[PATCH 3/8] xen/pvh: Import PVH-related Xen public interfaces

2016-10-14 Thread Boris Ostrovsky
Signed-off-by: Boris Ostrovsky --- include/xen/interface/elfnote.h| 12 ++- include/xen/interface/hvm/hvm_vcpu.h | 143 + include/xen/interface/hvm/start_info.h | 98 ++ 3 files changed, 252 insertions(+), 1 deletion(-) create mode

[PATCH 5/8] xen/pvh: Prevent PVH guests from using PIC, RTC and IOAPIC

2016-10-14 Thread Boris Ostrovsky
Make sure they don't use these devices since they are not emulated for unprivileged PVH guest. Also don't initialize hypercall page for them in init_hvm_pv_info() since this has already been done. Signed-off-by: Boris Ostrovsky --- arch/x86/xen/enlighten.c | 24 +--- 1 file

[PATCH 8/8] xen/pvh: Enable CPU hotplug

2016-10-14 Thread Boris Ostrovsky
PVH guests don't receive ACPI hotplug interrupts and therefore need to monitor xenstore for CPU hotplug event. Signed-off-by: Boris Ostrovsky --- drivers/xen/cpu_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/cpu_hotplug.c b/drivers/xen/cpu_hotplug.c in

[PATCH 2/8] x86/head: Refactor 32-bit pgtable setup

2016-10-14 Thread Boris Ostrovsky
From: Matt Fleming The new Xen PVH entry point requires page tables to be setup by the kernel since it is entered with paging disabled. Pull the common code out of head_32.S and into pgtable_32.S so that setup_pgtable_32 can be invoked from both the new Xen entry point and the existing startup_3

[PATCH 4/8] xen/pvh: Bootstrap PVH guest

2016-10-14 Thread Boris Ostrovsky
Start PVH guest at XEN_ELFNOTE_PHYS32_ENTRY address. Setup hypercall page, initialize boot_params, enable early page tables. Since this stub is executed before kernel entry point we cannot use variables in .bss which is cleared by kernel. We explicitly place variables that are initialized here int

[PATCH 6/8] xen/pvh: Initialize grant table for PVH guests

2016-10-14 Thread Boris Ostrovsky
Signed-off-by: Boris Ostrovsky --- drivers/xen/grant-table.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index bb36b1e..d6786b8 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c @@ -1146,13

[PATCH 1/8] xen/x86: Remove PVH support

2016-10-14 Thread Boris Ostrovsky
We are replacing existing PVH guests with new implementation. Signed-off-by: Boris Ostrovsky --- arch/x86/xen/enlighten.c | 140 ++- arch/x86/xen/mmu.c | 21 +- arch/x86/xen/setup.c | 37 +-- arch/x86/xen/smp.c

Re: [PATCH v2 3/4] Device bindings documentation updated ACPI-enabled platforms not currently supported

2016-10-14 Thread Wolfram Sang
On Fri, Oct 14, 2016 at 06:30:15PM +0100, Mark Rutland wrote: > On Fri, Oct 14, 2016 at 05:52:50PM +0100, luis.olive...@synopsys.com wrote: > > - is_slave = device_property_read_bool(&pdev->dev, "isslave"); > > Which tree is this based on? I cant see the existing isslave property in > ma

[PATCH 3/5] KVM: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2016-10-14 Thread Paolo Bonzini
Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU is blocked", 2015-09-18) the posted interrupt descriptor is checked unconditionally for PIR.ON. Therefore we don't need KVM_REQ_EVENT to trigger the scan and, if NMIs or SMIs are not involved, we can avoid the complicated even

[PATCH 0/5] KVM: x86: cleanup and minimal speedup for APICv

2016-10-14 Thread Paolo Bonzini
On some benchmarks (e.g. netperf with ioeventfd disabled), APICv posted interrupts turn out to be slower than interrupt injection via KVM_REQ_EVENT. These patches save 40 cycles on kvm-unit-tests "inl" tests (1-2%), but I suspect the effect is bigger on workloads that inject interrupts heavily. P

Re: [RFC][PATCH 2/2] usb: dwc2: Add a quirk to allow speed negotiation for Hisilicon Hi6220

2016-10-14 Thread John Stultz
On Fri, Oct 14, 2016 at 8:00 AM, Rob Herring wrote: > On Thu, Oct 13, 2016 at 6:29 PM, John Stultz wrote: >> From: Chen Yu >> >> The Hi6220's usb controller is limited in that it does not >> automatically autonegotiate the usb speed. Thus it requires a >> quirk so that we can manually negotiate

[PATCH 4/5] KVM: x86: remove unnecessary sync_pir_to_irr

2016-10-14 Thread Paolo Bonzini
Synchronizing PIR to IRR is not needed in most callers of apic_find_highest_irr. Move it to the one place that matters, interrupt acknowledgement. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/lapic.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/la

[PATCH 5/5] KVM: vmx: clear pending interrupts on KVM_SET_LAPIC

2016-10-14 Thread Paolo Bonzini
Pending interrupts might be in the PI descriptor when the LAPIC is restored from an external state; we do not want them to be injected. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/lapic.c | 3 +-- arch/x86/kvm/vmx.c | 9 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git

[PATCH 2/5] KVM: x86: do not scan IRR twice on APICv vmentry

2016-10-14 Thread Paolo Bonzini
Calling apic_find_highest_irr results in IRR being scanned twice, once in vmx_sync_pir_from_irr and once in apic_search_irr. Change sync_pir_from_irr to do the RVI write and kvm_apic_update_irr to compute the new RVI on the fly. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/lapic.c | 25 +++

[GIT PULL] RTC for 4.9

2016-10-14 Thread Alexandre Belloni
Hi Linus, Here is the pull-request for the RTC subsystem for 4.9. Because of dependencies, it is based on ib-mfd-rtc-4.9 that you already pulled in your tree. The following changes since commit 04940631b8d2b2e57a13b6d4ca50dfe5994b514f: rtc: ac100: Add clk output support (2016-08-08 12:54:05 +0

[PATCH 1/5] KVM: x86: avoid atomic operations on APICv vmentry

2016-10-14 Thread Paolo Bonzini
On some benchmarks (e.g. netperf with ioeventfd disabled), APICv posted interrupts turn out to be slower than interrupt injection via KVM_REQ_EVENT. This patch optimizes a bit the IRR update, avoiding expensive atomic operations in the common case where PI.ON=0 at vmentry or the PIR vector is most

Re: [PATCH 0/3] ABI CHANGE!!! Remove questionable remote SP reads

2016-10-14 Thread Andy Lutomirski
On Mon, Oct 3, 2016 at 4:17 PM, Linus Torvalds wrote: > On Mon, Oct 3, 2016 at 4:08 PM, Andy Lutomirski wrote: >> >> Ping! >> >> We need to decide fairly soon whether to apply these (or perhaps just >> patch 1 or just patches 2 and 3) for 4.9. For any parts that aren't >> applied, I'll send quic

Re: [PATCH 1/3] proc: Stop reporting eip and esp in /proc/PID/stat

2016-10-14 Thread Andy Lutomirski
On Sat, Oct 1, 2016 at 3:37 AM, Jann Horn wrote: > On Fri, Sep 30, 2016 at 07:01:13PM -0700, Andy Lutomirski wrote: >> On an unrelated note, can we please lock down all the silly historical >> *userspace* info leaks in /proc? Nasty ones include: net, cmdline (at >> the very least, only argv[0] sh

[RFC][PATCH v2] mount: In mark_umount_candidates and __propogate_umount visit each mount once

2016-10-14 Thread Eric W. Biederman
Adrei Vagin pointed out that time to executue propagate_umount can go non-linear (and take a ludicrious amount of time) when the mount propogation trees of the mounts to be unmunted by a lazy unmount overlap. Solve this in the most straight forward way possible, by adding a new mount flag to mark

Re: [PATCH 2/8] x86/head: Refactor 32-bit pgtable setup

2016-10-14 Thread hpa
On October 14, 2016 11:05:12 AM PDT, Boris Ostrovsky wrote: >From: Matt Fleming > >The new Xen PVH entry point requires page tables to be setup by the >kernel since it is entered with paging disabled. > >Pull the common code out of head_32.S and into pgtable_32.S so that >setup_pgtable_32 can be

Re: [Xen-devel] [PATCH 3/8] xen/pvh: Import PVH-related Xen public interfaces

2016-10-14 Thread Konrad Rzeszutek Wilk
On Fri, Oct 14, 2016 at 02:05:13PM -0400, Boris Ostrovsky wrote: > Signed-off-by: Boris Ostrovsky Reviewed-by: Konrad Rzeszutek Wilk

Re: [PATCH V3 00/11] block-throttle: add .high limit

2016-10-14 Thread Tejun Heo
Hello, Paolo. On Fri, Oct 14, 2016 at 07:13:41PM +0200, Paolo Valente wrote: > That said, your 'thus' seems a little too strong: "bfq does not yet > handle fast SSDs, thus we need something else". What about the > millions of devices (and people) still within 10-20 K IOPS, and > experiencing awfu

Re: [PATCH v4 1/4] block: Add iocontext priority to request

2016-10-14 Thread Adam Manzananares
The 10/14/2016 07:54, Hannes Reinecke wrote: > On 10/13/2016 09:53 PM, Adam Manzanares wrote: > > Patch adds an association between iocontext ioprio and the ioprio of a > > request. This value is set in blk_rq_set_prio which takes the request and > > the ioc as arguments. If the ioc is valid in blk

Re: [Xen-devel] [PATCH 1/8] xen/x86: Remove PVH support

2016-10-14 Thread Konrad Rzeszutek Wilk
On Fri, Oct 14, 2016 at 02:05:11PM -0400, Boris Ostrovsky wrote: > We are replacing existing PVH guests with new implementation. > > Signed-off-by: Boris Ostrovsky Reviewed-by: Konrad Rzeszutek Wilk

Re: [Xen-devel] [PATCH 4/8] xen/pvh: Bootstrap PVH guest

2016-10-14 Thread Andrew Cooper
On 14/10/16 19:05, Boris Ostrovsky wrote: > diff --git a/arch/x86/xen/xen-pvh.S b/arch/x86/xen/xen-pvh.S > new file mode 100644 > index 000..58c477b > --- /dev/null > +++ b/arch/x86/xen/xen-pvh.S > @@ -0,0 +1,143 @@ > +/* > + * Copyright C 2016, Oracle and/or its affiliates. All rights reserved

Re: [Xen-devel] [PATCH 8/8] xen/pvh: Enable CPU hotplug

2016-10-14 Thread Andrew Cooper
On 14/10/16 19:05, Boris Ostrovsky wrote: > PVH guests don't receive ACPI hotplug interrupts and therefore > need to monitor xenstore for CPU hotplug event. Why not? If they don't, they should. As we are providing ACPI anyway, we should provide all bits of it. ~Andrew

Re: kernel BUG at arch/x86/kernel/traps.c:643! when run Redhat7(v3.10) in kvm guest

2016-10-14 Thread Andy Lutomirski
On Thu, Oct 13, 2016 at 11:14 PM, Kefeng Wang wrote: > Hi all, > > We met BUG_ON in do_device_not_available(fpu exception handler) when run > redhat7 in kvm guest, > and there is no special test on this guest, only some network packet receipt > and transmission. > > I checked the new kernel vers

Re: [PATCH 2/8] x86/head: Refactor 32-bit pgtable setup

2016-10-14 Thread Boris Ostrovsky
On 10/14/2016 02:31 PM, h...@zytor.com wrote: > On October 14, 2016 11:05:12 AM PDT, Boris Ostrovsky > wrote: >> From: Matt Fleming >> >> The new Xen PVH entry point requires page tables to be setup by the >> kernel since it is entered with paging disabled. >> >> Pull the common code out of head

Re: [PATCH] DAX: enable iostat for read/write

2016-10-14 Thread Kani, Toshimitsu
On Fri, 2016-10-14 at 10:35 -0700, Dan Williams wrote: > On Fri, Oct 14, 2016 at 10:25 AM, Toshi Kani > wrote: > > > > DAX IO path does not support iostat, but its metadata IO path does. > > Therefore, iostat shows metadata IO statistics only, which has been > > confusing to users. > > > > Add i

Re: [PATCH 4.4 00/21] 4.4.25-stable review

2016-10-14 Thread Shuah Khan
On 10/14/2016 05:40 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.25 release. > There are 21 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: Hibernation broken since commit 274ad65c9d02 ("drm/radeon: hard reset r600 and newer GPU when hibernating.")

2016-10-14 Thread Sven Joachim
On 2016-09-15 11:04 -0400, Jerome Glisse wrote: >> On Mon, Sep 5, 2016 at 10:25 PM, Jerome Glisse wrote: >> >> Recently I got myself a new laptop with the following integrated GPU: >> >> >> >> 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] >> >> Mullins [Radeon R3 Graph

Re: [PATCH 1/5] KVM: x86: avoid atomic operations on APICv vmentry

2016-10-14 Thread Nadav Amit
> > diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c > index 23b99f305382..63a442aefc12 100644 > --- a/arch/x86/kvm/lapic.c > +++ b/arch/x86/kvm/lapic.c > @@ -342,9 +342,11 @@ void __kvm_apic_update_irr(u32 *pir, void *regs) > u32 i, pir_val; > > for (i = 0; i <= 7; i++) { > -

[PATCH] clk: samsung: clk-exynos-audss: Fix module autoload

2016-10-14 Thread Javier Martinez Canillas
If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drive

Re: [PATCH 4.8 00/37] 4.8.2-stable review

2016-10-14 Thread Shuah Khan
On 10/14/2016 06:26 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.8.2 release. > There are 37 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sho

Re: [PATCH 4.7 00/31] 4.7.8-stable review

2016-10-14 Thread Shuah Khan
On 10/14/2016 06:54 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.7.8 release. > There are 31 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sho

Re: [PATCH 1/5] KVM: x86: avoid atomic operations on APICv vmentry

2016-10-14 Thread Paolo Bonzini
> > diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c > > index 23b99f305382..63a442aefc12 100644 > > --- a/arch/x86/kvm/lapic.c > > +++ b/arch/x86/kvm/lapic.c > > @@ -342,9 +342,11 @@ void __kvm_apic_update_irr(u32 *pir, void *regs) > > u32 i, pir_val; > > > > for (i = 0; i <= 7; i

Re: [Xen-devel] [PATCH 4/8] xen/pvh: Bootstrap PVH guest

2016-10-14 Thread Boris Ostrovsky
On 10/14/2016 02:38 PM, Andrew Cooper wrote: >> +jmp *%rax >> + >> +#else /* CONFIG_X86_64 */ >> + >> +call setup_pgtable_32 >> + >> +mov $_pa(initial_page_table), %eax >> +movl %eax, %cr3 >> + >> +movl %cr0, %eax >> +orl $(X86_CR0_PG | X86_CR0_PE), %eax >> +movl %eax, %

Re: [Xen-devel] [PATCH 8/8] xen/pvh: Enable CPU hotplug

2016-10-14 Thread Boris Ostrovsky
On 10/14/2016 02:41 PM, Andrew Cooper wrote: > On 14/10/16 19:05, Boris Ostrovsky wrote: >> PVH guests don't receive ACPI hotplug interrupts and therefore >> need to monitor xenstore for CPU hotplug event. > Why not? If they don't, they should. As we are providing ACPI anyway, > we should provide

Re: [PATCH 2/8] x86/head: Refactor 32-bit pgtable setup

2016-10-14 Thread hpa
On October 14, 2016 11:44:18 AM PDT, Boris Ostrovsky wrote: >On 10/14/2016 02:31 PM, h...@zytor.com wrote: >> On October 14, 2016 11:05:12 AM PDT, Boris Ostrovsky > wrote: >>> From: Matt Fleming >>> >>> The new Xen PVH entry point requires page tables to be setup by the >>> kernel since it is en

Re: [Xen-devel] [PATCH 4/8] xen/pvh: Bootstrap PVH guest

2016-10-14 Thread Andrew Cooper
On 14/10/16 19:55, Boris Ostrovsky wrote: > On 10/14/2016 02:38 PM, Andrew Cooper wrote: >>> + jmp *%rax >>> + >>> +#else /* CONFIG_X86_64 */ >>> + >>> + call setup_pgtable_32 >>> + >>> + mov $_pa(initial_page_table), %eax >>> + movl %eax, %cr3 >>> + >>> + movl %cr0, %eax >>> + orl $(X8

Re: [Xen-devel] [PATCH 4/8] xen/pvh: Bootstrap PVH guest

2016-10-14 Thread Konrad Rzeszutek Wilk
On Fri, Oct 14, 2016 at 02:05:14PM -0400, Boris Ostrovsky wrote: > Start PVH guest at XEN_ELFNOTE_PHYS32_ENTRY address. Setup hypercall > page, initialize boot_params, enable early page tables. > > Since this stub is executed before kernel entry point we cannot use > variables in .bss which is cle

Re: [PATCH 4.8 00/37] 4.8.2-stable review

2016-10-14 Thread Guenter Roeck
On Fri, Oct 14, 2016 at 02:26:46PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.8.2 release. > There are 37 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

[PATCH] debug: More properly delay for secondary CPUs

2016-10-14 Thread Douglas Anderson
We've got a delay loop waiting for secondary CPUs. That loop uses loops_per_jiffy. However, loops_per_jiffy doesn't actually mean how many tight loops make up a jiffy on all architectures. It is quite common to see things like this in the boot log: Calibrating delay loop (skipped), value calcu

Re: [PATCH 4.4 00/21] 4.4.25-stable review

2016-10-14 Thread Guenter Roeck
On Fri, Oct 14, 2016 at 01:40:38PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.25 release. > There are 21 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH 4.7 00/31] 4.7.8-stable review

2016-10-14 Thread Guenter Roeck
On Fri, Oct 14, 2016 at 02:54:44PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.7.8 release. > There are 31 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [Xen-devel] [PATCH 6/8] xen/pvh: Initialize grant table for PVH guests

2016-10-14 Thread Konrad Rzeszutek Wilk
On Fri, Oct 14, 2016 at 02:05:16PM -0400, Boris Ostrovsky wrote: Perhaps add in here: PVH is like PV in that there are no PCI devices - which HVM code would piggyback on to find the Xen PCI platform device and use its MMIO space to stash the grants in. For PVH we balloon out memory and stash the

Re: [PATCH 2/8] x86/head: Refactor 32-bit pgtable setup

2016-10-14 Thread Boris Ostrovsky
On 10/14/2016 03:04 PM, h...@zytor.com wrote: > On October 14, 2016 11:44:18 AM PDT, Boris Ostrovsky > wrote: >> On 10/14/2016 02:31 PM, h...@zytor.com wrote: >>> On October 14, 2016 11:05:12 AM PDT, Boris Ostrovsky >> wrote: From: Matt Fleming The new Xen PVH entry point require

Re: [Xen-devel] [PATCH 5/8] xen/pvh: Prevent PVH guests from using PIC, RTC and IOAPIC

2016-10-14 Thread Konrad Rzeszutek Wilk
On Fri, Oct 14, 2016 at 02:05:15PM -0400, Boris Ostrovsky wrote: > Make sure they don't use these devices since they are not emulated > for unprivileged PVH guest. Which means they would just return 0 ? Or would it get worst since the in/out would go to the hypervisor which would kill the guest? >

Re: [Xen-devel] [PATCH 7/8] xen/pvh: PVH guests always have PV devices

2016-10-14 Thread Konrad Rzeszutek Wilk
On Fri, Oct 14, 2016 at 02:05:17PM -0400, Boris Ostrovsky wrote: > Signed-off-by: Boris Ostrovsky Reviewed-by: Konrad Rzeszutek Wilk > --- > arch/x86/xen/platform-pci-unplug.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/xen/platform-pci-unplug.c > b/a

Re: [PATCH] z3fold: remove the unnecessary limit in z3fold_compact_page

2016-10-14 Thread Vitaly Wool
On Fri, Oct 14, 2016 at 3:35 PM, zhongjiang wrote: > From: zhong jiang > > z3fold compact page has nothing with the last_chunks. even if > last_chunks is not free, compact page will proceed. > > The patch just remove the limit without functional change. > > Signed-off-by: zhong jiang > --- > mm

Re: [Xen-devel] [PATCH 4/8] xen/pvh: Bootstrap PVH guest

2016-10-14 Thread Boris Ostrovsky
On 10/14/2016 03:14 PM, Konrad Rzeszutek Wilk wrote: > >> + >> +memset(&pvh_bootparams, 0, sizeof(pvh_bootparams)); >> + >> +memmap.nr_entries = ARRAY_SIZE(pvh_bootparams.e820_map); >> +set_xen_guest_handle(memmap.buffer, pvh_bootparams.e820_map); >> +if (HYPERVISOR_memory_op(XENMEM

[git pull] Input updates for 4.9-rc0 (part 2)

2016-10-14 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 gen an update to ALPS driver to support V8 protocol with touchstick, change for i8042 to skip selftest on many Asus laptops, which helps

Re: [Xen-devel] [PATCH 5/8] xen/pvh: Prevent PVH guests from using PIC, RTC and IOAPIC

2016-10-14 Thread Boris Ostrovsky
On 10/14/2016 03:16 PM, Konrad Rzeszutek Wilk wrote: > On Fri, Oct 14, 2016 at 02:05:15PM -0400, Boris Ostrovsky wrote: >> Make sure they don't use these devices since they are not emulated >> for unprivileged PVH guest. > Which means they would just return 0 ? Or would it get worst since > the in/

[PATCH] spi: mark device nodes only in case of successful instantiation

2016-10-14 Thread Ralf Ramsauer
Instantiated SPI device nodes are marked with OF_POPULATE. This was introduced in bd6c164. On unloading, loaded device nodes will of course be unmarked. The problem are nodes the fail during initialisation: If a node failed during registration, it won't be unloaded and hence never be unmarked again

Re: [Xen-devel] [PATCH 6/8] xen/pvh: Initialize grant table for PVH guests

2016-10-14 Thread Boris Ostrovsky
On 10/14/2016 03:19 PM, Konrad Rzeszutek Wilk wrote: > On Fri, Oct 14, 2016 at 02:05:16PM -0400, Boris Ostrovsky wrote: > > Perhaps add in here: > > PVH is like PV in that there are no PCI devices - which HVM > code would piggyback on to find the Xen PCI platform device and > use its MMIO space to

Re: [PATCH 1/5] KVM: x86: avoid atomic operations on APICv vmentry

2016-10-14 Thread Nadav Amit
> On Oct 14, 2016, at 11:56 AM, Paolo Bonzini wrote: >>> >>> for (i = 0; i <= 7; i++) { >>> - pir_val = xchg(&pir[i], 0); >>> - if (pir_val) >>> + pir_val = READ_ONCE(pir[i]); >> >> Out of curiosity, do you really need this READ_ONCE? > > The answer can only b

Re: [RFC][PATCH 2/2] usb: dwc2: Add a quirk to allow speed negotiation for Hisilicon Hi6220

2016-10-14 Thread John Youn
On 10/13/2016 4:36 PM, John Stultz wrote: > From: Chen Yu > > The Hi6220's usb controller is limited in that it does not > automatically autonegotiate the usb speed. Thus it requires a > quirk so that we can manually negotiate the best usb speed for > the attached device. Hi, Could you expand m

Re: [Xen-devel] [PATCH 6/8] xen/pvh: Initialize grant table for PVH guests

2016-10-14 Thread Konrad Rzeszutek Wilk
On Fri, Oct 14, 2016 at 03:43:19PM -0400, Boris Ostrovsky wrote: > On 10/14/2016 03:19 PM, Konrad Rzeszutek Wilk wrote: > > On Fri, Oct 14, 2016 at 02:05:16PM -0400, Boris Ostrovsky wrote: > > > > Perhaps add in here: > > > > PVH is like PV in that there are no PCI devices - which HVM > > code woul

Re: [Xen-devel] [PATCH 6/8] xen/pvh: Initialize grant table for PVH guests

2016-10-14 Thread Boris Ostrovsky
On 10/14/2016 03:51 PM, Konrad Rzeszutek Wilk wrote: > On Fri, Oct 14, 2016 at 03:43:19PM -0400, Boris Ostrovsky wrote: >> On 10/14/2016 03:19 PM, Konrad Rzeszutek Wilk wrote: >>> On Fri, Oct 14, 2016 at 02:05:16PM -0400, Boris Ostrovsky wrote: >>> >>> Perhaps add in here: >>> >>> PVH is like PV in

Re: [PATCH 1/3] proc: Stop reporting eip and esp in /proc/PID/stat

2016-10-14 Thread Tycho Andersen
On Fri, Oct 14, 2016 at 11:25:58AM -0700, Andy Lutomirski wrote: > On Sat, Oct 1, 2016 at 3:37 AM, Jann Horn wrote: > > On Fri, Sep 30, 2016 at 07:01:13PM -0700, Andy Lutomirski wrote: > >> On an unrelated note, can we please lock down all the silly historical > >> *userspace* info leaks in /proc?

Re: pull-request: wireless-drivers 2016-10-14

2016-10-14 Thread David Miller
From: Kalle Valo Date: Fri, 14 Oct 2016 10:18:42 +0300 > first wireless-drivers pull request for 4.9 and this time we have > unusually many fixes even before -rc1 is released. Most important here > are the wlcore and rtlwifi commits which fix critical regressions, > otherwise smaller impact fixes

Re: [PATCH 00/12] Fixes, cleanup and g_NCR5380_mmio/g_NCR5380 merger

2016-10-14 Thread Martin K. Petersen
> "Finn" == Finn Thain writes: Finn> This patch series has fixes for compatibility, reliability and Finn> performance issues and some cleanup. It also includes a new Finn> version of Ondrej Zary's patch that merges g_NCR5380_mmio into Finn> g_NCR5380. Finn> I've tested this patch series on a

[GIT PULL] kbuild changes for v4.9-rc1

2016-10-14 Thread Michal Marek
Hi Linus, please pull these kbuild changes for v4.9-rc1: - EXPORT_SYMBOL for asm source by Al Viro. This does bring a regression, because genksyms no longer generates checksums for these symbols (CONFIG_MODVERSIONS). Nick Piggin is working on a patch to fix this. Plus, we are talking about

[GIT PULL] kbuild misc changes for 4.9-rc1

2016-10-14 Thread Michal Marek
Hi Linus, just a few patches on the kbuild.git#misc branch this time: - New Coccinelle patch by Nicholas Mc Guire - Existing patch fixes by Julia Lawall - Minor comment fix by Markus Elfring The following changes since commit 29b4817d4018df78086157ea3a55c1d9424a7cfc: Linux 4.8-rc1 (2016-08-0

Re: [patch] zfcp: spin_lock_irqsave() is not nestable

2016-10-14 Thread Martin K. Petersen
> "Steffen" == Steffen Maier writes: Steffen> could you please queue this as fix for one of my patches that Steffen> went into the 4.9 merge window, so for 4.9-rc I guess? Applied to 4.9/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] MAINTAINERS: remove defunct iss storage mailing list

2016-10-14 Thread Martin K. Petersen
> "Javier" == Javier Martinez Canillas writes: Javier> It appears that the mailing list email address doesn't exist Javier> anymore: : host smtp.hp.com[15.73.96.116] Javier> said: 550 5.1.1 Javier> : Recipient address rejected: User Javier> unknown in virtual alias table (in reply to

Re: [PATCH] scsi: hpsa: remove unneeded void pointer cast

2016-10-14 Thread Martin K. Petersen
> "Javier" == Javier Martinez Canillas writes: Javier> It's not necessary to cast the result of kmalloc, since void Javier> pointers are promoted to any other type. This also fixes Javier> following coccinelle warning: Javier> casting value returned by memory allocation function to Javier> (

Re: [PATCH] scsi: ufs: changing maintainer

2016-10-14 Thread Martin K. Petersen
> "Joao" == Joao Pinto writes: Joao> I am going to leave Synopsys and so this patch changes the Joao> Maintainer for UFS Synopsys' specific drivers to my colleagues Joao> Manjunath and Prabu. Applied to 4.10/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

[patch] perf_event_open.2: PERF_SAMPLE_BRANCH_IND_JUMP branch_sample_type

2016-10-14 Thread Vince Weaver
Linux 4.2 added a new branch_sample_type: PERF_SAMPLE_BRANCH_IND_JUMP Signed-off-by: Vince Weaver diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2 index afdee49..cd49cbb 100644 --- a/man2/perf_event_open.2 +++ b/man2/perf_event_open.2 @@ -1247,6 +1247,10 @@ Any return branch. .B PE

[GIT PULL] Btrfs

2016-10-14 Thread Chris Mason
Hi Linus, My for-linus-4.9 branch: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus-4.9 Has some fixes from Omar and Dave Sterba for our new free space tree. This isn't heavily used yet, but as we move toward making it the new default we wanted to nail down an endia

Linux Foundation Technical Advisory Board Elections and Nomination process

2016-10-14 Thread Chris Mason
Hello everyone, The elections for five of the ten members of the Linux Foundation Technical Advisory Board (TAB) are held every year[1]. This year the election will be at the 2016 Kernel Summit in Santa Fe, NM. The elections will take place at the conference center on Wednesday Nov 2nd, short

[PATCH] lightnvm: ensure that nvm_dev_ops can be used without CONFIG_NVM

2016-10-14 Thread Paul Bolle
From: Jens Axboe From: Jens Axboe commit a7fd9a4f3e8179bab31e4637236ebb0e0b7867c6 upstream. null_blk defines an empty version of this ops structure if CONFIG_NVM isn't set, but it doesn't know the type. Move those bits out of the protection of CONFIG_NVM in the main lightnvm include. Signed-o

Re: [PATCH] lightnvm: ensure that nvm_dev_ops can be used without CONFIG_NVM

2016-10-14 Thread Paul Bolle
On Fri, 2016-10-14 at 22:35 +0200, Paul Bolle wrote: > From: Jens Axboe > > From: Jens Axboe Bother. Resend? Paul Bolle

Hallo

2016-10-14 Thread florence kuramer
i fill so glad to reach you my friend, how do you do,i thank God for this great opportunity that i have to convey this message to you,please i will appreciate if you reply me back through my mailbox,I have something very important to share with you,please do not get upset if i bothered you.

Re: [RFC PATCH 2/2] f2fs: fix allocation failure

2016-10-14 Thread Jaegeuk Kim
On Fri, Oct 14, 2016 at 10:09:29PM +0800, Chao Yu wrote: ... > >> Finally it needs to update the dirty time of inode into inode page, > >> and writeback the page, however, before that, we didn't count the inode > >> as imeta data. So f2fs won't be aware of dirty metadata page count is > >> exceede

Re: [RESEND PATCH] scsi: ufs: fix race between clock gating and devfreq scaling work

2016-10-14 Thread Martin K. Petersen
> "Subhash" == Subhash Jadavani writes: Subhash> UFS devfreq clock scaling work may require clocks to be ON if Subhash> it need to execute some UFS commands hence it may request for Subhash> clock hold before issuing the command. But if UFS clock gating Subhash> work is already running in par

Re: [LKP] [x86] 811565123a: BUG: kernel hang in early-boot stage, last printk: Probing EDD (edd=off to disable)... ok

2016-10-14 Thread Andi Kleen
On Fri, Oct 14, 2016 at 12:56:00PM +0800, Ye Xiaolong wrote: > On 10/14, Ye Xiaolong wrote: > >On 10/13, Andi Kleen wrote: > >>Andi Kleen writes: > >> > >>Any comments on this? > >> > >>I still cannot reproduce the failure unfortunately. > >> > > > >Btw, you can try below commands to reproduce the

Re: [PATCH v2] r8169: set coherent DMA mask as well as streaming DMA mask

2016-10-14 Thread Francois Romieu
Ard Biesheuvel : > PCI devices that are 64-bit DMA capable should set the coherent > DMA mask as well as the streaming DMA mask. On some architectures, > these are managed separately, and so the coherent DMA mask will be > left at its default value of 32 if it is not set explicitly. This > results

Layer 2 over IPv6 GRE and path MTU discovery

2016-10-14 Thread Mike Walker
When using a layer 2 GREv6 tunnel (ip6gretap), I am using a Linux bridge to push Ethernet frames from an Ethernet port to the GREv6 device. Here is an example of the topology: PC -> eth0 -> grebridge -> gre6dev -> (internet) -> GRE endpoint -> Remote host In this case, the PC connected to the Et

[PATCH v2] vmxnet3: avoid assumption about invalid dma_pa in vmxnet3_set_mc()

2016-10-14 Thread Alexey Khoroshilov
vmxnet3_set_mc() checks new_table_pa returned by dma_map_single() with dma_mapping_error(), but even there it assumes zero is invalid pa (it assumes dma_mapping_error(...,0) returns true if new_table is NULL). The patch adds an explicit variable to track status of new_table_pa. Found by Linux Dri

[PATCH] mfd: tps65217: Drop call to irq_set_parent()

2016-10-14 Thread Guenter Roeck
The call to irq_set_parent() causes the following build error if tps65217 is built as module. ERROR: ".irq_set_parent" [drivers/mfd/tps65217.ko] undefined! The problem was introduced with commit 6556bdacf646f ("mfd: tps65217: Add support for IRQs"). The author states: "I have added irq_set_paren

[PATCH v3 00/10] Start of skl watermark cleanup

2016-10-14 Thread Lyude
While it (mostly) works, the code for handling watermarks on Skylake has been kind of ugly for a while. As well a lot of it isn't that friendly to atomic transactions, Lots of copy paste, redundant wm values, etc. While this isn't a full cleanup, it's a good start. As well, we add a couple of featu

[PATCH v2 07/10] drm/i915/gen9: Make skl_pipe_wm_get_hw_state() reusable

2016-10-14 Thread Lyude
There's not much of a reason this should have the locations to read out the hardware state hardcoded, so allow the caller to specify the location and add this function to intel_drv.h. As well, we're going to need this function to be reusable for the next patch. Changes since v1: - Fix accidental b

[PATCH v2 10/10] drm/i915/gen9: Don't wrap strings in verify_wm_state()

2016-10-14 Thread Lyude
Wrapping strings is against the guidelines in Documentation/CodingStyle, chapter 2. Signed-off-by: Lyude Reviewed-by: Paulo Zanoni Cc: Maarten Lankhorst Cc: Ville Syrjälä Cc: Matt Roper --- drivers/gpu/drm/i915/intel_display.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

[PATCH v2 09/10] drm/i915/gen9: Actually verify WM levels in verify_wm_state()

2016-10-14 Thread Lyude
Thanks to Paulo Zanoni for indirectly pointing this out. Looks like we never actually added any code for checking whether or not we actually wrote watermark levels properly. Let's fix that. Changes since v1: - Use %u instead of %d when printing WM state mismatches Signed-off-by: Lyude Reviewed-

[PATCH v3 06/10] drm/i915/gen9: Add ddb changes to atomic debug output

2016-10-14 Thread Lyude
Finally, add some debugging output for ddb changes in the atomic debug output. This makes it a lot easier to spot bugs from incorrect ddb allocations. Signed-off-by: Lyude Reviewed-by: Maarten Lankhorst Reviewed-by: Paulo Zanoni Cc: Ville Syrjälä Cc: Matt Roper --- drivers/gpu/drm/i915/intel

[PATCH v2 08/10] drm/i915/gen9: Add skl_wm_level_equals()

2016-10-14 Thread Lyude
Helper we're going to be using for implementing verification of the wm levels in skl_verify_wm_level(). Signed-off-by: Lyude Reviewed-by: Paulo Zanoni Cc: Maarten Lankhorst Cc: Ville Syrjälä Cc: Matt Roper --- drivers/gpu/drm/i915/intel_drv.h | 2 ++ drivers/gpu/drm/i915/intel_pm.c | 14 ++

[PATCH v3 01/10] drm/i915/skl: Move per-pipe ddb allocations into crtc states

2016-10-14 Thread Lyude
First part of cleaning up all of the skl watermark code. This moves the structures for storing the ddb allocations of each pipe into intel_crtc_state, along with moving the structures for storing the current ddb allocations active on hardware into intel_crtc. Changes since v1: - Don't replace allo

[PATCH v2 04/10] drm/i915/gen9: Cleanup skl_pipe_wm_active_state

2016-10-14 Thread Lyude
This function is a wreck, let's help it get its life back together and cleanup all of the copy pasta here. Signed-off-by: Lyude Reviewed-by: Maarten Lankhorst Reviewed-by: Paulo Zanoni Cc: Ville Syrjälä Cc: Matt Roper --- drivers/gpu/drm/i915/intel_pm.c | 52 +++--

[PATCH v3 05/10] drm/i915/gen9: Get rid of redundant watermark values

2016-10-14 Thread Lyude
Now that we've make skl_wm_levels make a little more sense, we can remove all of the redundant wm information. Up until now we'd been storing two copies of all of the skl watermarks: one being the skl_pipe_wm structs, the other being the global wm struct in drm_i915_private containing the raw regis

[PATCH v3 02/10] drm/i915/skl: Remove linetime from skl_wm_values

2016-10-14 Thread Lyude
Next part of cleaning up the watermark code for skl. This is easy, since it seems that we never actually needed to keep track of the linetime in the skl_wm_values struct anyway. Signed-off-by: Lyude Reviewed-by: Paulo Zanoni Reviewed-by: Maarten Lankhorst Cc: Ville Syrjälä Cc: Matt Roper ---

[PATCH v3 03/10] drm/i915/gen9: Make skl_wm_level per-plane

2016-10-14 Thread Lyude
Having skl_wm_level contain all of the watermarks for each plane is annoying since it prevents us from having any sort of object to represent a single watermark level, something we take advantage of in the next commit to cut down on all of the copy paste code in here. Changes since v1: - Style nit

[PATCH] PCI: designware: check for iATU unroll support after initializing host

2016-10-14 Thread Niklas Cassel
From: Niklas Cassel dw_pcie_iatu_unroll_enabled reads a dbi_base register. Reading any dbi_base register before pp->ops->host_init has been called causes "imprecise external abort" on platforms like ARTPEC-6, where the PCIe module is disabled at boot and first enabled in pp->ops->host_init. Move

Re: [PATCH V3 10/10] arm64: KVM: add guest SEA support

2016-10-14 Thread Baicar, Tyler
On 10/14/2016 2:38 AM, Punit Agrawal wrote: "Baicar, Tyler" writes: Hello Punit, On 10/13/2016 7:14 AM, Punit Agrawal wrote: Hi Tyler, I know I've had my last comment already ;), but I thought I'd rather raise the question than stay confused... Tyler Baicar writes: Currently external ab

[PATCH] SoC: mxs-saif: check validity of ids in mxs_saif_probe()

2016-10-14 Thread Alexey Khoroshilov
There is a check for validity of one of ids in mxs_saif_probe(), while array dereferece is made by the other id. The patch adds the check for the second saif id. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- sound/soc/mxs/mxs-saif.c | 13 +

[PATCH] mailbox: PCC: Fix lockdep warning when request PCC channel

2016-10-14 Thread Hoan Tran
This patch fixes the lockdep warning below [7.229767] DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags)) [7.229776] [ cut here ] [7.229787] WARNING: CPU: 1 PID: 1 at linux-next/kernel/locking/lockdep.c:2876 loc kdep_trace_alloc+0xe0/0xf0 [7.229790] Modules lin

Re: 4.4.10 lio (iscsi_trx) messages in dmesg

2016-10-14 Thread Wakko Warner
Christoph Hellwig wrote: > can you try this patch: > http://www.spinics.net/lists/target-devel/msg13463.html ? That patch doesn't apply to 4.4.10. The 2nd hunk was rejected. -- Microsoft has beaten Volkswagen's world record. Volkswagen only created 22 million bugs.

[PATCH v4 00/18] Intel Cache Allocation Technology

2016-10-14 Thread Fenghua Yu
From: Fenghua Yu Change log in v4: * Changed CONFIG_INTEL_RDT to CONFIG_RDT_A. Plain "RDT" refers to all resource features, both monitoring (CQM, MBM, ...) and control (CAT L3, L3/CDP, L2, ...). Adding the "_A" matches with the feature bit name for all the control features "X86_FEATURE_RDT

[PATCH v4 05/18] Documentation, x86: Documentation for Intel resource allocation user interface

2016-10-14 Thread Fenghua Yu
From: Fenghua Yu The documentation describes user interface of how to allocate resource in Intel RDT. Please note that the documentation covers generic user interface. Current patch set code only implemente CAT L3. CAT L2 code will be sent later. Signed-off-by: Fenghua Yu Signed-off-by: Tony L

<    1   2   3   4   5   6   >