All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Remove dead code
@ 2014-02-18 20:59 Bjorn Helgaas
  2014-02-18 20:59   ` Bjorn Helgaas
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-18 20:59 UTC (permalink / raw)
  To: linux-pci
  Cc: e1000-devel, Joerg Roedel, Sudeep Dutt, linux-kernel,
	Stephen Hemminger, iommu, Tomas Winkler, Aaron F Brown,
	Arjan van de Ven

This is v2 of my rework of part of Stephen's patch [1].  My v1 posting,
with a little discussion, is here [2].

This removes SR-IOV migration support, which seems to be unused.

Changes since v1:
  - Drop the removal of MMIO exclusivity.
  - Add a few includes of <linux/irqreturn.h>.  The SR-IOV migration
    support included irqreturn.h via linux/pci.h, and a few drivers relied
    on that.  So this v2 series updates those drivers to include
    irqreturn.h directly.

Unless there's objection, I'd like to merge all these through my PCI tree
for v3.15.

Bjorn

[1] http://lkml.kernel.org/r/20131227132710.7190647c@nehalam.linuxnetplumber.net
[2] https://lkml.kernel.org/r/20140130192011.25426.45702.stgit@bhelgaas-glaptop.roam.corp.google.com

---

Bjorn Helgaas (4):
      misc: mic: Add include of <linux/irqreturn.h>
      mei: Add include of <linux/irqreturn.h>
      iommu/amd: Add include of <linux/irqreturn.h>
      PCI: Remove unused SR-IOV VF Migration support


 Documentation/PCI/pci-iov-howto.txt |    4 -
 drivers/iommu/amd_iommu_types.h     |    1 
 drivers/misc/mei/hw-me.h            |    1 
 drivers/misc/mic/card/mic_device.h  |    1 
 drivers/misc/mic/host/mic_device.h  |    1 
 drivers/pci/iov.c                   |  119 -----------------------------------
 drivers/pci/pci.h                   |    4 -
 include/linux/pci.h                 |    4 -
 8 files changed, 4 insertions(+), 131 deletions(-)

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [PATCH v2 1/4] misc: mic: Add include of <linux/irqreturn.h>
@ 2014-02-18 20:59   ` Bjorn Helgaas
  0 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-18 20:59 UTC (permalink / raw)
  To: linux-pci
  Cc: e1000-devel, Joerg Roedel, Sudeep Dutt, linux-kernel,
	Stephen Hemminger, iommu, Tomas Winkler, Aaron F Brown,
	Arjan van de Ven

We currently include <linux/irqreturn.h> in <linux/pci.h>, but I'm about to
remove that from linux/pci.h, so add explicit includes where needed.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 drivers/misc/mic/card/mic_device.h |    1 +
 drivers/misc/mic/host/mic_device.h |    1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/misc/mic/card/mic_device.h b/drivers/misc/mic/card/mic_device.h
index 347b9b3b7916..306f502be95e 100644
--- a/drivers/misc/mic/card/mic_device.h
+++ b/drivers/misc/mic/card/mic_device.h
@@ -29,6 +29,7 @@
 
 #include <linux/workqueue.h>
 #include <linux/io.h>
