diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-28 13:50:38 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-28 13:50:38 -0400 |
| commit | b35f0ca74f055cc322fcbc6ec8c31cfb8dad892f (patch) | |
| tree | f5769d1bc2e96d755d212b9f68ffdb376bde45cf /drivers/gpu/drm/amd/amdgpu | |
| parent | 5345da892c0771ac1276283a29ba4bcd7ec426df (diff) | |
| parent | ce485df43dc286f3ad96f9992b22e3974d051c44 (diff) | |
Merge tag 'drm-fixes-for-v4.14-rc7' of git://people.freedesktop.org/~airlied/linux
Pull drm fixes from Dave Airlie:
"Two amd fixes, one i915 core and a few i915 GVT fixes, things seem
fairly quiet"
* tag 'drm-fixes-for-v4.14-rc7' of git://people.freedesktop.org/~airlied/linux:
drm/i915/gvt: Adding ACTHD mmio read handler
drm/i915/gvt: Extract mmio_read_from_hw() common function
drm/i915/gvt: Refine MMIO_RING_F()
drm/i915/gvt: properly check per_ctx bb valid state
drm/i915/perf: fix perf enable/disable ioctls with 32bits userspace
drm/amd/amdgpu: Remove workaround check for UVD6 on APUs
drm/amd/powerplay: fix uninitialized variable
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 16 |
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 31db356476f8..430a6b4dfac9 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | |||
| @@ -225,11 +225,7 @@ static int uvd_v6_0_suspend(void *handle) | |||
| 225 | if (r) | 225 | if (r) |
| 226 | return r; | 226 | return r; |
| 227 | 227 | ||
| 228 | /* Skip this for APU for now */ | 228 | return amdgpu_uvd_suspend(adev); |
| 229 | if (!(adev->flags & AMD_IS_APU)) | ||
| 230 | r = amdgpu_uvd_suspend(adev); | ||
| 231 | |||
| 232 | return r; | ||
| 233 | } | 229 | } |
| 234 | 230 | ||
| 235 | static int uvd_v6_0_resume(void *handle) | 231 | static int uvd_v6_0_resume(void *handle) |
| @@ -237,12 +233,10 @@ static int uvd_v6_0_resume(void *handle) | |||
| 237 | int r; | 233 | int r; |
| 238 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 234 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
| 239 | 235 | ||
| 240 | /* Skip this for APU for now */ | 236 | r = amdgpu_uvd_resume(adev); |
| 241 | if (!(adev->flags & AMD_IS_APU)) { | 237 | if (r) |
| 242 | r = amdgpu_uvd_resume(adev); | 238 | return r; |
| 243 | if (r) | 239 | |
| 244 | return r; | ||
| 245 | } | ||
| 246 | return uvd_v6_0_hw_init(adev); | 240 | return uvd_v6_0_hw_init(adev); |
| 247 | } | 241 | } |
| 248 | 242 | ||
