Port functionality from the Radeon driver to support
UVD and VCE power management.
Signed-off-by: Alex Jivin
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 9 +
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 67 +++--
drivers/gpu/drm/amd/amdgpu/si.c| 361 -
drivers
Port functionality from the Radeon driver to support
VCE clock control.
Signed-off-by: Alex Jivin
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 9 ++
drivers/gpu/drm/amd/amdgpu/si.c | 126 +++-
drivers/gpu/drm/amd/amdgpu/sid.h| 31 +++
3 files changed, 165
Port functionality from the Radeon driver to support
UVD and VCE power management.
Signed-off-by: Alex Jivin
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 67 +++---
drivers/gpu/drm/amd/amdgpu/si_dpm.c| 19
2 files changed, 68 insertions(+), 18 deletions(-)
diff
Port functionality from the Radeon driver to support
UVD clock control.
Signed-off-by: Alex Jivin
---
drivers/gpu/drm/amd/amdgpu/si.c | 234 ++-
drivers/gpu/drm/amd/amdgpu/sid.h | 1 +
2 files changed, 229 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu
On 2020-06-25 4:14 a.m., Christian König wrote:
> Am 24.06.20 um 22:31 schrieb Alex Jivin:
>> Port functionality from the Radeon driver to support
>> VCE clock control.
>>
>> Signed-off-by: Alex Jivin
>> ---
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h | 9
Adding a delay between writing to UVD control register and reading from it.
This is to allow the HW to process the write command.
Signed-off-by: Alex Jivin
Suggested-By: Luben Tukov
---
drivers/gpu/drm/amd/amdgpu/si.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm
Moving mutex unlock and lock outside of the "if" statement as it can be shown
that
the mutex will be taken and released, regardless of the value checked in the if
statement.
Signed-off-by: Alex Jivin
Suggested-By: Luben Tukov
---
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 12 -