diff options
author | Marcin KoĆcielnicki <koriakin@0x04.net> | 2010-02-08 00:20:17 +0000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-02-09 12:50:27 +1000 |
commit | 9967b9481d2387af4dbe5ceda7a209466ba004a0 (patch) | |
tree | 89a771eedfc71c760aab4ddcce41898b31e7cb35 /drivers/gpu/drm | |
parent | 126b5440565a1fa0cb49fd30041525d5a9a848f5 (diff) | |
download | kernel_samsung_tuna-9967b9481d2387af4dbe5ceda7a209466ba004a0.zip kernel_samsung_tuna-9967b9481d2387af4dbe5ceda7a209466ba004a0.tar.gz kernel_samsung_tuna-9967b9481d2387af4dbe5ceda7a209466ba004a0.tar.bz2 |
drm/nouveau: Add proper vgaarb support.
Signed-off-by: Marcin KoĆcielnicki <koriakin@0x04.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_state.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c index fcd7610..a4851af 100644 --- a/drivers/gpu/drm/nouveau/nouveau_state.c +++ b/drivers/gpu/drm/nouveau/nouveau_state.c @@ -310,6 +310,14 @@ static int nouveau_init_engine_ptrs(struct drm_device *dev) static unsigned int nouveau_vga_set_decode(void *priv, bool state) { + struct drm_device *dev = priv; + struct drm_nouveau_private *dev_priv = dev->dev_private; + + if (dev_priv->chipset >= 0x40) + nv_wr32(dev, 0x88054, state); + else + nv_wr32(dev, 0x1854, state); + if (state) return VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM | VGA_RSRC_NORMAL_IO | VGA_RSRC_NORMAL_MEM; |