+#include <linux/irqreturn.h>
 
 /**
  * struct mic_intr_info - Contains h/w specific interrupt sources info
diff --git a/drivers/misc/mic/host/mic_device.h b/drivers/misc/mic/host/mic_device.h
index 1a6edce2ecde..0398c696d257 100644
--- a/drivers/misc/mic/host/mic_device.h
+++ b/drivers/misc/mic/host/mic_device.h
@@ -24,6 +24,7 @@
 #include <linux/cdev.h>
 #include <linux/idr.h>
 #include <linux/notifier.h>
+#include <linux/irqreturn.h>
 
 #include "mic_intr.h"
 


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v2 1/4] misc: mic: Add include of <linux/irqreturn.h>
@ 2014-02-18 20:59   ` Bjorn Helgaas
  0 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-18 20:59 UTC (permalink / raw)
  To: linux-pci-u79uwXL29TY76Z2rM5mHXA
  Cc: e1000-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Sudeep Dutt,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Stephen Hemminger,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA, Tomas Winkler,
	Aaron F Brown, Arjan van de Ven

We currently include <linux/irqreturn.h> in <linux/pci.h>, but I'm about to
remove that from linux/pci.h, so add explicit includes where needed.

Signed-off-by: Bjorn Helgaas <bhelgaas-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
---
 drivers/misc/mic/card/mic_device.h |    1 +
 drivers/misc/mic/host/mic_device.h |    1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/misc/mic/card/mic_device.h b/drivers/misc/mic/card/mic_device.h
index 347b9b3b7916..306f502be95e 100644
--- a/drivers/misc/mic/card/mic_device.h
+++ b/drivers/misc/mic/card/mic_device.h
@@ -29,6 +29,7 @@
 
 #include <linux/workqueue.h>
 #include <linux/io.h>
+#include <linux/irqreturn.h>
 
 /**
  * struct mic_intr_info - Contains h/w specific interrupt sources info
diff --git a/drivers/misc/mic/host/mic_device.h b/drivers/misc/mic/host/mic_device.h
index 1a6edce2ecde..0398c696d257 100644
--- a/drivers/misc/mic/host/mic_device.h
+++ b/drivers/misc/mic/host/mic_device.h
@@ -24,6 +24,7 @@
 #include <linux/cdev.h>
 #include <linux/idr.h>
 #include <linux/notifier.h>
+#include <linux/irqreturn.h>
 
 #include "mic_intr.h"
 

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v2 2/4] mei: Add include of <linux/irqreturn.h>
@ 2014-02-18 20:59   ` Bjorn Helgaas
  0 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-18 20:59 UTC (permalink / raw)
  To: linux-pci
  Cc: e1000-devel, Joerg Roedel, Sudeep Dutt, linux-kernel,
	Stephen Hemminger, iommu, Tomas Winkler, Aaron F Brown,
	Arjan van de Ven

We currently include <linux/irqreturn.h> in <linux/pci.h>, but I'm about to
remove that from linux/pci.h, so add explicit includes where needed.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 drivers/misc/mei/hw-me.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/misc/mei/hw-me.h b/drivers/misc/mei/hw-me.h
index 80bd829fbd9a..893d5119fa9b 100644
--- a/drivers/misc/mei/hw-me.h
+++ b/drivers/misc/mei/hw-me.h
@@ -20,6 +20,7 @@
 #define _MEI_INTERFACE_H_
 
 #include <linux/mei.h>
+#include <linux/irqreturn.h>
 #include "mei_dev.h"
 #include "client.h"
 


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v2 2/4] mei: Add include of <linux/irqreturn.h>
@ 2014-02-18 20:59   ` Bjorn Helgaas
  0 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-18 20:59 UTC (permalink / raw)
  To: linux-pci-u79uwXL29TY76Z2rM5mHXA
  Cc: e1000-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Sudeep Dutt,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Stephen Hemminger,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA, Tomas Winkler,
	Aaron F Brown, Arjan van de Ven

We currently include <linux/irqreturn.h> in <linux/pci.h>, but I'm about to
remove that from linux/pci.h, so add explicit includes where needed.

Signed-off-by: Bjorn Helgaas <bhelgaas-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
---
 drivers/misc/mei/hw-me.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/misc/mei/hw-me.h b/drivers/misc/mei/hw-me.h
index 80bd829fbd9a..893d5119fa9b 100644
--- a/drivers/misc/mei/hw-me.h
+++ b/drivers/misc/mei/hw-me.h
@@ -20,6 +20,7 @@
 #define _MEI_INTERFACE_H_
 
 #include <linux/mei.h>
+#include <linux/irqreturn.h>
 #include "mei_dev.h"
 #include "client.h"
 

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v2 3/4] iommu/amd: Add include of <linux/irqreturn.h>
@ 2014-02-18 20:59   ` Bjorn Helgaas
  0 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-18 20:59 UTC (permalink / raw)
  To: linux-pci
  Cc: e1000-devel, Joerg Roedel, Sudeep Dutt, linux-kernel,
	Stephen Hemminger, iommu, Tomas Winkler, Aaron F Brown,
	Arjan van de Ven

We currently include <linux/irqreturn.h> in <linux/pci.h>, but I'm about to
remove that from linux/pci.h, so add explicit includes where needed.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 drivers/iommu/amd_iommu_types.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iommu/amd_iommu_types.h b/drivers/iommu/amd_iommu_types.h
index e400fbe411de..cff039df056e 100644
--- a/drivers/iommu/amd_iommu_types.h
+++ b/drivers/iommu/amd_iommu_types.h
@@ -25,6 +25,7 @@
 #include <linux/list.h>
 #include <linux/spinlock.h>
 #include <linux/pci.h>
+#include <linux/irqreturn.h>
 
 /*
  * Maximum number of IOMMUs supported


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v2 3/4] iommu/amd: Add include of <linux/irqreturn.h>
@ 2014-02-18 20:59   ` Bjorn Helgaas
  0 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-18 20:59 UTC (permalink / raw)
  To: linux-pci-u79uwXL29TY76Z2rM5mHXA
  Cc: e1000-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Sudeep Dutt,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Stephen Hemminger,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA, Tomas Winkler,
	Aaron F Brown, Arjan van de Ven

We currently include <linux/irqreturn.h> in <linux/pci.h>, but I'm about to
remove that from linux/pci.h, so add explicit includes where needed.

Signed-off-by: Bjorn Helgaas <bhelgaas-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
---
 drivers/iommu/amd_iommu_types.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iommu/amd_iommu_types.h b/drivers/iommu/amd_iommu_types.h
index e400fbe411de..cff039df056e 100644
--- a/drivers/iommu/amd_iommu_types.h
+++ b/drivers/iommu/amd_iommu_types.h
@@ -25,6 +25,7 @@
 #include <linux/list.h>
 #include <linux/spinlock.h>
 #include <linux/pci.h>
+#include <linux/irqreturn.h>
 
 /*
  * Maximum number of IOMMUs supported

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v2 4/4] PCI: Remove unused SR-IOV VF Migration support
@ 2014-02-18 21:00   ` Bjorn Helgaas
  0 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-18 21:00 UTC (permalink / raw)
  To: linux-pci
  Cc: e1000-devel, Joerg Roedel, Sudeep Dutt, linux-kernel,
	Stephen Hemminger, iommu, Tomas Winkler, Aaron F Brown,
	Arjan van de Ven

This reverts commit 74bb1bcc7dbb ("PCI: handle SR-IOV Virtual Function
Migration"), removing this exported interface:

  pci_sriov_migration()

Since pci_sriov_migration() is unused, it is impossible to schedule
sriov_migration_task() or use any of the other migration infrastructure.

This is based on Stephen Hemminger's patch (see link below), but goes a bit
further.

Link: http://lkml.kernel.org/r/20131227132710.7190647c@nehalam.linuxnetplumber.net
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Stephen Hemminger <stephen@networkplumber.org>
---
 Documentation/PCI/pci-iov-howto.txt |    4 -
 drivers/pci/iov.c                   |  119 -----------------------------------
 drivers/pci/pci.h                   |    4 -
 include/linux/pci.h                 |    4 -
 4 files changed, 131 deletions(-)

diff --git a/Documentation/PCI/pci-iov-howto.txt b/Documentation/PCI/pci-iov-howto.txt
index 86551cc72e03..2d91ae251982 100644
--- a/Documentation/PCI/pci-iov-howto.txt
+++ b/Documentation/PCI/pci-iov-howto.txt
@@ -68,10 +68,6 @@ To disable SR-IOV capability:
 	echo  0 > \
         /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_numvfs
 
-To notify SR-IOV core of Virtual Function Migration:
-(a) In the driver:
-	irqreturn_t pci_sriov_migration(struct pci_dev *dev);
-
 3.2 Usage example
 
 Following piece of code illustrates the usage of the SR-IOV API.
diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
index 9dce7c5e2a77..de7a74782f92 100644
--- a/drivers/pci/iov.c
+++ b/drivers/pci/iov.c
@@ -170,97 +170,6 @@ static void virtfn_remove(struct pci_dev *dev, int id, int reset)
 	pci_dev_put(dev);
 }
 
-static int sriov_migration(struct pci_dev *dev)
-{
-	u16 status;
-	struct pci_sriov *iov = dev->sriov;
-
-	if (!iov->num_VFs)
-		return 0;
-
-	if (!(iov->cap & PCI_SRIOV_CAP_VFM))
-		return 0;
-
-	pci_read_config_word(dev, iov->pos + PCI_SRIOV_STATUS, &status);
-	if (!(status & PCI_SRIOV_STATUS_VFM))
-		return 0;
-
-	schedule_work(&iov->mtask);
-
-	return 1;
-}
-
-static void sriov_migration_task(struct work_struct *work)
-{
-	int i;
-	u8 state;
-	u16 status;
-	struct pci_sriov *iov = container_of(work, struct pci_sriov, mtask);
-
-	for (i = iov->initial_VFs; i < iov->num_VFs; i++) {
-		state = readb(iov->mstate + i);
-		if (state == PCI_SRIOV_VFM_MI) {
-			writeb(PCI_SRIOV_VFM_AV, iov->mstate + i);
-			state = readb(iov->mstate + i);
-			if (state == PCI_SRIOV_VFM_AV)
-				virtfn_add(iov->self, i, 1);
-		} else if (state == PCI_SRIOV_VFM_MO) {
-			virtfn_remove(iov->self, i, 1);
-			writeb(PCI_SRIOV_VFM_UA, iov->mstate + i);
-			state = readb(iov->mstate + i);
-			if (state == PCI_SRIOV_VFM_AV)
-				virtfn_add(iov->self, i, 0);
-		}
-	}
-
-	pci_read_config_word(iov->self, iov->pos + PCI_SRIOV_STATUS, &status);
-	status &= ~PCI_SRIOV_STATUS_VFM;
-	pci_write_config_word(iov->self, iov->pos + PCI_SRIOV_STATUS, status);
-}
-
-static int sriov_enable_migration(struct pci_dev *dev, int nr_virtfn)
-{
-	int bir;
-	u32 table;
-	resource_size_t pa;
-	struct pci_sriov *iov = dev->sriov;
-
-	if (nr_virtfn <= iov->initial_VFs)
-		return 0;
-
-	pci_read_config_dword(dev, iov->pos + PCI_SRIOV_VFM, &table);
-	bir = PCI_SRIOV_VFM_BIR(table);
-	if (bir > PCI_STD_RESOURCE_END)
-		return -EIO;
-
-	table = PCI_SRIOV_VFM_OFFSET(table);
-	if (table + nr_virtfn > pci_resource_len(dev, bir))
-		return -EIO;
-
-	pa = pci_resource_start(dev, bir) + table;
-	iov->mstate = ioremap(pa, nr_virtfn);
-	if (!iov->mstate)
-		return -ENOMEM;
-
-	INIT_WORK(&iov->mtask, sriov_migration_task);
-
-	iov->ctrl |= PCI_SRIOV_CTRL_VFM | PCI_SRIOV_CTRL_INTR;
-	pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl);
-
-	return 0;
-}
-
-static void sriov_disable_migration(struct pci_dev *dev)
-{
-	struct pci_sriov *iov = dev->sriov;
-
-	iov->ctrl &= ~(PCI_SRIOV_CTRL_VFM | PCI_SRIOV_CTRL_INTR);
-	pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl);
-
-	cancel_work_sync(&iov->mtask);
-	iounmap(iov->mstate);
-}
-
 static int sriov_enable(struct pci_dev *dev, int nr_virtfn)
 {
 	int rc;
@@ -351,12 +260,6 @@ static int sriov_enable(struct pci_dev *dev, int nr_virtfn)
 			goto failed;
 	}
 
-	if (iov->cap & PCI_SRIOV_CAP_VFM) {
-		rc = sriov_enable_migration(dev, nr_virtfn);
-		if (rc)
-			goto failed;
-	}
-
 	kobject_uevent(&dev->dev.kobj, KOBJ_CHANGE);
 	iov->num_VFs = nr_virtfn;
 
@@ -387,9 +290,6 @@ static void sriov_disable(struct pci_dev *dev)
 	if (!iov->num_VFs)
 		return;
 
-	if (iov->cap & PCI_SRIOV_CAP_VFM)
-		sriov_disable_migration(dev);
-
 	for (i = 0; i < iov->num_VFs; i++)
 		virtfn_remove(dev, i, 0);
 
@@ -688,25 +588,6 @@ void pci_disable_sriov(struct pci_dev *dev)
 EXPORT_SYMBOL_GPL(pci_disable_sriov);
 
 /**
- * pci_sriov_migration - notify SR-IOV core of Virtual Function Migration
- * @dev: the PCI device
- *
- * Returns IRQ_HANDLED if the IRQ is handled, or IRQ_NONE if not.
- *
- * Physical Function driver is responsible to register IRQ handler using
- * VF Migration Interrupt Message Number, and call this function when the
- * interrupt is generated by the hardware.
- */
-irqreturn_t pci_sriov_migration(struct pci_dev *dev)
-{
-	if (!dev->is_physfn)
-		return IRQ_NONE;
-
-	return sriov_migration(dev) ? IRQ_HANDLED : IRQ_NONE;
-}
-EXPORT_SYMBOL_GPL(pci_sriov_migration);
-
-/**
  * pci_num_vf - return number of VFs associated with a PF device_release_driver
  * @dev: the PCI device
  *
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 4df38df224f4..6bd082299e31 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -1,8 +1,6 @@
 #ifndef DRIVERS_PCI_H
 #define DRIVERS_PCI_H
 
-#include <linux/workqueue.h>
-
 #define PCI_CFG_SPACE_SIZE	256
 #define PCI_CFG_SPACE_EXP_SIZE	4096
 
@@ -240,8 +238,6 @@ struct pci_sriov {
 	struct pci_dev *dev;	/* lowest numbered PF */
 	struct pci_dev *self;	/* this PF */
 	struct mutex lock;	/* lock for VF bus */
