[PATCH 0/4] New Paravirtual front-end for PCI in a Hyper-V VM

2015-08-01 Thread jakeo
From: Jake Oshins This patch series exposes the primitives necessary for an interrupt domain in a module and then introduces a new driver. This driver exposes a root PCI bus when running in a Hyper-V VM for each device which is passed through to the VM from the physical host. This patch series

[PATCH 3/4] drivers:x86:pci: Make it possible to implement a PCI MSI IRQ Domain in a module.

2015-08-01 Thread jakeo
From: Jake Oshins The Linux kernel already has the concept of IRQ domain, wherein a component can expose a set of IRQs which are managed by a particular interrupt controller chip or other subsystem. The PCI driver exposes the notion of an IRQ domain for Message-Signaled Interrupts (MSI) from PCI

[PATCH 1/4] drivers:hv: Export a function that maps Linux CPU num onto Hyper-V proc num

2015-08-01 Thread jakeo
From: Jake Oshins This patch exposes the mapping between Linux CPU number and Hyper-V virtual processor number. This is necessary because the hypervisor needs to know which virtual processors to target when making a mapping in the Interrupt Redirection Table in the I/O MMU. Signed-off-by: Jake

[PATCH 4/4] drivers:pci:hv: New paravirtual PCI front-end for Hyper-V VMs

2015-08-01 Thread jakeo
From: Jake Oshins This patch introduces a driver which exposes a root PCI bus whenever a PCI Express device is passed through to a Hyper-V VM. The device can be single- or multi-function. The interrupts for the devices are managed by an IRQ domain, implemented within this driver. Signed-off-by

[PATCH 2/4] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-08-01 Thread jakeo
From: Jake Oshins This patch defines the channel type for a paravirtual PCI front-end within a Hyper-V VM. Signed-off-by: Jake Oshins --- include/linux/hyperv.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 02393b6..ab173

qkfyu

2015-08-01 Thread alekseyigl6
äîáðûé äåíü! Bàì ïðèøëî ïðèãëàøåíèå íà áåñïëàòíûé âåáèíàð ïî ïðîäàæàì òîâàðîâ èç Êèòàÿ. Mû âûáðàëè âàñ ñðåäè òûñÿ÷è ïîòåíöèàëüíûõ áèçíåñìåíîâ, òàê êàê ðàáîòà â äàííîé èíäóñòðèè òðåáóåò öåëåóñòðåìëåííîñòè è æåëàíèÿ äîáèâàòüñÿ ñâîåãî. http://usatuk.ru Hàáîð íà íàøè êóðñû âñå åùå áåñïëàòíûé, í

Re: [PATCH 2/2] staging: unisys: visornic: Convert to using napi

2015-08-01 Thread Neil Horman
On Sat, Aug 01, 2015 at 08:55:09AM -0700, Greg KH wrote: > On Sat, Aug 01, 2015 at 09:36:19AM -0400, Neil Horman wrote: > > On Fri, Jul 31, 2015 at 09:41:10PM -0400, Neil Horman wrote: > > > On Fri, Jul 31, 2015 at 06:56:33PM -0400, Benjamin Romer wrote: > > > > From: Neil Horman > > > > > > > >

[PATCH 16/28] mshyperv: fix recognition of Hyper-V guest crash MSR's

2015-08-01 Thread K. Y. Srinivasan
From: Denis V. Lunev Hypervisor Top Level Functional Specification v3.1/4.0 notes that cpuid (0x4003) EDX's 10th bit should be used to check that Hyper-V guest crash MSR's functionality available. This patch should fix this recognition. Currently the code checks EAX register instead of EDX.

