drm/amd/amdgpu: make sure VCE is disabled by default
authorArindam Nath <arindam.nath@amd.com>
Mon, 20 Jun 2016 08:47:49 +0000 (14:17 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:54:47 +0000 (14:54 -0400)
commitfb065ce7d30d17344610a81965111c551bff8af2
tree31bb9292f3f05944a9364c7fa1d7102c72737b74
parent93dcc37d2cc9d29e4cc36fd1cc8a9ca4f7109b1d
drm/amd/amdgpu: make sure VCE is disabled by default

With the current code, when we boot with the amdgpu
driver enabled and loaded, the VCE also automatically
remains enabled since bootup. This can be verified from
the output of amdgpu_pm_info. It does not matter whether
we boot into command line directly or into X, the VCE
stays enabled the entire time.

This patch addresses the issue and makes sure that
VCE is turned on only during playback, and remains
disaled otherwise.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/cz_dpm.c