-	struct work_struct mtask; /* VF Migration task */
-	u8 __iomem *mstate;	/* VF Migration State Array */
 };
 
 #ifdef CONFIG_PCI_ATS
diff --git a/include/linux/pci.h b/include/linux/pci.h
index fb57c892b214..230a8dabc5a3 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -29,7 +29,6 @@
 #include <linux/atomic.h>
 #include <linux/device.h>
 #include <linux/io.h>
-#include <linux/irqreturn.h>
 #include <uapi/linux/pci.h>
 
 #include <linux/pci_ids.h>
@@ -1577,7 +1576,6 @@ void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar);
 #ifdef CONFIG_PCI_IOV
 int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn);
 void pci_disable_sriov(struct pci_dev *dev);
-irqreturn_t pci_sriov_migration(struct pci_dev *dev);
 int pci_num_vf(struct pci_dev *dev);
 int pci_vfs_assigned(struct pci_dev *dev);
 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs);
@@ -1586,8 +1584,6 @@ int pci_sriov_get_totalvfs(struct pci_dev *dev);
 static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn)
 { return -ENODEV; }
 static inline void pci_disable_sriov(struct pci_dev *dev) { }
-static inline irqreturn_t pci_sriov_migration(struct pci_dev *dev)
-{ return IRQ_NONE; }
 static inline int pci_num_vf(struct pci_dev *dev) { return 0; }
 static inline int pci_vfs_assigned(struct pci_dev *dev)
 { return 0; }


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH v2 4/4] PCI: Remove unused SR-IOV VF Migration support
@ 2014-02-18 21:00   ` Bjorn Helgaas
  0 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-18 21:00 UTC (permalink / raw)
  To: linux-pci-u79uwXL29TY76Z2rM5mHXA
  Cc: e1000-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Sudeep Dutt,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Stephen Hemminger,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA, Tomas Winkler,
	Aaron F Brown, Arjan van de Ven

This reverts commit 74bb1bcc7dbb ("PCI: handle SR-IOV Virtual Function
Migration"), removing this exported interface:

  pci_sriov_migration()

Since pci_sriov_migration() is unused, it is impossible to schedule
sriov_migration_task() or use any of the other migration infrastructure.

This is based on Stephen Hemminger's patch (see link below), but goes a bit
further.

Link: http://lkml.kernel.org/r/20131227132710.7190647c-We1ePj4FEcvRI77zikRAJc56i+j3xesD0e7PPNI6Mm0@public.gmane.org
Signed-off-by: Bjorn Helgaas <bhelgaas-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
CC: Stephen Hemminger <stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org>
---
 Documentation/PCI/pci-iov-howto.txt |    4 -
 drivers/pci/iov.c                   |  119 -----------------------------------
 drivers/pci/pci.h                   |    4 -
 include/linux/pci.h                 |    4 -
 4 files changed, 131 deletions(-)

diff --git a/Documentation/PCI/pci-iov-howto.txt b/Documentation/PCI/pci-iov-howto.txt
index 86551cc72e03..2d91ae251982 100644
--- a/Documentation/PCI/pci-iov-howto.txt
+++ b/Documentation/PCI/pci-iov-howto.txt
@@ -68,10 +68,6 @@ To disable SR-IOV capability:
 	echo  0 > \
         /sys/bus/pci/devices/<DOMAIN:BUS:DEVICE.FUNCTION>/sriov_numvfs
 
-To notify SR-IOV core of Virtual Function Migration:
-(a) In the driver:
-	irqreturn_t pci_sriov_migration(struct pci_dev *dev);
-
 3.2 Usage example
 
 Following piece of code illustrates the usage of the SR-IOV API.
diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
index 9dce7c5e2a77..de7a74782f92 100644
--- a/drivers/pci/iov.c
+++ b/drivers/pci/iov.c
@@ -170,97 +170,6 @@ static void virtfn_remove(struct pci_dev *dev, int id, int reset)
 	pci_dev_put(dev);
 }
 
-static int sriov_migration(struct pci_dev *dev)
-{
-	u16 status;
-	struct pci_sriov *iov = dev->sriov;
-
-	if (!iov->num_VFs)
-		return 0;
-
-	if (!(iov->cap & PCI_SRIOV_CAP_VFM))
-		return 0;
-
-	pci_read_config_word(dev, iov->pos + PCI_SRIOV_STATUS, &status);
-	if (!(status & PCI_SRIOV_STATUS_VFM))
-		return 0;
-
-	schedule_work(&iov->mtask);
-
-	return 1;
-}
-
-static void sriov_migration_task(struct work_struct *work)
-{
-	int i;
-	u8 state;
-	u16 status;
-	struct pci_sriov *iov = container_of(work, struct pci_sriov, mtask);
-
-	for (i = iov->initial_VFs; i < iov->num_VFs; i++) {
-		state = readb(iov->mstate + i);
-		if (state == PCI_SRIOV_VFM_MI) {
-			writeb(PCI_SRIOV_VFM_AV, iov->mstate + i);
-			state = readb(iov->mstate + i);
-			if (state == PCI_SRIOV_VFM_AV)
-				virtfn_add(iov->self, i, 1);
-		} else if (state == PCI_SRIOV_VFM_MO) {
-			virtfn_remove(iov->self, i, 1);
-			writeb(PCI_SRIOV_VFM_UA, iov->mstate + i);
-			state = readb(iov->mstate + i);
-			if (state == PCI_SRIOV_VFM_AV)
-				virtfn_add(iov->self, i, 0);
-		}
-	}
-
-	pci_read_config_word(iov->self, iov->pos + PCI_SRIOV_STATUS, &status);
-	status &= ~PCI_SRIOV_STATUS_VFM;
-	pci_write_config_word(iov->self, iov->pos + PCI_SRIOV_STATUS, status);
-}
-
-static int sriov_enable_migration(struct pci_dev *dev, int nr_virtfn)
-{
-	int bir;
-	u32 table;
-	resource_size_t pa;
-	struct pci_sriov *iov = dev->sriov;
-
-	if (nr_virtfn <= iov->initial_VFs)
-		return 0;
-
-	pci_read_config_dword(dev, iov->pos + PCI_SRIOV_VFM, &table);
-	bir = PCI_SRIOV_VFM_BIR(table);
-	if (bir > PCI_STD_RESOURCE_END)
-		return -EIO;
-
-	table = PCI_SRIOV_VFM_OFFSET(table);
-	if (table + nr_virtfn > pci_resource_len(dev, bir))
-		return -EIO;
-
-	pa = pci_resource_start(dev, bir) + table;
-	iov->mstate = ioremap(pa, nr_virtfn);
-	if (!iov->mstate)
-		return -ENOMEM;
-
-	INIT_WORK(&iov->mtask, sriov_migration_task);
-
-	iov->ctrl |= PCI_SRIOV_CTRL_VFM | PCI_SRIOV_CTRL_INTR;
-	pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl);
-
-	return 0;
-}
-
-static void sriov_disable_migration(struct pci_dev *dev)
-{
-	struct pci_sriov *iov = dev->sriov;
-
-	iov->ctrl &= ~(PCI_SRIOV_CTRL_VFM | PCI_SRIOV_CTRL_INTR);
-	pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl);
-
-	cancel_work_sync(&iov->mtask);
-	iounmap(iov->mstate);
-}
-
 static int sriov_enable(struct pci_dev *dev, int nr_virtfn)
 {
 	int rc;
@@ -351,12 +260,6 @@ static int sriov_enable(struct pci_dev *dev, int nr_virtfn)
 			goto failed;
 	}
 
-	if (iov->cap & PCI_SRIOV_CAP_VFM) {
-		rc = sriov_enable_migration(dev, nr_virtfn);
-		if (rc)
-			goto failed;
-	}
-
 	kobject_uevent(&dev->dev.kobj, KOBJ_CHANGE);
 	iov->num_VFs = nr_virtfn;
 
@@ -387,9 +290,6 @@ static void sriov_disable(struct pci_dev *dev)
 	if (!iov->num_VFs)
 		return;
 
-	if (iov->cap & PCI_SRIOV_CAP_VFM)
-		sriov_disable_migration(dev);
-
 	for (i = 0; i < iov->num_VFs; i++)
 		virtfn_remove(dev, i, 0);
 
@@ -688,25 +588,6 @@ void pci_disable_sriov(struct pci_dev *dev)
 EXPORT_SYMBOL_GPL(pci_disable_sriov);
 
 /**
- * pci_sriov_migration - notify SR-IOV core of Virtual Function Migration
- * @dev: the PCI device
- *
- * Returns IRQ_HANDLED if the IRQ is handled, or IRQ_NONE if not.
- *
- * Physical Function driver is responsible to register IRQ handler using
- * VF Migration Interrupt Message Number, and call this function when the
- * interrupt is generated by the hardware.
- */
-irqreturn_t pci_sriov_migration(struct pci_dev *dev)
-{
-	if (!dev->is_physfn)
-		return IRQ_NONE;
-
-	return sriov_migration(dev) ? IRQ_HANDLED : IRQ_NONE;
-}
-EXPORT_SYMBOL_GPL(pci_sriov_migration);
-
-/**
  * pci_num_vf - return number of VFs associated with a PF device_release_driver
  * @dev: the PCI device
  *
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 4df38df224f4..6bd082299e31 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -1,8 +1,6 @@
 #ifndef DRIVERS_PCI_H
 #define DRIVERS_PCI_H
 
-#include <linux/workqueue.h>
-
 #define PCI_CFG_SPACE_SIZE	256
 #define PCI_CFG_SPACE_EXP_SIZE	4096
 
@@ -240,8 +238,6 @@ struct pci_sriov {
 	struct pci_dev *dev;	/* lowest numbered PF */
 	struct pci_dev *self;	/* this PF */
 	struct mutex lock;	/* lock for VF bus */
-	struct work_struct mtask; /* VF Migration task */
-	u8 __iomem *mstate;	/* VF Migration State Array */
 };
 
 #ifdef CONFIG_PCI_ATS
diff --git a/include/linux/pci.h b/include/linux/pci.h
index fb57c892b214..230a8dabc5a3 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -29,7 +29,6 @@
 #include <linux/atomic.h>
 #include <linux/device.h>
 #include <linux/io.h>
-#include <linux/irqreturn.h>
 #include <uapi/linux/pci.h>
 
 #include <linux/pci_ids.h>
@@ -1577,7 +1576,6 @@ void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar);
 #ifdef CONFIG_PCI_IOV
 int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn);
 void pci_disable_sriov(struct pci_dev *dev);
-irqreturn_t pci_sriov_migration(struct pci_dev *dev);
 int pci_num_vf(struct pci_dev *dev);
 int pci_vfs_assigned(struct pci_dev *dev);
 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs);
@@ -1586,8 +1584,6 @@ int pci_sriov_get_totalvfs(struct pci_dev *dev);
 static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn)
 { return -ENODEV; }
 static inline void pci_disable_sriov(struct pci_dev *dev) { }
-static inline irqreturn_t pci_sriov_migration(struct pci_dev *dev)
-{ return IRQ_NONE; }
 static inline int pci_num_vf(struct pci_dev *dev) { return 0; }
 static inline int pci_vfs_assigned(struct pci_dev *dev)
 { return 0; }

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* RE: [PATCH v2 2/4] mei: Add include of <linux/irqreturn.h>
  2014-02-18 20:59   ` Bjorn Helgaas
  (?)
