Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113094
b: refs/heads/master
c: 8aef727
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Sep 2, 2008
1 parent 098317e commit 63faec5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 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: 463801b3ae97fe1c652ce8da5a61367405d6ec3e
refs/heads/master: 8aef72786192a46e20791b2e854ea3ed047bc15c
21 changes: 7 additions & 14 deletions trunk/arch/sparc64/kernel/pci_sun4v.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,22 +587,15 @@ static unsigned long __init probe_existing_entries(struct pci_pbm_info *pbm,

static int __init pci_sun4v_iommu_init(struct pci_pbm_info *pbm)
{
static const u32 vdma_default[] = { 0x80000000, 0x80000000 };
struct iommu *iommu = pbm->iommu;
struct property *prop;
unsigned long num_tsb_entries, sz, tsbsize;
u32 vdma[2], dma_mask, dma_offset;

prop = of_find_property(pbm->prom_node, "virtual-dma", NULL);
if (prop) {
u32 *val = prop->value;

vdma[0] = val[0];
vdma[1] = val[1];
} else {
/* No property, use default values. */
vdma[0] = 0x80000000;
vdma[1] = 0x80000000;
}
u32 dma_mask, dma_offset;
const u32 *vdma;

vdma = of_get_property(pbm->prom_node, "virtual-dma", NULL);
if (!vdma)
vdma = vdma_default;

if ((vdma[0] | vdma[1]) & ~IO_PAGE_MASK) {
printk(KERN_ERR PFX "Strange virtual-dma[%08x:%08x].\n",
Expand Down

0 comments on commit 63faec5

Please sign in to comment.