[PATCH v2 3/3] drm/amdgpu:schedule vce/vcn encode based on priority

2021-08-27 Thread Satyajit Sahu
Schedule the encode job in VCE/VCN encode ring based on the priority set by UMD. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu

[PATCH v2 2/3] drm/amdgpu/vcn: set the priority for each encode ring

2021-08-27 Thread Satyajit Sahu
VCN has multiple rings. Set the proper priority level for each encode ring while initializing. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 14 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 2 ++ drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 4

[PATCH v2 1/3] drm/amdgpu/vce: set the priority for each ring

2021-08-27 Thread Satyajit Sahu
VCE has multiple rings. Set the proper priority level for each ring while initializing. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 14 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h | 1 + drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 4 +++- drivers/gpu

[PATCH 4/5] drm/amdgpu/vcn:set ring priorities

2021-08-26 Thread Satyajit Sahu
Set proper ring priority while initializing the ring. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 4 +++- drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 4 +++- drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 4 +++- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 5 +++-- 4 files changed

[PATCH 5/5] drm/amdgpu:schedule vce/vcn encode based on priority

2021-08-26 Thread Satyajit Sahu
Schedule the encode job in VCE/VCN encode ring based on the priority set by UMD. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 30 + 1 file changed, 30 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd

[PATCH 3/5] drm/amdgpu/vce:set ring priorities

2021-08-26 Thread Satyajit Sahu
Set proper ring priority while initializing the ring. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 4 +++- drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 4 +++- drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a

[PATCH 2/5] drm/amdgpu/vcn:set vcn encode ring priority level

2021-08-26 Thread Satyajit Sahu
There are multiple rings available in VCN encode. Map each ring to different priority. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 14 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 9 + 2 files changed, 23 insertions(+) diff --git a/drivers

[PATCH 1/5] drm/amdgpu/vce:set vce ring priority level

2021-08-26 Thread Satyajit Sahu
There are multiple rings available in VCE. Map each ring to different priority. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 14 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h | 14 ++ 2 files changed, 28 insertions(+) diff --git a/drivers/gpu

[PATCH 3/5] drm/amdgpu/vce:set vce ring priority level

2021-08-23 Thread Satyajit Sahu
There are multiple rings available in VCE. Map each ring to different priority. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 14 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h | 15 +++ 2 files changed, 29 insertions(+) diff --git a/drivers/gpu

[PATCH 5/5] drm/amdgpu/vcn/vce:schedule encode job based on priorrity

2021-08-23 Thread Satyajit Sahu
Schedule the encode job properly in the VCE/VCN encode rings based on the priority set by UMD. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 40 +++-- drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 4 ++- drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 4

[PATCH 2/5] drm/amdgpu: map user set priority to drm sched priority

2021-08-23 Thread Satyajit Sahu
Map UMD priority level to properly to drm sched priorrity. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c index

[PATCH 1/5] drm/sched:add new priority level

2021-08-23 Thread Satyajit Sahu
Adding a new priority level DRM_SCHED_PRIORITY_VERY_HIGH Signed-off-by: Satyajit Sahu --- include/drm/gpu_scheduler.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h index d18af49fd009..d0e5e234da5f 100644 --- a/include/drm

[PATCH 4/5] drm/amdgpu/vcn:set vcn encode ring priority level

2021-08-23 Thread Satyajit Sahu
There are multiple rings available in VCN encode. Map each ring to different priority. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 14 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 14 ++ 2 files changed, 28 insertions(+) diff --git a

[PATCH 1/5] drm/sched:add new priority level

2021-08-23 Thread Satyajit Sahu
Adding a new priority level DRM_SCHED_PRIORITY_VERY_HIGH Signed-off-by: Satyajit Sahu --- include/drm/gpu_scheduler.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h index d18af49fd009..d0e5e234da5f 100644 --- a/include/drm

[PATCH] drm/amdgpu/vcn:enable priority queues for encoder

2021-08-10 Thread Satyajit Sahu
VCN and VCE support multiple queues with different priority. Use differnt encoder queue based on the priority set by UMD. Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 35 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | 2 +- drivers/gpu/drm

[PATCH] drm/amd/powerplay: Enable/Disable NBPSTATE on On/OFF of UVD

2018-09-26 Thread Satyajit Sahu
Signed-off-by: Satyajit Sahu Acked-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c index b863704..86b6a43

[PATCH] drm/amdgpu: set default temperature range

2017-12-11 Thread Satyajit Sahu
Setting default values for min and max threshold temperatures. Hwmgr can override these values if it has necessary tables. Reviewed-by: Alex Deucher Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.h | 3 +++ 2

[PATCH] drm/amdgpu: set default temperature range

2017-12-10 Thread Satyajit Sahu
Setting default values for min and maxi threshold temperatures. Hwmgr can override these values if it has necessary tables. Reviewed-by: Alex Deucher Signed-off-by: Satyajit Sahu --- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.h | 3