@ 2014-02-19  8:29     ` Winkler, Tomas
  -1 siblings, 0 replies; 19+ messages in thread
From: Winkler, Tomas @ 2014-02-19  8:29 UTC (permalink / raw)
  To: Bjorn Helgaas, linux-pci
  Cc: e1000-devel, Joerg Roedel, Dutt, Sudeep, linux-kernel,
	Stephen Hemminger, iommu, Brown, Aaron F, Arjan van de Ven

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 794 bytes --]



> 
> We currently include <linux/irqreturn.h> in <linux/pci.h>, but I'm about to
> remove that from linux/pci.h, so add explicit includes where needed.
> 
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> ---
>  drivers/misc/mei/hw-me.h |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/misc/mei/hw-me.h b/drivers/misc/mei/hw-me.h
> index 80bd829fbd9a..893d5119fa9b 100644
> --- a/drivers/misc/mei/hw-me.h
> +++ b/drivers/misc/mei/hw-me.h
> @@ -20,6 +20,7 @@
>  #define _MEI_INTERFACE_H_
> 
>  #include <linux/mei.h>
> +#include <linux/irqreturn.h>
>  #include "mei_dev.h"
>  #include "client.h"


Okay.
> 

ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [PATCH v2 2/4] mei: Add include of <linux/irqreturn.h>
@ 2014-02-19  8:29     ` Winkler, Tomas
  0 siblings, 0 replies; 19+ messages in thread
