Skip to contentSkip to conversation

drm/nouveau: Add proper vgaarb support.

PATCH In review Marcin Kościelnicki 3 participants 3 messages Feb 8, 2010 – Feb 9, 2010 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau: Add proper vgaarb support.

---
 drivers/gpu/drm/nouveau/nouveau_state.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
drivers/gpu/drm/nouveau/nouveau_state.c +7 -0
index fcd7610..c538eee 100644
@@ -310,6 +310,13 @@ 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;
Signature · 6 lines
1.6.4.1

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): 1265588417-23494-1-git-send-email-koriakin-mP9o5jsk0RY@public.gmane.org

#2 lore raw

2010/2/8 Marcin Kościelnicki <[email protected]>:

Quoted 26 lines

---
 drivers/gpu/drm/nouveau/nouveau_state.c |    7 +++++++

 1 files changed, 7 insertions(+), 0 deletions(-)
drivers/gpu/drm/nouveau/nouveau_state.c +0 -0
index fcd7610..c538eee 100644
@@ -310,6 +310,13 @@ 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; --
1.6.4.1

Quoted 5 lines

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

If noone complains by tomorrow, i will pick this up.

Maarten.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc1002080944r6c8751beqdb2e51a5806cd28e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw
Quoted 27 lines · Maarten Maathuis

2010/2/8 Marcin Kościelnicki <[email protected]>:

Quoted 26 lines
---
 drivers/gpu/drm/nouveau/nouveau_state.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
drivers/gpu/drm/nouveau/nouveau_state.c +7 -1
index fcd7610..c538eee 100644
@@ -310,6 +310,13 @@ 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;
--

1.6.4.1

Quoted 7 lines
Quoted 5 lines

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

If noone complains by tomorrow, i will pick this up.

I pushed this already today along with some other fixes, had it queued up since yesterday.

Ben.

Quoted 6 lines

Maarten.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau