Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28719
b: refs/heads/master
c: 403fac4
h: refs/heads/master
i:
  28717: 26c044c
  28715: e065ef1
  28711: 1fe6bcc
  28703: d1b3c34
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed May 24, 2006
1 parent 1bcce97 commit f2bffd3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b02527931672749d404b5f640b7e086afc37f4e0
refs/heads/master: 403fac4f83bd8e089a192c542511fbeb2729a6c5
5 changes: 4 additions & 1 deletion trunk/arch/powerpc/platforms/iseries/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,13 @@ void iommu_devnode_init_iSeries(struct device_node *dn)
{
struct iommu_table *tbl;
struct pci_dn *pdn = PCI_DN(dn);
u32 *lsn = (u32 *)get_property(dn, "linux,logical-slot-number", NULL);

BUG_ON(lsn == NULL);

tbl = kmalloc(sizeof(struct iommu_table), GFP_KERNEL);

iommu_table_getparms_iSeries(pdn->busno, pdn->LogicalSlot, 0, tbl);
iommu_table_getparms_iSeries(pdn->busno, *lsn, 0, tbl);

/* Look for existing tce table */
pdn->iommu_table = iommu_table_find(tbl);
Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/powerpc/platforms/iseries/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ void iSeries_pcibios_init(void)
for (dn = NULL; (dn = of_get_next_child(node, dn)) != NULL;) {
struct pci_dn *pdn;
u32 *reg;
u32 *lsn;

reg = (u32 *)get_property(dn, "reg", NULL);
if (reg == NULL) {
Expand All @@ -203,12 +202,6 @@ void iSeries_pcibios_init(void)
printk(KERN_DEBUG "no subbus property!\n");
continue;
}
lsn = (u32 *)get_property(dn,
"linux,logical-slot-number", NULL);
if (lsn == NULL) {
printk(KERN_DEBUG "no logical-slot-number\n");
continue;
}

pdn = kzalloc(sizeof(*pdn), GFP_KERNEL);
if (pdn == NULL)
Expand All @@ -218,7 +211,6 @@ void iSeries_pcibios_init(void)
pdn->busno = bus;
pdn->devfn = (reg[0] >> 8) & 0xff;
pdn->bussubno = *busp;
pdn->LogicalSlot = *lsn;
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions trunk/include/asm-powerpc/pci-bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ struct pci_dn {
struct iommu_table *iommu_table; /* for phb's or bridges */
struct pci_dev *pcidev; /* back-pointer to the pci device */
struct device_node *node; /* back-pointer to the device_node */
#ifdef CONFIG_PPC_ISERIES
int Flags; /* Possible flags(disable/bist)*/
u8 LogicalSlot; /* Hv Slot Index for Tces */
#endif
u32 config_space[16]; /* saved PCI config space */
};

Expand Down

0 comments on commit f2bffd3

Please sign in to comment.