From: Winkler, Tomas @ 2014-02-19  8:29 UTC (permalink / raw)
  To: Bjorn Helgaas, linux-pci
  Cc: e1000-devel, Joerg Roedel, Dutt, Sudeep, linux-kernel,
	Stephen Hemminger, iommu, Brown, Aaron F, Arjan van de Ven

DQoNCj4gDQo+IFdlIGN1cnJlbnRseSBpbmNsdWRlIDxsaW51eC9pcnFyZXR1cm4uaD4gaW4gPGxp
bnV4L3BjaS5oPiwgYnV0IEknbSBhYm91dCB0bw0KPiByZW1vdmUgdGhhdCBmcm9tIGxpbnV4L3Bj
aS5oLCBzbyBhZGQgZXhwbGljaXQgaW5jbHVkZXMgd2hlcmUgbmVlZGVkLg0KPiANCj4gU2lnbmVk
LW9mZi1ieTogQmpvcm4gSGVsZ2FhcyA8YmhlbGdhYXNAZ29vZ2xlLmNvbT4NCj4gLS0tDQo+ICBk
cml2ZXJzL21pc2MvbWVpL2h3LW1lLmggfCAgICAxICsNCj4gIDEgZmlsZSBjaGFuZ2VkLCAxIGlu
c2VydGlvbigrKQ0KPiANCj4gZGlmZiAtLWdpdCBhL2RyaXZlcnMvbWlzYy9tZWkvaHctbWUuaCBi
L2RyaXZlcnMvbWlzYy9tZWkvaHctbWUuaA0KPiBpbmRleCA4MGJkODI5ZmJkOWEuLjg5M2Q1MTE5
ZmE5YiAxMDA2NDQNCj4gLS0tIGEvZHJpdmVycy9taXNjL21laS9ody1tZS5oDQo+ICsrKyBiL2Ry
aXZlcnMvbWlzYy9tZWkvaHctbWUuaA0KPiBAQCAtMjAsNiArMjAsNyBAQA0KPiAgI2RlZmluZSBf
TUVJX0lOVEVSRkFDRV9IXw0KPiANCj4gICNpbmNsdWRlIDxsaW51eC9tZWkuaD4NCj4gKyNpbmNs
dWRlIDxsaW51eC9pcnFyZXR1cm4uaD4NCj4gICNpbmNsdWRlICJtZWlfZGV2LmgiDQo+ICAjaW5j
bHVkZSAiY2xpZW50LmgiDQoNCg0KT2theS4NCj4gDQoNCg==

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v2 2/4] mei: Add include of <linux/irqreturn.h>
@ 2014-02-19  8:29     ` Winkler, Tomas
  0 siblings, 0 replies; 19+ messages in thread
From: Winkler, Tomas @ 2014-02-19  8:29 UTC (permalink / raw)
  To: Bjorn Helgaas, linux-pci
  Cc: e1000-devel, Joerg Roedel, Dutt, Sudeep, linux-kernel, iommu,
	Arjan van de Ven



> 
> We currently include <linux/irqreturn.h> in <linux/pci.h>, but I'm about to
> remove that from linux/pci.h, so add explicit includes where needed.
> 
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> ---
>  drivers/misc/mei/hw-me.h |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/misc/mei/hw-me.h b/drivers/misc/mei/hw-me.h
> index 80bd829fbd9a..893d5119fa9b 100644
> --- a/drivers/misc/mei/hw-me.h
> +++ b/drivers/misc/mei/hw-me.h
> @@ -20,6 +20,7 @@
>  #define _MEI_INTERFACE_H_
> 
>  #include <linux/mei.h>
> +#include <linux/irqreturn.h>
>  #include "mei_dev.h"
>  #include "client.h"


Okay.
> 

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel&#174; Ethernet, visit http://communities.intel.com/community/wired

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v2 1/4] misc: mic: Add include of <linux/irqreturn.h>
  2014-02-18 20:59   ` Bjorn Helgaas
  (?)
