Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330301
b: refs/heads/master
c: 11f63d3
h: refs/heads/master
i:
  330299: 5883e2a
v: v3
  • Loading branch information
Alexey Kardashevskiy authored and Benjamin Herrenschmidt committed Sep 10, 2012
1 parent 3c6bf86 commit fd113b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4715fed600109e0bd3d6cfa2b925a643173a08b4
refs/heads/master: 11f63d3fb9c4257b1f005db8d11deba9f992bdf6
6 changes: 6 additions & 0 deletions trunk/arch/powerpc/platforms/powernv/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@ static void pnv_tce_free(struct iommu_table *tbl, long index, long npages)
pnv_tce_invalidate(tbl, tces, tcep - 1);
}

static unsigned long pnv_tce_get(struct iommu_table *tbl, long index)
{
return ((u64 *)tbl->it_base)[index - tbl->it_offset];
}

void pnv_pci_setup_iommu_table(struct iommu_table *tbl,
void *tce_mem, u64 tce_size,
u64 dma_offset)
Expand Down Expand Up @@ -596,6 +601,7 @@ void __init pnv_pci_init(void)
ppc_md.pci_dma_dev_setup = pnv_pci_dma_dev_setup;
ppc_md.tce_build = pnv_tce_build;
ppc_md.tce_free = pnv_tce_free;
ppc_md.tce_get = pnv_tce_get;
ppc_md.pci_probe_mode = pnv_pci_probe_mode;
set_pci_dma_ops(&dma_iommu_ops);

Expand Down

0 comments on commit fd113b1

Please sign in to comment.