RE: [PATCH] PCI: hv: Fix hibernation in case interrupts are not re-created

2020-09-07 Thread Jake Oshins
nel.org; linux-kernel@vger.kernel.org; Michael Kelley > > Cc: Dexuan Cui ; Jake Oshins > Subject: [PATCH] PCI: hv: Fix hibernation in case interrupts are not > re-created > > Hyper-V doesn't trap and emulate the accesses to the MSI/MSI-X registers, and > we > must use

RE: [PATCH] PCI: hv: use effective affinity mask

2017-11-07 Thread Jake Oshins
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Tuesday, November 7, 2017 4:15 PM > To: Jake Oshins <ja...@microsoft.com> > Cc: Dexuan Cui <de...@microsoft.com>; Bjorn Helgaas > <bhelg...@google.com>; linux-...

RE: [PATCH] PCI: hv: use effective affinity mask

2017-11-07 Thread Jake Oshins
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Tuesday, November 7, 2017 4:15 PM > To: Jake Oshins > Cc: Dexuan Cui ; Bjorn Helgaas > ; linux-...@vger.kernel.org; KY Srinivasan > ; Stephen Hemminger ; > de...@linuxdriverp

RE: [PATCH] PCI: hv: use effective affinity mask

2017-11-01 Thread Jake Oshins
> -Original Message- > From: Dexuan Cui > Sent: Wednesday, November 1, 2017 1:31 PM > To: Bjorn Helgaas <bhelg...@google.com>; linux-...@vger.kernel.org; Jake > Oshins <ja...@microsoft.com>; KY Srinivasan <k...@microsoft.com>; > Stephen Hemming

RE: [PATCH] PCI: hv: use effective affinity mask

2017-11-01 Thread Jake Oshins
> -Original Message- > From: Dexuan Cui > Sent: Wednesday, November 1, 2017 1:31 PM > To: Bjorn Helgaas ; linux-...@vger.kernel.org; Jake > Oshins ; KY Srinivasan ; > Stephen Hemminger > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; Haiyang

RE: [PATCH 3/3] PCI: hv: delete the device earlier from hbus->children for hot-remove

2016-11-11 Thread Jake Oshins
om>; > Haiyang Zhang <haiya...@microsoft.com>; Stephen Hemminger > <sthem...@microsoft.com>; Jake Oshins <ja...@microsoft.com>; Hadden > Hoppert <hadd...@microsoft.com>; Vitaly Kuznetsov > <vkuzn...@redhat.com>; jasow...@redhat.com; a...@canonical.com; > o...@aep

RE: [PATCH 3/3] PCI: hv: delete the device earlier from hbus->children for hot-remove

2016-11-11 Thread Jake Oshins
> -Original Message- > From: Dexuan Cui > Sent: Wednesday, November 9, 2016 11:20 PM > To: Bjorn Helgaas ; linux-...@vger.kernel.org; > de...@linuxdriverproject.org > Cc: gre...@linuxfoundation.org; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; Jake O

RE: [PATCH 2/3] PCI: hv: fix hv_pci_remove() for hot-remove

2016-11-11 Thread Jake Oshins
om>; > Haiyang Zhang <haiya...@microsoft.com>; Stephen Hemminger > <sthem...@microsoft.com>; Jake Oshins <ja...@microsoft.com>; Hadden > Hoppert <hadd...@microsoft.com>; Vitaly Kuznetsov > <vkuzn...@redhat.com>; jasow...@redhat.com; a...@canonical.com; > o...@

RE: [PATCH 2/3] PCI: hv: fix hv_pci_remove() for hot-remove

2016-11-11 Thread Jake Oshins
> -Original Message- > From: Dexuan Cui > Sent: Wednesday, November 9, 2016 11:19 PM > To: Bjorn Helgaas ; linux-...@vger.kernel.org; > de...@linuxdriverproject.org > Cc: gre...@linuxfoundation.org; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; Jake O

RE: [PATCH 1/3] PCI: hv: use the correct buffer size in new_pcichild_device()

2016-11-10 Thread Jake Oshins
om>; > Haiyang Zhang <haiya...@microsoft.com>; Stephen Hemminger > <sthem...@microsoft.com>; Jake Oshins <ja...@microsoft.com>; Hadden > Hoppert <hadd...@microsoft.com>; Vitaly Kuznetsov > <vkuzn...@redhat.com>; jasow...@redhat.com; a...@canonical.com; > o...@