@ 2014-02-19 17:09   ` Sudeep Dutt
  -1 siblings, 0 replies; 19+ messages in thread
From: Sudeep Dutt @ 2014-02-19 17:09 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: linux-pci, e1000-devel, Joerg Roedel, linux-kernel,
	Stephen Hemminger, iommu, Tomas Winkler, Aaron F Brown,
	Arjan van de Ven, Sudeep Dutt, Ashutosh Dixit

On Tue, 2014-02-18 at 13:59 -0700, Bjorn Helgaas wrote:
> We currently include <linux/irqreturn.h> in <linux/pci.h>, but I'm about to
> remove that from linux/pci.h, so add explicit includes where needed.
> 
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> ---
>  drivers/misc/mic/card/mic_device.h |    1 +
>  drivers/misc/mic/host/mic_device.h |    1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/drivers/misc/mic/card/mic_device.h b/drivers/misc/mic/card/mic_device.h
> index 347b9b3b7916..306f502be95e 100644
> --- a/drivers/misc/mic/card/mic_device.h
> +++ b/drivers/misc/mic/card/mic_device.h
> @@ -29,6 +29,7 @@
>  
>  #include <linux/workqueue.h>
>  #include <linux/io.h>
> +#include <linux/irqreturn.h>
>  
>  /**
>   * struct mic_intr_info - Contains h/w specific interrupt sources info
> diff --git a/drivers/misc/mic/host/mic_device.h b/drivers/misc/mic/host/mic_device.h
> index 1a6edce2ecde..0398c696d257 100644
> --- a/drivers/misc/mic/host/mic_device.h
> +++ b/drivers/misc/mic/host/mic_device.h
> @@ -24,6 +24,7 @@
>  #include <linux/cdev.h>
>  #include <linux/idr.h>
>  #include <linux/notifier.h>
> +#include <linux/irqreturn.h>
>  
>  #include "mic_intr.h"
>  
> 

Acked-by: Sudeep Dutt <sudeep.dutt@intel.com>

Thanks,




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v2 2/4] mei: Add include of <linux/irqreturn.h>
  2014-02-19  8:29     ` Winkler, Tomas
  (?)
