diff options
author | James Zhu <jzhums@gmail.com> | 2018-09-13 22:55:44 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-27 04:09:12 +0200 |
commit | c95f75f4e86c1c0d867b76f2a134dbeac099cf89 (patch) | |
tree | 8142d5a542f2b005e4b9110bef4a892ea638287c /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | |
parent | drm/amd/display: remove redundant null pointer check before kfree (diff) | |
download | linux-c95f75f4e86c1c0d867b76f2a134dbeac099cf89.tar.xz linux-c95f75f4e86c1c0d867b76f2a134dbeac099cf89.zip |
drm/amdgpu:No action when VCN PG state is unchanged
When VCN PG state is unchanged, it is unnecessary to reset power
gate state
Signed-off-by: James Zhu <James.Zhu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h index 0b0b8638d73f..d2219abd50f0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h @@ -69,6 +69,7 @@ struct amdgpu_vcn { struct amdgpu_ring ring_jpeg; struct amdgpu_irq_src irq; unsigned num_enc_rings; + enum amd_powergating_state cur_state; }; int amdgpu_vcn_sw_init(struct amdgpu_device *adev); |