RE: [PATCH 1/3] PCI: hv: use the correct buffer size in new_pcichild_device()

2016-11-10 Thread Jake Oshins
> -Original Message- > From: Dexuan Cui > Sent: Wednesday, November 9, 2016 11:18 PM > To: Bjorn Helgaas ; linux-...@vger.kernel.org; > de...@linuxdriverproject.org > Cc: gre...@linuxfoundation.org; KY Srinivasan ; > Haiyang Zhang ; Stephen Hemminger > ; Jake O

RE: [PATCH 1/3] PCI: hv: use the correct buffer size in new_pcichild_device()

2016-11-10 Thread Jake Oshins
> -Original Message- > > > From: Jake Oshins > > > From: Dexuan Cui > > > Sent: Wednesday, November 9, 2016 11:18 PM > > > We don't really need such a big on-stack buffer. > > > vmbus_sendpacket() here only uses sizeof(struct pci_child_me

RE: [PATCH 1/3] PCI: hv: use the correct buffer size in new_pcichild_device()

2016-11-10 Thread Jake Oshins
> -Original Message- > > > From: Jake Oshins > > > From: Dexuan Cui > > > Sent: Wednesday, November 9, 2016 11:18 PM > > > We don't really need such a big on-stack buffer. > > > vmbus_sendpacket() here only uses sizeof(struct pci_child_me

RE: [PATCH] PCI: hv: Fix interrupt cleanup path

2016-07-12 Thread Jake Oshins
> -Original Message- > From: Cathy Avery [mailto:cav...@redhat.com] > Sent: Tuesday, July 12, 2016 8:31 AM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Jake Oshins <ja...@microsoft.com>; > bhelg...@goog

RE: [PATCH] PCI: hv: Fix interrupt cleanup path

2016-07-12 Thread Jake Oshins
> -Original Message- > From: Cathy Avery [mailto:cav...@redhat.com] > Sent: Tuesday, July 12, 2016 8:31 AM > To: KY Srinivasan ; Haiyang Zhang > ; Jake Oshins ; > bhelg...@google.com > Cc: vkuzn...@redhat.com; de...@linuxdriverproject.org; linux- > p...@vger.

RE: [PATCH 1/2] PCI: hv: don't leak buffer in hv_pci_onchannelcallback()

2016-05-31 Thread Jake Oshins
gt; <haiya...@microsoft.com>; KY Srinivasan <k...@microsoft.com>; Jake > Oshins <ja...@microsoft.com> > Subject: [PATCH 1/2] PCI: hv: don't leak buffer in hv_pci_onchannelcallback() > > We don't free buffer on several code paths in hv_pci_onchannelcallback(), > put

RE: [PATCH 1/2] PCI: hv: don't leak buffer in hv_pci_onchannelcallback()

2016-05-31 Thread Jake Oshins
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Monday, May 30, 2016 7:18 AM > To: linux-...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; Bjorn > Helgaas ; Haiyang Zhang > ; KY Srinivasan ; Jak

RE: [PATCH 2/2] PCI: hv: handle all pending messages in hv_pci_onchannelcallback()

2016-05-31 Thread Jake Oshins
gt; <haiya...@microsoft.com>; KY Srinivasan <k...@microsoft.com>; Jake > Oshins <ja...@microsoft.com> > Subject: [PATCH 2/2] PCI: hv: handle all pending messages in > hv_pci_onchannelcallback() > > When we have an interrupt from host we have a bit set in event page &g

RE: [PATCH 2/2] PCI: hv: handle all pending messages in hv_pci_onchannelcallback()

2016-05-31 Thread Jake Oshins
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Monday, May 30, 2016 7:18 AM > To: linux-...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; Bjorn > Helgaas ; Haiyang Zhang > ; KY Srinivasan ; Jak

RE: [PATCH [RFC]] PCI: hv: add explicit fencing to config space access

2016-05-03 Thread Jake Oshins
gt; <haiya...@microsoft.com>; KY Srinivasan <k...@microsoft.com>; Jake > Oshins <ja...@microsoft.com> > Subject: [PATCH [RFC]] PCI: hv: add explicit fencing to config space access > > I'm trying to pass-through Broadcom BCM5720 NIC (Dell Device 1f5b) on Dell > R720 s

