lkml.org 
[lkml]   [2012]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 070/241] drm/vmwgfx: Fix hibernation device reset
    Date
    3.5.7.2 -stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Thomas Hellstrom <thellstrom@vmware.com>

    commit 95e8f6a21996c4cc2c4574b231c6e858b749dce3 upstream.

    The device would not reset properly when resuming from hibernation.

    Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
    Reviewed-by: Brian Paul <brianp@vmware.com>
    Reviewed-by: Dmitry Torokhov <dtor@vmware.com>
    Cc: linux-graphics-maintainer@vmware.com
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
    ---
    drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 5 +++++
    1 file changed, 5 insertions(+)

    diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
    index 3a4b15a..db50604 100644
    --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
    +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
    @@ -1102,6 +1102,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.
    --
    1.7.9.5


    \
     
     \ /
      Last update: 2012-12-13 15:21    [W:4.143 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site