Re: [RFC][Intel-IOMMU] Fix for IOMMU early crash

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Paul Mackerras <paulus@...>, <muli@...>
Cc: Keshavamurthy, Anil S <anil.s.keshavamurthy@...>, <akpm@...>, Greg KH <greg@...>, Linux Kernel <linux-kernel@...>, <kristen.c.accardi@...>
Date: Tuesday, September 11, 2007 - 1:42 pm

On Mon, Sep 10, 2007 at 03:37:48AM +1000, Paul Mackerras wrote:
Ah..Thanks for pointing this out. sorry I had checked only i386 and x86_64.

Yes, I agree that pci_dev->sysdata can;t be removed. Even we (IOMMU)
were dependent on this field but somehow this field is being overwritten
to point to pci_bus's->sysdata and hence IOMMU was failing. Earlier
it was overwritten to NULL and hence we were not failing but now it
is overwritten to non-NULL and hence we fail.

My therory is that we don;t need to copy pci_bus's->sysdata to 
pci_dev's->sysdata. Below patch solves my problem.
Any objection to below patch?

---
 drivers/pci/hotplug/fakephp.c |    1 -
 drivers/pci/probe.c           |    1 -
 2 files changed, 2 deletions(-)

Index: work/drivers/pci/hotplug/fakephp.c
===================================================================
--- work.orig/drivers/pci/hotplug/fakephp.c	2007-09-11 10:29:30.000000000 -0700
+++ work/drivers/pci/hotplug/fakephp.c	2007-09-11 10:35:22.000000000 -0700
@@ -243,7 +243,6 @@
 		return;
 
 	dev->bus = (struct pci_bus*)bus;
-	dev->sysdata = bus->sysdata;
 	for (devfn = 0; devfn < 0x100; devfn += 8) {
 		dev->devfn = devfn;
 		pci_rescan_slot(dev);
Index: work/drivers/pci/probe.c
===================================================================
--- work.orig/drivers/pci/probe.c	2007-09-11 10:29:30.000000000 -0700
+++ work/drivers/pci/probe.c	2007-09-11 10:35:22.000000000 -0700
@@ -994,7 +994,6 @@
 		return NULL;
 
 	dev->bus = bus;
-	dev->sysdata = bus->sysdata;
 	dev->dev.parent = bus->bridge;
 	dev->dev.bus = &pci_bus_type;
 	dev->devfn = devfn;



-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][Intel-IOMMU] Fix for IOMMU early crash, Keshavamurthy, Anil S, (Sat Sep 8, 4:05 pm)
Re: [RFC][Intel-IOMMU] Fix for IOMMU early crash, Paul Mackerras, (Sun Sep 9, 1:37 pm)
Re: [RFC][Intel-IOMMU] Fix for IOMMU early crash, Keshavamurthy, Anil S, (Tue Sep 11, 1:42 pm)
[patch][Intel-IOMMU] Fix for IOMMU early crash, Keshavamurthy, Anil S, (Wed Sep 12, 3:28 pm)
Re: [patch][Intel-IOMMU] Fix for IOMMU early crash, Paul Mackerras, (Tue Sep 11, 3:48 pm)
[patch take 2][Intel-IOMMU] Fix for IOMMU early crash, Keshavamurthy, Anil S, (Wed Oct 3, 5:13 pm)
Re: [patch take 2][Intel-IOMMU] Fix for IOMMU early crash, Benjamin Herrenschmidt, (Wed Oct 3, 9:19 pm)
Re: [patch take 2][Intel-IOMMU] Fix for IOMMU early crash, Keshavamurthy, Anil S, (Wed Oct 3, 9:36 pm)
Re: [patch take 2][Intel-IOMMU] Fix for IOMMU early crash, Benjamin Herrenschmidt, (Wed Oct 3, 11:39 pm)
Re: [patch take 2][Intel-IOMMU] Fix for IOMMU early crash, Keshavamurthy, Anil S, (Thu Oct 4, 3:20 pm)
Re: [patch take 2][Intel-IOMMU] Fix for IOMMU early crash, Benjamin Herrenschmidt, (Thu Oct 4, 11:08 pm)
Re: [patch][Intel-IOMMU] Fix for IOMMU early crash, Keshavamurthy, Anil S, (Wed Sep 12, 9:29 pm)
Re: [patch][Intel-IOMMU] Fix for IOMMU early crash, Paul Mackerras, (Fri Sep 14, 12:30 pm)
Re: [patch][Intel-IOMMU] Fix for IOMMU early crash, Keshavamurthy, Anil S, (Tue Sep 25, 1:07 pm)
Re: [patch][Intel-IOMMU] Fix for IOMMU early crash, Keshavamurthy, Anil S, (Wed Sep 12, 5:55 pm)
[BUG:] forcedeth: MCP55 not allowing DHCP, Casey Dahlin, (Tue Sep 11, 6:05 pm)
Re: [BUG:] forcedeth: MCP55 not allowing DHCP, Casey Dahlin, (Mon Sep 17, 9:59 pm)
Re: [RFC][Intel-IOMMU] Fix for IOMMU early crash, Muli Ben-Yehuda, (Mon Sep 10, 4:25 pm)
Re: [RFC][Intel-IOMMU] Fix for IOMMU early crash, Keshavamurthy, Anil S, (Tue Sep 11, 4:43 pm)
Re: [RFC][Intel-IOMMU] Fix for IOMMU early crash, Muli Ben-Yehuda, (Sun Sep 9, 7:16 am)
Re: [RFC][Intel-IOMMU] Fix for IOMMU early crash, Keshavamurthy, Anil S, (Mon Sep 10, 11:43 am)
Re: [RFC][Intel-IOMMU] Fix for IOMMU early crash, Muli Ben-Yehuda, (Sun Sep 9, 1:51 pm)
Re: [RFC][Intel-IOMMU] Fix for IOMMU early crash, Keshavamurthy, Anil S, (Tue Sep 11, 1:22 pm)