RE: [PATCH [RFC]] PCI: hv: add explicit fencing to config space access

2016-05-03 Thread Jake Oshins
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, May 3, 2016 5:22 AM > To: linux-...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; Bjorn > Helgaas ; Haiyang Zhang > ; KY Srinivasan ; Jak

RE: [PATCH] PCI: hv: report resources release after stopping the bus

2016-04-29 Thread Jake Oshins
gt; <haiya...@microsoft.com>; Bjorn Helgaas <bhelg...@google.com>; Jake > Oshins <ja...@microsoft.com> > Subject: [PATCH] PCI: hv: report resources release after stopping the bus > > Kernel hang is observed when pci-hyperv module is release with device > drivers st

RE: [PATCH] PCI: hv: report resources release after stopping the bus

2016-04-29 Thread Jake Oshins
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, April 29, 2016 2:39 AM > To: linux-...@vger.kernel.org > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; KY > Srinivasan ; Haiyang Zhang > ; Bjorn Helgaas ; Jak

[PATCH v5 5/6] drivers:hv: Record MMIO range in use by frame buffer

2016-04-05 Thread Jake Oshins
this now allows that to be guaranteed. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index dfc6149..eaa5c3b

[PATCH v5 0/6] drivers:hv: Ensure that bridge windows don't overlap

2016-04-05 Thread Jake Oshins
windows can't overlap. The main memory resource tree, iomem_resource, contains resources properly marked as bridge windows, allowing their children to overlap with them. Jake Oshins (6): drivers:hv: Lock access to hyperv_mmio resource tree drivers:hv: Call vmbus_mmio_free() to reverse

[PATCH v5 5/6] drivers:hv: Record MMIO range in use by frame buffer

2016-04-05 Thread Jake Oshins
this now allows that to be guaranteed. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index dfc6149..eaa5c3b 100644 --- a/drivers/hv

[PATCH v5 0/6] drivers:hv: Ensure that bridge windows don't overlap

2016-04-05 Thread Jake Oshins
windows can't overlap. The main memory resource tree, iomem_resource, contains resources properly marked as bridge windows, allowing their children to overlap with them. Jake Oshins (6): drivers:hv: Lock access to hyperv_mmio resource tree drivers:hv: Call vmbus_mmio_free() to reverse

[PATCH v5 2/6] drivers:hv: Call vmbus_mmio_free() to reverse vmbus_mmio_allocate()

2016-04-05 Thread Jake Oshins
Existing code just called release_mem_region(). Adding a wrapper around it allows the more complex range tracking that is introduced later in this patch series. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 15 +++ drivers/pci/ho

[PATCH v5 1/6] drivers:hv: Lock access to hyperv_mmio resource tree

2016-04-05 Thread Jake Oshins
on multiple threads. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 64713ff..799518b 100644 --- a/drivers/hv/vmbus_drv.c

[PATCH v5 3/6] drivers:hv: Reverse order of resources in hyperv_mmio

2016-04-05 Thread Jake Oshins
A patch later in this series allocates child nodes in this resource tree. For that to work, this tree needs to be sorted in ascending order. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/d

[PATCH v5 2/6] drivers:hv: Call vmbus_mmio_free() to reverse vmbus_mmio_allocate()

2016-04-05 Thread Jake Oshins
Existing code just called release_mem_region(). Adding a wrapper around it allows the more complex range tracking that is introduced later in this patch series. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 15 +++ drivers/pci/host/pci-hyperv.c | 14

[PATCH v5 1/6] drivers:hv: Lock access to hyperv_mmio resource tree

2016-04-05 Thread Jake Oshins
on multiple threads. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 64713ff..799518b 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c

[PATCH v5 3/6] drivers:hv: Reverse order of resources in hyperv_mmio

2016-04-05 Thread Jake Oshins
A patch later in this series allocates child nodes in this resource tree. For that to work, this tree needs to be sorted in ascending order. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b

[PATCH v5 6/6] drivers:hv: Separate out frame buffer logic when picking MMIO range

2016-04-05 Thread Jake Oshins
Simplify the logic that picks MMIO ranges by pulling out the logic related to trying to lay frame buffer claim on top of where the firmware placed the frame buffer. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.

[PATCH v5 4/6] drivers:hv: Track allocations of children of hv_vmbus in private resource tree