@ 2014-02-19 18:28       ` Bjorn Helgaas
  -1 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-19 18:28 UTC (permalink / raw)
  To: Winkler, Tomas
  Cc: linux-pci, e1000-devel, Joerg Roedel, Dutt, Sudeep, linux-kernel,
	Stephen Hemminger, iommu, Brown, Aaron F, Arjan van de Ven

On Wed, Feb 19, 2014 at 1:29 AM, Winkler, Tomas <tomas.winkler@intel.com> wrote:
>
>
>>
>> We currently include <linux/irqreturn.h> in <linux/pci.h>, but I'm about to
>> remove that from linux/pci.h, so add explicit includes where needed.
>>
>> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>> ---
>>  drivers/misc/mei/hw-me.h |    1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/misc/mei/hw-me.h b/drivers/misc/mei/hw-me.h
>> index 80bd829fbd9a..893d5119fa9b 100644
>> --- a/drivers/misc/mei/hw-me.h
>> +++ b/drivers/misc/mei/hw-me.h
>> @@ -20,6 +20,7 @@
>>  #define _MEI_INTERFACE_H_
>>
>>  #include <linux/mei.h>
>> +#include <linux/irqreturn.h>
>>  #include "mei_dev.h"
>>  #include "client.h"
>
>
> Okay.

Thanks, I added this ack:

Acked-by: Tomas Winkler <tomas.winkler@intel.com>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v2 2/4] mei: Add include of <linux/irqreturn.h>
@ 2014-02-19 18:28       ` Bjorn Helgaas
  0 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-19 18:28 UTC (permalink / raw)
  To: Winkler, Tomas
  Cc: linux-pci, e1000-devel, Joerg Roedel, Dutt, Sudeep, linux-kernel,
	Stephen Hemminger, iommu, Brown, Aaron F, Arjan van de Ven

On Wed, Feb 19, 2014 at 1:29 AM, Winkler, Tomas <tomas.winkler@intel.com> wrote:
>
>
>>
>> We currently include <linux/irqreturn.h> in <linux/pci.h>, but I'm about to
>> remove that from linux/pci.h, so add explicit includes where needed.
>>
>> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
>> ---
>>  drivers/misc/mei/hw-me.h |    1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/misc/mei/hw-me.h b/drivers/misc/mei/hw-me.h
>> index 80bd829fbd9a..893d5119fa9b 100644
>> --- a/drivers/misc/mei/hw-me.h
>> +++ b/drivers/misc/mei/hw-me.h
>> @@ -20,6 +20,7 @@
>>  #define _MEI_INTERFACE_H_
>>
>>  #include <linux/mei.h>
>> +#include <linux/irqreturn.h>
>>  #include "mei_dev.h"
>>  #include "client.h"
>
>
> Okay.

Thanks, I added this ack:

Acked-by: Tomas Winkler <tomas.winkler@intel.com>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v2 2/4] mei: Add include of <linux/irqreturn.h>
@ 2014-02-19 18:28       ` Bjorn Helgaas
  0 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-19 18:28 UTC (permalink / raw)
  To: Winkler, Tomas
  Cc: e1000-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	linux-pci-u79uwXL29TY76Z2rM5mHXA, Dutt, Sudeep,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Stephen Hemminger,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA, Brown,
	Aaron F, Arjan van de Ven

On Wed, Feb 19, 2014 at 1:29 AM, Winkler, Tomas <tomas.winkler-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:
>
>
>>
>> We currently include <linux/irqreturn.h> in <linux/pci.h>, but I'm about to
>> remove that from linux/pci.h, so add explicit includes where needed.
>>
>> Signed-off-by: Bjorn Helgaas <bhelgaas-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
>> ---
>>  drivers/misc/mei/hw-me.h |    1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/misc/mei/hw-me.h b/drivers/misc/mei/hw-me.h
>> index 80bd829fbd9a..893d5119fa9b 100644
>> --- a/drivers/misc/mei/hw-me.h
>> +++ b/drivers/misc/mei/hw-me.h
>> @@ -20,6 +20,7 @@
>>  #define _MEI_INTERFACE_H_
>>
>>  #include <linux/mei.h>
>> +#include <linux/irqreturn.h>
>>  #include "mei_dev.h"
>>  #include "client.h"
>
>
> Okay.

Thanks, I added this ack:

Acked-by: Tomas Winkler <tomas.winkler-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v2 0/4] Remove dead code
  2014-02-18 20:59 [PATCH v2 0/4] Remove dead code Bjorn Helgaas
  2014-02-18 20:59   ` Bjorn Helgaas
@ 2014-02-21  1:30   ` Bjorn Helgaas
  2014-02-18 20:59   ` Bjorn Helgaas
                     ` (2 subsequent siblings)
  4 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-21  1:30 UTC (permalink / raw)
  To: linux-pci
  Cc: e1000-devel, Joerg Roedel, Sudeep Dutt, linux-kernel,
	Stephen Hemminger, open list:INTEL IOMMU (VT-d),
	Tomas Winkler, Aaron F Brown, Arjan van de Ven

On Tue, Feb 18, 2014 at 1:59 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
> This is v2 of my rework of part of Stephen's patch [1].  My v1 posting,
> with a little discussion, is here [2].
>
> This removes SR-IOV migration support, which seems to be unused.
>
> Changes since v1:
>   - Drop the removal of MMIO exclusivity.
>   - Add a few includes of <linux/irqreturn.h>.  The SR-IOV migration
>     support included irqreturn.h via linux/pci.h, and a few drivers relied
>     on that.  So this v2 series updates those drivers to include
>     irqreturn.h directly.
>
> Unless there's objection, I'd like to merge all these through my PCI tree
> for v3.15.

I applied these to my pci/dead-code branch, which is now in -next, for v3.15.

> Bjorn
>
> [1] http://lkml.kernel.org/r/20131227132710.7190647c@nehalam.linuxnetplumber.net
> [2] https://lkml.kernel.org/r/20140130192011.25426.45702.stgit@bhelgaas-glaptop.roam.corp.google.com
>
> ---
>
> Bjorn Helgaas (4):
>       misc: mic: Add include of <linux/irqreturn.h>
>       mei: Add include of <linux/irqreturn.h>
>       iommu/amd: Add include of <linux/irqreturn.h>
>       PCI: Remove unused SR-IOV VF Migration support
>
>
>  Documentation/PCI/pci-iov-howto.txt |    4 -
>  drivers/iommu/amd_iommu_types.h     |    1
>  drivers/misc/mei/hw-me.h            |    1
>  drivers/misc/mic/card/mic_device.h  |    1
>  drivers/misc/mic/host/mic_device.h  |    1
>  drivers/pci/iov.c                   |  119 -----------------------------------
>  drivers/pci/pci.h                   |    4 -
>  include/linux/pci.h                 |    4 -
>  8 files changed, 4 insertions(+), 131 deletions(-)

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v2 0/4] Remove dead code
@ 2014-02-21  1:30   ` Bjorn Helgaas
  0 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-21  1:30 UTC (permalink / raw)
  To: linux-pci
  Cc: e1000-devel, Joerg Roedel, Sudeep Dutt, linux-kernel,
	Stephen Hemminger, open list:INTEL IOMMU (VT-d),
	Tomas Winkler, Aaron F Brown, Arjan van de Ven

