Re: [PATCH] Fix warning

2012-04-04 Thread Tadeusz Struk
Hi Bjorn, Did you have chance to look at this one? Regards, Tadeusz On 01/03/12 17:18, tadeusz.st...@intel.com wrote: From: Tadeusz Struk tadeusz.st...@intel.com Date: Mon, 14 Feb 2011 14:38:18 + Subject: [PATCH] Fixed warning This patch fixes the following warning. # virsh start

Re: [PATCH] PCI: Device specific reset function

2012-03-14 Thread Tadeusz Struk
On 13/03/12 02:42, Alex Williamson wrote: On Mon, 2012-03-12 at 16:55 +, Tadeusz Struk wrote: I have a use case where I need to cleanup resource allocated for Virtual Functions after a guest OS that used it crashed. This cleanup needs to be done before the VF is being FLRed. The only

[PATCH] PCI: Device specific reset function

2012-03-12 Thread Tadeusz Struk
reset function to the pci_driver struct. Signed-off-by: Tadeusz Struk tadeusz.st...@intel.com --- drivers/pci/quirks.c |4 include/linux/pci.h |1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 6476547..13d224b 100644

[PATCH 1/1 v3] PCI: Device specific reset function

2012-03-05 Thread Tadeusz Struk
--- drivers/pci/pci.h|1 + drivers/pci/quirks.c | 33 +++-- include/linux/pci.h |1 + 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 1009a5e..4d10479 100644 --- a/drivers/pci/pci.h +++

[PATCH 0/1] PCI: Device specific reset function

2012-03-05 Thread Tadeusz Struk
Hi, I have a use case where I need to cleanup resource allocated for Virtual Functions after a guest OS that used it crashed. This cleanup needs to be done before the VF is being FLRed. The only possible way to do this seems to be by using pci_dev_specific_reset() function. Unfortunately this

[PATCH v2] Dynamically add and remove device specific reset functions

2012-03-02 Thread tadeusz . struk
() function. Unfortunately this function only works for devices defined in a static table in the drivers/pci/quirks.c file. This patch changes it so that specific reset functions can be added and deleted dynamically. Signed-off-by: Tadeusz Struk tadeusz.st...@intel.com --- drivers/pci/pci.h| 14

Re: [PATCH v2] Dynamically add and remove device specific reset functions

2012-03-02 Thread Tadeusz Struk
On 02/03/12 16:29, Bjorn Helgaas wrote: Where do you plan to add calls to pci_dev_specific_reset_add()? In drivers? Yes, I'm working on a driver for a device with SRIOV capability. I'll call it from there. Did you consider adding a reset function pointer to struct pci_driver? That might be

[PATCH] Added functionality that allows dynamically add and remove device specific reset functions

2012-03-01 Thread tadeusz . struk
From b4cf24d5987475862de799c78773f13f25ed2af8 Mon Sep 17 00:00:00 2001 From: Tadeusz Struk tadeusz.st...@intel.com Date: Tue, 17 Jan 2012 16:45:46 + Subject: [PATCH] Added functionality that allows dynamically add and remove device specific reset functions I have a use case where I need

[PATCH] Fix warning

2012-03-01 Thread tadeusz . struk
From 268c5427305d59c1f6f6c1ce8047f6e32a7edcac Mon Sep 17 00:00:00 2001 From: Tadeusz Struk tadeusz.st...@intel.com Date: Mon, 14 Feb 2011 14:38:18 + Subject: [PATCH] Fixed warning This patch fixes the following warning. # virsh start fedora16-64 kernel: [ 133.324565] pci-stub :02:01.1