2016-04-05 Thread Jake Oshins
p layer, rather than in this driver. Rafael Wysocki, the maintainter of the pnp layer, has previously asked that we not modify the pnp layer as it is considered deprecated. This patch is thus essentially a workaround. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- d

[PATCH v5 6/6] drivers:hv: Separate out frame buffer logic when picking MMIO range

2016-04-05 Thread Jake Oshins
Simplify the logic that picks MMIO ranges by pulling out the logic related to trying to lay frame buffer claim on top of where the firmware placed the frame buffer. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 80 ++ 1 file changed, 35

[PATCH v5 4/6] drivers:hv: Track allocations of children of hv_vmbus in private resource tree

2016-04-05 Thread Jake Oshins
p layer, rather than in this driver. Rafael Wysocki, the maintainter of the pnp layer, has previously asked that we not modify the pnp layer as it is considered deprecated. This patch is thus essentially a workaround. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 22 ++

RE: [PATCH v4 3/7] drivers:hv: Use new vmbus_mmio_free() from client drivers.

2016-04-05 Thread Jake Oshins
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Tuesday, April 5, 2016 11:00 AM > To: Jake Oshins <ja...@microsoft.com> > Cc: linux-...@vger.kernel.org; gre...@linuxfoundation.org; KY Srinivasan > <k...@microsoft.com>; linu

RE: [PATCH v4 3/7] drivers:hv: Use new vmbus_mmio_free() from client drivers.

2016-04-05 Thread Jake Oshins
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Tuesday, April 5, 2016 11:00 AM > To: Jake Oshins > Cc: linux-...@vger.kernel.org; gre...@linuxfoundation.org; KY Srinivasan > ; linux-kernel@vger.kernel.org; > de...@linuxdriverprojec

[PATCH v4 2/7] drivers:hv: Make a function to free mmio regions through vmbus

2016-04-01 Thread Jake Oshins
This patch introduces a function that reverses everything done by vmbus_allocate_mmio(). Existing code just called release_mem_region(). Future patches in this series require a more complex sequence of actions, so this function is introduced to wrap those actions. Signed-off-by: Jake Oshins <

[PATCH v4 5/7] drivers:hv: Track allocations of children of hv_vmbus in private resource tree

2016-04-01 Thread Jake Oshins
p layer, rather than in this driver. Rafael Wysocki, the maintainter of the pnp layer, has previously asked that we not modify the pnp layer as it is considered deprecated. This patch is thus essentially a workaround. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- d

[PATCH v4 3/7] drivers:hv: Use new vmbus_mmio_free() from client drivers.

2016-04-01 Thread Jake Oshins
This patch modifies all the callers of vmbus_mmio_allocate() to call vmbus_mmio_free() instead of release_mem_region(). Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/pci/host/pci-hyperv.c | 14 +++--- drivers/video/fbdev/hyperv_fb.c | 4 ++-- 2 files chan

[PATCH v4 2/7] drivers:hv: Make a function to free mmio regions through vmbus

2016-04-01 Thread Jake Oshins
This patch introduces a function that reverses everything done by vmbus_allocate_mmio(). Existing code just called release_mem_region(). Future patches in this series require a more complex sequence of actions, so this function is introduced to wrap those actions. Signed-off-by: Jake Oshins

[PATCH v4 5/7] drivers:hv: Track allocations of children of hv_vmbus in private resource tree

2016-04-01 Thread Jake Oshins
p layer, rather than in this driver. Rafael Wysocki, the maintainter of the pnp layer, has previously asked that we not modify the pnp layer as it is considered deprecated. This patch is thus essentially a workaround. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 22 ++

[PATCH v4 3/7] drivers:hv: Use new vmbus_mmio_free() from client drivers.

2016-04-01 Thread Jake Oshins
This patch modifies all the callers of vmbus_mmio_allocate() to call vmbus_mmio_free() instead of release_mem_region(). Signed-off-by: Jake Oshins --- drivers/pci/host/pci-hyperv.c | 14 +++--- drivers/video/fbdev/hyperv_fb.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions

[PATCH v4 7/7] drivers:hv: Separate out frame buffer logic when picking MMIO range

2016-04-01 Thread Jake Oshins
Simplify the logic that picks MMIO ranges by pulling out the logic related to trying to lay frame buffer claim on top of where the firmware placed the frame buffer. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.