[PATCH 26/28] cpu-hotplug: convert cpu_hotplug_disabled to a counter

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov As a prerequisite to exporting cpu_hotplug_enable/cpu_hotplug_disable functions to modules we need to convert cpu_hotplug_disabled to a counter to properly support disable -> disable -> enable call sequences. E.g. after Hyper-V vmbus module (which is supposed to be the firs

[PATCH 14/28] Drivers: hv: vmbus: fix typo in hv_port_info struct

2015-08-01 Thread K. Y. Srinivasan
From: Nik Nyby This fixes a typo: base_flag_bumber to base_flag_number Signed-off-by: Nik Nyby Signed-off-by: K. Y. Srinivasan --- drivers/hv/hyperv_vmbus.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h index cd

[PATCH 06/28] Drivers: hv: vmbus: prefer 'die' notification chain to 'panic'

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov current_pt_regs() sometimes returns regs of the userspace process and in case of a kernel crash this is not what we need to report. E.g. when we trigger crash with sysrq we see the following: ... RIP: 0010:[] [] sysrq_handle_crash+0x16/0x20 RSP: 0018:8800db0a7d88 E

[PATCH 19/28] Drivers: hv: vmbus: Further improve CPU affiliation logic

2015-08-01 Thread K. Y. Srinivasan
From: Dexuan Cui Keep track of CPU affiliations of sub-channels within the scope of the primary channel. This will allow us to better distribute the load amongst available CPUs. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 20 ++--

[PATCH 08/28] Drivers: hv: fcopy: dynamically allocate smsg_out in fcopy_send_data()

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov struct hv_start_fcopy is too big to be on stack on i386, the following warning is reported: >> drivers/hv/hv_fcopy.c:159:1: warning: the frame size of 1088 bytes is larger >> than 1024 bytes [-Wframe-larger-than=] Reported-by: kbuild test robot Signed-off-by: Vitaly Kuz

[PATCH 20/28] Drivers: hv_vmbus: Fix signal to host condition

2015-08-01 Thread K. Y. Srinivasan
From: Christopher Oo Fixes a bug where previously hv_ringbuffer_read would pass in the old number of bytes available to read instead of the expected old read index when calculating when to signal to the host that the ringbuffer is empty. Since the previous write size is already saved, also change

[PATCH 03/28] Drivers: hv: vmbus: add special kexec handler

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov When general-purpose kexec (not kdump) is being performed in Hyper-V guest the newly booted kernel fails with an MCE error coming from the host. It is the same error which was fixed in the "Drivers: hv: vmbus: Implement the protocol for tearing down vmbus state" commit - mo

[PATCH 07/28] Drivers: hv: kvp: check kzalloc return value

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov kzalloc() return value check was accidentally lost in 11bc3a5fa91f: "Drivers: hv: kvp: convert to hv_utils_transport" commit. We don't need to reset kvp_transaction.state here as we have the kvp_timeout_func() timeout function and in case we're in OOM situation it is prefe

[PATCH 22/28] Drivers: hv: vmbus: Implement a clocksource based on the TSC page

2015-08-01 Thread K. Y. Srinivasan
The current Hyper-V clock source is based on the per-partition reference counter and this counter is being accessed via s synthetic MSR - HV_X64_MSR_TIME_REF_COUNT. Hyper-V has a more efficient way of computing the per-partition reference counter value that does not involve reading a synthetic MSR

[PATCH 13/28] hv: util: checking the wrong variable

2015-08-01 Thread K. Y. Srinivasan
From: Dan Carpenter We don't catch this allocation failure because there is a typo and we check the wrong variable. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Dan Carpenter Reviewed-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan

[PATCH 25/28] Drivers: hv: vmbus: document the VMBus sysfs files

2015-08-01 Thread K. Y. Srinivasan
From: Dexuan Cui The 4 sysfs files should be stable ABIs to the user space. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- Documentation/ABI/stable/sysfs-bus-vmbus | 29 + MAINTAINERS |1 + 2 files changed, 30 inser

[PATCH 15/28] Drivers: hv: vmbus: don't send CHANNELMSG_UNLOAD on pre-Win2012R2 hosts

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Pre-Win2012R2 hosts don't properly handle CHANNELMSG_UNLOAD and wait_for_completion() hangs. Avoid sending such request on old hosts. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |4 1 files changed, 4 insertions

[PATCH 23/28] Drivers: hv: vmbus: add a sysfs attr to show the binding of channel/VP

2015-08-01 Thread K. Y. Srinivasan
From: Dexuan Cui This is useful to analyze performance issue. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 38 ++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv

[PATCH 02/28] kexec: define kexec_in_progress in !CONFIG_KEXEC case

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov If some piece of code wants to check kexec_in_progress it has to be put in #ifdef CONFIG_KEXEC block to not break the build in !CONFIG_KEXEC case. Overcome this limitation by defining kexec_in_progress to false. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Sriniva

[PATCH 01/28] Drivers: hv: vmbus: remove hv_synic_free_cpu() call from hv_synic_cleanup()

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov We already have hv_synic_free() which frees all per-cpu pages for all CPUs, let's remove the hv_synic_free_cpu() call from hv_synic_cleanup() so it will be possible to do separate cleanup (writing to MSRs) and final freeing. This is going to be used to assist kexec. Signed

[PATCH 12/28] drivers:hv: Move MMIO range picking from hyper_fb to hv_vmbus

2015-08-01 Thread K. Y. Srinivasan
From: ja...@microsoft.com This patch deletes the logic from hyperv_fb which picked a range of MMIO space for the frame buffer and adds new logic to hv_vmbus which picks ranges for child drivers. The new logic isn't quite the same as the old, as it considers more possible ranges. Signed-off-by:

[PATCH 04/28] Drivers: hv: don't do hypercalls when hypercall_page is NULL

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov At the very late stage of kexec a driver (which are not being unloaded) can try to post a message or signal an event. This will crash the kernel as we already did hv_cleanup() and the hypercall page is NULL. Move all common (between 32 and 64 bit code) declarations to the

[PATCH 28/28] Drivers: hv: vmbus: use cpu_hotplug_enable/disable

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Commit e513229b4c38 ("Drivers: hv: vmbus: prevent cpu offlining on newer hypervisors") was altering smp_ops.cpu_disable to prevent CPU offlining. We can bo better by using cpu_hotplug_enable/disable functions instead of such hard-coding. Reported-by: Radim Kr.má Signed-o

[PATCH 27/28] cpu-hotplug: export cpu_hotplug_enable/cpu_hotplug_disable

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Hyper-V module needs to disable cpu hotplug (offlining) as there is no support from hypervisor side to reassign already opened event channels to a different CPU. Currently it is been done by altering smp_ops.cpu_disable but it is hackish. Signed-off-by: Vitaly Kuznetsov R

[PATCH 21/28] drivers/hv: Migrate to new 'set-state' interface

2015-08-01 Thread K. Y. Srinivasan
From: Viresh Kumar Migrate hv driver to the new 'set-state' interface provided by clockevents core, the earlier 'set-mode' interface is marked obsolete now. This also enables us to implement callbacks for new states of clockevent devices, for example: ONESHOT_STOPPED. Cc: "K. Y. Srinivasan" Cc

[PATCH 24/28] tools: hv: add a python script lsvmbus to list VMBus devices

2015-08-01 Thread K. Y. Srinivasan
From: Dexuan Cui By default lsvmbus lists all the devices in the VMBus. With -v or -vv, more information is printed, including the VMBus Rel_ID, class ID, device ID and which channel is bound to which virtual processor, etc. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- tools/

[PATCH 18/28] Drivers: hv: vmbus: Improve the CPU affiliation for channels

2015-08-01 Thread K. Y. Srinivasan
The current code tracks the assigned CPUs within a NUMA node in the context of the primary channel. So, if we have a VM with a single NUMA node with 8 VCPUs, we may end up unevenly distributing the channel load. Fix the issue by tracking affiliations globally. Signed-off-by: K. Y. Srinivasan --

[PATCH 11/28] drivers:hv: Modify hv_vmbus to search for all MMIO ranges available.

2015-08-01 Thread K. Y. Srinivasan
From: ja...@microsoft.com This patch changes the logic in hv_vmbus to record all of the ranges in the VM's firmware (BIOS or UEFI) that offer regions of memory-mapped I/O space for use by paravirtual front-end drivers. The old logic just found one range above 4GB and called it good. This logic

[PATCH 17/28] Drivers: hv: vmbus: Consider ND NIC in binding channels to CPUs

2015-08-01 Thread K. Y. Srinivasan
We cycle through all the "high performance" channels to distribute load across the available CPUs. Process the NetworkDirect as a high performance device. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/driver

[PATCH 09/28] Drivers: hv: balloon: Enable dynamic memory protocol negotiation with Windows 10 hosts

2015-08-01 Thread K. Y. Srinivasan
From: Alex Ng Support Win10 protocol for Dynamic Memory. Thia patch allows guests on Win10 hosts to hot-add memory even when dynamic memory is not enabled on the guest. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 26 -- 1 fil

[PATCH 10/28] Drivers: hv: vmbus: Permit sending of packets without payload

2015-08-01 Thread K. Y. Srinivasan
The guest may have to send a completion packet back to the host. To support this usage, permit sending a packet without a payload - we would be only sending the descriptor in this case. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c |4 +++- 1 files changed, 3 insertions(+), 1 dele

[PATCH 05/28] Drivers: hv: vmbus: add special crash handler

2015-08-01 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Full kernel hang is observed when kdump kernel starts after a crash. This hang happens in vmbus_negotiate_version() function on wait_for_completion() as Hyper-V host (Win2012R2 in my testing) never responds to CHANNELMSG_INITIATE_CONTACT as it thinks the connection is alrea

[PATCH 00/28] Drivers: hv: vmbus

2015-08-01 Thread K. Y. Srinivasan
Miscellaneous fixes/improvements. The patches that were sent over the last couple of months have been consolidated in this submission. All review comments have been addressed. Alex Ng (1): Drivers: hv: balloon: Enable dynamic memory protocol negotiation with Windows 10 hosts Christopher Oo

Re: vme_ca91cx42 doesn't touch VMEbus on read with vme_user

2015-08-01 Thread Dmitry Kalinkin
It seems that GE does some extra FPGA trickery for VME. Could it be that you need vmivme7805 driver? > On 01 Aug 2015, at 01:28, Eisch, Jonathan D [PHYSA] > wrote: > > Hello DriverDev, > > I recently installed the latest Debian with Kernel 3.16 including all the vme > drivers (and vme_user i

RE: drivres/hv

2015-08-01 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Saturday, August 1, 2015 11:36 AM > To: KY Srinivasan > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; a...@canonical.com; vkuzn...@redhat.com; > jasow...@redhat.com > Subj

Re: drivres/hv

2015-08-01 Thread Greg KH
On Sat, Aug 01, 2015 at 12:46:10PM -0700, K. Y. Srinivasan wrote: > > Greg, over the last two months we have sent numerous Hyper-V patches and > these are yet to be comitted (all review comments have been addressed > for these patches). Please let me know if I should resend these patches. They a

drivres/hv

2015-08-01 Thread K. Y. Srinivasan
Greg, over the last two months we have sent numerous Hyper-V patches and these are yet to be comitted (all review comments have been addressed for these patches). Please let me know if I should resend these patches. Regards, K. Y ___ devel mailing li

Re: [PATCH v2 2/6] staging: unisys: visornic - prevent lock recursion after IO recovery

2015-08-01 Thread Dan Carpenter
The threading is messed up. If you are only going to resend one patch then you have to use the --in-reply-to option. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/dri

Re: [PATCH] Staging:wilc1000 :Remove typedef from struct

2015-08-01 Thread Greg Kroah-Hartman
On Sat, Aug 01, 2015 at 10:25:26AM +0530, Sudip Mukherjee wrote: > On Fri, Jul 31, 2015 at 01:52:13PM -0700, Greg Kroah-Hartman wrote: > > On Fri, Jul 31, 2015 at 11:08:47AM +0530, Shraddha Barke wrote: > > > This patch fixes the following checkpatch.pl warning: > > > > > > WARNING: do not add new

Re: [PATCH 2/2] staging: unisys: visornic: Convert to using napi

2015-08-01 Thread Greg KH
On Sat, Aug 01, 2015 at 09:36:19AM -0400, Neil Horman wrote: > On Fri, Jul 31, 2015 at 09:41:10PM -0400, Neil Horman wrote: > > On Fri, Jul 31, 2015 at 06:56:33PM -0400, Benjamin Romer wrote: > > > From: Neil Horman > > > > > > Switch the visornic over to use napi. Currently there is a kernel >

[PATCH] lustre: Include unaligned.h instead of access_ok.h

2015-08-01 Thread Guenter Roeck
Including access_ok.h causes the ia64:allmodconfig build (and maybe others) to fail with include/linux/unaligned/le_struct.h:6:19: error: redefinition of 'get_unaligned_le16' include/linux/unaligned/access_ok.h:7:19: note: previous definition of 'get_unaligned_le16' was here includ

Re: [PATCH 2/2] staging: unisys: visornic: Convert to using napi

2015-08-01 Thread Neil Horman
On Fri, Jul 31, 2015 at 09:41:10PM -0400, Neil Horman wrote: > On Fri, Jul 31, 2015 at 06:56:33PM -0400, Benjamin Romer wrote: > > From: Neil Horman > > > > Switch the visornic over to use napi. Currently there is a kernel > > thread > > that sits and waits on a wait queue to get notified of inc

Re: [PATCH] Staging: most: replace pr_*() functions by dev_*()

2015-08-01 Thread Sudip Mukherjee
On Sat, Aug 01, 2015 at 01:04:48PM +0200, Christian Gromm wrote: > On Fri, 31 Jul 2015 17:14:32 +0530 > Sudip Mukherjee wrote: > > > On Thu, Jul 30, 2015 at 06:19:41PM +0200, Christian Gromm wrote: > > > This patch replaces pr_*() functions with dev_*(). > > > > > > Reported-by: Greg Kroah-Hartm

Re: [PATCH] Staging: most: replace pr_*() functions by dev_*()

2015-08-01 Thread Christian Gromm
On Fri, 31 Jul 2015 17:14:32 +0530 Sudip Mukherjee wrote: > On Thu, Jul 30, 2015 at 06:19:41PM +0200, Christian Gromm wrote: > > This patch replaces pr_*() functions with dev_*(). > > > > Reported-by: Greg Kroah-Hartman > > Signed-off-by: Christian Gromm > > --- > > > + dev_notice(d

Re: [PATCH 1/1] linux-next: drivers: staging: most: Fix return value

2015-08-01 Thread Christian Gromm
On Fri, 31 Jul 2015 22:18:17 +0200 Michael Hornung wrote: > * Fix sparse warning "Using plain integer as NULL pointer" > > Signed-off-by: Michael Hornung Acked-by: Christian Gromm > --- > drivers/staging/most/aim-network/networking.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >