aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-11-01 22:40:41 -0400
committerDave Airlie <airlied@redhat.com>2017-11-01 22:40:41 -0400
commit7a88cbd8d65d622c00bd76ba4ae1d893b292c91c (patch)
tree826df7ac42ca13c33828d0142046186b91df686b /drivers/gpu/drm/amd/amdgpu
parent0a4334c9e5405f836c46375c6e279cfdda7da6b5 (diff)
parent0b07194bb55ed836c2cc7c22e866b87a14681984 (diff)
Backmerge tag 'v4.14-rc7' into drm-next
Linux 4.14-rc7 Requested by Ben Skeggs for nouveau to avoid major conflicts, and things were getting a bit conflicty already, esp around amdgpu reverts.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
index 71299c67c517..2581543b35a7 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
@@ -565,11 +565,7 @@ static int uvd_v6_0_suspend(void *handle)
565 if (r) 565 if (r)
566 return r; 566 return r;
567 567
568 /* Skip this for APU for now */ 568 return amdgpu_uvd_suspend(adev);
569 if (!(adev->flags & AMD_IS_APU))
570 r = amdgpu_uvd_suspend(adev);
571
572 return r;
573} 569}
574 570
575static int uvd_v6_0_resume(void *handle) 571static int uvd_v6_0_resume(void *handle)
@@ -577,12 +573,10 @@ static int uvd_v6_0_resume(void *handle)
577 int r; 573 int r;
578 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 574 struct amdgpu_device *adev = (struct amdgpu_device *)handle;
579 575
580 /* Skip this for APU for now */ 576 r = amdgpu_uvd_resume(adev);
581 if (!(adev->flags & AMD_IS_APU)) { 577 if (r)
582 r = amdgpu_uvd_resume(adev); 578 return r;
583 if (r) 579
584 return r;
585 }
586 return uvd_v6_0_hw_init(adev); 580 return uvd_v6_0_hw_init(adev);
587} 581}
588 582