[PATCH v4 7/7] drivers:hv: Separate out frame buffer logic when picking MMIO range

2016-04-01 Thread Jake Oshins
Simplify the logic that picks MMIO ranges by pulling out the logic related to trying to lay frame buffer claim on top of where the firmware placed the frame buffer. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 80 ++ 1 file changed, 35

[PATCH v4 4/7] drivers:hv: Reverse order of resources in hyperv_mmio

2016-04-01 Thread Jake Oshins
A patch later in this series allocates child nodes in this resource tree. For that to work, this tree needs to be sorted in ascending order. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/d

[PATCH v4 1/7] drivers:hv: Lock access to hyperv_mmio resource tree

2016-04-01 Thread Jake Oshins
on multiple threads. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 64713ff..799518b 100644 --- a/drivers/hv/vmbus_drv.c

[PATCH v4 0/7] drivers:hv: Ensure that bridge windows don't overlap

2016-04-01 Thread Jake Oshins
devices in a separate resource tree, marking them such that the bridge windows can't overlap. The main memory resource tree, iomem_resource, contains resources properly marked as bridge windows, allowing their children to overlap with them. Jake Oshins (7): drivers:hv: Lock access to hyperv_mmio

[PATCH v4 6/7] drivers:hv: Record MMIO range in use by frame buffer

2016-04-01 Thread Jake Oshins
this now allows that to be guaranteed. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index dfc6149..eaa5c3b

[PATCH v4 4/7] drivers:hv: Reverse order of resources in hyperv_mmio

2016-04-01 Thread Jake Oshins
A patch later in this series allocates child nodes in this resource tree. For that to work, this tree needs to be sorted in ascending order. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b

[PATCH v4 1/7] drivers:hv: Lock access to hyperv_mmio resource tree

2016-04-01 Thread Jake Oshins
on multiple threads. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 64713ff..799518b 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c

[PATCH v4 0/7] drivers:hv: Ensure that bridge windows don't overlap

2016-04-01 Thread Jake Oshins
devices in a separate resource tree, marking them such that the bridge windows can't overlap. The main memory resource tree, iomem_resource, contains resources properly marked as bridge windows, allowing their children to overlap with them. Jake Oshins (7): drivers:hv: Lock access to hyperv_mmio

[PATCH v4 6/7] drivers:hv: Record MMIO range in use by frame buffer

2016-04-01 Thread Jake Oshins
this now allows that to be guaranteed. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index dfc6149..eaa5c3b 100644 --- a/drivers/hv

[PATCH v3 3/7] drivers:hv: Use new vmbus_mmio_free() from client drivers.

2016-04-01 Thread Jake Oshins
This patch modifies all the callers of vmbus_mmio_allocate() to call vmbus_mmio_free() instead of release_mem_region(). Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/pci/host/pci-hyperv.c | 14 +++--- drivers/video/fbdev/hyperv_fb.c | 4 ++-- 2 files chan

[PATCH v3 4/7] drivers:hv: Reverse order of resources in hyperv_mmio

2016-04-01 Thread Jake Oshins
A patch later in this series allocates child nodes in this resource tree. For that to work, this tree needs to be sorted in ascending order. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/d

[PATCH v3 4/7] drivers:hv: Reverse order of resources in hyperv_mmio

2016-04-01 Thread Jake Oshins
A patch later in this series allocates child nodes in this resource tree. For that to work, this tree needs to be sorted in ascending order. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b

[PATCH v3 3/7] drivers:hv: Use new vmbus_mmio_free() from client drivers.

2016-04-01 Thread Jake Oshins
This patch modifies all the callers of vmbus_mmio_allocate() to call vmbus_mmio_free() instead of release_mem_region(). Signed-off-by: Jake Oshins --- drivers/pci/host/pci-hyperv.c | 14 +++--- drivers/video/fbdev/hyperv_fb.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions

[PATCH v3 6/7] drivers:hv: Record MMIO range in use by frame buffer

2016-04-01 Thread Jake Oshins
this now allows that to be guaranteed. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index dfc6149..df59bfb

[PATCH v3 7/7] drivers:hv: Separate out frame buffer logic when picking MMIO range

2016-04-01 Thread Jake Oshins
Simplify the logic that picks MMIO ranges by pulling out the logic related to trying to lay frame buffer claim on top of where the firmware placed the frame buffer. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.