On Tue, Feb 18, 2014 at 1:59 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
> This is v2 of my rework of part of Stephen's patch [1].  My v1 posting,
> with a little discussion, is here [2].
>
> This removes SR-IOV migration support, which seems to be unused.
>
> Changes since v1:
>   - Drop the removal of MMIO exclusivity.
>   - Add a few includes of <linux/irqreturn.h>.  The SR-IOV migration
>     support included irqreturn.h via linux/pci.h, and a few drivers relied
>     on that.  So this v2 series updates those drivers to include
>     irqreturn.h directly.
>
> Unless there's objection, I'd like to merge all these through my PCI tree
> for v3.15.

I applied these to my pci/dead-code branch, which is now in -next, for v3.15.

> Bjorn
>
> [1] http://lkml.kernel.org/r/20131227132710.7190647c@nehalam.linuxnetplumber.net
> [2] https://lkml.kernel.org/r/20140130192011.25426.45702.stgit@bhelgaas-glaptop.roam.corp.google.com
>
> ---
>
> Bjorn Helgaas (4):
>       misc: mic: Add include of <linux/irqreturn.h>
>       mei: Add include of <linux/irqreturn.h>
>       iommu/amd: Add include of <linux/irqreturn.h>
>       PCI: Remove unused SR-IOV VF Migration support
>
>
>  Documentation/PCI/pci-iov-howto.txt |    4 -
>  drivers/iommu/amd_iommu_types.h     |    1
>  drivers/misc/mei/hw-me.h            |    1
>  drivers/misc/mic/card/mic_device.h  |    1
>  drivers/misc/mic/host/mic_device.h  |    1
>  drivers/pci/iov.c                   |  119 -----------------------------------
>  drivers/pci/pci.h                   |    4 -
>  include/linux/pci.h                 |    4 -
>  8 files changed, 4 insertions(+), 131 deletions(-)

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH v2 0/4] Remove dead code
@ 2014-02-21  1:30   ` Bjorn Helgaas
  0 siblings, 0 replies; 19+ messages in thread
From: Bjorn Helgaas @ 2014-02-21  1:30 UTC (permalink / raw)
  To: linux-pci-u79uwXL29TY76Z2rM5mHXA
  Cc: e1000-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Sudeep Dutt,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Stephen Hemminger,
	open list:INTEL IOMMU (VT-d),
	Tomas Winkler, Aaron F Brown, Arjan van de Ven

On Tue, Feb 18, 2014 at 1:59 PM, Bjorn Helgaas <bhelgaas-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> wrote:
> This is v2 of my rework of part of Stephen's patch [1].  My v1 posting,
> with a little discussion, is here [2].
>
> This removes SR-IOV migration support, which seems to be unused.
>
> Changes since v1:
>   - Drop the removal of MMIO exclusivity.
>   - Add a few includes of <linux/irqreturn.h>.  The SR-IOV migration
>     support included irqreturn.h via linux/pci.h, and a few drivers relied
>     on that.  So this v2 series updates those drivers to include
>     irqreturn.h directly.
>
> Unless there's objection, I'd like to merge all these through my PCI tree
> for v3.15.

I applied these to my pci/dead-code branch, which is now in -next, for v3.15.

> Bjorn
>
> [1] http://lkml.kernel.org/r/20131227132710.7190647c-We1ePj4FEcvRI77zikRAJc56i+j3xesD0e7PPNI6Mm0@public.gmane.org
> [2] https://lkml.kernel.org/r/20140130192011.25426.45702.stgit-1RhO1Y9PlrlHTL0Zs8A6p5iNqAH0jzoTYJqu5kTmcBRl57MIdRCFDg@public.gmane.org
>
> ---
>
> Bjorn Helgaas (4):
>       misc: mic: Add include of <linux/irqreturn.h>
>       mei: Add include of <linux/irqreturn.h>
>       iommu/amd: Add include of <linux/irqreturn.h>
>       PCI: Remove unused SR-IOV VF Migration support
>
>
>  Documentation/PCI/pci-iov-howto.txt |    4 -
>  drivers/iommu/amd_iommu_types.h     |    1
>  drivers/misc/mei/hw-me.h            |    1
>  drivers/misc/mic/card/mic_device.h  |    1
>  drivers/misc/mic/host/mic_device.h  |    1
>  drivers/pci/iov.c                   |  119 -----------------------------------
>  drivers/pci/pci.h                   |    4 -
>  include/linux/pci.h                 |    4 -
>  8 files changed, 4 insertions(+), 131 deletions(-)

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2014-02-21  1:30 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-18 20:59 [PATCH v2 0/4] Remove dead code Bjorn Helgaas
2014-02-18 20:59 ` [PATCH v2 1/4] misc: mic: Add include of <linux/irqreturn.h> Bjorn Helgaas
2014-02-18 20:59   ` Bjorn Helgaas
2014-02-19 17:09   ` Sudeep Dutt
2014-02-18 20:59 ` [PATCH v2 2/4] mei: " Bjorn Helgaas
2014-02-18 20:59   ` Bjorn Helgaas
2014-02-19  8:29   ` Winkler, Tomas
2014-02-19  8:29     ` Winkler, Tomas
2014-02-19  8:29     ` Winkler, Tomas
2014-02-19 18:28     ` Bjorn Helgaas
2014-02-19 18:28       ` Bjorn Helgaas
2014-02-19 18:28       ` Bjorn Helgaas
2014-02-18 20:59 ` [PATCH v2 3/4] iommu/amd: " Bjorn Helgaas
2014-02-18 20:59   ` Bjorn Helgaas
2014-02-18 21:00 ` [PATCH v2 4/4] PCI: Remove unused SR-IOV VF Migration support Bjorn Helgaas
2014-02-18 21:00   ` Bjorn Helgaas
2014-02-21  1:30 ` [PATCH v2 0/4] Remove dead code Bjorn Helgaas
2014-02-21  1:30   ` Bjorn Helgaas
2014-02-21  1:30   ` Bjorn Helgaas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.