diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-06-06 23:59:40 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-06-07 21:03:45 -0400 |
commit | 4eb3033c72099fab3536ed8ac54a5dc99f0832d7 (patch) | |
tree | c2a93bb99d4948c1b95149d463ebfdfdbf5dce17 /drivers/gpu | |
parent | 75047944480a33afad76a272b21116d032ba61fa (diff) |
drm/nv50: fix iommu errors caused by device reading from address 0
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_fb.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_fb.c b/drivers/gpu/drm/nouveau/nv50_fb.c index a95e6941ba88..32611bd30e6d 100644 --- a/drivers/gpu/drm/nouveau/nv50_fb.c +++ b/drivers/gpu/drm/nouveau/nv50_fb.c | |||
@@ -6,10 +6,16 @@ | |||
6 | int | 6 | int |
7 | nv50_fb_init(struct drm_device *dev) | 7 | nv50_fb_init(struct drm_device *dev) |
8 | { | 8 | { |
9 | /* This is needed to get meaningful information from 100c90 | ||
10 | * on traps. No idea what these values mean exactly. */ | ||
11 | struct drm_nouveau_private *dev_priv = dev->dev_private; | 9 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
12 | 10 | ||
11 | /* Not a clue what this is exactly. Without pointing it at a | ||
12 | * scratch page, VRAM->GART blits with M2MF (as in DDX DFS) | ||
13 | * cause IOMMU "read from address 0" errors (rh#561267) | ||
14 | */ | ||
15 | nv_wr32(dev, 0x100c08, dev_priv->gart_info.sg_dummy_bus >> 8); | ||
16 | |||
17 | /* This is needed to get meaningful information from 100c90 | ||
18 | * on traps. No idea what these values mean exactly. */ | ||
13 | switch (dev_priv->chipset) { | 19 | switch (dev_priv->chipset) { |
14 | case 0x50: | 20 | case 0x50: |
15 | nv_wr32(dev, 0x100c90, 0x0707ff); | 21 | nv_wr32(dev, 0x100c90, 0x0707ff); |