[PATCH v3 5/7] drivers:hv: Track allocations of children of hv_vmbus in private resource tree

2016-04-01 Thread Jake Oshins
p layer, rather than in this driver. Rafael Wysocki, the maintainter of the pnp layer, has previously asked that we not modify the pnp layer as it is considered deprecated. This patch is thus essentially a workaround. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- d

[PATCH v3 6/7] drivers:hv: Record MMIO range in use by frame buffer

2016-04-01 Thread Jake Oshins
this now allows that to be guaranteed. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index dfc6149..df59bfb 100644 --- a/drivers/hv

[PATCH v3 7/7] drivers:hv: Separate out frame buffer logic when picking MMIO range

2016-04-01 Thread Jake Oshins
Simplify the logic that picks MMIO ranges by pulling out the logic related to trying to lay frame buffer claim on top of where the firmware placed the frame buffer. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 80 ++ 1 file changed, 35

[PATCH v3 5/7] drivers:hv: Track allocations of children of hv_vmbus in private resource tree

2016-04-01 Thread Jake Oshins
p layer, rather than in this driver. Rafael Wysocki, the maintainter of the pnp layer, has previously asked that we not modify the pnp layer as it is considered deprecated. This patch is thus essentially a workaround. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 22 ++

[PATCH v3 1/7] drivers:hv: Lock access to hyperv_mmio resource tree

2016-04-01 Thread Jake Oshins
on multiple threads. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 64713ff..799518b 100644 --- a/drivers/hv/vmbus_drv.c

[PATCH v3 0/7] drivers:hv: Ensure that bridge windows don't overlap

2016-04-01 Thread Jake Oshins
by tracking allocations to child devices in a separate resource tree, marking them such that the bridge windows can't overlap. The main memory resource tree, iomem_resource, contains resources properly marked as bridge windows, allowing their children to overlap with them. Jake Oshins (7): drivers:hv

[PATCH v3 1/7] drivers:hv: Lock access to hyperv_mmio resource tree

2016-04-01 Thread Jake Oshins
on multiple threads. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 64713ff..799518b 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c

[PATCH v3 0/7] drivers:hv: Ensure that bridge windows don't overlap

2016-04-01 Thread Jake Oshins
by tracking allocations to child devices in a separate resource tree, marking them such that the bridge windows can't overlap. The main memory resource tree, iomem_resource, contains resources properly marked as bridge windows, allowing their children to overlap with them. Jake Oshins (7): drivers:hv

[PATCH v3 2/7] drivers:hv: Make a function to free mmio regions through vmbus

2016-04-01 Thread Jake Oshins
This patch introduces a function that reverses everything done by vmbus_allocate_mmio(). Existing code just called release_mem_region(). Future patches in this series require a more complex sequence of actions, so this function is introduced to wrap those actions. Signed-off-by: Jake Oshins <

[PATCH v3 2/7] drivers:hv: Make a function to free mmio regions through vmbus

2016-04-01 Thread Jake Oshins
This patch introduces a function that reverses everything done by vmbus_allocate_mmio(). Existing code just called release_mem_region(). Future patches in this series require a more complex sequence of actions, so this function is introduced to wrap those actions. Signed-off-by: Jake Oshins

[PATCH v2 3/7] drivers:hv: Use new vmbus_mmio_free() from client drivers.

2016-03-30 Thread Jake Oshins
This patch modifies all the callers of vmbus_mmio_allocate() to call vmbus_mmio_free() instead of release_mem_region(). Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/pci/host/pci-hyperv.c | 14 +++--- drivers/video/fbdev/hyperv_fb.c | 4 ++-- 2 files chan

[PATCH v2 3/7] drivers:hv: Use new vmbus_mmio_free() from client drivers.

2016-03-30 Thread Jake Oshins
This patch modifies all the callers of vmbus_mmio_allocate() to call vmbus_mmio_free() instead of release_mem_region(). Signed-off-by: Jake Oshins --- drivers/pci/host/pci-hyperv.c | 14 +++--- drivers/video/fbdev/hyperv_fb.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions

[PATCH v2 6/7] drivers:hv: Record MMIO range in use by frame buffer

2016-03-30 Thread Jake Oshins
this now allows that to be guaranteed by the code introduced in the next patch. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/driv

[PATCH v2 7/7] drivers:hv: Separate out frame buffer logic when picking MMIO range

