drm/nouveau: Add proper vgaarb support.
Subsystems (3)
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
@@ -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
2010/2/8 Marcin Kościelnicki <[email protected]>:
Quoted 26 lines
Signed-off-by Marcin Kościelnicki <[email protected]>---
drivers/gpu/drm/nouveau/nouveau_state.c | 7 +++++++1 files changed, 7 insertions(+), 0 deletions(-)drivers/gpu/drm/nouveau/nouveau_state.c +0
-0@@ -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)
{
+ structdrm_device*dev = priv;
+ structdrm_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)
returnVGA_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
Quoted 27 lines · Maarten Maathuis
2010/2/8 Marcin Kościelnicki <[email protected]>:
Quoted 26 lines
Signed-off-by Marcin Kościelnicki <[email protected]>--- drivers/gpu/drm/nouveau/nouveau_state.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)drivers/gpu/drm/nouveau/nouveau_state.c +7
-1@@ -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/nouveauIf 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