projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a48ed2
)
drm/vmwgfx: Fix hibernation device reset
author
Thomas Hellstrom
<
[email protected]
>
Fri, 9 Nov 2012 09:05:57 +0000
(10:05 +0100)
committer
Dave Airlie
<
[email protected]
>
Fri, 9 Nov 2012 10:49:02 +0000
(20:49 +1000)
The device would not reset properly when resuming from hibernation.
Signed-off-by: Thomas Hellstrom <
[email protected]
>
Reviewed-by: Brian Paul <
[email protected]
>
Reviewed-by: Dmitry Torokhov <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Signed-off-by: Dave Airlie <
[email protected]
>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
index ed3c1e7ddde94cde6db31c1e09b3174364eb9d22..2dd185e42f2129c8492021050e8ba149890cfbfd 100644
(file)
--- a/
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@
-1098,6
+1098,11
@@
static void vmw_pm_complete(struct device *kdev)
struct drm_device *dev = pci_get_drvdata(pdev);
struct vmw_private *dev_priv = vmw_priv(dev);
+ mutex_lock(&dev_priv->hw_mutex);
+ vmw_write(dev_priv, SVGA_REG_ID, SVGA_ID_2);
+ (void) vmw_read(dev_priv, SVGA_REG_ID);
+ mutex_unlock(&dev_priv->hw_mutex);
+
/**
* Reclaim 3d reference held by fbdev and potentially
* start fifo.