2016-03-30 Thread Jake Oshins
Simplify the logic that picks MMIO ranges by pulling out the logic related to trying to lay frame buffer claim on top of where the firmware placed the frame buffer. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.

[PATCH v2 6/7] drivers:hv: Record MMIO range in use by frame buffer

2016-03-30 Thread Jake Oshins
this now allows that to be guaranteed by the code introduced in the next patch. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index dfc6149

[PATCH v2 7/7] drivers:hv: Separate out frame buffer logic when picking MMIO range

2016-03-30 Thread Jake Oshins
Simplify the logic that picks MMIO ranges by pulling out the logic related to trying to lay frame buffer claim on top of where the firmware placed the frame buffer. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 79 ++ 1 file changed, 34

[PATCH v2 2/7] drivers:hv: Make a function to free mmio regions through vmbus

2016-03-30 Thread Jake Oshins
This patch introduces a function that reverses everything done by vmbus_allocate_mmio(). Existing code just called release_mem_region(). Future patches in this series require a more complex sequence of actions, so this function is introduced to wrap those actions. Signed-off-by: Jake Oshins <

[PATCH v2 2/7] drivers:hv: Make a function to free mmio regions through vmbus

2016-03-30 Thread Jake Oshins
This patch introduces a function that reverses everything done by vmbus_allocate_mmio(). Existing code just called release_mem_region(). Future patches in this series require a more complex sequence of actions, so this function is introduced to wrap those actions. Signed-off-by: Jake Oshins

[PATCH v2 0/7] drivers:hv: Ensure that bridge windows don't overlap

2016-03-30 Thread Jake Oshins
marked as bridge windows, allowing their children to overlap with them. Jake Oshins (7): drivers:hv: Lock access to hyperv_mmio resource tree drivers:hv: Make a function to free mmio regions through vmbus drivers:hv: Use new vmbus_mmio_free() from client drivers. drivers:hv: Reverse order

[PATCH v2 1/7] drivers:hv: Lock access to hyperv_mmio resource tree

2016-03-30 Thread Jake Oshins
on multiple threads. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 64713ff..799518b 100644 --- a/drivers/hv/vmbus_drv.c

[PATCH v2 5/7] drivers:hv: Track allocations of children of hv_vmbus in private resource tree

2016-03-30 Thread Jake Oshins
p layer, rather than in this driver. Rafael Wysocki, the maintainter of the pnp layer, has previously asked that we not modify the pnp layer as it is considered deprecated. This patch is thus essentially a workaround. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- d

[PATCH v2 0/7] drivers:hv: Ensure that bridge windows don't overlap

2016-03-30 Thread Jake Oshins
marked as bridge windows, allowing their children to overlap with them. Jake Oshins (7): drivers:hv: Lock access to hyperv_mmio resource tree drivers:hv: Make a function to free mmio regions through vmbus drivers:hv: Use new vmbus_mmio_free() from client drivers. drivers:hv: Reverse order

[PATCH v2 1/7] drivers:hv: Lock access to hyperv_mmio resource tree

2016-03-30 Thread Jake Oshins
on multiple threads. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 64713ff..799518b 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c

[PATCH v2 5/7] drivers:hv: Track allocations of children of hv_vmbus in private resource tree

2016-03-30 Thread Jake Oshins
p layer, rather than in this driver. Rafael Wysocki, the maintainter of the pnp layer, has previously asked that we not modify the pnp layer as it is considered deprecated. This patch is thus essentially a workaround. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 22 ++

[PATCH v2 4/7] drivers:hv: Reverse order of resources in hyperv_mmio

2016-03-30 Thread Jake Oshins
A patch later in this series allocates child nodes in this resource tree. For that to work, this tree needs to be sorted in ascending order. Signed-off-by: Jake Oshins <ja...@microsoft.com> --- drivers/hv/vmbus_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/d

[PATCH v2 4/7] drivers:hv: Reverse order of resources in hyperv_mmio

2016-03-30 Thread Jake Oshins
A patch later in this series allocates child nodes in this resource tree. For that to work, this tree needs to be sorted in ascending order. Signed-off-by: Jake Oshins --- drivers/hv/vmbus_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b

RE: [patch] PCI: hv: potential use after free

