[PATCH] drm/amdgpu: SI support for UVD and VCE power managment

2020-06-24 Thread Alex Jivin
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

[PATCH 2/3] drm/amdgpu: SI support for VCE clock control

2020-06-24 Thread 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 ++ drivers/gpu/drm/amd/amdgpu/si.c | 126 +++- drivers/gpu/drm/amd/amdgpu/sid.h| 31 +++ 3 files changed, 165

[PATCH 3/3] drm/amdgpu: SI support for UVD and VCE power managment

2020-06-24 Thread Alex Jivin
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

[PATCH 1/3] drm/amdgpu: SI support for UVD clock control

2020-06-24 Thread Alex Jivin
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

Re: [PATCH 2/3] drm/amdgpu: SI support for VCE clock control

2020-06-25 Thread Alex Jivin
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

[PATCH] drm/amdgpu: Adding wait time before reading upll control register

2020-06-26 Thread Alex Jivin
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

[PATCH] drm/amdgpu: Moving out the mutex lock and unlcok outside of the "if" statements

2020-07-06 Thread Alex Jivin
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 -