3 #include "nouveau_drv.h"
4 #include "nouveau_drm.h"
7 nv50_fb_init(struct drm_device *dev)
9 struct drm_nouveau_private *dev_priv = dev->dev_private;
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)
15 nv_wr32(dev, 0x100c08, dev_priv->gart_info.sg_dummy_bus >> 8);
17 /* This is needed to get meaningful information from 100c90
18 * on traps. No idea what these values mean exactly. */
19 switch (dev_priv->chipset) {
21 nv_wr32(dev, 0x100c90, 0x0707ff);
25 nv_wr32(dev, 0x100c90, 0x0d0fff);
28 nv_wr32(dev, 0x100c90, 0x1d07ff);
36 nv50_fb_takedown(struct drm_device *dev)