2016-02-29 Thread Jake Oshins
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Saturday, February 27, 2016 2:44 AM > To: KY Srinivasan <k...@microsoft.com>; Jake Oshins > <ja...@microsoft.com> > Cc: Haiyang Zhang <haiya...@microsoft.com>; Bjorn

RE: [patch] PCI: hv: potential use after free

2016-02-29 Thread Jake Oshins
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Saturday, February 27, 2016 2:44 AM > To: KY Srinivasan ; Jake Oshins > > Cc: Haiyang Zhang ; Bjorn Helgaas > ; de...@linuxdriverproject.org; linux- > p...@vger.kernel.org; linu

RE: [PATCH 5/5] hv: Track allocations of children of hv_vmbus in private resource tree

2016-02-26 Thread Jake Oshins
> -Original Message- > From: KY Srinivasan > Sent: Friday, February 26, 2016 5:09 PM > To: Jake Oshins <ja...@microsoft.com>; linux-...@vger.kernel.org; > gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a..

RE: [PATCH 5/5] hv: Track allocations of children of hv_vmbus in private resource tree

2016-02-26 Thread Jake Oshins
> -Original Message- > From: KY Srinivasan > Sent: Friday, February 26, 2016 5:09 PM > To: Jake Oshins ; linux-...@vger.kernel.org; > gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > vkuzn..

RE: [PATCH RESEND v2 3/3] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2016-02-16 Thread Jake Oshins
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Tuesday, February 16, 2016 2:44 PM > To: Jake Oshins <ja...@microsoft.com> > Cc: bhelg...@google.com; linux-...@vger.kernel.org; > gre...@linuxfoundation.org; KY Srinivasan <k...@m

RE: [PATCH RESEND v2 3/3] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2016-02-16 Thread Jake Oshins
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Tuesday, February 16, 2016 2:44 PM > To: Jake Oshins > Cc: bhelg...@google.com; linux-...@vger.kernel.org; > gre...@linuxfoundation.org; KY Srinivasan ; linux- > ker..

RE: [PATCH RESEND v2 3/3] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2016-02-16 Thread Jake Oshins
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Tuesday, February 16, 2016 8:46 AM > To: Jake Oshins <ja...@microsoft.com> > Cc: bhelg...@google.com; linux-...@vger.kernel.org; > gre...@linuxfoundation.org; KY Srinivasan <k...@m

RE: [PATCH RESEND v2 3/3] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2016-02-16 Thread Jake Oshins
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Tuesday, February 16, 2016 8:46 AM > To: Jake Oshins > Cc: bhelg...@google.com; linux-...@vger.kernel.org; > gre...@linuxfoundation.org; KY Srinivasan ; linux- > ker..

RE: [PATCH RESEND 1/3] PCI: Add fwnode_handle to pci_sysdata

2016-02-03 Thread Jake Oshins
> -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Wednesday, February 3, 2016 10:57 AM > To: Bjorn Helgaas ; Jake Oshins > > Cc: gre...@linuxfoundation.org; KY Srinivasan ; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; Ha

RE: [PATCH RESEND 3/3] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2016-02-03 Thread Jake Oshins
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Wednesday, February 3, 2016 1:29 PM > To: Jake Oshins > Cc: gre...@linuxfoundation.org; KY Srinivasan ; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; Haiyang Zhang > ;

RE: [PATCH RESEND 1/3] PCI: Add fwnode_handle to pci_sysdata

2016-02-03 Thread Jake Oshins
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Wednesday, February 3, 2016 10:25 AM > To: Jake Oshins > Cc: gre...@linuxfoundation.org; KY Srinivasan ; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; Haiyang Zhang > ;

RE: [PATCH RESEND 3/3] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2016-02-03 Thread Jake Oshins
> -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Wednesday, February 3, 2016 1:29 PM > To: Jake Oshins <ja...@microsoft.com> > Cc: gre...@linuxfoundation.org; KY Srinivasan <k...@microsoft.com>; linux- > ker...@vger.kernel.org

RE: [PATCH RESEND 1/3] PCI: Add fwnode_handle to pci_sysdata

2016-02-03 Thread Jake Oshins
> -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: Wednesday, February 3, 2016 10:57 AM > To: Bjorn Helgaas <helg...@kernel.org>; Jake Oshins > <ja...@microsoft.com> > Cc: gre...@linuxfoundation.org; KY Srinivasan <

  1   2   >