lkml.org 
[lkml]   [2013]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.11 140/272] drm/radeon: activate UVD clocks before sending the destroy msg
    Date
    3.11.10.1 -stable review patch.  If anyone has any objections, please let me know.

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

    From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>

    commit c154a76311293f9671439286834aa325b7ef59fe upstream.

    Make sure the UVD clocks are still active before sending
    the destroy message, otherwise the hw might hang.

    Signed-off-by: Christian König <christian.koenig@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
    ---
    drivers/gpu/drm/radeon/radeon_uvd.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/gpu/drm/radeon/radeon_uvd.c b/drivers/gpu/drm/radeon/radeon_uvd.c
    index b79f4f5..a951ac0 100644
    --- a/drivers/gpu/drm/radeon/radeon_uvd.c
    +++ b/drivers/gpu/drm/radeon/radeon_uvd.c
    @@ -239,6 +239,8 @@ void radeon_uvd_free_handles(struct radeon_device *rdev, struct drm_file *filp)
    if (handle != 0 && rdev->uvd.filp[i] == filp) {
    struct radeon_fence *fence;

    + radeon_uvd_note_usage(rdev);
    +
    r = radeon_uvd_get_destroy_msg(rdev,
    R600_RING_TYPE_UVD_INDEX, handle, &fence);
    if (r) {
    --
    1.8.3.2
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2013-12-06 14:41    [W:4.437 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site