Patch "drm/amdgpu: when suspending, if uvd/vce was running. need to cancel delay work." has been added to the 4.4-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
drm/amdgpu: when suspending, if uvd/vce was running. need to cancel delay work.
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-amdgpu-when-suspending-if-uvd-vce-was-running.-need-to-cancel-delay-work.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
85cc88f02eb0ecf44493c1b2ebb6f206cd5fc321Mon Sep 17 00:00:00 2001
From: Rex Zhu <[email protected]>
Date: Tue, 12 Apr 2016 19:25:52 +0800
Subject: drm/amdgpu: when suspending, if uvd/vce was running. need to cancel delay work.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Rex Zhu <[email protected]>
commit 85cc88f02eb0ecf44493c1b2ebb6f206cd5fc321 upstream.
fix the issue that when resume back, uvd/vce
dpm was disabled and uvd/vce's performace
dropped.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 1 + 2 files changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +2 -0
@@ -273,6 +273,8 @@ int amdgpu_uvd_resume(struct amdgpu_devimemcpy (adev->uvd.cpu_addr, (adev->uvd.fw->data) + offset, (adev->uvd.fw->size) - offset); +cancel_delayed_work_sync (&adev->uvd.idle_work); + size =amdgpu_bo_size (adev->uvd.vcpu_bo); size -=le32_to_cpu (hdr->ucode_size_bytes); ptr = adev->uvd.cpu_addr;
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +1 -0
@@ -220,6 +220,7 @@ int amdgpu_vce_suspend(struct amdgpu_devif (i ==AMDGPU_MAX_VCE_HANDLES )return 0 ; +cancel_delayed_work_sync (&adev->vce.idle_work);/* TODO: suspending running encoding sessions isn't supported */ return -EINVAL ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/drm-amdgpu-when-suspending-if-uvd-vce-was-running.-need-to-cancel-delay-work.patch