diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-09-02 08:33:42 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-09-02 08:33:42 -0400 |
commit | e93c28f39375558409329a02a767d5cadfcc4a31 (patch) | |
tree | 9f1b4b5ce765b887b6002cded59fc934e6c9c012 /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | 85a62bf9d8ef8d533635270ae985281c58e8c974 (diff) | |
parent | 6fa2d197936ba0b8936e813d0adecefac160062b (diff) |
Merge tag 'drm-intel-next-fixes-2015-09-02' into drm-intel-next-queued
Backmerge -fixes since there's more DDI-E related cleanups on top of
the pile of -fixes for skl that just landed for 4.3.
Conflicts:
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i914/intel_dp.c
drivers/gpu/drm/i915/intel_lrc.c
Conflicts are all fairly harmless adjacent line stuff.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index ed13baa7c976..efed11509f4a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -82,7 +82,7 @@ static ssize_t amdgpu_set_dpm_state(struct device *dev, | |||
82 | mutex_unlock(&adev->pm.mutex); | 82 | mutex_unlock(&adev->pm.mutex); |
83 | 83 | ||
84 | /* Can't set dpm state when the card is off */ | 84 | /* Can't set dpm state when the card is off */ |
85 | if (!(adev->flags & AMDGPU_IS_PX) || | 85 | if (!(adev->flags & AMD_IS_PX) || |
86 | (ddev->switch_power_state == DRM_SWITCH_POWER_ON)) | 86 | (ddev->switch_power_state == DRM_SWITCH_POWER_ON)) |
87 | amdgpu_pm_compute_clocks(adev); | 87 | amdgpu_pm_compute_clocks(adev); |
88 | fail: | 88 | fail: |
@@ -538,7 +538,7 @@ static void amdgpu_dpm_change_power_state_locked(struct amdgpu_device *adev) | |||
538 | /* vce just modifies an existing state so force a change */ | 538 | /* vce just modifies an existing state so force a change */ |
539 | if (ps->vce_active != adev->pm.dpm.vce_active) | 539 | if (ps->vce_active != adev->pm.dpm.vce_active) |
540 | goto force; | 540 | goto force; |
541 | if (adev->flags & AMDGPU_IS_APU) { | 541 | if (adev->flags & AMD_IS_APU) { |
542 | /* for APUs if the num crtcs changed but state is the same, | 542 | /* for APUs if the num crtcs changed but state is the same, |
543 | * all we need to do is update the display configuration. | 543 | * all we need to do is update the display configuration. |
544 | */ | 544 | */ |
@@ -580,7 +580,6 @@ force: | |||
580 | amdgpu_dpm_print_power_state(adev, adev->pm.dpm.requested_ps); | 580 | amdgpu_dpm_print_power_state(adev, adev->pm.dpm.requested_ps); |
581 | } | 581 | } |
582 | 582 | ||
583 | mutex_lock(&adev->ddev->struct_mutex); | ||
584 | mutex_lock(&adev->ring_lock); | 583 | mutex_lock(&adev->ring_lock); |
585 | 584 | ||
586 | /* update whether vce is active */ | 585 | /* update whether vce is active */ |
@@ -628,7 +627,6 @@ force: | |||
628 | 627 | ||
629 | done: | 628 | done: |
630 | mutex_unlock(&adev->ring_lock); | 629 | mutex_unlock(&adev->ring_lock); |
631 | mutex_unlock(&adev->ddev->struct_mutex); | ||
632 | } | 630 | } |
633 | 631 | ||
634 | void amdgpu_dpm_enable_uvd(struct amdgpu_device *adev, bool enable) | 632 | void amdgpu_dpm_enable_uvd(struct amdgpu_device *adev, bool enable) |